Fix for last commit.
[gnulib.git] / ChangeLog
1 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2
3         * build-aux/git-version-gen: Add --prefix to configure the tag
4         match string.
5
6 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7
8         * build-aux/git-version-gen: Add --help and --version.
9
10 2011-11-12  Jim Meyering  <meyering@redhat.com>
11
12         revamp the other test-exclude?.sh scripts to use init.sh, too
13         * tests/test-exclude1.sh: Use init.sh.
14         * tests/test-exclude2.sh: Likewise.
15         * tests/test-exclude3.sh: Likewise.
16         * tests/test-exclude4.sh: Likewise.
17         * tests/test-exclude5.sh: Likewise.
18         * tests/test-exclude6.sh: Likewise.
19         * tests/test-exclude7.sh: Likewise.
20         * tests/test-exclude8.sh: Likewise.
21         * modules/exclude-tests (Files): List init.sh.
22
23         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
24         These shell scripts ignored failure of the binary test-exclude,
25         so making the latter return 77 didn't cause them to be skipped.
26         * tests/test-exclude5.sh: Exit with test-exclude's error status
27         when that program fails.  Revamp to use init.sh.
28         * tests/test-exclude2.sh: Likewise.
29
30         test-exclude: fix a typo
31         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
32
33 2011-11-11  Bruno Haible  <bruno@clisp.org>
34
35         obstack: Fix compilation error on MSVC 9.
36         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
37
38 2011-11-11  Jim Meyering  <meyering@redhat.com>
39
40         test-exclude: skip tests rather than failing on deficient systems
41         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
42         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
43         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45
46 2011-11-10  Bruno Haible  <bruno@clisp.org>
47
48         ptsname_r test: Avoid gcc warning on glibc systems.
49         * tests/test-ptsname_r.c (null_ptr): New function.
50         (test_errors): Use it.
51
52 2011-11-10  Bruno Haible  <bruno@clisp.org>
53
54         ptsname_r: Avoid compilation error on OSF/1 5.1.
55         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
56         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
57         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
58         function is not declared or incompatibly declared.
59         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
60         * modules/ptsname_r (Depends-on, configure.ac): Update.
61         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
62
63 2011-11-10  Bruno Haible  <bruno@clisp.org>
64
65         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
66         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
67         When cross-compiling, guess yes on all platforms except AIX.
68         Reported by Ludovic Courtès <ludo@gnu.org>.
69
70 2011-11-09  Bruno Haible  <bruno@clisp.org>
71
72         ptsname_r tests: Fix bugs.
73         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
74         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
75
76 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77
78         fstatat: work with cross-compilation
79         Problem reported by Ludovic Courtès in
80         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
81         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
82         "cross-compiling" and assume the bug is present.  Replace
83         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
84         an inverted sense, to be more conservative about our assumptions.
85         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
86
87 2011-11-09  Bruno Haible  <bruno@clisp.org>
88
89         Improve MODULES.html output.
90         * modules/mkfifoat (Description): Use the word "function".
91         * modules/readlinkat (Description): Likewise.
92         * modules/symlinkat (Description): Likewise.
93
94 2011-11-09  Eric Blake  <eblake@redhat.com>
95
96         ptsname_r-tests: new test module
97         * modules/ptsname_r-tests: New module.
98         * tests/test-ptsname_r.c: New file.
99
100         ptsname_r: new module
101         * modules/ptsname_r: New module.
102         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
103         * lib/ptsname.c (__ptsname_r): Split...
104         * lib/ptsname_r.c: ...into new file.
105         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
106         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
107         * modules/stdlib (Makefile.am): Substitute witnesses.
108         * lib/stdlib.in.h (ptsname_r): Declare it.
109         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
110         * MODULES.html.sh (Misc): Likewise.
111         * modules/ptsname (Depends-on): Alter dependency.
112         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
113
114 2011-11-09  Jim Meyering  <meyering@redhat.com>
115
116         announce-gen: be more concise when there's only one URL+tarball
117         * build-aux/announce-gen (get_tool_versions): When you distribute
118         only one type of tarball, combine the first two "Here are..."
119         sections and make the key-checking grammar independent of
120         how many tarballs there are.
121
122 2011-11-09  Eric Blake  <eblake@redhat.com>
123
124         openpty: provide a stub on mingw
125         * lib/pty.in.h (includes): Provide forward declarations.
126         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
127
128         raise: fix mingw handling of SIGPIPE
129         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
130
131 2011-11-08  Bruno Haible  <bruno@clisp.org>
132
133         More conditional dependencies.
134         * modules/faccessat (Depends-on): Add conditions.
135         * modules/fchmodat (Depends-on): Likewise.
136         * modules/fchownat (Depends-on): Likewise.
137         * modules/fstatat (Depends-on): Likewise.
138         * modules/mkfifoat (Depends-on): Likewise.
139         * modules/readlinkat (Depends-on): Likewise.
140         * modules/symlinkat (Depends-on): Likewise.
141         * modules/unlinkat (Depends-on): Likewise.
142         * modules/utimensat (Depends-on): Likewise.
143         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
144         * modules/linkat (Depends-on): Refine the conditions.
145         * modules/renameat (Depends-on): Likewise.
146
147 2011-11-08  Bruno Haible  <bruno@clisp.org>
148
149         faccessat: Move AC_LIBOBJ invocation to module description.
150         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
151         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
152         invocation from here...
153         * modules/faccessat (configure.ac): ... to here. Invoke
154         gl_PREREQ_FACCESSAT.
155
156 2011-11-08  Bruno Haible  <bruno@clisp.org>
157
158         faccessat: Simplify autoconf macro.
159         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
160         gl_FUNC_EUIDACCESS.
161
162 2011-11-08  Bruno Haible  <bruno@clisp.org>
163
164         renameat: Fix dependencies.
165         * modules/renameat (Depends-on): Add stdbool.
166
167 2011-11-08  Bruno Haible  <bruno@clisp.org>
168
169         mkfifoat: Fix module description.
170         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
171         not gl_UNISTD_MODULE_INDICATOR.
172
173 2011-11-08  Bruno Haible  <bruno@clisp.org>
174
175         fstatat: Remove unused dependency.
176         * modules/fstatat (Depends-on): Remove fstat.
177
178 2011-11-08  Simon Josefsson  <simon@josefsson.org>
179
180         GNUmakefile: behave when Makefile is missing.
181         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
182
183 2011-11-08  Bruno Haible  <bruno@clisp.org>
184
185         openat: Conditionalize dependencies.
186         * lib/openat.c: Reduce the scope of some #includes.
187         * modules/openat (Depends-on): Add conditions.
188
189 2011-11-07  Jim Meyering  <meyering@redhat.com>
190
191         maint.mk: extract GPG key ID without using a temporary file
192         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
193         without using a temporary file.  Based on a suggestion from Werner Koch
194         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
195
196 2011-11-07  Eric Blake  <eblake@redhat.com>
197
198         grantpt: fix typo
199         * lib/stdlib.in.h (grantpt): Check correct function.
200
201         maint.mk: silence new syntax check
202         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
203
204 2011-11-06  Bruno Haible  <bruno@clisp.org>
205
206         Doc about floating-point and math API.
207         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
208         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
209
210 2011-11-06  Bruno Haible  <bruno@clisp.org>
211
212         stdalign tests: Skip the test when compiled by Sun C.
213         * tests/test-stdalign.c (main): Skip the test on Sun C.
214
215 2011-11-06  Bruno Haible  <bruno@clisp.org>
216
217         ansi-c++-opt: Complete the 2011-06-05 change.
218         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
219         does not support namespaces, set the variable to "no", not to ":".
220
221 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
222
223         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
224
225 2011-11-06  Bruno Haible  <bruno@clisp.org>
226
227         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
228         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
229         (minus_zerol) [HP-UX]: New macro.
230         (unary_minus) [HP-UX]: New function.
231         (copysignl) [HP-UX]: Use unary_minus function.
232
233 2011-11-06  Bruno Haible  <bruno@clisp.org>
234
235         ldexp, ldexpf, ldexpl: Enhance tests.
236         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
237         and tests/test-ldexpl.c.
238         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
239         LDEXP, MIN_EXP, MAX_EXP): New macros.
240         Include test-ldexp.h.
241         (main): Just call test_function.
242         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
243         infinity.h, nan.h.
244         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
245         MAX_EXP): New macros.
246         Include test-ldexp.h.
247         (x, y): Remove variables.
248         (main): Just call test_function.
249         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
250         infinity.h, nan.h.
251         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
252         MAX_EXP): New macros.
253         Include test-ldexp.h.
254         (x, y): Remove variables.
255         (main): Just call test_function.
256         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
257         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
258         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
259         (Depends-on): Add isnand-nolibm, signbit, float.
260         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
261         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
262         (Depends-on): Add isnanf-nolibm, signbit, float.
263
264 2011-11-06  Bruno Haible  <bruno@clisp.org>
265
266         math tests: Cosmetics.
267         * tests/test-math-c++.cc: Reorder declarations.
268
269 2011-11-05  Bruno Haible  <bruno@clisp.org>
270
271         fma*: Simplify test.
272         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
273         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
274
275         Tests for module 'fmal'.
276         * modules/fmal-tests: New file.
277         * tests/test-fmal1.c: New file.
278         * tests/test-fmal2.c: New file.
279
280         New module 'fmal'.
281         * lib/math.in.h (fmal): New declaration.
282         * lib/fmal.c: New file.
283         * m4/fmal.m4: New file.
284         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
286         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
287         REPLACE_FMAL.
288         * modules/fmal: New file.
289         * doc/posix-functions/fmal.texi: Mention the new module and the various
290         bugs.
291
292         Tests for module 'fmaf'.
293         * modules/fmaf-tests: New file.
294         * tests/test-fmaf1.c: New file.
295         * tests/test-fmaf2.c: New file.
296
297         New module 'fmaf'.
298         * lib/math.in.h (fmaf): New declaration.
299         * lib/fmaf.c: New file.
300         * m4/fmaf.m4: New file.
301         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
303         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
304         REPLACE_FMAF.
305         * modules/fmaf: New file.
306         * doc/posix-functions/fmaf.texi: Mention the new module and the various
307         bugs.
308
309         Tests for module 'fma'.
310         * modules/fma-tests: New file.
311         * tests/test-fma1.c: New file.
312         * tests/test-fma1.h: New file.
313         * tests/test-fma2.c: New file.
314         * tests/test-fma2.h: New file.
315
316         New module 'fma'.
317         * lib/math.in.h (fma): New declaration.
318         * lib/fma.c: New file.
319         * m4/fma.m4: New file.
320         * m4/fegetround.m4: New file.
321         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
323         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
324         REPLACE_FMA.
325         * modules/fma: New file.
326         * doc/posix-functions/fma.texi: Mention the new module and the various
327         bugs.
328
329         Extend gl_MATHFUNC.
330         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
331         Support 'void' as argument type.
332         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
333
334 2011-11-05  Jim Meyering  <meyering@redhat.com>
335
336         maint.mk: also prohibit inclusion of dirent.h without use
337         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
338
339 2011-11-05  Bruno Haible  <bruno@clisp.org>
340
341         ldexpl tests: Avoid test failure on MSVC 9.
342         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
343         value. Needed in order to enforce the conversion from a value greater
344         than LDBL_MAX to Infinity.
345
346 2011-11-05  Bruno Haible  <bruno@clisp.org>
347
348         New modules 'at-internal', 'openat-h', split off from module 'openat'.
349         * modules/at-internal: New file, extracted from modules/openat.
350         * modules/openat-h: New file.
351         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
352         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
353         * modules/openat (Description): Add reference to POSIX function.
354         (Files): Remove lib/openat.h, lib/openat-proc.c.
355         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
356         intprops, unistd.
357         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
358         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
359         gl_FCNTL_MODULE_INDICATOR.
360         (Include): Remove unistd.h, openat.h.
361         * modules/areadlinkat (Files): Add lib/at-func.c.
362         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
363         openat-die, openat-h, save-cwd.
364         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
365         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
366         openat-die, openat-h, save-cwd, unistd.
367         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
368         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
369         openat-h, save-cwd. Remove fcntl-h, openat.
370         * modules/fchmodat (Files): Remove lib/openat.h.
371         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
372         openat, stdbool, unistd.
373         * modules/fchownat (Files): Remove lib/openat.h.
374         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
375         openat, stdbool, sys_stat.
376         * modules/fdopendir (Files): Remove lib/openat-priv.h,
377         lib/openat-proc.c.
378         (Depends-on): Add at-internal.
379         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
380         * modules/fstatat (Files): Remove lib/openat.h.
381         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
382         stdbool, unistd.
383         * modules/fts (Depends-on): Add openat-h.
384         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
385         openat.
386         * modules/mkdirat (Files): Remove lib/openat.h.
387         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
388         openat, stdbool, sys_stat.
389         * modules/mkfifoat (Files): Add lib/at-func.c.
390         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
391         openat-h, save-cwd. Remove fcntl-h, openat.
392         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
393         * modules/readlinkat (Files): Add lib/at-func.c.
394         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
395         openat-h, save-cwd. Remove fcntl-h, openat.
396         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
397         openat.
398         * modules/selinux-at (Files): Add lib/at-func.c.
399         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
400         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
401         * modules/symlinkat (Files): Add lib/at-func.c.
402         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
403         openat-h, save-cwd. Remove fcntl-h, openat.
404         * modules/unlinkat (Files): Remove lib/openat.h.
405         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
406         stdbool.
407         * modules/utimensat (Files): Add lib/at-func.c.
408         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
409         openat-die, openat-h, save-cwd.
410         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
411         * modules/fdutimensat-tests (Depends-on): Add openat.
412         * modules/fstatat-tests (Depends-on): Add openat-h.
413         * modules/readlinkat-tests (Depends-on): Add openat.
414         * modules/symlinkat-tests (Depends-on): Add openat.
415
416 2011-11-05  Bruno Haible  <bruno@clisp.org>
417
418         openat: Include <stdbool.h>.
419         * lib/openat.c: Include <stdbool.h>.
420
421 2011-11-04  Bruno Haible  <bruno@clisp.org>
422
423         fchownat, renameat, unlinkat: Fix dependencies.
424         * modules/fchownat (Depends-on): Add fstatat.
425         * modules/renameat (Depends-on): Likewise.
426         * modules/unlinkat (Depends-on): Likewise.
427
428 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
429
430         openat: remove direct dependency on dirent
431         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
432         and hasn't been needed ever since fdopendir was split into its own
433         module on 2009-08-31.
434         * modules/openat (Depends-on): Remove dirent.
435
436 2011-11-04  Bruno Haible  <bruno@clisp.org>
437
438         renameat: Optimize code size.
439         * modules/renameat (configure.ac): Don't compile at-func2.c if
440         REPLACE_RENAMEAT is 1.
441
442 2011-11-04  Bruno Haible  <bruno@clisp.org>
443
444         openat tests: Fix file list.
445         * modules/openat-tests (Files): Add tests/test-open.h.
446
447 2011-11-04  Bruno Haible  <bruno@clisp.org>
448
449         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
450         * modules/fchmodat (Depends-on): Add openat-die.
451         * modules/fchownat (Depends-on): Likewise.
452         * modules/linkat (Depends-on): Likewise.
453         * modules/renameat (Depends-on): Likewise.
454         * modules/openat (Depends-on): Add dirent.
455
456 2011-11-04  Jim Meyering  <meyering@redhat.com>
457
458         at-func*.c: fix comments
459         * lib/at-func2.c: Correct/improve first-line comment.
460         * lib/at-func.c: Correct grammar in first-line comment.
461
462 2011-11-04  Bruno Haible  <bruno@clisp.org>
463
464         New module 'mkdirat', split off from module 'openat'.
465         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
466         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
467         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
468         * modules/mkdirat: New file, extracted from modules/openat.
469         * modules/openat (Files): Remove lib/mkdirat.c.
470         (Depends-on): Remove mkdir.
471         (configure.ac): Remove AC_LIBOBJ of mkdirat.
472         (Include): Remove <sys/stat.h>.
473         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
474         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
475         tests/test-mkdir.h.
476         (Depends-on): Remove ignore-value.
477         (Makefile.am): Remove rules for test-mkdirat.
478         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
479         of module 'openat'.
480         * NEWS: Mention the change.
481
482 2011-11-04  Bruno Haible  <bruno@clisp.org>
483
484         closedir: Avoid warning on mingw.
485         * lib/closedir.c: Include <unistd.h>.
486
487 2011-11-04  Bruno Haible  <bruno@clisp.org>
488
489         New module 'fstatat', split off from module 'openat'.
490         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
491         defined.
492         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
493         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
494         gl_FUNC_FSTATAT.
495         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
496         * modules/fstatat: New file, extracted from modules/openat.
497         * modules/openat (Files): Remove lib/fstatat.c.
498         (Depends-on): Remove lstat.
499         (configure.ac): Remove AC_LIBOBJ of fstatat.
500         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
501         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
502         tests/test-lstat.h, tests/test-stat.h.
503         (Depends-on): Remove getcwd-lgpl.
504         (Makefile.am): Remove rules for test-fstatat.
505         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
506         of module 'openat'.
507         * NEWS: Mention the change.
508         * modules/getcwd (Depends-on): Add fstatat.
509         * modules/linkat (Depends-on): Likewise.
510         * modules/mkfifoat-tests (Depends-on): Likewise.
511         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
512
513 2011-11-03  Bruno Haible  <bruno@clisp.org>
514
515         New module 'unlinkat', split off from module 'openat'.
516         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
517         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
518         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
519         * modules/unlinkat: New file, extracted from modules/openat. Correct
520         the dependency conditions.
521         * modules/openat (Files): Remove lib/unlinkat.c.
522         (Depends-on): Remove rmdir, unlink.
523         (configure.ac): Remove AC_LIBOBJ of unlinkat.
524         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
525         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
526         tests/test-rmdir.h, tests/test-unlink.h.
527         (Depends-on): Remove unlinkdir.
528         (Makefile.am): Remove rules for test-unlinkat.
529         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
530         of module 'openat'.
531         * NEWS: Mention the change.
532         * modules/linkat-tests (Depends-on): Add unlinkat.
533         * modules/mkfifoat-tests (Depends-on): Likewise.
534         * modules/readlinkat-tests (Depends-on): Likewise.
535
536 2011-11-02  Bruno Haible  <bruno@clisp.org>
537
538         New module 'fchmodat', split off from module 'openat'.
539         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
540         defined.
541         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
542         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
543         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
544         * modules/fchmodat: New file, extracted from modules/openat.
545         * modules/openat (Files): Remove lib/fchmodat.c.
546         (configure.ac): Remove AC_LIBOBJ of fchmodat.
547         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
548         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
549         (Makefile.am): Remove rules for test-fchmodat.
550         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
551         of module 'openat'.
552         * NEWS: Mention the change.
553
554 2011-11-02  Jim Meyering  <meyering@redhat.com>
555
556         putenv: indent #definition of "environ" to placate cppi
557         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
558
559         gitlog-to-changelog: provide a ChangeLog-repair mechanism
560         Git logs are often treated as immutable, because editing them
561         changes the SHA1 checksums of all descendants.  Thus, errors in
562         git logs tend to stay there forever.  However, when we generate
563         a ChangeLog file -- typically for distribution -- from that git log,
564         we can actually make corrections in the generated file.  The key
565         lies in recording in machine-readable/applicable form the desired
566         corrections.  See --help for description and an example.
567         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
568         (usage): Describe it; alphabetize option descriptions.
569         (main): Honor the new option, carefully.
570
571 2011-11-01  Jim Meyering  <meyering@redhat.com>
572
573         gitlog-to-changelog: avoid an infloop
574         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
575         that ends up being empty.
576
577 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
578
579         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
580         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
581         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
582         contains (possibly-quoted) backslashes.  This should avoid
583         all-too-common shell bugs if COMPLICATED contains backslashes in
584         the "wrong" places.  Reported by David Evans in
585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
586         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
587         because we want ASCII ranges.  Is there some reason we don't use
588         the C locale everywhere in this script?
589         (func_module, top level): Avoid unwanted pathname expansion when
590         $repo_url_prefix or $repo_url_suffix_repl contain shell
591         metacharacters like '?' and '*'.
592
593 2011-11-01  Bruno Haible  <bruno@clisp.org>
594
595         fchownat: Improve description.
596         * modules/fchownat (Description): Add link to function.
597
598 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
599
600         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
601         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
603         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
604
605 2011-11-01  Bruno Haible  <bruno@clisp.org>
606
607         alignof: Avoid collision with stdalign module.
608         * lib/alignof.h (alignof): Remove macro.
609         * NEWS: Mention the change.
610         Reported by Paul Eggert.
611
612 2011-11-01  Bruno Haible  <bruno@clisp.org>
613
614         New module 'fchownat', split off from module 'openat'.
615         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
616         defined.
617         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
618         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
619         invoke gl_FUNC_FCHOWNAT.
620         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
621         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
622         * modules/fchownat: New file, extracted from modules/openat.
623         * modules/openat (Files): Remove lib/fchownat.c.
624         (Depends-on): Remove lchown.
625         (configure.ac): Remove AC_LIBOBJ of fchownat.
626         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
627         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
628         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
629         (Depends-on): Remove mgetgroups, usleep, stat-time.
630         (configure.ac): Remove test for getegid.
631         (Makefile.am): Remove rules for test-fchownat.
632         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
633         of module 'openat'.
634         * NEWS: Mention the change.
635
636 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
637
638         stdalign: port better to MSVC and to Sun C 5.11
639         This fixes some of the problems reported by Bruno Haible in
640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
641         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
642         shortcomings of MSVC and of Sun C 5.11.
643         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
644         around __declspec arg.
645         * modules/stdalign-tests (Files): Add tests/macros.h.
646         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
647         Include macros.h, for ASSERT.
648         (DECLARE_ALIGNED): Remove.
649         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
650         to catch bug), and to 1 if not (simplifies the rest of the code).
651         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
652         (CHECK_AUTO): Remove.
653         (CHECK_ALIGNED): Check only the alignment of the static vars,
654         since auto var alignment isn't supported by Sun C 5.11.
655         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
656         ASSERT failures are easier to diagnose.
657
658 2011-10-31  Bruno Haible  <bruno@clisp.org>
659
660         doc about some IRIX 5.3 problems.
661         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
662         on IRIX 5.3.
663         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
664         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
665         5.3.
666         * doc/posix-functions/grantpt.texi: Likewise.
667         * doc/posix-functions/unlockpt.texi: Likewise.
668         * doc/posix-functions/lgamma.texi: Likewise.
669         * doc/posix-functions/nextafter.texi: Likewise.
670         * doc/posix-functions/remainder.texi: Likewise.
671         * doc/posix-functions/select.texi: Mention misplaced declaration on
672         IRIX 5.3.
673         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
674
675 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
676
677         gitlog-to-changelog: fix git-log invocation.
678         git-log mishandles date strings before 1970-01-01 UTC, and there is
679         no use to specify --since=1970-01-01 by default anyway.
680         * build-aux/gitlog-to-changelog: By default, when no --since option
681         was given, do not specify explicit --since option to git-log.
682
683 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
684
685         gitlog-to-changelog: new option --append-dot.
686         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
687         first non-blank line of each commit message terminated with a dot.
688
689 2011-10-30  Bruno Haible  <bruno@clisp.org>
690
691         ffsl, ffsll: Avoid compilation error due to 'restrict'.
692         * lib/ffsl.h: Include <config.h>.
693         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
694
695 2011-10-30  Jim Meyering  <meyering@redhat.com>
696
697         GNUmakefile: reenable "make syntax-check" for most projects
698         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
699         build-aux variable", "syntax-check" would do nothing but succeed with
700         the "No version control files detected..." diagnostic (unless you
701         happened to override _build-aux via cfg.mk).
702         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
703         to precede inclusion of maint.mk.  Otherwise, these variables would
704         be used undefined in any project that does not override the default.
705
706 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
707
708         gitlog-to-changelog: treat a message with only blank lines as empty.
709         * build-aux/gitlog-to-changelog: Move the code that removes leading and
710         trailing blank lines before the code that issues a warning about an
711         empty commit message.
712
713 2011-10-30  Jim Meyering  <meyering@redhat.com>
714
715         test-parse-datetime.c: avoid new DST-related false positive test failure
716         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
717         based on the time/date we'll convert, not the current time.
718         Otherwise, the moment we cross a DST boundary like today's in
719         Europe, (CEST to CET), that offset ends up being one hour off.
720
721 2011-10-27  Bruno Haible  <bruno@clisp.org>
722
723         fstat: Tweak documentation.
724         * modules/fstat (Description): More precise description.
725
726 2011-10-27  Bruno Haible  <bruno@clisp.org>
727
728         Update documentation regarding 'largefile' module.
729         * doc/posix-functions/fstat.texi: Tweak wording.
730         * doc/posix-functions/opendir.texi: Mention that the module fixes the
731         problems with huge directories and/or small ino_t types.
732         * doc/posix-functions/readdir.texi: Likewise.
733         * doc/posix-functions/rewinddir.texi: Likewise.
734
735 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
736
737         maint.mk: don't maintain a second build-aux variable.
738         * maint.mk (build_aux): Removed.  The maintainer-makefile module
739         depends on GNUmakefile, which already maintains a cfg.mk
740         overridable $(_build-aux) for projects with a non-standard
741         build-aux directory location, although without the $(srcdir)
742         prefix.  Use that variable consistently instead of introducing a
743         second one.  Adjust all call sites.
744
745 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
746
747         Add stdalign module and use it in other modules.
748         This is based on a previous proposal by Bruno Haible
749         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
750
751         stdalign: new module
752         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
753         * modules/stdalign: New files.
754         * MODULES.html.sh (c1x_core_properties): Add stdalign.
755         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
756
757         stdalign-tests: new module
758         * modules/stdalign-tests, tests/test-stdalign.c: New files.
759
760         argp: use stdalign
761         * lib/argp-parse.c: Include <stdalign.h>.
762         (alignof): Remove.
763         * modules/argp (Depends-on): Add stdalign.
764
765         crypto libraries: use stdalign
766         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
767         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
768         Do not include <stdlib.h> twice, in md4.c.
769         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
770         because we are accessing a pointer's bit-pattern, not a size.
771         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
772         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
773         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
774         * modules/crypto/sha512: Likewise.
775
776         sys_socket: use stdalign, not alignof
777         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
778         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
779
780 2011-10-27  Bruno Haible  <bruno@clisp.org>
781
782         raise test: Avoid a test failure on Linux/MIPS.
783         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
784         because 99 is a valid signal on Linux/MIPS.
785
786 2011-10-27  Bruno Haible  <bruno@clisp.org>
787
788         nonblocking tests: Fix test failure on Linux/MIPS.
789         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
790         Set to 270000.
791
792 2011-10-27  Bruno Haible  <bruno@clisp.org>
793
794         utimensat: Work around problem on Linux/hppa.
795         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
796         values.
797         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
798
799 2011-10-25  Jim Meyering  <meyering@redhat.com>
800
801         maint.mk: fix a bug in sc_prohibit_stddef_without_use
802         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
803         after symbols like NULL, size_t, etc.
804         Reported by Alfred M. Szmidt.
805
806         maint.mk: exempt ENODATA from a syntax-check rule
807         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
808         from the sc_prohibit_always-defined_macros syntax-check rule.
809         Add a comment.  See this for more details:
810         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
811
812 2011-10-23  Jim Meyering  <meyering@redhat.com>
813
814         fts: close parent dir FD before returning from post-traversal fts_read
815         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
816         unlink A, even though an FD open on A remained.  This is suboptimal
817         (holding a file descriptor open longer than needed), but otherwise not
818         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
819         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
820         that represents a real problem: it causes the removal of A to fail
821         with e.g., "rm: cannot remove `A': Device or resource busy"
822
823         fts visits each directory twice and keeps a cache (fts_fd_ring) of
824         directory file descriptors.  After completing the final, FTS_DP,
825         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
826         cache, but then proceeded to add a new FD to it via the subsequent
827         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
828         final file descriptor would be closed only via fts_close's call to
829         fd_ring_clear.  Now, it is usually closed earlier, via the final
830         FTS_DP-returning fts_read call.
831         * lib/fts.c (restore_initial_cwd): New function, converted from
832         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
833         Update callers.
834         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
835         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
836
837 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
838             Bruno Haible  <bruno@clisp.org>
839             Jim Meyering  <jim@meyering.net>
840
841         readme-release: improve safety of release prep instructions.
842         * README-release: Don't git pull all branches when only master
843         is needed for the release process.
844         Run make maintainer-clean before changing trees and merging.
845         Don't try to run ./configure right after git pull in case files
846         that influence the bootstrap process have changed, move the
847         ./configure step to after running ./bootstrap.
848         Don't bootstrap "one last time"... it's the first time!
849
850 2011-10-22  Bruno Haible  <bruno@clisp.org>
851
852         errno, strerror-override: Support for MSVC 10.
853         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
854         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
855         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
856         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
857         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
858         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
859         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
860         Assign values compatible with MSVC 10.
861         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
862         New macros.
863         (GNULIB_defined_EWINSOCK): New macro.
864         * lib/strerror-override.c (strerror_override): Update accordingly.
865         * lib/strerror-override.h: Likewise.
866         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
867         longer equal to the corresponding errno value.
868         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
869
870 2011-10-22  Bruno Haible  <bruno@clisp.org>
871
872         perror: Recognize when test program crashes.
873         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
874         strerror, set gl_cv_func_perror_works to no.
875         Reported by Daniel Richard G. <skunk@iskunk.org>.
876
877         perror: Fix indentation.
878         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
879
880 2011-10-22  Bruno Haible  <bruno@clisp.org>
881
882         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
883         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
884         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
885         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
886         functions, not as a macro.
887         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
888         macros.
889         (isfinite, isinf, isnan, signbit): Check overloaded functions and
890         absence of macro.
891         Suggested by Eric Blake.
892         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
893
894 2011-10-21  Bruno Haible  <bruno@clisp.org>
895
896         relocatable-prog-wrapper: Don't leave object files behind.
897         * build-aux/install-reloc: Re-synchronize list of .o files to be
898         removed with list of compilation units.
899
900 2011-10-20  Bruno Haible  <bruno@clisp.org>
901
902         openpty, posix_openpt: Remove code duplication.
903         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
904         * lib/openpty.c: Include <stdlib.h>.
905         (openpty): Use posix_openpt on all platforms except IRIX.
906         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
907
908 2011-10-20  Bruno Haible  <bruno@clisp.org>
909
910         unlockpt: Detect invalid argument.
911         * lib/unlockpt.c: Include <fcntl.h>.
912         (unlockpt): Check whether fd is valid, using fcntl().
913         * modules/unlockpt (Depends-on): Add fcntl-h.
914
915 2011-10-20  Bruno Haible  <bruno@clisp.org>
916
917         openpty: Avoid compilation error on AIX 6.1.
918         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
919
920 2011-10-20  Bruno Haible  <bruno@clisp.org>
921
922         posix_openpt: Support for OpenBSD.
923         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
924         (posix_openpt) [OpenBSD]: New code.
925         * lib/grantpt.c: Include <fcntl.h>.
926         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
927         * modules/grantpt (Depends-on): Add fcntl-h.
928
929 2011-10-20  Bruno Haible  <bruno@clisp.org>
930
931         posix_openpt test: Coding style.
932         * tests/test-posix_openpt.c: Use GNU coding style.
933
934 2011-10-20  Bruno Haible  <bruno@clisp.org>
935
936         grantpt: Support --avoid=pt_chown.
937         * modules/grantpt (Files): Add lib/pty-private.h.
938
939 2011-10-20  Bruno Haible  <bruno@clisp.org>
940
941         posix_openpt: Fix autoconf macro.
942         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
943         unneeded check for _getpty.
944
945 2011-10-20  Bruno Haible  <bruno@clisp.org>
946
947         openpty: Update comments.
948         * lib/openpty.c: Add comments about Minix.
949
950 2011-10-19  Eric Blake  <eblake@redhat.com>
951
952         openpty: relax license
953         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
954
955         pt_chown: use configmake to simplify build
956         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
957
958         ptsname and others: relax license
959         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
960         * modules/unlockpt (License): Likewise.
961         * modules/pt_chown (License): Likewise.
962         * modules/ptsname (License): Likewise.
963         * modules/ttyname_r (License): Likewise.
964
965 2011-10-19  Jim Meyering  <meyering@redhat.com>
966
967         posix_openpt: remove spurious #endif
968         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
969
970 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
971
972         maint.mk: Respect $(build_aux) in web-manual rule.
973         * top/maint.mk (web-manual): Find gen-announce script in user's
974         $(build_aux) directory instead of hard-coding 'build-aux'.
975
976 2011-10-19  Bruno Haible  <bruno@clisp.org>
977
978         posix_openpt: Fix compilation error.
979         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
980         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
981         Mention the openpty module as an alternative.
982
983 2011-10-19  Bruno Haible  <bruno@clisp.org>
984
985         Support for old NeXTstep 3.3 frexp().
986         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
987         execution time of the test to 5 seconds.
988         Reported by Daniel Richard G. <skunk@iskunk.org>.
989
990 2011-10-19  Bruno Haible  <bruno@clisp.org>
991
992         Support for old NeXTstep 3.3 sed.
993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
994         part, use /.../, not \|...|. Escape periods in the header file name.
995         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
996         Reported by Daniel Richard G. <skunk@iskunk.org>.
997
998 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
999
1000         Support for old NeXTstep 3.3 gcc.
1001         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1002         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1003         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1004         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1005         * lib/regex.h (_Restrict_arr_): Likewise.
1006         * lib/regex_internal.h (re_token_t): Likewise.
1007         * lib/regexec.c (check_node_accept_bytes): Likewise.
1008         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1009
1010 2011-10-18  Eric Blake  <eblake@redhat.com>
1011
1012         posix_openpt: new module
1013         * modules/posix_openpt: New module.
1014         * m4/posix_openpt.m4: New file.
1015         * lib/posix_openpt.c: Likewise.
1016         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1017         (gl_STDLIB_H_DEFAULTS): Set defaults.
1018         * modules/stdlib (Makefile.am): Substitute macros.
1019         * lib/stdlib.in.h (posix_openpt): Declare.
1020         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1021         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1022         * modules/posix_openpt-tests: New test module.
1023         * tests/test-posix_openpt.c: New test.
1024
1025 2011-10-15  Bruno Haible  <bruno@clisp.org>
1026
1027         xstrtoll: Fix compilation failure.
1028         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1029         from lib/strtol.c.
1030         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1031         some platforms.
1032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1033
1034 2011-10-15  Bruno Haible  <bruno@clisp.org>
1035
1036         vasnprintf: Optimize bit search operation.
1037         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1039         gl_DOUBLE_EXPONENT_LOCATION.
1040         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1041         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1042         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1043         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1044         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1045         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1046         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1047         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1048         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1049
1050 2011-10-15  Bruno Haible  <bruno@clisp.org>
1051
1052         vasnprintf: Fix comments.
1053         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1054
1055 2011-10-14  Bruno Haible  <bruno@clisp.org>
1056
1057         Tests for module 'integer_length_ll'.
1058         * modules/integer_length_ll-tests: New file.
1059         * tests/test-integer_length_ll.c: New file.
1060
1061         New module 'integer_length_ll'.
1062         * lib/integer_length_ll.c: New file.
1063         * modules/integer_length_ll: New file.
1064
1065 2011-10-14  Bruno Haible  <bruno@clisp.org>
1066
1067         Tests for module 'integer_length_l'.
1068         * modules/integer_length_l-tests: New file.
1069         * tests/test-integer_length_l.c: New file.
1070
1071         New module 'integer_length_l'.
1072         * lib/integer_length_l.c: New file.
1073         * modules/integer_length_l: New file.
1074
1075 2011-10-14  Bruno Haible  <bruno@clisp.org>
1076
1077         Tests for module 'integer_length'.
1078         * modules/integer_length-tests: New file.
1079         * tests/test-integer_length.c: New file.
1080
1081         New module 'integer_length'.
1082         * lib/integer_length.h: New file.
1083         * lib/integer_length.c: New file.
1084         * modules/integer_length: New file.
1085
1086 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1087
1088         popen: Fix dependency conditions.
1089         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1090
1091 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1092
1093         perror: Fix autoconf test.
1094         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1095         <stdlib.h> and <string.h>.
1096
1097 2011-10-14  Bruno Haible  <bruno@clisp.org>
1098
1099         ffsl: Optimize on 64-bit platforms.
1100         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1101         unrolling.
1102
1103 2011-10-13  Bruno Haible  <bruno@clisp.org>
1104
1105         ffsl: Optimize on 32-bit platforms.
1106         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1107         use ffs() without a loop.
1108
1109         ffsl, ffsll: Optimize for GCC.
1110         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1111         * lib/ffsl.c (GCC_BUILTIN): New macro.
1112         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1113
1114 2011-10-13  Bruno Haible  <bruno@clisp.org>
1115
1116         ffs, bcopy, memset: Support symbol renaming via config.h.
1117         * lib/ffs.c: Include <config.h>.
1118         * lib/bcopy.c: Likewise.
1119         * lib/memset.c: Likewise.
1120
1121 2011-10-10  Bruno Haible  <bruno@clisp.org>
1122
1123         atanl: Simplify for platforms where 'long double' == 'double'.
1124         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1125         alternative implementation.
1126         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1127         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1128         * modules/atanl (Depends-on): Add atan. Update conditions.
1129
1130 2011-10-10  Bruno Haible  <bruno@clisp.org>
1131
1132         acosl: Simplify for platforms where 'long double' == 'double'.
1133         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1134         alternative implementation.
1135         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1136         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1137         * modules/acosl (Depends-on): Add acos. Update conditions.
1138
1139 2011-10-10  Bruno Haible  <bruno@clisp.org>
1140
1141         asinl: Simplify for platforms where 'long double' == 'double'.
1142         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1143         alternative implementation.
1144         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1145         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1146         * modules/asinl (Depends-on): Add asin. Update conditions.
1147
1148 2011-10-10  Bruno Haible  <bruno@clisp.org>
1149
1150         tanl: Simplify for platforms where 'long double' == 'double'.
1151         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1152         implementation.
1153         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1154         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1155         * modules/tanl (Depends-on): Add tan. Update conditions.
1156         (configure.ac): Don't compile trigl.c if
1157         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1158
1159 2011-10-10  Bruno Haible  <bruno@clisp.org>
1160
1161         cosl: Simplify for platforms where 'long double' == 'double'.
1162         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1163         implementation.
1164         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1165         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1166         * modules/cosl (Depends-on): Add cos. Update conditions.
1167         (configure.ac): Don't compile sincosl.c and trigl.c if
1168         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1169
1170 2011-10-10  Bruno Haible  <bruno@clisp.org>
1171
1172         sinl: Simplify for platforms where 'long double' == 'double'.
1173         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1174         implementation.
1175         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1176         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1177         * modules/sinl (Depends-on): Add sin. Update conditions.
1178         (configure.ac): Don't compile sincosl.c and trigl.c if
1179         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1180
1181 2011-10-10  Bruno Haible  <bruno@clisp.org>
1182
1183         logl: Simplify for platforms where 'long double' == 'double'.
1184         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1185         implementation.
1186         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1187         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1188         * modules/logl (Depends-on): Add log. Update conditions.
1189
1190 2011-10-10  Bruno Haible  <bruno@clisp.org>
1191
1192         expl: Simplify for platforms where 'long double' == 'double'.
1193         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1194         implementation.
1195         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1196         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1197         * modules/expl (Depends-on): Add exp. Update conditions.
1198
1199 2011-10-10  Bruno Haible  <bruno@clisp.org>
1200
1201         sqrtl: Simplify for platforms where 'long double' == 'double'.
1202         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1203         alternative implementation.
1204         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1205         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1206         * modules/sqrtl (Depends-on): Update conditions.
1207
1208 2011-10-10  Bruno Haible  <bruno@clisp.org>
1209
1210         ldexpl: Simplify for platforms where 'long double' == 'double'.
1211         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1212         alternative implementation.
1213         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1214         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1215         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1216
1217 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1218
1219         ffsll: set correct witness
1220         * modules/ffsll (configure.ac): Fix typo.
1221
1222 2011-10-10  Bruno Haible  <bruno@clisp.org>
1223
1224         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1225         * lib/printf-frexpl.c: Include <config.h>.
1226         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1227         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1228         second time.
1229         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1230         gl_LONG_DOUBLE_VS_DOUBLE.
1231         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1232         conditions.
1233
1234 2011-10-10  Bruno Haible  <bruno@clisp.org>
1235
1236         frexpl: Simplify for platforms where 'long double' == 'double'.
1237         * lib/frexpl.c: Include <config.h>.
1238         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1239         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1240         time.
1241         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1242         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1243         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1244         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1245         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1246         conditions.
1247
1248 2011-10-10  Jim Meyering  <meyering@redhat.com>
1249
1250         test-renameat: don't leave behind a temporary file
1251         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1252           ERROR: files left in build directory after distclean:
1253           ./gltests/test-renameat.too
1254           make[1]: *** [distcleancheck] Error 1
1255         Reported by Tom G. Christensen.
1256
1257 2011-10-09  Bruno Haible  <bruno@clisp.org>
1258
1259         rint: Determine RINT_LIBM correctly on AIX 7.
1260         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1261         directly, not only through a function pointer. Also accept an optional
1262         4th argument with extra code.
1263         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1264         rintf() call by gcc when optimizing.
1265
1266         mathfunc.m4: Refactor.
1267         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1268         m4 variable.
1269
1270 2011-10-09  Bruno Haible  <bruno@clisp.org>
1271
1272         rintl: Simplify for platforms where 'long double' == 'double'.
1273         * lib/rintl.c: Include <config.h>.
1274         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1275         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1276         time.
1277         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1278         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1279         * modules/rintl (Depends-on): Add rint. Update conditions.
1280
1281 2011-10-09  Bruno Haible  <bruno@clisp.org>
1282
1283         roundl: Simplify for platforms where 'long double' == 'double'.
1284         * lib/roundl.c: Include <config.h>.
1285         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1286         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1287         time.
1288         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1289         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1290         * modules/roundl (Depends-on): Add round. Update conditions.
1291
1292 2011-10-09  Bruno Haible  <bruno@clisp.org>
1293
1294         truncl: Simplify for platforms where 'long double' == 'double'.
1295         * lib/truncl.c: Include <config.h>.
1296         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1297         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1298         time.
1299         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1300         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1301         * modules/truncl (Depends-on): Add trunc. Update conditions.
1302
1303 2011-10-09  Bruno Haible  <bruno@clisp.org>
1304
1305         ceill: Simplify for platforms where 'long double' == 'double'.
1306         * lib/ceill.c: Include <config.h>.
1307         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1308         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1309         time.
1310         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1311         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1312         * modules/ceill (Depends-on): Add ceil. Update conditions.
1313
1314 2011-10-09  Bruno Haible  <bruno@clisp.org>
1315
1316         floorl: Simplify for platforms where 'long double' == 'double'.
1317         * lib/floorl.c: Include <config.h>.
1318         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1319         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1320         time.
1321         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1322         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1323         * modules/floorl (Depends-on): Add floor. Update conditions.
1324
1325 2011-10-09  Bruno Haible  <bruno@clisp.org>
1326
1327         rint: Fix ordering constraints.
1328         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1329         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1330         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1331
1332 2011-10-09  Bruno Haible  <bruno@clisp.org>
1333
1334         copysignl: Simplify for platforms where 'long double' == 'double'.
1335         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1336         alternative.
1337         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1338         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1339         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1340
1341 2011-10-09  Bruno Haible  <bruno@clisp.org>
1342
1343         Tests for module 'rintl'.
1344         * modules/rintl-tests: New file.
1345         * tests/test-rintl.c: New file.
1346
1347         New module 'rintl'.
1348         * lib/math.in.h (rintl): New declaration.
1349         * lib/rintl.c: New file.
1350         * m4/rintl.m4: New file.
1351         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1353         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1354         * modules/rintl: New file.
1355         * tests/test-math-c++.cc: Check the declaration of rintl.
1356         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1357         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1358         * doc/posix-functions/rintl.texi: Mention the new module.
1359
1360 2011-10-09  Bruno Haible  <bruno@clisp.org>
1361
1362         Tests for module 'rintf'.
1363         * modules/rintf-tests: New file.
1364         * tests/test-rintf.c: New file.
1365
1366         New module 'rintf'.
1367         * lib/math.in.h (rintf): New declaration.
1368         * lib/rintf.c: New file.
1369         * m4/rintf.m4: New file.
1370         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1372         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1373         * modules/rintf: New file.
1374         * tests/test-math-c++.cc: Check the declaration of rintf.
1375         * doc/posix-functions/rintf.texi: Mention the new module.
1376
1377 2011-10-09  Bruno Haible  <bruno@clisp.org>
1378
1379         rint: Support for MSVC.
1380         * lib/math.in.h (rint): New declaration.
1381         * lib/rint.c: New file.
1382         * m4/rint.m4: New file.
1383         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1385         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1386         * modules/rint (Description): Fix.
1387         (Files): Add lib/rint.c, m4/rint.m4.
1388         (Depends-on): Add math.
1389         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1390         gl_MATH_MODULE_INDICATOR.
1391         * tests/test-math-c++.cc: Check the declaration of rint.
1392         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1393         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1394         * doc/posix-functions/rint.texi: Mention the replacement provided by
1395         the module.
1396
1397         rint tests: More tests.
1398         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1399         minus-zero.h, infinity.h, nan.h.
1400         (main): Skip the test if the current rounding mode is not standard. Add
1401         tests for negative numbers, minus zero, infinity, NaN.
1402         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1403         tests/nan.h.
1404         (Depends-on): Add isnand-nolibm.
1405
1406 2011-10-09  Bruno Haible  <bruno@clisp.org>
1407
1408         Tests for module 'copysignl'.
1409         * modules/copysignl-tests: New file.
1410         * tests/test-copysignl.c: New file.
1411
1412         New module 'copysignl'.
1413         * lib/math.in.h (copysignl): New declaration.
1414         * lib/copysignl.c: New file.
1415         * m4/copysignl.m4: New file.
1416         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1418         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1419         HAVE_COPYSIGNL.
1420         * modules/copysignl: New file.
1421         * tests/test-math-c++.cc: Check the declaration of copysignl.
1422         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1423         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1424         * doc/posix-functions/copysignl.texi: Mention the new module.
1425
1426 2011-10-09  Bruno Haible  <bruno@clisp.org>
1427
1428         Tests for module 'copysignf'.
1429         * modules/copysignf-tests: New file.
1430         * tests/test-copysignf.c: New file.
1431
1432         New module 'copysignf'.
1433         * lib/math.in.h (copysignf): New declaration.
1434         * lib/copysignf.c: New file.
1435         * m4/copysignf.m4: New file.
1436         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1438         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1439         HAVE_COPYSIGNF.
1440         * modules/copysignf: New file.
1441         * tests/test-math-c++.cc: Check the declaration of copysignf.
1442         * doc/posix-functions/copysignf.texi: Mention the new module.
1443
1444 2011-10-09  Bruno Haible  <bruno@clisp.org>
1445
1446         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1447         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1448         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1449         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1450         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1451         gl_SIGNAL_H_DEFAULTS.
1452
1453 2011-10-09  Bruno Haible  <bruno@clisp.org>
1454
1455         poll: Make macro safer.
1456         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1457         ac_cv_header_poll_h is not set.
1458
1459 2011-10-09  Bruno Haible  <bruno@clisp.org>
1460
1461         copysign: Provide replacement.
1462         * lib/math.in.h (copysign): New declaration.
1463         * lib/copysign.c: New file.
1464         * m4/copysign.m4: New file.
1465         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1467         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1468         HAVE_COPYSIGN.
1469         * modules/copysign (Description): Clarify.
1470         (Files): Add lib/copysign.c, m4/copysign.m4.
1471         (Depends-on): Add math, signbit.
1472         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1473         gl_MATH_MODULE_INDICATOR.
1474         * tests/test-math-c++.cc: Check the declaration of copysign.
1475         * doc/posix-functions/copysign.texi: Mention the effects of the module
1476         on Minix and MSVC.
1477
1478 2011-10-09  Bruno Haible  <bruno@clisp.org>
1479
1480         isinf: Ensure macro on AIX 5.1.
1481         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1482         macro.
1483         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1484
1485 2011-10-09  Bruno Haible  <bruno@clisp.org>
1486
1487         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1488         * modules/snprintf-posix-tests (configure.ac): Require
1489         gl_LONG_DOUBLE_VS_DOUBLE.
1490         * modules/sprintf-posix-tests (configure.ac): Likewise.
1491         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1492         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1493         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1494         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1495         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1496         tests on platforms where 'long double' is the same as 'double'.
1497         * tests/test-sprintf-posix.h (test_function): Likewise.
1498         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1499         * tests/test-vasprintf-posix.c (test_function): Likewise.
1500
1501         *printf: Fix for platforms where 'long double' == 'double'.
1502         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1503         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1504         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1505         * modules/fprintf-posix (Files): Likewise.
1506         * modules/obstack-printf-posix (Files): Likewise.
1507         * modules/snprintf-posix (Files): Likewise.
1508         * modules/sprintf-posix (Files): Likewise.
1509         * modules/vasnprintf (Files): Likewise.
1510         * modules/vasnprintf-posix (Files): Likewise.
1511         * modules/vasprintf-posix (Files): Likewise.
1512         * modules/vdprintf-posix (Files): Likewise.
1513         * modules/vfprintf-posix (Files): Likewise.
1514         * modules/vsnprintf-posix (Files): Likewise.
1515         * modules/vsprintf-posix (Files): Likewise.
1516         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1517         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1518         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1519         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1520         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1521         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1522         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1523
1524         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1525         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1526         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1527         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1528         'long double'.
1529         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1530
1531         isinf: Fix for platforms where 'long double' == 'double'.
1532         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1533         Don't blindly assume 80-bit 'long double'.
1534
1535         isfinite: Fix for platforms where 'long double' == 'double'.
1536         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1537         Don't blindly assume 80-bit 'long double'.
1538
1539         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1540         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1541         * modules/isfinite-tests (configure.ac): Require
1542         gl_LONG_DOUBLE_VS_DOUBLE.
1543         * modules/isinf-tests (configure.ac): Likewise.
1544         * modules/isnan-tests (configure.ac): Likewise.
1545         * modules/isnanl-tests (configure.ac): Likewise.
1546         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1547         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1548         tests on platforms where 'long double' is the same as 'double'.
1549         * tests/test-isinf.c (test_isinfl): Likewise.
1550         * tests/test-isnan.c (test_long_double): Likewise.
1551         * tests/test-isnanl.h (main): Likewise.
1552
1553 2011-10-08  Bruno Haible  <bruno@clisp.org>
1554
1555         Tests for module 'tanhf'.
1556         * modules/tanhf-tests: New file.
1557         * tests/test-tanhf.c: New file.
1558
1559         New module 'tanhf'.
1560         * lib/math.in.h (tanhf): New declaration.
1561         * lib/tanhf.c: New file.
1562         * m4/tanhf.m4: New file.
1563         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1565         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1566         * modules/tanhf: New file.
1567         * tests/test-math-c++.cc: Check the declaration of tanhf.
1568         * doc/posix-functions/tanhf.texi: Mention the new module.
1569
1570         tanh: Use a .m4 file.
1571         * m4/tanh.m4: New file.
1572         * modules/tanh (Files): Add it.
1573         (configure.ac): Just invoke gl_FUNC_TANH.
1574
1575 2011-10-08  Bruno Haible  <bruno@clisp.org>
1576
1577         Tests for module 'coshf'.
1578         * modules/coshf-tests: New file.
1579         * tests/test-coshf.c: New file.
1580
1581         New module 'coshf'.
1582         * lib/math.in.h (coshf): New declaration.
1583         * lib/coshf.c: New file.
1584         * m4/coshf.m4: New file.
1585         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1587         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1588         * modules/coshf: New file.
1589         * tests/test-math-c++.cc: Check the declaration of coshf.
1590         * doc/posix-functions/coshf.texi: Mention the new module.
1591
1592         cosh: Use a .m4 file.
1593         * m4/cosh.m4: New file.
1594         * modules/cosh (Files): Add it.
1595         (configure.ac): Just invoke gl_FUNC_COSH.
1596
1597 2011-10-08  Bruno Haible  <bruno@clisp.org>
1598
1599         Tests for module 'sinhf'.
1600         * modules/sinhf-tests: New file.
1601         * tests/test-sinhf.c: New file.
1602
1603         New module 'sinhf'.
1604         * lib/math.in.h (sinhf): New declaration.
1605         * lib/sinhf.c: New file.
1606         * m4/sinhf.m4: New file.
1607         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1609         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1610         * modules/sinhf: New file.
1611         * tests/test-math-c++.cc: Check the declaration of sinhf.
1612         * doc/posix-functions/sinhf.texi: Mention the new module.
1613
1614         sinh: Use a .m4 file.
1615         * m4/sinh.m4: New file.
1616         * modules/sinh (Files): Add it.
1617         (configure.ac): Just invoke gl_FUNC_SINH.
1618
1619 2011-10-08  Bruno Haible  <bruno@clisp.org>
1620
1621         Tests for module 'atan2f'.
1622         * modules/atan2f-tests: New file.
1623         * tests/test-atan2f.c: New file.
1624
1625         New module 'atan2f'.
1626         * lib/math.in.h (atan2f): New declaration.
1627         * lib/atan2f.c: New file.
1628         * m4/atan2f.m4: New file.
1629         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1631         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1632         * modules/atan2f: New file.
1633         * tests/test-math-c++.cc: Check the declaration of atan2f.
1634         * doc/posix-functions/atan2f.texi: Mention the new module.
1635
1636         atan2: Use a .m4 file.
1637         * m4/atan2.m4: New file.
1638         * modules/atan2 (Files): Add it.
1639         (configure.ac): Just invoke gl_FUNC_ATAN2.
1640
1641 2011-10-08  Bruno Haible  <bruno@clisp.org>
1642
1643         Tests for module 'atanf'.
1644         * modules/atanf-tests: New file.
1645         * tests/test-atanf.c: New file.
1646
1647         New module 'atanf'.
1648         * lib/math.in.h (atanf): New declaration.
1649         * lib/atanf.c: New file.
1650         * m4/atanf.m4: New file.
1651         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1653         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1654         * modules/atanf: New file.
1655         * tests/test-math-c++.cc: Check the declaration of atanf.
1656         * doc/posix-functions/atanf.texi: Mention the new module.
1657
1658         atan: Use a .m4 file.
1659         * m4/atan.m4: New file.
1660         * modules/atan (Files): Add it.
1661         (configure.ac): Just invoke gl_FUNC_ATAN.
1662
1663 2011-10-08  Bruno Haible  <bruno@clisp.org>
1664
1665         Tests for module 'acosf'.
1666         * modules/acosf-tests: New file.
1667         * tests/test-acosf.c: New file.
1668
1669         New module 'acosf'.
1670         * lib/math.in.h (acosf): New declaration.
1671         * lib/acosf.c: New file.
1672         * m4/acosf.m4: New file.
1673         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1675         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1676         * modules/acosf: New file.
1677         * tests/test-math-c++.cc: Check the declaration of acosf.
1678         * doc/posix-functions/acosf.texi: Mention the new module.
1679
1680         acos: Use a .m4 file.
1681         * m4/acos.m4: New file.
1682         * modules/acos (Files): Add it.
1683         (configure.ac): Just invoke gl_FUNC_ACOS.
1684
1685 2011-10-08  Bruno Haible  <bruno@clisp.org>
1686
1687         Tests for module 'asinf'.
1688         * modules/asinf-tests: New file.
1689         * tests/test-asinf.c: New file.
1690
1691         New module 'asinf'.
1692         * lib/math.in.h (asinf): New declaration.
1693         * lib/asinf.c: New file.
1694         * m4/asinf.m4: New file.
1695         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1697         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1698         * modules/asinf: New file.
1699         * tests/test-math-c++.cc: Check the declaration of asinf.
1700         * doc/posix-functions/asinf.texi: Mention the new module.
1701
1702         asin: Use a .m4 file.
1703         * m4/asin.m4: New file.
1704         * modules/asin (Files): Add it.
1705         (configure.ac): Just invoke gl_FUNC_ASIN.
1706
1707 2011-10-08  Bruno Haible  <bruno@clisp.org>
1708
1709         Tests for module 'tanf'.
1710         * modules/tanf-tests: New file.
1711         * tests/test-tanf.c: New file.
1712
1713         New module 'tanf'.
1714         * lib/math.in.h (tanf): New declaration.
1715         * lib/tanf.c: New file.
1716         * m4/tanf.m4: New file.
1717         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1719         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1720         * modules/tanf: New file.
1721         * tests/test-math-c++.cc: Check the declaration of tanf.
1722         * doc/posix-functions/tanf.texi: Mention the new module.
1723
1724         tan: Use a .m4 file.
1725         * m4/tan.m4: New file.
1726         * modules/tan (Files): Add it.
1727         (configure.ac): Just invoke gl_FUNC_TAN.
1728
1729 2011-10-08  Bruno Haible  <bruno@clisp.org>
1730
1731         Tests for module 'cosf'.
1732         * modules/cosf-tests: New file.
1733         * tests/test-cosf.c: New file.
1734
1735         New module 'cosf'.
1736         * lib/math.in.h (cosf): New declaration.
1737         * lib/cosf.c: New file.
1738         * m4/cosf.m4: New file.
1739         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1741         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1742         * modules/cosf: New file.
1743         * tests/test-math-c++.cc: Check the declaration of cosf.
1744         * doc/posix-functions/cosf.texi: Mention the new module.
1745
1746         cos: Use a .m4 file.
1747         * m4/cos.m4: New file.
1748         * modules/cos (Files): Add it.
1749         (configure.ac): Just invoke gl_FUNC_COS.
1750
1751 2011-10-08  Bruno Haible  <bruno@clisp.org>
1752
1753         Tests for module 'sinf'.
1754         * modules/sinf-tests: New file.
1755         * tests/test-sinf.c: New file.
1756
1757         New module 'sinf'.
1758         * lib/math.in.h (sinf): New declaration.
1759         * lib/sinf.c: New file.
1760         * m4/sinf.m4: New file.
1761         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1763         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1764         * modules/sinf: New file.
1765         * tests/test-math-c++.cc: Check the declaration of sinf.
1766         * doc/posix-functions/sinf.texi: Mention the new module.
1767
1768         sin: Use a .m4 file.
1769         * m4/sin.m4: New file.
1770         * modules/sin (Files): Add it.
1771         (configure.ac): Just invoke gl_FUNC_SIN.
1772
1773 2011-10-08  Bruno Haible  <bruno@clisp.org>
1774
1775         Tests for module 'powf'.
1776         * modules/powf-tests: New file.
1777         * tests/test-powf.c: New file.
1778
1779         New module 'powf'.
1780         * lib/math.in.h (powf): New declaration.
1781         * lib/powf.c: New file.
1782         * m4/powf.m4: New file.
1783         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1785         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1786         * modules/powf: New file.
1787         * tests/test-math-c++.cc: Check the declaration of powf.
1788         * doc/posix-functions/powf.texi: Mention the new module.
1789
1790         pow: Use a .m4 file.
1791         * m4/pow.m4: New file.
1792         * modules/pow (Files): Add it.
1793         (configure.ac): Just invoke gl_FUNC_POW.
1794
1795 2011-10-08  Bruno Haible  <bruno@clisp.org>
1796
1797         Tests for module 'log10f'.
1798         * modules/log10f-tests: New file.
1799         * tests/test-log10f.c: New file.
1800
1801         New module 'log10f'.
1802         * lib/math.in.h (log10f): New declaration.
1803         * lib/log10f.c: New file.
1804         * m4/log10f.m4: New file.
1805         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1807         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1808         * modules/log10f: New file.
1809         * tests/test-math-c++.cc: Check the declaration of log10f.
1810         * doc/posix-functions/log10f.texi: Mention the new module.
1811
1812         log10: Use a .m4 file.
1813         * m4/log10.m4: New file.
1814         * modules/log10 (Files): Add it.
1815         (configure.ac): Just invoke gl_FUNC_LOG10.
1816
1817 2011-10-08  Bruno Haible  <bruno@clisp.org>
1818
1819         Tests for module 'logf'.
1820         * modules/logf-tests: New file.
1821         * tests/test-logf.c: New file.
1822
1823         New module 'logf'.
1824         * lib/math.in.h (logf): New declaration.
1825         * lib/logf.c: New file.
1826         * m4/logf.m4: New file.
1827         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1829         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1830         * modules/logf: New file.
1831         * tests/test-math-c++.cc: Check the declaration of logf.
1832         * doc/posix-functions/logf.texi: Mention the new module.
1833
1834         log: Use a .m4 file.
1835         * m4/log.m4: New file.
1836         * modules/log (Files): Add it.
1837         (configure.ac): Just invoke gl_FUNC_LOG.
1838
1839 2011-10-08  Bruno Haible  <bruno@clisp.org>
1840
1841         Tests for module 'expf'.
1842         * modules/expf-tests: New file.
1843         * tests/test-expf.c: New file.
1844
1845         New module 'expf'.
1846         * lib/math.in.h (expf): New declaration.
1847         * lib/expf.c: New file.
1848         * m4/expf.m4: New file.
1849         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1851         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1852         * modules/expf: New file.
1853         * tests/test-math-c++.cc: Check the declaration of expf.
1854         * doc/posix-functions/expf.texi: Mention the new module.
1855
1856         exp: Use a .m4 file.
1857         * m4/exp.m4: New file.
1858         * modules/exp (Files): Add it.
1859         (configure.ac): Just invoke gl_FUNC_EXP.
1860
1861 2011-10-08  Bruno Haible  <bruno@clisp.org>
1862
1863         Tests for module 'sqrtf'.
1864         * modules/sqrtf-tests: New file.
1865         * tests/test-sqrtf.c: New file.
1866
1867         New module 'sqrtf'.
1868         * lib/math.in.h (sqrtf): New declaration.
1869         * lib/sqrtf.c: New file.
1870         * m4/sqrtf.m4: New file.
1871         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1873         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1874         * modules/sqrtf: New file.
1875         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1876         * doc/posix-functions/sqrtf.texi: Mention the new module.
1877
1878 2011-10-08  Bruno Haible  <bruno@clisp.org>
1879
1880         Tests: Avoid link failures w.r.t. libintl.
1881         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1882         $(LIBINTL).
1883         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1884         $(LIBINTL).
1885         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1886         against $(LIBINTL).
1887         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1888         $(LIBINTL).
1889         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1890         $(LIBINTL).
1891         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1892
1893 2011-10-08  Bruno Haible  <bruno@clisp.org>
1894
1895         pow tests: Defeat compiler optimizations.
1896         * tests/test-pow.c (main): Assign arguments to x and y before use.
1897
1898 2011-10-08  Bruno Haible  <bruno@clisp.org>
1899
1900         gnulib-tool: Improve last commit.
1901         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1902         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1903         ignore dependencies that are not among the modules list.
1904
1905 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1906
1907         gnulib-tool: don't follow dependencies to avoided modules
1908         This fixes a bug that is related to the previous one.
1909         * gnulib-tool (func_modules_transitive_closure)
1910         (func_emit_autoconf_snippets):
1911         Check whether a dependency is acceptable before using it.
1912         (--extract-dependencies): Report an error if --avoid is also used,
1913         since this combination of options is not yet supported.
1914
1915         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1916         Problem reported by Peter Dyballa in
1917         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1918         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1919         when echoing "$condition".
1920
1921 2011-10-07  Bruno Haible  <bruno@clisp.org>
1922
1923         Fix documentation about math functions on MacOS X.
1924         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1925         MacOS X 10.5.
1926         * doc/posix-functions/fdim.texi: Likewise.
1927         * doc/posix-functions/feclearexcept.texi: Likewise.
1928         * doc/posix-functions/fegetenv.texi: Likewise.
1929         * doc/posix-functions/fegetround.texi: Likewise.
1930         * doc/posix-functions/feholdexcept.texi: Likewise.
1931         * doc/posix-functions/feraiseexcept.texi: Likewise.
1932         * doc/posix-functions/fesetenv.texi: Likewise.
1933         * doc/posix-functions/fesetround.texi: Likewise.
1934         * doc/posix-functions/fetestexcept.texi: Likewise.
1935         * doc/posix-functions/feupdateenv.texi: Likewise.
1936         * doc/posix-functions/fmax.texi: Likewise.
1937         * doc/posix-functions/fmin.texi: Likewise.
1938         * doc/posix-functions/log2.texi: Likewise.
1939         * doc/posix-functions/modff.texi: Likewise.
1940         * doc/posix-functions/nan.texi: Likewise.
1941         * doc/posix-functions/nanf.texi: Likewise.
1942         * doc/posix-functions/nextafterf.texi: Likewise.
1943         * doc/posix-functions/remquo.texi: Likewise.
1944
1945 2011-10-07  Bruno Haible  <bruno@clisp.org>
1946
1947         modff: Drop assumption about library that defines modff.
1948         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1949         AC_CHECK_FUNCS.
1950         * modules/modff (Files): Add m4/mathfunc.m4.
1951
1952 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1953
1954         raise tests: Avoid a GCC warning.
1955         * tests/test-raise.c (handler): Use _Noreturn.
1956
1957 2011-10-07  Bruno Haible  <bruno@clisp.org>
1958
1959         Tests for module 'ldexpf'.
1960         * modules/ldexpf-tests: New file.
1961         * tests/test-ldexpf.c: New file.
1962
1963         New module 'ldexpf'.
1964         * lib/math.in.h (ldexpf): New declaration.
1965         * lib/ldexpf.c: New file.
1966         * m4/ldexpf.m4: New file.
1967         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1969         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1970         * modules/ldexpf: New file.
1971         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1972         * doc/posix-functions/ldexpf.texi: Mention the new module.
1973
1974 2011-10-06  Bruno Haible  <bruno@clisp.org>
1975
1976         frexpf: Work around problems on IRIX and mingw.
1977         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1979         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1980         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1981         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1982         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1983         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1984
1985 2011-10-06  Bruno Haible  <bruno@clisp.org>
1986
1987         fabsf: Drop assumption about library that defines fabsf.
1988         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1989         AC_CHECK_FUNCS.
1990         * modules/fabsf (Files): Add m4/mathfunc.m4.
1991
1992 2011-10-06  Bruno Haible  <bruno@clisp.org>
1993
1994         frexpf: Drop assumption about library that defines frexpf.
1995         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1996         'int *', 'float *', 'long double *', 'float', 'long double'.
1997         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1998         AC_CHECK_FUNCS.
1999         * modules/frexpf (Files): Add m4/mathfunc.m4.
2000
2001         Tests for module 'frexpf'.
2002         * modules/frexpf-tests: New file.
2003         * tests/test-frexpf.c: New file.
2004
2005         New module 'frexpf'.
2006         * lib/math.in.h (frexpf): New declaration.
2007         * lib/frexpf.c: New file.
2008         * m4/frexpf.m4: New file.
2009         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2011         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2012         * modules/frexpf: New file.
2013         * tests/test-math-c++.cc: Check the declaration of frexpf.
2014         * doc/posix-functions/frexpf.texi: Mention the new module.
2015
2016 2011-10-06  Bruno Haible  <bruno@clisp.org>
2017
2018         math: Sort function declarations of math.in.h.
2019         * lib/math.in.h (frexp, logb): Move declarations.
2020
2021 2011-10-05  Bruno Haible  <bruno@clisp.org>
2022
2023         Tests for module 'modff'.
2024         * modules/modff-tests: New file.
2025         * tests/test-modff.c: New file.
2026
2027         New module 'modff'.
2028         * lib/math.in.h (modff): New declaration.
2029         * lib/modff.c: New file.
2030         * m4/modff.m4: New file.
2031         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2033         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2034         * modules/modff: New file.
2035         * tests/test-math-c++.cc: Check the declaration of modff.
2036         * doc/posix-functions/modff.texi: Mention the new module.
2037
2038         modf tests: Make test sharper.
2039         * tests/test-modf.c (main): Strengthen upper bound.
2040
2041         modf: Use a .m4 file.
2042         * m4/modf.m4: New file.
2043         * modules/modf (Files): Add it.
2044         (configure.ac): Just invoke gl_FUNC_MODF.
2045
2046 2011-10-05  Bruno Haible  <bruno@clisp.org>
2047
2048         Tests for module 'fmodf'.
2049         * modules/fmodf-tests: New file.
2050         * tests/test-fmodf.c: New file.
2051
2052         New module 'fmodf'.
2053         * lib/math.in.h (fmodf): New declaration.
2054         * lib/fmodf.c: New file.
2055         * m4/fmodf.m4: New file.
2056         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2058         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2059         * modules/fmodf: New file.
2060         * tests/test-math-c++.cc: Check the declaration of fmodf.
2061         * doc/posix-functions/fmodf.texi: Mention the new module.
2062
2063         fmod: Use a .m4 file.
2064         * m4/fmod.m4: New file.
2065         * modules/fmod (Files): Add it.
2066         (configure.ac): Just invoke gl_FUNC_FMOD.
2067
2068 2011-10-05  Bruno Haible  <bruno@clisp.org>
2069
2070         Tests for module 'fabsf'.
2071         * modules/fabsf-tests: New file.
2072         * tests/test-fabsf.c: New file.
2073
2074         New module 'fabsf'.
2075         * lib/math.in.h (fabsf): New declaration.
2076         * lib/fabsf.c: New file.
2077         * m4/fabsf.m4: New file.
2078         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2080         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2081         * modules/fabsf: New file.
2082         * tests/test-math-c++.cc: Check the declaration of fabsf.
2083         * doc/posix-functions/fabsf.texi: Mention the new module.
2084
2085         fabs: Use a .m4 file.
2086         * m4/fabs.m4: New file.
2087         * modules/fabs (Files): Add it.
2088         (configure.ac): Just invoke gl_FUNC_FABS.
2089
2090 2011-10-05  Jim Meyering  <meyering@redhat.com>
2091
2092         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2093         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2094         ls -lL regression introduced in coreutils-8.12, it does so at the
2095         cost of an additional stat call in the common case.  Besides, now
2096         that the kernel change that prompted commit 95f7c57f has been reverted
2097         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2098         we have no use for commit 95f7c57f, "file-has-acl: use
2099         acl_extended_file_nofollow if available".
2100
2101 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2102
2103         file-has-acl: revert unintended change in behavior of ls -L
2104         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2105         derived from...
2106         (file_has_acl): ...code here.  Call it.
2107         This problem was introduced with 2011-07-22 commit 95f7c57f,
2108         "file-has-acl: use acl_extended_file_nofollow if available".
2109         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2110
2111 2011-10-03  Bruno Haible  <bruno@clisp.org>
2112
2113         poll: Avoid link errors on MSVC.
2114         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2115         * modules/poll (Depends-on): Add sockets.
2116         (Link): New section.
2117         * NEWS: Mention the change.
2118         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2119         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2120         $(LIB_POLL) instead of $(LIBSOCKET).
2121
2122 2011-10-03  Bruno Haible  <bruno@clisp.org>
2123
2124         sys_select tests: Fix link error on MSVC 9.
2125         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2126         with $(LIB_SELECT) instead of $(LIBSOCKET).
2127
2128 2011-10-03  Bruno Haible  <bruno@clisp.org>
2129
2130         sys_select: Fix compilation error on mingw.
2131         * lib/sys_select.in.h: On native Windows, include <io.h>.
2132
2133 2011-10-03  Bruno Haible  <bruno@clisp.org>
2134
2135         wmemset: Support for MSVC.
2136         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2137         whether wmemset() exists.
2138
2139 2011-10-03  Bruno Haible  <bruno@clisp.org>
2140
2141         wmemmove: Support for MSVC.
2142         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2143         whether wmemmove() exists.
2144
2145 2011-10-03  Bruno Haible  <bruno@clisp.org>
2146
2147         wmemcpy: Support for MSVC.
2148         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2149         whether wmemcpy() exists.
2150
2151 2011-10-03  Bruno Haible  <bruno@clisp.org>
2152
2153         wmemcmp: Support for MSVC.
2154         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2155         whether wmemcmp() exists.
2156
2157 2011-10-03  Bruno Haible  <bruno@clisp.org>
2158
2159         wmemchr: Support for MSVC.
2160         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2161         whether wmemchr() exists.
2162
2163 2011-10-03  Bruno Haible  <bruno@clisp.org>
2164
2165         glthread/*, strsignal: Support for MSVC.
2166         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2167         including <winsock.h> on MSVC 9.
2168         * lib/glthread/lock.h: Likewise.
2169         * lib/glthread/thread.h: Likewise.
2170         * lib/glthread/tls.h: Likewise.
2171         * lib/glthread/yield.h: Likewise.
2172         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2173         if HAVE_UNISTD_H is false.
2174         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2175
2176 2011-10-03  Bruno Haible  <bruno@clisp.org>
2177
2178         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2179         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2180         Set to 100000.
2181
2182 2011-10-03  Bruno Haible  <bruno@clisp.org>
2183
2184         acl: Fix specification.
2185         * lib/file-has-acl.c (file_has_acl): Fix specification.
2186
2187 2011-10-03  Bruno Haible  <bruno@clisp.org>
2188
2189         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2190         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2191         (compute_curr_prefix, shared_library_fullname,
2192         find_shared_library_fullname, get_shared_library_fullname, relocate):
2193         Use it together with PIC && INSTALLDIR.
2194         Reported by <jojelino@gmail.com>
2195         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2196
2197 2011-10-01  Jim Meyering  <meyering@redhat.com>
2198
2199         maint.mk: adjust a release-related rule not to require use of gzip
2200         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2201         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2202         projects that build only .tar.xz files.  Also fix an erroneous test.
2203
2204         test-linkat: don't leave behind a temporary file
2205         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2206         Otherwise, coreutils' "make distcheck" would fail with this:
2207           Only in /c/cu/tests/torture/coreutils/test/\
2208             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2209           make[2]: *** [my-distcheck] Error 1
2210
2211         float, math: add omitted file
2212         * lib/itold.c: Add file, required for yesterday's float change.
2213
2214 2011-10-01  Bruno Haible  <bruno@clisp.org>
2215
2216         isinf: Fix for OpenBSD/x86.
2217         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2218         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2219         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2220
2221 2011-10-01  Bruno Haible  <bruno@clisp.org>
2222
2223         isfinite: Fix syntax error in configure test.
2224         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2225
2226         isfinite: Fix typo.
2227         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2228         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2229
2230 2011-10-01  Bruno Haible  <bruno@clisp.org>
2231
2232         nonblocking tests: Fix test failure on Linux/IA-64.
2233         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2234         Set to 270000.
2235
2236 2011-10-01  Bruno Haible  <bruno@clisp.org>
2237
2238         mkfifoat tests: Fix a test failure on mingw.
2239         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2240         with error ENOSYS.
2241
2242 2011-09-30  Bruno Haible  <bruno@clisp.org>
2243
2244         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2245         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2246         'long double'. Set REPLACE_ITOLD.
2247         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2248         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2249         * lib/itold.c: New file.
2250         * modules/float (Files): Add lib/itold.c.
2251         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2252         (Makefile.am): Substitute REPLACE_ITOLD.
2253         * modules/math (Depends-on): Add float.
2254         (Makefile.am): Substitute REPLACE_ITOLD.
2255         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2256         * doc/posix-headers/math.texi: Likewise.
2257         * doc/posix-functions/logl.texi: Likewise.
2258
2259 2011-09-30  Bruno Haible  <bruno@clisp.org>
2260
2261         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2262         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2263         Set to 140000.
2264
2265 2011-09-30  Bruno Haible  <bruno@clisp.org>
2266
2267         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2268         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2269         invocation, say "right after AC_PROG_CC_STDC", not "right after
2270         AC_PROG_CC".
2271         Reported by Gary V. Vaughan <gary@gnu.org>.
2272
2273 2011-09-30  Bruno Haible  <bruno@clisp.org>
2274
2275         Centralize C99 requirement.
2276         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2277         * modules/stdarg (configure.ac-early): Invoke it instead of
2278         AC_PROG_CC_STDC.
2279         Reported by Gary V. Vaughan and Paul Eggert.
2280
2281 2011-09-29  Bruno Haible  <bruno@clisp.org>
2282
2283         float: Fix LDBL_MAX value on Linux/PowerPC.
2284         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2285         on Linux/PowerPC.
2286         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2287         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2288         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2289         platform.
2290         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2291
2292 2011-09-29  Bruno Haible  <bruno@clisp.org>
2293
2294         doc: Improve doc about gl_EARLY.
2295         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2296         AC_PROG_CC_STDC invocation.
2297         Reported by Gary V. Vaughan <gary@gnu.org>.
2298
2299 2011-09-28  Bruno Haible  <bruno@clisp.org>
2300
2301         fgetc, fputc, fread, fwrite tests: Fix link error.
2302         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2303         on non-MSVC platforms.
2304         * tests/test-fputc.c (main): Likewise.
2305         * tests/test-fread.c (main): Likewise.
2306         * tests/test-fwrite.c (main): Likewise.
2307         Reported by Jim Meyering.
2308
2309 2011-09-27  Bruno Haible  <bruno@clisp.org>
2310
2311         fputc, fwrite tests: Avoid test failure on MSVC.
2312         * tests/test-fgetc.c: Include msvc-inval.h.
2313         (main): Invoke gl_msvc_inval_ensure_handler.
2314         * tests/test-fputc.c: Include msvc-inval.h.
2315         (main): Invoke gl_msvc_inval_ensure_handler.
2316         * tests/test-fread.c: Include msvc-inval.h.
2317         (main): Invoke gl_msvc_inval_ensure_handler.
2318         * tests/test-fwrite.c: Include msvc-inval.h.
2319         (main): Invoke gl_msvc_inval_ensure_handler.
2320         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2321         * modules/fputc-tests (Depends-on): Likewise.
2322         * modules/fread-tests (Depends-on): Likewise.
2323         * modules/fwrite-tests (Depends-on): Likewise.
2324
2325 2011-09-27  Bruno Haible  <bruno@clisp.org>
2326
2327         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2328         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2329         (raise): Remove older, duplicated declaration.
2330         (_gl_raise_SIGPIPE): New declaration.
2331         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2332         (rpl_raise): Remove function.
2333         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2334         a gnulib-defined SIGPIPE here.
2335         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2336         'sigprocmask' has detected missing signal-blocking and the module
2337         'sigpipe' is enabled.
2338         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2339
2340 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2341
2342         base64-tests: avoid memory leak
2343         * tests/test-base64.c (main): Plug memory leak.
2344
2345         base32: new module
2346         * modules/base32: New module.
2347         * lib/base32.c: New file.
2348         * lib/base32.h: Likewise.
2349         * m4/base32.m4: Likewise.
2350         * modules/base32-tests: New test.
2351         * tests/test-base32.c: Likewise.
2352         * MODULES.html.sh (Misc): Mention it.
2353
2354 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2355
2356         gnulib: use more-standard license notice wording
2357         * gnulib-tool (func_emit_copyright_notice): When emitting a
2358         license notice into a file, use the standard wording as suggested
2359         by the current information for GNU maintainers, except say "file"
2360         rather than "program".  The new wording gives a license version
2361         number, which addresses an issue raised by Glenn Morris in
2362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2363         * m4/onceonly.m4: Use that same wording here, too.
2364
2365         dup2: minor simplification
2366         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2367         as lib/dup2.c no longer uses 'inline'.
2368
2369 2011-09-25  Bruno Haible  <bruno@clisp.org>
2370
2371         strings: Fix compilation error on MSVC.
2372         * lib/strings.in.h: Include <stddef.h> for size_t.
2373
2374 2011-09-25  Bruno Haible  <bruno@clisp.org>
2375
2376         fflush et al.: Document limitation on MSVC.
2377         * doc/posix-functions/fflush.texi: Document possible crash in handling
2378         mode other than DEFAULT_HANDLING.
2379         * doc/posix-functions/fgetc.texi: Likewise.
2380         * doc/posix-functions/fputc.texi: Likewise.
2381         * doc/posix-functions/fread.texi: Likewise.
2382         * doc/posix-functions/fwrite.texi: Likewise.
2383
2384 2011-09-25  Bruno Haible  <bruno@clisp.org>
2385
2386         msvc-inval: Allow three invalid parameter handling modes.
2387         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2388         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2389         macros.
2390         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2391         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2392         SANE_LIBRARY_HANDLING as a no-op.
2393         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2394         <stdlib.h>.
2395         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2396
2397 2011-09-25  Bruno Haible  <bruno@clisp.org>
2398
2399         msvc-inval: Make handler multithread-safe.
2400         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2401         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2402         declarations.
2403         (gl_msvc_inval_current): New declaration.
2404         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2405         Operate on the structure returned by gl_msvc_inval_current().
2406         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2407         Remove varaiables.
2408         (tls_index, tls_initialized): New variables.
2409         (not_per_thread): New variable.
2410         (gl_msvc_inval_current): New function.
2411         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2412         returned by gl_msvc_inval_current().
2413
2414 2011-09-25  Bruno Haible  <bruno@clisp.org>
2415
2416         msvc-inval: Install handler globally.
2417         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2418         !_MSC_VER.
2419         (gl_msvc_invalid_parameter_handler): Remove declaration.
2420         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2421         declarations.
2422         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2423         Install the handler globally, don't uninstall it.
2424         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2425         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2426         currently valid, call RaiseException instead.
2427         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2428         for !_MSC_VER.
2429
2430 2011-09-25  Bruno Haible  <bruno@clisp.org>
2431
2432         strerror_r-posix: Fix for MSVC 9.
2433         * lib/strerror_r.c (local_snprintf): New function.
2434         (snprintf): Define to local_snprintf, not to _snprintf.
2435
2436 2011-09-25  Bruno Haible  <bruno@clisp.org>
2437
2438         ftruncate: Support for MSVC 9.
2439         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2440         (chsize_nothrow): New function.
2441         (chsize): Redefine as a macro.
2442         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2443         * modules/ftruncate (Depends-on): Add msvc-inval.
2444
2445 2011-09-25  Bruno Haible  <bruno@clisp.org>
2446
2447         New module 'fstat'.
2448         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2449         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2450         * lib/fchdir.c (rpl_fstat): Remove function.
2451         * m4/fstat.m4: New file.
2452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2453         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2454         declared.
2455         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2456         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2457         * modules/fstat: New file.
2458         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2459         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2460         is set.
2461         * doc/posix-functions/fstat.texi: Mention the new module and the
2462         problem on MSVC.
2463         * NEWS: Mention the change.
2464         * modules/acl (Depends-on): Add fstat.
2465         * modules/chdir-safer (Depends-on): Likewise.
2466         * modules/chown (Depends-on): Likewise.
2467         * modules/copy-file (Depends-on): Likewise.
2468         * modules/fchdir (Depends-on): Likewise.
2469         * modules/fdopendir (Depends-on): Likewise.
2470         * modules/fopen (Depends-on): Likewise.
2471         * modules/fts (Depends-on): Likewise.
2472         * modules/getcwd (Depends-on): Likewise.
2473         * modules/isapipe (Depends-on): Likewise.
2474         * modules/linkat (Depends-on): Likewise.
2475         * modules/lseek (Depends-on): Likewise.
2476         * modules/mkdir-p (Depends-on): Likewise.
2477         * modules/open (Depends-on): Likewise.
2478         * modules/openat (Depends-on): Likewise.
2479         * modules/read-file (Depends-on): Likewise.
2480         * modules/renameat (Depends-on): Likewise.
2481         * modules/utimens (Depends-on): Likewise.
2482
2483 2011-09-25  Bruno Haible  <bruno@clisp.org>
2484
2485         linkat: Fix compilation on MSVC 9.
2486         * lib/linkat.c: Don't include <stdint.h>.
2487
2488 2011-09-25  Bruno Haible  <bruno@clisp.org>
2489
2490         fclose: Support for MSVC 9.
2491         * lib/fclose.c: Include msvc-inval.h.
2492         (fclose_nothrow): New function.
2493         (rpl_fclose): Use it.
2494         * modules/fclose (Depends-on): Add msvc-inval.
2495         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2496
2497 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2498
2499         dup2: minor simplifications
2500         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2501         that it's a performance win.
2502         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2503         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2504
2505 2011-09-24  Jim Meyering  <meyering@redhat.com>
2506
2507         test-futimens: avoid a warning from gcc -Wshadow
2508         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2509         to avoid a shadowing warning.
2510
2511 2011-09-24  Bruno Haible  <bruno@clisp.org>
2512
2513         fdopen: Support for MSVC 9.
2514         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2515         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2516         * lib/fdopen.c: Include msvc-inval.h.
2517         (fdopen_nothrow): New function.
2518         (rpl_fdopen): Use it.
2519         * modules/fdopen (Depends-on): Add msvc-inval.
2520         * modules/fclose-tests (Depends-on): Add fdopen.
2521         * modules/fflush-tests (Depends-on): Likewise.
2522         * modules/fgetc-tests (Depends-on): Likewise.
2523         * modules/fputc-tests (Depends-on): Likewise.
2524         * modules/fread-tests (Depends-on): Likewise.
2525         * modules/freopen-tests (Depends-on): Likewise.
2526         * modules/fseeko-tests (Depends-on): Likewise.
2527         * modules/ftello-tests (Depends-on): Likewise.
2528         * modules/fwrite-tests  (Depends-on): Likewise.
2529         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2530
2531 2011-09-24  Bruno Haible  <bruno@clisp.org>
2532
2533         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2534         * modules/fgetc-tests (Depends-on): Add unistd.
2535         * modules/fputc-tests (Depends-on): Likewise.
2536         * modules/fread-tests (Depends-on): Likewise.
2537         * modules/fwrite-tests (Depends-on): Likewise.
2538
2539 2011-09-24  Bruno Haible  <bruno@clisp.org>
2540
2541         dup: Simplify autoconf test.
2542         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2543         on gl_MSVC_INVAL's result.
2544
2545 2011-09-24  Bruno Haible  <bruno@clisp.org>
2546
2547         Tests for function fwrite().
2548         * modules/fwrite-tests: New file.
2549         * tests/test-fwrite.c: New file.
2550         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2551
2552         Tests for function fread().
2553         * modules/fread-tests: New file.
2554         * tests/test-fread.c: New file.
2555         * modules/stdio-tests (Depends-on): Add fread-tests.
2556
2557         Activate fputc tests.
2558         * modules/stdio-tests (Depends-on): Add fputc-tests.
2559
2560         Enhance fgetc, fputc tests.
2561         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2562         * tests/test-fputc.c (main): Likewise.
2563
2564 2011-09-24  Bruno Haible  <bruno@clisp.org>
2565
2566         write: Support for MSVC 9.
2567         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2568         is not 1.
2569         * lib/write.c (write_nothrow): New function.
2570         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2571         not 1. Use write_nothrow.
2572         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2573         invalid parameter handler.
2574         (gl_PREREQ_WRITE): New macro.
2575         * modules/write (Depends-on): Add msvc-inval.
2576         (configure.ac): Invoke gl_PREREQ_WRITE.
2577         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2578
2579 2011-09-24  Bruno Haible  <bruno@clisp.org>
2580
2581         read: Fix last commit.
2582         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2583
2584 2011-09-24  Bruno Haible  <bruno@clisp.org>
2585
2586         dup2: Fix last commit.
2587         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2588         (rpl_dup2): Disable fcntl workaround on native Windows.
2589
2590         sigprocmask: Make code safer.
2591         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2592         section that changes macro definitions for this compilation unit.
2593
2594 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2595
2596         dup2: clarify by coalescing Windows-specific material
2597         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2598         "msvc-nothrow.h"' to the Windows-specific section, so that the
2599         Emacs source need not contain these include files.
2600         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2601         Windows-specific fixes into this function rather than just the
2602         nothrow fix, as this shortens and clarifies the code.  Always
2603         define as a function, as that's a bit cleaner than having it be
2604         sometimes a function and sometimes a macro.
2605         (rpl_dup2): Move the Windows-specific stuff out of here and into
2606         ms_windows_dup2.  Don't protect the Haiku-related fix with
2607         "#if !defined __linux__", as the same code also works around
2608         a Linux kernel bug, and it doesn't add any system calls on any
2609         platform.  Add comment about FreeBSD 6.1.
2610
2611         sigprocmask: move #include directive
2612         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2613         Windows-specific section, so that the Emacs source need not
2614         contain msvc-inval.h.
2615
2616 2011-09-23  Bruno Haible  <bruno@clisp.org>
2617
2618         read: Support for MSVC 9.
2619         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2620         is not 1.
2621         * lib/read.c (read_nothrow): New function.
2622         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2623         read_nothrow.
2624         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2625         invalid parameter handler.
2626         (gl_PREREQ_READ): New macro.
2627         * modules/read (Depends-on): Add msvc-inval.
2628         (configure.ac): Invoke gl_PREREQ_READ.
2629         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2630
2631 2011-09-23  Bruno Haible  <bruno@clisp.org>
2632
2633         close: Support for MSVC 9.
2634         * lib/close.c: Include <errno.h>, msvc-inval.h.
2635         (close_nothrow): New function.
2636         (rpl_close): Use it.
2637         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2638         invalid parameter handler.
2639         * modules/close (Depends-on): Add msvc-inval.
2640         * modules/dup2-tests (Depends-on): Add close.
2641         * modules/dup3-tests (Depends-on): Likewise.
2642         * modules/fcntl-tests (Depends-on): Likewise.
2643         * modules/spawn-pipe-tests (Depends-on): Likewise.
2644         * modules/unistd-safer-tests (Depends-on): Likewise.
2645         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2646
2647 2011-09-23  Bruno Haible  <bruno@clisp.org>
2648
2649         New module 'dup'.
2650         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2651         Allow replacement.
2652         * lib/dup.c: New file.
2653         * lib/fchdir.c (rpl_dup): Remove function.
2654         * m4/dup.m4: New file.
2655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2656         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2657         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2658         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2659         * modules/dup: New file.
2660         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2661         'dup' module is in use.
2662         * modules/fdopendir (Depends-on): Add dup.
2663         * modules/fdutimensat-tests (Depends-on): Likewise.
2664         * modules/fts (Depends-on): Likewise.
2665         * modules/futimens-tests (Depends-on): Likewise.
2666         * modules/posix_spawnp-tests (Depends-on): Likewise.
2667         * modules/unistd-safer-tests (Depends-on): Likewise.
2668         * modules/utimens-tests (Depends-on): Likewise.
2669         * doc/posix-functions/dup.texi: Mention the new module and the problem
2670         on MSVC.
2671
2672 2011-09-23  Bruno Haible  <bruno@clisp.org>
2673
2674         getdtablesize: Support for MSVC 9.
2675         * lib/getdtablesize.c: Include msvc-inval.h.
2676         (_setmaxstdio_nothrow): New function.
2677         (_setmaxstdio): Redefine it.
2678         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2679         * modules/getdtablesize (Depends-on): Add msvc-inval.
2680         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2681
2682 2011-09-23  Bruno Haible  <bruno@clisp.org>
2683
2684         signal-h: Rename from signal.
2685         * modules/signal-h: Renamed from modules/signal.
2686         * modules/pthread_sigmask (Depends-on): Update.
2687         * modules/raise (Depends-on): Likewise.
2688         * modules/sigaction (Depends-on): Likewise.
2689         * modules/sigpipe (Depends-on): Likewise.
2690         * modules/sigprocmask (Depends-on): Likewise.
2691         * modules/sys_select (Depends-on): Likewise.
2692         * modules/signal-h-tests: Renamed from modules/signal-tests.
2693         (Files, Depends-on, Makefile.am): Update.
2694         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2695         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2696         (Files, Makefile.am): Update.
2697         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2698         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2699         * modules/signal: New placeholder file.
2700         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2701         * doc/posix-headers/signal.texi: Update.
2702         * NEWS: Mention the change.
2703
2704 2011-09-23  Bruno Haible  <bruno@clisp.org>
2705
2706         sigprocmask: Avoid crashes through signal() on MSVC 9.
2707         * lib/sigprocmask.c: Include msvc-inval.h.
2708         (signal_nothrow): New function.
2709         (signal): Redefine it.
2710         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2711         * modules/sigprocmask (Depends-on): Add msvc-inval.
2712         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2713
2714 2011-09-23  Bruno Haible  <bruno@clisp.org>
2715
2716         Tests for module 'raise'.
2717         * modules/raise-tests: New file.
2718         * tests/test-raise.c: New file.
2719
2720         raise: Support for MSVC.
2721         * lib/signal.in.h (raise): New declaration.
2722         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2723         for native Windows platforms.
2724         * m4/raise.m4: New file.
2725         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2726         HAVE_RAISE, REPLACE_RAISE.
2727         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2728         REPLACE_RAISE.
2729         * modules/raise (Status, Notice): Remove fields.
2730         (Files): Add m4/raise.m4.
2731         (Depends-on): Add signal, msvc-inval.
2732         (configure.ac): Use the common idioms.
2733         (Maintainer): Add me.
2734         * tests/test-signal-c++.cc: Check the signature of raise.
2735         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2736
2737 2011-09-23  Bruno Haible  <bruno@clisp.org>
2738
2739         pipe2: Fix compilation on pre-C99 compilers.
2740         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2741
2742 2011-09-23  Bruno Haible  <bruno@clisp.org>
2743
2744         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2745         * lib/msvc-nothrow.h: New file.
2746         * lib/msvc-nothrow.c: New file.
2747         * m4/msvc-nothrow.m4: New file.
2748         * modules/msvc-nothrow: New file.
2749         * lib/dup2.c: Include msvc-nothrow.h.
2750         (rpl_dup2): No need to protect _get_osfhandle call here.
2751         * lib/accept4.c: Include msvc-nothrow.h.
2752         * lib/error.c: Likewise.
2753         * lib/fcntl.c: Likewise.
2754         * lib/lseek.c: Likewise.
2755         * lib/nonblocking.c: Likewise.
2756         * lib/poll.c: Likewise.
2757         * lib/read.c: Likewise.
2758         * lib/select.c: Likewise.
2759         * lib/sockets.h: Likewise.
2760         * lib/sockets.c: Likewise.
2761         * lib/stdio-read.c: Likewise.
2762         * lib/stdio-write.c: Likewise.
2763         * lib/write.c: Likewise.
2764         * lib/w32sock.h: Likewise.
2765         * lib/w32spawn.h: Likewise.
2766         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2767         * lib/fsync.c: Likewise.
2768         * lib/isapipe.c: Likewise.
2769         * modules/dup2 (Depends-on): Add msvc-nothrow.
2770         * modules/accept4 (Depends-on): Likewise.
2771         * modules/error (Depends-on): Likewise.
2772         * modules/fcntl (Depends-on): Likewise.
2773         * modules/lseek (Depends-on): Likewise.
2774         * modules/nonblocking (Depends-on): Likewise.
2775         * modules/poll (Depends-on): Likewise.
2776         * modules/read (Depends-on): Likewise.
2777         * modules/select (Depends-on): Likewise.
2778         * modules/sockets (Depends-on): Likewise.
2779         * modules/sigpipe (Depends-on): Likewise.
2780         * modules/write (Depends-on): Likewise.
2781         * modules/accept (Depends-on): Likewise.
2782         * modules/bind (Depends-on): Likewise.
2783         * modules/connect (Depends-on): Likewise.
2784         * modules/gethostname (Depends-on): Likewise.
2785         * modules/getpeername (Depends-on): Likewise.
2786         * modules/getsockname (Depends-on): Likewise.
2787         * modules/getsockopt (Depends-on): Likewise.
2788         * modules/ioctl (Depends-on): Likewise.
2789         * modules/listen (Depends-on): Likewise.
2790         * modules/recv (Depends-on): Likewise.
2791         * modules/recvfrom (Depends-on): Likewise.
2792         * modules/send (Depends-on): Likewise.
2793         * modules/sendto (Depends-on): Likewise.
2794         * modules/setsockopt (Depends-on): Likewise.
2795         * modules/shutdown (Depends-on): Likewise.
2796         * modules/socket (Depends-on): Likewise.
2797         * modules/execute (Depends-on): Likewise.
2798         * modules/spawn-pipe (Depends-on): Likewise.
2799         * modules/flock (Depends-on): Likewise.
2800         * modules/fsync (Depends-on): Likewise.
2801         * modules/isapipe (Depends-on): Likewise.
2802         * tests/test-cloexec.c: Include msvc-nothrow.h.
2803         * tests/test-dup-safer.c: Likewise.
2804         * tests/test-dup2.c: Likewise.
2805         * tests/test-dup3.c: Likewise.
2806         * tests/test-fcntl.c: Likewise.
2807         * tests/test-pipe.c: Likewise.
2808         * tests/test-pipe2.c: Likewise.
2809         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2810         * modules/unistd-safer-tests (Depends-on): Likewise.
2811         * modules/dup2-tests (Depends-on): Likewise.
2812         * modules/dup3-tests (Depends-on): Likewise.
2813         * modules/fcntl-tests (Depends-on): Likewise.
2814         * modules/pipe-posix-tests (Depends-on): Likewise.
2815         * modules/pipe2-tests (Depends-on): Likewise.
2816
2817 2011-09-23  Bruno Haible  <bruno@clisp.org>
2818
2819         dup2: Make code more maintainable.
2820         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2821         (rpl_dup2): Use it.
2822         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2823         * modules/dup2 (configure.ac): Invoke it.
2824         Reported by Paul Eggert.
2825
2826 2011-09-23  Bruno Haible  <bruno@clisp.org>
2827
2828         msvc-inval: Fix compilation error.
2829         * lib/msvc-inval.h: Include <excpt.h>.
2830
2831 2011-09-23  Bruno Haible  <bruno@clisp.org>
2832
2833         mkdir: Tweak for MSVC 9.
2834         * lib/sys_stat.in.h: Update comments.
2835         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2836
2837         Tests for module 'chdir'.
2838         * modules/chdir-tests: New file.
2839         * tests/test-chdir.c: New file.
2840
2841         New module 'chdir'.
2842         * modules/chdir: New file.
2843         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2844         (chdir): New declaration.
2845         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2846         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2847         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2848         * tests/test-unistd-c++.cc: Check signature of chdir.
2849         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2850         * modules/chdir-long (Depends-on): Add chdir.
2851         * modules/fchdir (Depends-on): Likewise.
2852         * modules/rename (Depends-on): Likewise.
2853         * modules/savewd (Depends-on): Likewise.
2854
2855         rmdir: Support for mingw, MSVC 9.
2856         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2857         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2858
2859         getcwd: Tweak for MSVC 9.
2860         * lib/unistd.in.h: Update comments.
2861         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2862
2863 2011-09-22  Bruno Haible  <bruno@clisp.org>
2864
2865         strerror_r-posix: Avoid a link error on MSVC.
2866         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2867         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2868
2869 2011-09-22  Bruno Haible  <bruno@clisp.org>
2870
2871         select: Avoid link errors on MSVC.
2872         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2873         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2874         * modules/pselect (Link): Likewise.
2875         * NEWS: Mention the change.
2876         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2877         test-select-stdin against $(LIB_SELECT).
2878         * modules/pselect-tests (Makefile.am): Link test-pselect against
2879         $(LIB_SELECT).
2880
2881 2011-09-22  Bruno Haible  <bruno@clisp.org>
2882
2883         select: Avoid compilation error on MSVC.
2884         * lib/select.c: Don't include <stdbool.h>.
2885
2886 2011-09-21  Bruno Haible  <bruno@clisp.org>
2887
2888         Consolidate all uses of PATH_MAX in *.m4 files.
2889         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2890         macros.
2891         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2892         and gl_PATHMAX_SNIPPET.
2893         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2894         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2895         * modules/chdir-long (Files): Add m4/pathmax.m4.
2896         * modules/getcwd (Files): Likewise.
2897
2898 2011-09-21  Bruno Haible  <bruno@clisp.org>
2899
2900         ftruncate: Un-deprecate, concentrate on Win32 support.
2901         * modules/ftruncate (Status, Notice): Remove sections.
2902         (Depends-on): Add largefile.
2903         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2904         non-mingw platforms.
2905         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2906         include <io.h>.
2907         * modules/perror-tests (Depends-on): Add ftruncate.
2908         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2909         'ftruncate' module.
2910
2911 2011-09-21  Bruno Haible  <bruno@clisp.org>
2912
2913         Add dependencies to new dirent related modules.
2914         * modules/opendir (Depends-on): Add closedir.
2915         * modules/getcwd (Depends-on): Add opendir, closedir.
2916         * modules/dirent-safer-tests (Depends-on): Likewise.
2917         * modules/fdopendir-tests (Depends-on): Likewise.
2918         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2919         * modules/renameat-tests (Depends-on): Likewise.
2920
2921 2011-09-21  Bruno Haible  <bruno@clisp.org>
2922
2923         opendir: Avoid compilation error on mingw.
2924         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2925         * modules/opendir (Depends-on): Add unistd.
2926
2927 2011-09-21  Bruno Haible  <bruno@clisp.org>
2928
2929         ftruncate tests: Avoid a test failure on mingw.
2930         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2931
2932 2011-09-21  Bruno Haible  <bruno@clisp.org>
2933
2934         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2935         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2936         native Windows.
2937
2938 2011-09-21  Bruno Haible  <bruno@clisp.org>
2939
2940         New module 'fdopen'.
2941         * lib/stdio.in.h (fdopen): New declaration.
2942         * lib/fdopen.c: New file.
2943         * m4/fdopen.m4: New file.
2944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2945         REPLACE_FDOPEN.
2946         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2947         REPLACE_FDOPEN.
2948         * modules/fdopen: New file.
2949         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2950         * tests/test-stdio-c++.cc: Check signature of fdopen.
2951         * doc/posix-functions/fdopen.texi: Mention the new module.
2952
2953 2011-09-21  Bruno Haible  <bruno@clisp.org>
2954
2955         unlockpt tests: Avoid test failure on NetBSD 5.1.
2956         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2957         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2958
2959 2011-09-21  Bruno Haible  <bruno@clisp.org>
2960
2961         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2962         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2963         * tests/test-getlogin_r.c (main): Likewise.
2964
2965 2011-09-20  Bruno Haible  <bruno@clisp.org>
2966
2967         time tests: Don't require pid_t.
2968         * doc/posix-headers/time.texi: Revert last change.
2969         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2970         * tests/test-time.c: Comment out the check for pid_t.
2971
2972 2011-09-20  Bruno Haible  <bruno@clisp.org>
2973
2974         fsync tests: Avoid a test failure on mingw.
2975         * tests/test-fsync.c (main): Allow a failure with EIO.
2976
2977 2011-09-20  Bruno Haible  <bruno@clisp.org>
2978
2979         euidaccess: Update comments.
2980         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2981
2982 2011-09-20  Bruno Haible  <bruno@clisp.org>
2983
2984         Ensure EBADF returns for socket functions on mingw.
2985         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2986         descriptor is invalid.
2987         * lib/bind.c (rpl_bind): Likewise.
2988         * lib/connect.c (rpl_connect): Likewise.
2989         * lib/getpeername.c (rpl_getpeername): Likewise.
2990         * lib/getsockname.c (rpl_getsockname): Likewise.
2991         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2992         * lib/listen.c (rpl_listen): Likewise.
2993         * lib/recv.c (rpl_recv): Likewise.
2994         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2995         * lib/send.c (rpl_send): Likewise.
2996         * lib/sendto.c (rpl_sendto): Likewise.
2997         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2998         * lib/shutdown.c (rpl_shutdown): Likewise.
2999
3000 2011-09-20  Bruno Haible  <bruno@clisp.org>
3001
3002         select tests: EBADF tests.
3003         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3004         test_bad_fd): New functions.
3005         (test_function): Invoke also test_bad_fd.
3006
3007 2011-09-20  Bruno Haible  <bruno@clisp.org>
3008
3009         Tests for module 'posix_spawn_file_actions_addopen.
3010         * modules/posix_spawn_file_actions_addopen-tests: New file.
3011         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3012
3013         Tests for module 'posix_spawn_file_actions_adddup2'.
3014         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3015         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3016
3017         Tests for module 'posix_spawn_file_actions_addclose'.
3018         * modules/posix_spawn_file_actions_addclose-tests: New file.
3019         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3020
3021 2011-09-20  Bruno Haible  <bruno@clisp.org>
3022
3023         Tests for module 'unlockpt'.
3024         * modules/unlockpt-tests: New file.
3025         * tests/test-unlockpt.c: New file.
3026         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3027
3028         Tests for module 'grantpt'.
3029         * modules/grantpt-tests: New file.
3030         * tests/test-grantpt.c: New file.
3031         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3032
3033 2011-09-20  Bruno Haible  <bruno@clisp.org>
3034
3035         freopen tests: EBADF tests.
3036         * tests/test-freopen.c: Include errno.h, unistd.h.
3037         (main): Add tests for EBADF, commented out for the moment.
3038
3039         fclose tests: EBADF tests.
3040         * tests/test-fclose.c (main): Add tests for EBADF.
3041
3042         fflush tests: EBADF tests.
3043         * tests/test-fflush.c: Include errno.h, macros.h.
3044         (main): Add tests for EBADF.
3045
3046         ftello tests: EBADF tests.
3047         * tests/test-ftello4.sh: New file.
3048         * tests/test-ftello4.c: New file.
3049         * modules/ftello-tests (Files): Add them.
3050         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3051
3052         fseeko tests: EBADF tests.
3053         * tests/test-fseeko4.sh: New file.
3054         * tests/test-fseeko4.c: New file.
3055         * modules/fseeko-tests (Files): Add them.
3056         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3057
3058         Tests for function fputc().
3059         * modules/fputc-tests: New file.
3060         * tests/test-fputc.c: New file.
3061         * modules/stdio-tests (Depends-on): Add fputc-tests.
3062
3063         Tests for function fgetc().
3064         * modules/fgetc-tests: New file.
3065         * tests/test-fgetc.c: New file.
3066         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3067
3068         Tests for function fdopen().
3069         * modules/fdopen-tests: New file.
3070         * tests/test-fdopen.c: New file.
3071         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3072
3073         Tests for module 'vdprintf'.
3074         * modules/vdprintf-tests: New file.
3075         * tests/test-vdprintf.c: New file.
3076
3077         Tests for module 'dprintf'.
3078         * modules/dprintf-tests: New file.
3079         * tests/test-dprintf.c: New file.
3080
3081 2011-09-20  Bruno Haible  <bruno@clisp.org>
3082
3083         Tests for module 'ioctl'.
3084         * modules/ioctl-tests: New file.
3085         * tests/test-ioctl.c: New file.
3086
3087 2011-09-20  Bruno Haible  <bruno@clisp.org>
3088
3089         fcntl tests: EBADF tests.
3090         * tests/test-fcntl.c (main): Add more tests for EBADF.
3091
3092 2011-09-20  Bruno Haible  <bruno@clisp.org>
3093
3094         utimensat tests: EBADF tests.
3095         * tests/test-utimensat.c (main): Add tests for EBADF.
3096
3097         renameat tests: EBADF tests.
3098         * tests/test-renameat.c (main): Add tests for EBADF.
3099
3100         mkfifoat tests: EBADF tests.
3101         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3102
3103         readlinkat tests: EBADF tests.
3104         * tests/test-readlinkat.c (main): Add tests for EBADF.
3105
3106         symlinkat tests: EBADF tests.
3107         * tests/test-symlinkat.c (main): Add tests for EBADF.
3108
3109         linkat tests: EBADF tests.
3110         * tests/test-linkat.c (main): Add tests for EBADF.
3111
3112         Tests for module 'faccessat'.
3113         * modules/faccessat-tests: New file.
3114         * tests/test-faccessat.c: New file.
3115
3116         fdopendir tests: EBADF tests.
3117         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3118
3119         openat tests: EBADF tests.
3120         * tests/test-fchownat.c (main): Add tests for EBADF.
3121         * tests/test-fstatat.c (main): Likewise.
3122         * tests/test-mkdirat.c (main): Likewise.
3123         * tests/test-openat.c (main): Likewise.
3124         * tests/test-unlinkat.c (main): Likewise.
3125         * tests/test-fchmodat.c: New file.
3126         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3127         (Makefile.am): Also run 'test-fchmodat'.
3128
3129 2011-09-20  Bruno Haible  <bruno@clisp.org>
3130
3131         utimens, futimens, fdutimensat tests: EBADF tests.
3132         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3133
3134         Tests for function fstat().
3135         * modules/fstat-tests: New file.
3136         * tests/test-fstat.c: New file.
3137         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3138
3139 2011-09-20  Bruno Haible  <bruno@clisp.org>
3140
3141         test-ttyname_r tests: EBADF tests.
3142         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3143
3144         Tests for module 'isatty'.
3145         * modules/isatty-tests: New file.
3146         * tests/test-isatty.c: New file.
3147
3148         Tests for module 'write'.
3149         * modules/write-tests: New file.
3150         * tests/test-write.c: New file.
3151
3152         Tests for module 'read'.
3153         * modules/read-tests: New file.
3154         * tests/test-read.c: New file.
3155
3156         pwrite tests: EBADF tests.
3157         * tests/test-pwrite.c (main): Add tests for EBADF.
3158
3159         pread tests: EBADF tests.
3160         * tests/test-pread.c (main): Add tests for EBADF.
3161
3162         lseek tests: EBADF tests.
3163         * tests/test-lseek.c (main): Add more tests for EBADF.
3164
3165         Tests for module 'ftruncate'.
3166         * modules/ftruncate-tests: New file.
3167         * tests/test-ftruncate.sh: New file.
3168         * tests/test-ftruncate.c: New file.
3169
3170         fsync tests: EBADF tests.
3171         * tests/test-fsync.c (main): Add more tests for EBADF.
3172
3173         fdatasync tests: EBADF tests.
3174         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3175
3176         Tests for module 'fchown'.
3177         * modules/fchown-tests: New file.
3178         * tests/test-fchown.c: New file.
3179
3180         Tests for module 'fchmod'.
3181         * modules/fchmod-tests: New file.
3182         * tests/test-fchmod.c: New file.
3183
3184         fchdir tests: EBADF tests.
3185         * tests/test-fchdir.c (main): Add more tests for EBADF.
3186
3187         dup2 tests: EBADF tests.
3188         * tests/test-dup2.c (main): Add more tests for EBADF.
3189
3190         Tests for module 'dup'.
3191         * modules/dup-tests: New file.
3192         * tests/test-dup.c: New file.
3193
3194         Tests for module 'close'.
3195         * modules/close-tests: New file.
3196         * tests/test-close.c: New file.
3197
3198 2011-09-20  Bruno Haible  <bruno@clisp.org>
3199
3200         Tests for module 'shutdown'.
3201         * modules/shutdown-tests: New file.
3202         * tests/test-shutdown.c: New file.
3203
3204         Tests for module 'setsockopt'.
3205         * modules/setsockopt-tests: New file.
3206         * tests/test-setsockopt.c: New file.
3207
3208         Tests for module 'sendto'.
3209         * modules/sendto-tests: New file.
3210         * tests/test-sendto.c: New file.
3211
3212         Tests for module 'send'.
3213         * modules/send-tests: New file.
3214         * tests/test-send.c: New file.
3215
3216         Tests for module 'recvfrom'.
3217         * modules/recvfrom-tests: New file.
3218         * tests/test-recvfrom.c: New file.
3219
3220         Tests for module 'recv'.
3221         * modules/recv-tests: New file.
3222         * tests/test-recv.c: New file.
3223
3224         Tests for module 'listen'.
3225         * modules/listen-tests: New file.
3226         * tests/test-listen.c: New file.
3227
3228         Tests for module 'getsockopt'.
3229         * modules/getsockopt-tests: New file.
3230         * tests/test-getsockopt.c: New file.
3231
3232         Tests for module 'getsockname'.
3233         * modules/getsockname-tests: New file.
3234         * tests/test-getsockname.c: New file.
3235
3236         Tests for module 'getpeername'.
3237         * modules/getpeername-tests: New file.
3238         * tests/test-getpeername.c: New file.
3239
3240         Tests for module 'connect'.
3241         * modules/connect-tests: New file.
3242         * tests/test-connect.c: New file.
3243
3244         Tests for module 'bind'.
3245         * modules/bind-tests: New file.
3246         * tests/test-bind.c: New file.
3247
3248         accept4 tests: Fix for native Windows.
3249         * tests/test-accept4.c: Include sockets.h.
3250         (main): Invoke gl_sockets_startup.
3251         * modules/accept4-tests (Depends-on): Add sockets.
3252
3253         accept tests: Fix for native Windows.
3254         * tests/test-accept.c: Include sockets.h.
3255         (main): Invoke gl_sockets_startup.
3256         * modules/accept-tests (Depends-on): Add sockets.
3257
3258 2011-09-19  Bruno Haible  <bruno@clisp.org>
3259
3260         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3261         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3262         do...while(0).
3263         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3264         Suggested by Paul Eggert.
3265
3266 2011-09-19  Bruno Haible  <bruno@clisp.org>
3267
3268         sched: Ensure pid_t is defined.
3269         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3270         not define pid_t.
3271         * lib/sched.in.h: Include <sys/types.h>.
3272         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3274
3275 2011-09-19  Bruno Haible  <bruno@clisp.org>
3276
3277         msvc-inval: Ensure the entire expansion is a single statement.
3278         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3279         of braces.
3280
3281 2011-09-19  Jim Meyering  <meyering@redhat.com>
3282
3283         tests: use printf, not echo in init.sh's warn_ function
3284         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3285         misbehave when given strings containing a backslash or starting
3286         with e.g., -n.  James Youngman suggested setting IFS.
3287
3288 2011-09-19  Eric Blake  <eblake@redhat.com>
3289
3290         futimens: enhance test
3291         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3292         closed non-negative fd.
3293
3294         date: accept 'hence' as opposite of 'ago'
3295         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3296         * tests/test-parse-datetime.c (main): Enhance test.
3297         Suggested by Jesse Wilson.
3298
3299 2011-09-19  Jim Meyering  <meyering@redhat.com>
3300
3301         getcwd: don't fail in a deep directory on a system without openat
3302         Before this change, getcwd would fail when called from a directory
3303         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3304         the non-openat implementation used "..", "../..", "../../..", etc.
3305         to access ancestor directories.  With too many, that string would
3306         be longer than PATH_MAX.
3307         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3308         using gnulib's openat replacement.
3309         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3310         we're using the replacement function.
3311
3312 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3313
3314         maint.mk: avoid warnings from perl about missing files
3315         * top/maint.mk (def_sym_regex): Ignore files listed in
3316         $(gl_other_headers_) that do not exist, say because a project
3317         does not use a corresponding module.
3318
3319 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3320
3321         stat: use pathmax.h only if needed
3322         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3323         This is better for Emacs, which does not have a mingw port and
3324         therefore can avoid the pathmax module.
3325
3326         utimens: remove dependency on dup2
3327         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3328         to work around the Linux kernel bug.
3329         * modules/utimens (Depends-on): Remove dup2.
3330
3331 2011-09-18  Bruno Haible  <bruno@clisp.org>
3332
3333         inet_ntop, inet_pton: Look for it also in libresolv.
3334         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3335         libnsl, search for it in libresolv.
3336         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3337         Needed on Solaris 7.
3338
3339 2011-09-18  Bruno Haible  <bruno@clisp.org>
3340
3341         accept, accept4 tests: Avoid link error on Solaris.
3342         * modules/accept-tests (Makefile.am): Link test-accept against
3343         $(LIBSOCKET).
3344         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3345         $(LIBSOCKET).
3346
3347         accept4: Avoid link error on Solaris.
3348         * modules/accept4 (Link): New section.
3349
3350         socket functions: Avoid link errors on Solaris.
3351         * modules/accept (Depends-on): Add socketlib.
3352         (Link): New section.
3353         * modules/bind (Depends-on): Add socketlib.
3354         (Link): New section.
3355         * modules/connect (Depends-on): Add socketlib.
3356         (Link): New section.
3357         * modules/getpeername (Depends-on): Add socketlib.
3358         (Link): New section.
3359         * modules/getsockname (Depends-on): Add socketlib.
3360         (Link): New section.
3361         * modules/getsockopt (Depends-on): Add socketlib.
3362         (Link): New section.
3363         * modules/listen (Depends-on): Add socketlib.
3364         (Link): New section.
3365         * modules/recv (Depends-on): Add socketlib.
3366         (Link): New section.
3367         * modules/recvfrom (Depends-on): Add socketlib.
3368         (Link): New section.
3369         * modules/send (Depends-on): Add socketlib.
3370         (Link): New section.
3371         * modules/sendto (Depends-on): Add socketlib.
3372         (Link): New section.
3373         * modules/setsockopt (Depends-on): Add socketlib.
3374         (Link): New section.
3375         * modules/shutdown (Depends-on): Add socketlib.
3376         (Link): New section.
3377         * modules/socket (Depends-on): Add socketlib.
3378         (Link): New section.
3379
3380 2011-09-18  Bruno Haible  <bruno@clisp.org>
3381
3382         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3383         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3384         than 5 seconds.
3385         * modules/ptsname-tests (configure.ac): Test for alarm.
3386
3387 2011-09-18  Bruno Haible  <bruno@clisp.org>
3388
3389         posix_spawn_file_actions_add*: Fix module dependencies.
3390         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3391         posix_spawn_file_actions_init.
3392         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3393         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3394
3395 2011-09-18  Bruno Haible  <bruno@clisp.org>
3396
3397         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3398         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3399         * tests/test-renameat.c (main): Likewise.
3400
3401 2011-09-18  Bruno Haible  <bruno@clisp.org>
3402
3403         Tests for module 'accept4'.
3404         * modules/accept4-tests: New file.
3405         * tests/test-accept4.c: New file.
3406
3407 2011-09-18  Bruno Haible  <bruno@clisp.org>
3408
3409         Tests for module 'accept'.
3410         * modules/accept-tests: New file.
3411         * tests/test-accept.c: New file.
3412
3413 2011-09-18  Bruno Haible  <bruno@clisp.org>
3414
3415         dup2: Support for MSVC.
3416         * lib/dup2.c: Include msvc-inval.h.
3417         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3418         _get_osfhandle calls.
3419         * modules/dup2 (Depends-on): Add msvc-inval.
3420         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3421
3422         New module 'msvc-inval'.
3423         * lib/msvc-inval.h: New file.
3424         * lib/msvc-inval.c: New file.
3425         * m4/msvc-inval.m4: New file.
3426         * modules/msvc-inval: New file.
3427
3428 2011-09-17  Bruno Haible  <bruno@clisp.org>
3429
3430         Tests for module 'pclose'.
3431         * modules/pclose-tests: New file.
3432
3433         New module 'pclose'.
3434         * lib/stdio.in.h (pclose): New declaration.
3435         * lib/pclose.c: New file.
3436         * m4/pclose.m4: New file.
3437         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3438         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3439         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3440         * modules/pclose: New file.
3441         * modules/popen-tests (Depends-on): Add pclose.
3442         * modules/popen-safer-tests (Depends-on): Likewise.
3443         * doc/posix-functions/pclose.texi: Mention the new module.
3444
3445 2011-09-17  Bruno Haible  <bruno@clisp.org>
3446
3447         popen: Support for MSVC.
3448         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3449         * lib/popen.c (popen): Provide alternate definition for native Windows.
3450         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3452         * modules/popen (Depends-on, configure.ac): Update condition.
3453         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3454         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3455         fixed.
3456
3457 2011-09-17  Bruno Haible  <bruno@clisp.org>
3458
3459         isnanl, isnand, isnanf: Work around MSVC bug.
3460         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3461
3462 2011-09-17  Bruno Haible  <bruno@clisp.org>
3463
3464         sys_socket tests: Fix recent mistake.
3465         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3466
3467 2011-09-17  Bruno Haible  <bruno@clisp.org>
3468
3469         putenv: Support for MSVC.
3470         * modules/putenv (Depends-on): Add environ.
3471         * lib/putenv.c (environ): Disable declaration.
3472         * lib/unistd.in.h: Update comment.
3473
3474 2011-09-17  Bruno Haible  <bruno@clisp.org>
3475
3476         math: Avoid macro redefinition warnings on MSVC.
3477         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3478         Undefine before redefining.
3479
3480 2011-09-17  Bruno Haible  <bruno@clisp.org>
3481
3482         doc: Mention functions which are declared as macros.
3483         * doc/posix-functions/*[fl].texi: Mention that some functions are
3484         defined as macros with arguments only.
3485
3486 2011-09-17  Bruno Haible  <bruno@clisp.org>
3487
3488         Add dependencies to new dirent related modules.
3489         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3490         * modules/fts (Depends-on): Likewise.
3491         * modules/glob (Depends-on): Likewise.
3492         * modules/savedir (Depends-on): Likewise.
3493         * modules/scandir (Depends-on): Likewise.
3494         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3495         * modules/fdopendir (Depends-on): Add opendir.
3496
3497 2011-09-17  Bruno Haible  <bruno@clisp.org>
3498
3499         inet_pton: Support for MSVC on Windows Vista or newer.
3500         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3501         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3502         HAVE_DECL_INET_PTON is defined.
3503         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3504         On platforms with <winsock2.h>, test whether inet_pton is declared in
3505         <ws2tcpip.h>. If so, arrange to replace it.
3506         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3507         REPLACE_INET_PTON.
3508         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3509         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3510         (Depends-on, configure.ac): Update condition.
3511         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3512
3513 2011-09-17  Bruno Haible  <bruno@clisp.org>
3514
3515         inet_ntop: Support for MSVC on Windows Vista or newer.
3516         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3517         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3518         HAVE_DECL_INET_NTOP is defined.
3519         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3520         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3521         <ws2tcpip.h>. If so, arrange to replace it.
3522         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3523         REPLACE_INET_NTOP.
3524         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3525         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3526         (Depends-on, configure.ac): Update condition.
3527         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3528
3529 2011-09-16  Eric Blake  <eblake@redhat.com>
3530
3531         test-fsync: yet another enhancement
3532         * tests/test-fsync.c (main): Also test behavior on read-only text
3533         file.
3534
3535 2011-09-16  Bruno Haible  <bruno@clisp.org>
3536
3537         Enhance fsync, fdatasync tests.
3538         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3539         * tests/test-fdatasync.c (main): Likewise.
3540
3541 2011-09-16  Bruno Haible  <bruno@clisp.org>
3542
3543         Support for MSVC compiler: Ensure mode_t gets defined.
3544         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3545         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3547         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3548         * tests/test-fcntl-h.c: Check that mode_t is defined.
3549         * tests/test-sys_stat.c: Likewise.
3550         * tests/test-sys_types.c: Likewise.
3551         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3552         * doc/posix-headers/sys_stat.texi: Likewise.
3553         * doc/posix-headers/sys_types.texi: Likewise.
3554
3555 2011-09-16  Bruno Haible  <bruno@clisp.org>
3556
3557         sys_stat: Support for MSVC.
3558         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3559         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3560         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3561         MSVC.
3562
3563 2011-09-16  Bruno Haible  <bruno@clisp.org>
3564
3565         Support for MSVC compiler: Ensure off_t gets defined.
3566         * lib/unistd.in.h: Include <sys/types.h>.
3567         * tests/test-fcntl-h.c: Check that off_t is defined.
3568         * tests/test-sys_stat.c: Likewise.
3569         * tests/test-sys_types.c: Likewise.
3570
3571 2011-09-16  Eric Blake  <eblake@redhat.com>
3572
3573         fdatasync: port to Solaris
3574         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3575         * modules/fdatasync (Link): Document it.
3576         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3577
3578         fdatasync: port to MacOS X 10.7
3579         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3580         declared.
3581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3582         * modules/unistd (Makefile.am): Substitute it.
3583         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3584         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3585
3586         fdatasync: minor improvements
3587         * modules/fdatasync (Depends-on): Add condition for fsync.
3588         * lib/fdatasync.c (fdatasync): Add comment.
3589         * tests/test-unistd-c++.cc: Test fdatasync.
3590
3591         unistd: update refs to newer POSIX
3592         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3593         Suggested by Bruno Haible.
3594
3595         fdatasync: new module
3596         * modules/fsync (Description): Document difference to fdatasync.
3597         * modules/fdatasync: New module.
3598         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3599         * lib/fdatasync.c (fdatasync): Likewise.
3600         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3601         defaults.
3602         * modules/unistd (Makefile.am): Set witnesses.
3603         * lib/unistd.in.h (fdatasync): Declare.
3604         * MODULES.html.sh: Document it.
3605         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3606         * modules/fdatasync-tests: New test.
3607         * tests/test-fdatasync.c: Likewise.
3608
3609 2011-09-16  Eric Blake  <eblake@redhat.com>
3610
3611         test-fsync: enhance tests
3612         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3613         * tests/test-fsync.c (main): Enhance test.
3614
3615 2011-09-15  Bruno Haible  <bruno@clisp.org>
3616
3617         Support for MSVC compiler: Ensure ssize_t gets defined.
3618         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3619         * doc/posix-headers/stdio.texi: Likewise.
3620         * modules/stdio (Depends-on): Add ssize_t.
3621         * modules/sys_socket (Depends-on): Likewise.
3622         * modules/sys_types (Depends-on): Likewise.
3623         * modules/sys_uio (Depends-on): Likewise.
3624         * modules/unistd (Depends-on): Likewise.
3625         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3626         * tests/test-sys_types.c: Check that ssize_t is defined.
3627
3628 2011-09-14  Bruno Haible  <bruno@clisp.org>
3629
3630         Avoid using #, the m4 comment starter character, near brackets.
3631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3632         delimiter character in sed expressions.
3633         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3634         Suggested by Eric Blake.
3635
3636         Properly quote AC_CHECK_DECLS' 4th argument.
3637         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3638         argument.
3639         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3640         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3641         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3642         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3643         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3644         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3646         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3647         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3648         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3649         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3650         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3651         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3652         * m4/isinf.m4 (gl_ISINF): Likewise.
3653         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3654         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3655         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3656         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3657         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3658         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3659         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3660         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3661         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3662         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3663         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3664         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3666         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3668         Reported by Eric Blake.
3669
3670         Properly quote AC_CHECK_DECL's 4th argument.
3671         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3672         argument.
3673         * m4/argp.m4 (gl_ARGP): Likewise.
3674         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3675         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3676         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3677         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3678         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3679         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3680         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3681         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3682         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3683         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3684         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3685         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3686         Reported by Eric Blake.
3687
3688 2011-09-14  Eric Blake  <eblake@redhat.com>
3689
3690         opendir: avoid compile warning
3691         * lib/opendir.c (includes): Always include errno.h.
3692         Reported by Tatsuro MATSUOKA.
3693
3694 2011-09-14  Jim Meyering  <meyering@redhat.com>
3695
3696         maint.mk: sc_tight_scope: propagate failure from sub-make
3697         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3698         Reported by Martin von Gagern.
3699
3700 2011-09-13  Bruno Haible  <bruno@clisp.org>
3701
3702         tempname: Support for MSVC.
3703         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3704         MSVC.
3705         * modules/tempname (Depends-on): Add fcntl-h.
3706
3707 2011-09-13  Bruno Haible  <bruno@clisp.org>
3708
3709         sys_time: Support for MSVC.
3710         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3711         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3712         include <winsock2.h>.
3713         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3714         function declarations that collide with POSIX.
3715         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3716         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3717
3718 2011-09-13  Bruno Haible  <bruno@clisp.org>
3719
3720         stat: Support for MSVC.
3721         * lib/stat.c: Include pathmax.h.
3722         * modules/stat (Depends-on): Add pathmax.
3723
3724         pathmax: Support for native Windows.
3725         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3726
3727 2011-09-12  Bruno Haible  <bruno@clisp.org>
3728
3729         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3730         * lib/dirent.in.h (struct dirent): New type.
3731         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3732         DT_WHT): New macros.
3733         (DIR): New type.
3734         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3735         (readdir, rewinddir): New declarations.
3736         * lib/dirent-private.h: New file.
3737         * lib/opendir.c: New file.
3738         * lib/readdir.c: New file.
3739         * lib/rewinddir.c: New file.
3740         * lib/closedir.c: New file.
3741         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3742         * m4/opendir.m4: New file.
3743         * m4/readdir.m4: New file.
3744         * m4/rewinddir.m4: New file.
3745         * m4/closedir.m4: New file.
3746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3747         REPLACE_CLOSEDIR here.
3748         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3749         readdir, rewinddir are declared.
3750         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3751         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3752         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3753         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3754         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3755         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3756         * modules/opendir: New file.
3757         * modules/readdir: New file.
3758         * modules/rewinddir: New file.
3759         * modules/closedir: New file.
3760         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3761         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3762         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3763         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3764         * NEWS: Mention the 'fchdir' change.
3765
3766 2011-09-11  Bruno Haible  <bruno@clisp.org>
3767
3768         asm-underscore.m4: Support for MSVC.
3769         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3770         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3771
3772 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3773
3774         Doc about crypt functions.
3775         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3776         needing for _GNU_SOURCE to get crypt.
3777         * doc/posix-functions/encrypt.texi: Likewise.
3778         * doc/posix-functions/setkey.texi: Likewise.
3779
3780 2011-09-11  Bruno Haible  <bruno@clisp.org>
3781
3782         doc: Update regarding MSVC 9.
3783         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3784         tested".
3785         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3786         * doc/posix-headers/*.texi: Likewise.
3787         * doc/pastposix-functions/*.texi: Likewise.
3788         * doc/glibc-functions/*.texi: Likewise.
3789         * doc/glibc-headers/*.texi: Likewise.
3790
3791 2011-09-11  Bruno Haible  <bruno@clisp.org>
3792
3793         unistd et al.: Don't assume <unistd.h> exists.
3794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3795         does not exist.
3796         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3797         exist. But include <stdlib.h>.
3798         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3799         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3800         symlink() does not exist.
3801         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3802         include <io.h> instead.
3803         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3804         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3805         include <direct.h> instead.
3806         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3807         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3808         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3809         <io.h> instead.
3810         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3811         correctly if the system does not have hard links.
3812         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3813         <direct.h> instead.
3814         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3815         it when looking for function declarations.
3816         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3817         <direct.h> and <io.h> instead.
3818         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3819
3820 2011-09-11  Bruno Haible  <bruno@clisp.org>
3821
3822         strcase: Support for MSVC.
3823         * modules/strcase (Status, Notice): Remove obsoletion mark.
3824         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3825         * doc/posix-functions/strncasecmp.texi: Likewise.
3826
3827         strings: Don't assume <strings.h> exists.
3828         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3829         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3830         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3831         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3832
3833 2011-09-11  Bruno Haible  <bruno@clisp.org>
3834
3835         dirent: Don't assume <dirent.h> exists.
3836         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3837         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3838         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3839         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3840
3841 2011-09-11  Bruno Haible  <bruno@clisp.org>
3842
3843         Fix wint_t on MSVC.
3844         * lib/wchar.in.h (wint_t): On MSVC, override it.
3845         * lib/wctype.in.h (wint_t): Likewise.
3846         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3847         MSVC.
3848         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3849         * doc/posix-headers/wctype.texi: Likewise.
3850
3851 2011-09-11  Bruno Haible  <bruno@clisp.org>
3852
3853         sys_types: Fix typo.
3854         * lib/sys_types.in.h: Fix typo in comment.
3855         Reported by Paul Eggert.
3856
3857         Support for MSVC compiler: Ensure size_t gets defined.
3858         * modules/strings (Depends-on): Add 'sys_types'.
3859         * modules/sys_uio (Depends-on): Likewise.
3860         * lib/sys_uio.in.h: Update comment.
3861
3862         C++ tests for module 'sys_types'.
3863         * modules/sys_types-c++-tests: New file.
3864         * tests/test-sys_types-c++.cc: New file.
3865
3866         Tests for module 'sys_types'.
3867         * modules/sys_types-tests: New file.
3868         * tests/test-sys_types.c: New file.
3869
3870         New module 'sys_types'.
3871         * lib/sys_types.in.h: New file.
3872         * m4/sys_types_h.m4: New file.
3873         * modules/sys_types: New file.
3874         * doc/posix-headers/sys_types.texi: Mention the new module and the
3875         size_t problem on MSVC 9.
3876
3877 2011-09-11  Bruno Haible  <bruno@clisp.org>
3878
3879         Support for MSVC compiler: Avoid division by a literal 0.
3880         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3882         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3883         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3884         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3885         * tests/infinity.h: New file.
3886         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3887         on MSVC.
3888         * tests/test-ceilf1.c: Include infinity.h.
3889         (main): Use Infinityf.
3890         * tests/test-ceil1.c: Include infinity.h.
3891         (main): Use Infinityd.
3892         * tests/test-ceill.c: Include infinity.h.
3893         (main): Use Infinityl.
3894         * tests/test-dprintf-posix.c: Include infinity.h.
3895         (test_function): Use Infinityd.
3896         * tests/test-floorf1.c: Include infinity.h.
3897         (main): Use Infinityf.
3898         * tests/test-floor1.c: Include infinity.h.
3899         (main): Use Infinityd.
3900         * tests/test-floorl.c: Include infinity.h.
3901         (main): Use Infinityl.
3902         * tests/test-fprintf-posix.c: Include infinity.h.
3903         (test_function): Use Infinityd.
3904         * tests/test-frexp.c: Include infinity.h.
3905         (main): Use Infinityd.
3906         * tests/test-frexpl.c: Include infinity.h.
3907         (main): Use Infinityl.
3908         * tests/test-isfinite.c: Include infinity.h.
3909         (test_isfinitef): Use Infinityf.
3910         (test_isfinited): Use Infinityd.
3911         (test_isfinitel): Use Infinityl.
3912         * tests/test-isinf.c: Include infinity.h.
3913         (test_isinff): Use Infinityf.
3914         (test_isinfd): Use Infinityd.
3915         (test_isinfl): Use Infinityl.
3916         * tests/test-isnan.c: Include infinity.h.
3917         (test_float): Use Infinityf.
3918         (test_double): Use Infinityd.
3919         (test_long_double): Use Infinityl.
3920         * tests/test-isnanf.h: Include infinity.h.
3921         (main): Use Infinityf.
3922         * tests/test-isnand.h: Include infinity.h.
3923         (main): Use Infinityd.
3924         * tests/test-isnanl.h: Include infinity.h.
3925         (main): Use Infinityl.
3926         * tests/test-ldexpl.c: Include infinity.h.
3927         (main): Use Infinityl.
3928         * tests/test-printf-posix.h: Include infinity.h.
3929         (test_function): Use Infinityd.
3930         * tests/test-roundf1.c: Include infinity.h.
3931         (main): Use Infinityf.
3932         * tests/test-round1.c: Include infinity.h.
3933         (main): Use Infinityd.
3934         * tests/test-roundl.c: Include infinity.h.
3935         (main): Use Infinityl.
3936         * tests/test-signbit.c: Include infinity.h.
3937         (test_signbitf): Use Infinityf.
3938         (test_signbitd): Use Infinityd.
3939         (test_signbitl): Use Infinityl.
3940         * tests/test-snprintf-posix.h: Include infinity.h.
3941         (test_function): Use Infinityd, Infinityl.
3942         * tests/test-sprintf-posix.h: Include infinity.h.
3943         (test_function): Use Infinityd, Infinityl.
3944         * tests/test-truncf1.c: Include infinity.h.
3945         (main): Use Infinityf.
3946         * tests/test-trunc1.c: Include infinity.h.
3947         (main): Use Infinityd.
3948         * tests/test-truncl.c: Include infinity.h.
3949         (main): Use Infinityl.
3950         * tests/test-vasnprintf-posix.c: Include infinity.h.
3951         (test_function): Use Infinityd, Infinityl.
3952         * tests/test-vasprintf-posix.c: Include infinity.h.
3953         (test_function): Use Infinityd, Infinityl.
3954         * modules/ceilf-tests (Files): Add tests/infinity.h.
3955         * modules/ceil-tests (Files): Likewise.
3956         * modules/ceill-tests (Files): Likewise.
3957         * modules/dprintf-posix-tests (Files): Likewise.
3958         * modules/floorf-tests (Files): Likewise.
3959         * modules/floor-tests (Files): Likewise.
3960         * modules/floorl-tests (Files): Likewise.
3961         * modules/fprintf-posix-tests (Files): Likewise.
3962         * modules/frexp-tests (Files): Likewise.
3963         * modules/frexp-nolibm-tests (Files): Likewise.
3964         * modules/frexpl-tests (Files): Likewise.
3965         * modules/frexpl-nolibm-tests (Files): Likewise.
3966         * modules/isfinite-tests (Files): Likewise.
3967         * modules/isinf-tests (Files): Likewise.
3968         * modules/isnan-tests (Files): Likewise.
3969         * modules/isnanf-tests (Files): Likewise.
3970         * modules/isnanf-nolibm-tests (Files): Likewise.
3971         * modules/isnand-tests (Files): Likewise.
3972         * modules/isnand-nolibm-tests (Files): Likewise.
3973         * modules/isnanl-tests (Files): Likewise.
3974         * modules/isnanl-nolibm-tests (Files): Likewise.
3975         * modules/ldexpl-tests (Files): Likewise.
3976         * modules/printf-posix-tests (Files): Likewise.
3977         * modules/roundf-tests (Files): Likewise.
3978         * modules/round-tests (Files): Likewise.
3979         * modules/roundl-tests (Files): Likewise.
3980         * modules/signbit-tests (Files): Likewise.
3981         * modules/snprintf-posix-tests (Files): Likewise.
3982         * modules/sprintf-posix-tests (Files): Likewise.
3983         * modules/truncf-tests (Files): Likewise.
3984         * modules/trunc-tests (Files): Likewise.
3985         * modules/truncl-tests (Files): Likewise.
3986         * modules/vasnprintf-posix-tests (Files): Likewise.
3987         * modules/vasprintf-posix-tests (Files): Likewise.
3988         * modules/vdprintf-posix-tests (Files): Likewise.
3989         * modules/vfprintf-posix-tests (Files): Likewise.
3990         * modules/vprintf-posix-tests (Files): Likewise.
3991         * modules/vsnprintf-posix-tests (Files): Likewise.
3992         * modules/vsprintf-posix-tests (Files): Likewise.
3993         * modules/xprintf-posix-tests (Files): Likewise.
3994
3995 2011-09-11  Bruno Haible  <bruno@clisp.org>
3996
3997         Ensure pid_t gets defined.
3998         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3999         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4000         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4001         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4002         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4003         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4004         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4005         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4006         * tests/test-fcntl-h.c: Check that pid_t is defined.
4007         * tests/test-sched.c: Likewise.
4008         * tests/test-termios.c: Likewise.
4009         * tests/test-time.c: Likewise.
4010         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4011         * doc/posix-headers/signal.texi: Likewise.
4012         * doc/posix-headers/sys_types.texi: Likewise.
4013         * doc/posix-headers/time.texi: Likewise.
4014
4015 2011-09-11  Bruno Haible  <bruno@clisp.org>
4016
4017         acl: Fix compilation on Solaris 10 (older version).
4018         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4019         of ACE_EVERYONE.
4020         * lib/set-mode-acl.c (qset_acl): Likewise.
4021         Reported by Christian Jullien <eligis@orange.fr>.
4022
4023 2011-09-10  Bruno Haible  <bruno@clisp.org>
4024
4025         iconv, unsetenv: Add support for MSVC compiler.
4026         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4027         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4028
4029 2011-09-10  Bruno Haible  <bruno@clisp.org>
4030
4031         *printf: Add support for MSVC compiler.
4032         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4033         handles the exception caused by the %n directive. When cross-compiling,
4034         guess no on native Windows.
4035         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4036         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4037         emulate it through vsnprintf.
4038         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4039         * doc/posix-functions/dprintf.texi: Update documentation regarding
4040         MSVC 9.
4041         * doc/posix-functions/fprintf.texi: Likewise.
4042         * doc/posix-functions/printf.texi: Likewise.
4043         * doc/posix-functions/snprintf.texi: Likewise.
4044         * doc/posix-functions/sprintf.texi: Likewise.
4045         * doc/posix-functions/swprintf.texi: Likewise.
4046         * doc/posix-functions/vdprintf.texi: Likewise.
4047         * doc/posix-functions/vfprintf.texi: Likewise.
4048         * doc/posix-functions/vprintf.texi: Likewise.
4049         * doc/posix-functions/vsnprintf.texi: Likewise.
4050         * doc/posix-functions/vsprintf.texi: Likewise.
4051         * doc/glibc-functions/asprintf.texi: Likewise.
4052         * doc/glibc-functions/obstack_printf.texi: Likewise.
4053         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4054         * doc/glibc-functions/vasprintf.texi: Likewise.
4055
4056 2011-09-10  Bruno Haible  <bruno@clisp.org>
4057
4058         nocrash: Add support for native Windows.
4059         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4060
4061 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4062             Bruno Haible  <bruno@clisp.org>
4063
4064         absolute-header, include-next: Add support for MSVC compiler.
4065         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4066         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4067         directory separator in #line directives.
4068         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4069         recognize also backslash as directory separator in #line directives.
4070
4071 2011-09-08  Jim Meyering  <meyering@redhat.com>
4072
4073         maint.mk: mark the post-release commit log with "maint: " prefix
4074         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4075         one-line commit-log summary.
4076
4077 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4078             Bruno Haible  <bruno@clisp.org>
4079
4080         Doc about crypt functions.
4081         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4082         systems.
4083         * doc/posix-functions/encrypt.texi: Likewise.
4084         * doc/posix-functions/setkey.texi: Likewise.
4085
4086 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4087
4088         * lib/gc.h: Fix copyright header.
4089
4090 2011-09-07  Bruno Haible  <bruno@clisp.org>
4091
4092         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4093         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4094         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4095
4096 2011-09-07  Bruno Haible  <bruno@clisp.org>
4097
4098         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4099         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4100         * lib/freopen.c: Likewise.
4101         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4102         * lib/lstat.c: Likewise.
4103         * lib/stat.c: Likewise.
4104         * lib/open.c: Use different syntax for include of <fcntl.h>.
4105         * lib/openat.c: Include fcntl.h again, explicitly.
4106
4107 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4108
4109         parse-datetime: document the newly accepted format
4110         * doc/parse-datetime.texi (Combined date and time of day items):
4111         New section.
4112
4113 2011-09-06  Bruno Haible  <bruno@clisp.org>
4114
4115         acl: Fix a test failure on newer Solaris 10 with ZFS.
4116         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4117         ENOSYS as no ACL.
4118         Reported by Jim Meyering.
4119
4120 2011-09-06  Bruno Haible  <bruno@clisp.org>
4121
4122         acl: Update for AIX >= 5.3 with NFS.
4123         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4124         ENOSYS as no ACL.
4125
4126         acl: Fix a test failure on AIX >= 5.3 with NFS.
4127         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4128         as no ACL.
4129
4130 2011-09-06  Bruno Haible  <bruno@clisp.org>
4131
4132         acl: Fix a test failure on IRIX 6.5 with NFS.
4133         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4134         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4135         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4136         * lib/copy-acl.c (qcopy_acl): Likewise.
4137
4138 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4139
4140         openat: port to AIX 7.1 with large files
4141         AIX 7.1 does a "#define openat open64at" if large files are in use,
4142         so we can't simply #undef openat.  Use the orig_openat trick (similar
4143         to orig_open in lib/open.c) to work around the problem.  Problem
4144         reported by Kevin Brott for GNU tar, in the thread containing
4145         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4146         * lib/openat.c (__need_system_fcntl_h): Define first.
4147         Include <fcntl.h> and <sys/types.h> before undefining.
4148         (orig_openat) [HAVE_OPENAT]: New inline function.
4149         (openat) [HAVE_OPENAT]: Do not undef.
4150         (rpl_openat): Use orig_openat, not openat.
4151
4152 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4153             Bruno Haible  <bruno@clisp.org>
4154
4155         acl: Avoid errors on NonStop Kernel.
4156         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4157         ENOTSUP errors.
4158
4159 2011-09-05  Bruno Haible  <bruno@clisp.org>
4160
4161         acl: Clean up Solaris code.
4162         * lib/acl-internal.h: Remove no-op #if.
4163         * lib/file-has-acl.c: Likewise.
4164         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4165         * lib/copy-acl.c (qcopy_acl): Likewise.
4166
4167 2011-09-05  Bruno Haible  <bruno@clisp.org>
4168
4169         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4170         binaries built on the original Solaris 10.
4171         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4172         trivial.
4173
4174 2011-09-05  Bruno Haible  <bruno@clisp.org>
4175
4176         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4177         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4178         10.
4179         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4180         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4181         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4182         instead of acl_get, facl_get, acl_set, facl_set.
4183
4184 2011-09-05  Bruno Haible  <bruno@clisp.org>
4185
4186         copy-file: Try unit tests on more file systems.
4187         * tests/test-copy-file-1.sh: New file.
4188         * tests/test-copy-file-2.sh: New file.
4189         * modules/copy-file-tests (Files): Add them.
4190         (Makefile.am): Add them to TESTS.
4191
4192         acl: Try unit tests on more file systems.
4193         * tests/test-file-has-acl-1.sh: New file.
4194         * tests/test-file-has-acl-2.sh: New file.
4195         * tests/test-set-mode-acl-1.sh: New file.
4196         * tests/test-set-mode-acl-2.sh: New file.
4197         * tests/test-copy-acl-1.sh: New file.
4198         * tests/test-copy-acl-2.sh: New file.
4199         * modules/acl-tests (Files): Add them.
4200         (Makefile.am): Add them to TESTS.
4201
4202 2011-09-04  Bruno Haible  <bruno@clisp.org>
4203
4204         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4205         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4206         10.
4207         (OLD_ALLOW, OLD_DENY): New macros.
4208         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4209         ACE_ACCESS_ALLOWED_ACE_TYPE.
4210         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4211         ACE_ACCESS_DENIED_ACE_TYPE.
4212         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4213         (NEW_ACE_EXECUTE): Fix value.
4214         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4215         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4216         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4217         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4218         NEW_ACE_SYNCHRONIZE): New macros.
4219         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4220         instead of acl_fromtext, acl_set, facl_set.
4221         Fixes a coreutils/tests/cp/perm failure.
4222
4223 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4224
4225         openat: test for fstatat (..., 0) bug
4226         Further testing with tar suggests that fstatat (..., 0)
4227         does not work in general, on AIX 7.1; see
4228         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4229         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4230         replacement fstatat (which is what older AIX releases were using
4231         anyway).
4232         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4233         use is now changed to orig_fstatat.  This was probably the right
4234         thing to do anyway.
4235         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4236         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4237         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4238         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4239         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4240         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4241         if the bug is found.
4242
4243         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4244         This tests for another fstatat bug on AIX 7.1:
4245         fstatat (AT_FDCWD, ..., 0) does not work.  See
4246         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4247         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4248         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4249         (rpl_fstatat): Adjust so that it works around either (or both)
4250         bugs if present.
4251         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4252
4253 2011-09-03  Karl Berry  <karl@gnu.org>
4254
4255         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4256         in index entries.
4257
4258 2011-09-02  Bruno Haible  <bruno@clisp.org>
4259
4260         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4261         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4262         values of AR, ARFLAGS, RANLIB.
4263         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4264
4265 2011-09-02  Bruno Haible  <bruno@clisp.org>
4266
4267         Find 'ar' program that fits with --host argument.
4268         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4269
4270 2011-09-02  Bruno Haible  <bruno@clisp.org>
4271
4272         tests: init.sh: Support any non-GNU diff.
4273         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4274         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4275         Solaris 8.
4276
4277 2011-09-02  Bruno Haible  <bruno@clisp.org>
4278
4279         tests: init.sh: work also with any non-GNU diff that supports -u
4280         * tests/init.sh: Relax check for diff -u support.
4281         Rather than checking for GNU diff via --version, simply check
4282         for support for -u itself.  Useful at least on OpenBSD 4.9,
4283         AIX 7.1, IRIX 6.5, and Solaris 10.
4284
4285 2011-09-01  Bruno Haible  <bruno@clisp.org>
4286
4287         strtoimax, strtoumax: Document problem on HP-UX 11.
4288         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4289         * doc/posix-functions/strtoumax.texi: Likewise.
4290
4291 2011-09-01  Bruno Haible  <bruno@clisp.org>
4292
4293         strtoumax: Avoid link error on OSF/1 with DTK cc.
4294         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4295         defined as a function.
4296         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4297         strtoumax is defined, not whether it is declared.
4298
4299 2011-09-01  Bruno Haible  <bruno@clisp.org>
4300
4301         strtoimax: Avoid link error on OSF/1 with DTK cc.
4302         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4303         defined as a function.
4304         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4305         strtoimax is defined, not whether it is declared.
4306
4307 2011-09-01  Bruno Haible  <bruno@clisp.org>
4308
4309         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4310         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4311         as a function.
4312         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4313         whether it is declared.
4314
4315 2011-09-01  Bruno Haible  <bruno@clisp.org>
4316
4317         imaxabs: Avoid link error on OSF/1 with DTK cc.
4318         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4319         as a function.
4320         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4321         whether it is declared.
4322
4323 2011-09-01  Bruno Haible  <bruno@clisp.org>
4324
4325         Tests for module 'strtoumax'.
4326         * modules/strtoumax-tests: New file.
4327         * tests/test-strtoumax.c: New file.
4328
4329         Tests for module 'strtoimax'.
4330         * modules/strtoimax-tests: New file.
4331         * tests/test-strtoimax.c: New file.
4332
4333         Tests for module 'imaxdiv'.
4334         * modules/imaxdiv-tests: New file.
4335         * tests/test-imaxdiv.c: New file.
4336
4337         Tests for module 'imaxabs'.
4338         * modules/imaxabs-tests: New file.
4339         * tests/test-imaxabs.c: New file.
4340
4341 2011-09-01  Bruno Haible  <bruno@clisp.org>
4342
4343         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4344         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4345         pthread_create.
4346
4347 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4348
4349         openat: work around AIX 7.1 fstatat issue
4350         This should fix the problem that was not properly fixed
4351         in the previous change, dated 2011-08-30.
4352         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4353         __need_system_stat_h defined.
4354         (orig_fstatat) [HAVE_FSTATAT]: New function.
4355         (rpl_fstatat): Go back to the old way of doing things,
4356         except call orig_fstatat instead of fstatat.
4357         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4358         Remove unnecessary check whether fstatat fills in st_size etc.
4359
4360 2011-09-01  Bruno Haible  <bruno@clisp.org>
4361
4362         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4363         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4364         just include the system's header.
4365
4366 2011-08-31  Jim Meyering  <meyering@redhat.com>
4367
4368         tests: avoid spurious assertion failure in test-float.c on ppc64
4369         * tests/test-float.c (test_long_double): Comment out an assertion,
4370         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4371         with gcc-4.4.4.
4372
4373         maint: indent with spaces, not TABs
4374         I need to get in the habit of running gnulib's "make check".
4375         Both of these would have been caught.
4376         * m4/largefile.m4: Indent with spaces, not TABs.
4377         * lib/parse-datetime.y (iso_8601_time): Likewise.
4378         Spotted by Pádraig Brady.
4379
4380         test-parse-datetime.c: accommodate a relatively strict gcc warning
4381         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4382         to avoid a warning from gcc's -Werror=missing-declarations.
4383         Insert a few spaces-before-funcall-parenthesis.
4384
4385 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4386
4387         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4388         The parser now accepts ISO 8601 date-time strings with "T" as the
4389         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4390         with a space between the date and time strings.  Now it also parses
4391         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4392         variants like "2004-02-29T16:21:42.333-07:00"
4393         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4394         of day representation using the 'T' separator character.
4395         * doc/parse-datetime.texi (General date syntax): replace use of
4396         deprecated --iso-8601 option with --rfc-3339 in example of date
4397         command output formats that can be parsed.
4398         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4399         lib/parse-datetime.y.
4400         (gmt_offset): New function.
4401         (main): Add additional test cases to validate ISO8601 extended
4402         date and time of day parsing.
4403
4404 2011-08-31  Bruno Haible  <bruno@clisp.org>
4405
4406         freopen: Documentation.
4407         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4408         name.
4409         Reported by Claudio Bley <claudio.bley@gmail.com>.
4410
4411 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4412
4413         freopen: Don't crash if the filename argument is NULL.
4414         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4415         NULL.
4416
4417 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4418
4419         openat: work around AIX 7.1 fstatat bug
4420         Problem reported by Kevin Brott for GNU tar, in the thread containing
4421         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4422         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4423         FSTATAT_ST_SIZE_ETC_BROKEN.
4424         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4425         rpl_fstatat.
4426         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4427         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4428         AC_CHECK_FUNCS_ONCE for fstatat.
4429         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4430         fchmodat, mkdirat, openat and unlinkat.
4431
4432 2011-08-30  Bruno Haible  <bruno@clisp.org>
4433
4434         Avoid endless recursions if config.h includes some header files.
4435         * lib/fopen.c (__need_FILE): Define already before including config.h.
4436         * lib/freopen.c (__need_FILE): Likewise.
4437         * lib/open.c (__need_system_fcntl_h): Likewise.
4438         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4439         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4440         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4441
4442 2011-08-25  Karl Berry  <karl@gnu.org>
4443
4444         * config/srclist.txt (ylwrap): new try.
4445         * build-aux/ylwrap: new file.
4446
4447 2011-08-23  Bruno Haible  <bruno@clisp.org>
4448
4449         tmpdir: Use a good default directory on native Windows.
4450         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4451         (P_tmpdir): Default to _P_tmpdir on native Windows.
4452         (path_search): On native Windows, try the value returned by GetTempPath
4453         before trying P_tmpdir.
4454         * modules/tmpdir (Depends-on): Add pathmax.
4455         Suggested by John Darrington <john@darrington.wattle.id.au>.
4456
4457 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4458
4459         doc: fix typo in README-release
4460         * top/README-release: Capitalize first word of a sentence.
4461
4462 2011-08-19  Jim Meyering  <meyering@redhat.com>
4463
4464         fts: do not exhaust memory when processing million-entry directories
4465         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4466         directory would require about 256*N bytes of memory.  Thus, it was
4467         easy to construct a directory too large to be processed by any of
4468         those tools.  With this change, fts' maximum memory utilization is
4469         now limited to around 30MB.
4470         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4471         (fts_read): When we've processed the final entry (i.e., when
4472         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4473         using the parent entry to read any remaining entries.  Dispatch
4474         depending on what fts_build returns:
4475         - NULL+stop, aka failure: stop
4476         - NULL otherwise: move up in the dir hierarchy
4477         - non-NULL: handle this new entry
4478         (fts_build): Declare and use new local, continue_readdir.
4479         Prepare to be called from fts_read, when the entries
4480         from a partially-read directory have just been exhausted.
4481         In that case, we'll skip the opendir and instead use the parent's
4482         fts_dirp and derive dir_fd from that.
4483         Finally, in the readdir loop, if we read max_entries entries,
4484         exit the loop ensuring *not* to call closedir.  This is required
4485         so that fts_dirp can be reused on a subsequent call.
4486         Prompted by Ben England's report of memory exhaustion in find
4487         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4488
4489         maint: fts: move decl of `dp' down into while loop; split a long line
4490         * lib/fts.c (fts_build): No semantic change.
4491
4492         fts: add/use new struct member, fts_dirp
4493         We are about to use this to manage any directory with
4494         too many entries to read all of them into memory at once.
4495         To do that, we'll need to save the DIR* pointer in each
4496         affected FTSENT struct.
4497         * lib/fts_.h: Include <dirent.h>.
4498         (struct FTSENT) [fts_dirp]: New member.
4499         * lib/fts.c (closedir_and_clear): Define.
4500         Use it in place of closedir so that we are sure to
4501         clear the new fts_dirp member when done with it.
4502         (fts_alloc): Initialize the new member.
4503         (fts_lfree): Free, if needed.
4504
4505         maint: fts: give __opendir2 a new parameter and rename
4506         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4507         than surreptitiously using sole caller's "dir_fd".
4508         (fts_opendir): Rename from __opendir2.
4509
4510         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4511         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4512
4513         maint: fts.c: correct off-by-one indentation
4514         * lib/fts.c (fts_build): Correct indentation, change style
4515         of a couple of block comments, and bracing style.
4516
4517         maint: fts.c: move __opendir2 #define "up" out of function body
4518         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4519
4520         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4521         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4522         out for a long time and besides was useful only on BSD systems.
4523
4524 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4525
4526         regex: port to Stratus OpenVOS
4527         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4528         define to empty, rather than attempting nonportable optimizations.
4529         Problem reported by Paul Green in:
4530         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4531         and fix suggested by Eric Blake in:
4532         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4533
4534 2011-08-17  Eric Blake  <eblake@redhat.com>
4535
4536         getcwd: fix test failures on mingw
4537         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4538         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4539         test if long directory cannot be created, and allow mingw errno.
4540
4541         getcwd-lgpl: fix m4 to match relaxed test for BSD
4542         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4543         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4544         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4545         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4546         signature problem.
4547
4548         getcwd: fix compilation on mingw64
4549         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4550         getcwd.
4551         Reported by Marc-André Lureau.
4552
4553         pipe2: silence compiler warning
4554         * lib/pipe2.c (pipe2): Hide label if it is not used.
4555
4556 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4557
4558         relocatable-prog: fix link error
4559         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4560         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4561         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4562         into modules/relocatable-lib without noticing that
4563         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4564         also needs to build relocatable.c.
4565
4566 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4567
4568         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4570         shell code: it contained a 'break' that was not in a loop.
4571         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4572         via a shell-language loop; this may have been true in old Autoconf
4573         versions, but it's not true in Autoconf 2.68.  I found this bug
4574         when testing coreutils git on Solaris 8, whose shell complains
4575         about the syntax error.
4576
4577 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4578
4579         * lib/base64.c: Fix comment to reference RFC 4648.
4580         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4581         <gvtulder@gmail.com>.
4582
4583 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4584
4585         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4586
4587         po/Makefile.in.in: fix make -q problem
4588         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4589         rule, since there's no file named 'check-macro-version' and its
4590         use as a file breaks make -q.
4591         (all): Don't depend on check-macro-version.
4592         (CHECK_MACRO_VERSION): New macro.
4593         (stamp-po): Use it.
4594
4595         configmake: fix make -q problem
4596         * modules/configmake (configmake.h): Update configmake.h's time stamp
4597         even if the file does not change.  Otherwise, 'make -q' fails.
4598         Problem reported by Simon Josefsson in
4599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4600
4601 2011-08-11  Jim Meyering  <meyering@redhat.com>
4602
4603         git-version-gen: correct the advice in a comment
4604         * build-aux/git-version-gen: Correct comment.
4605         Don't recommend to list .tarball-version in .gitignore.
4606
4607 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4608
4609         base64: fix off-by-one buffer size bug
4610         Problem and (trivial) fix reported by Gijs van Tulder in
4611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4612         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4613         * tests/test-base64.c (main): Catch the bug.
4614
4615 2011-08-10  Eric Blake  <eblake@redhat.com>
4616
4617         closein: correct comments
4618         * lib/closein.c (close_stdin): Improve comments.
4619
4620 2011-08-09  Bruno Haible  <bruno@clisp.org>
4621
4622         More tests for 'fseeko'.
4623         * tests/test-fseeko3.c: New file, from Eric Blake.
4624         * tests/test-fseeko3.sh: New file.
4625         * modules/fseeko-tests (Files): Add them.
4626         (TESTS): Add test-fseeko3.sh.
4627         (check_PROGRAMS): Add test-fseeko3.
4628
4629 2011-08-09  Eric Blake  <eblake@redhat.com>
4630
4631         fseeko: remove unneeded hack
4632         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4633
4634         fseeko: fix bug on glibc
4635         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4636         Reported by John W. Eaton.
4637
4638 2011-08-08  Bruno Haible  <bruno@clisp.org>
4639
4640         unictype/base: Fix interoperability with preinstalled libunistring.
4641         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4642         Reported by Simon Josefsson.
4643
4644 2011-08-08  Bruno Haible  <bruno@clisp.org>
4645
4646         iswblank: Detect declaration correctly.
4647         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4648         AC_CHECK_DECLS invocation.
4649
4650 2011-08-08  Bruno Haible  <bruno@clisp.org>
4651
4652         tcgetsid: Detect declaration correctly.
4653         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4654         AC_CHECK_DECLS invocation.
4655         Reported by Simon Josefsson.
4656
4657 2011-08-08  Eric Blake  <eblake@redhat.com>
4658
4659         largefile: fix typo that regressed large file support
4660         * modules/largefile (configure.ac-early): Fix section name.
4661
4662 2011-08-06  Karl Berry  <karl@gnu.org>
4663
4664         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4665         a separate module.
4666
4667 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4668
4669         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4670         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4671         get prototype for free.
4672
4673 2011-08-04  Bruno Haible  <bruno@clisp.org>
4674
4675         Tests for module 'pathmax'.
4676         * modules/pathmax-tests: New file.
4677         * tests/test-pathmax.c: New file.
4678
4679         canonicalize-lgpl: Support larger filenames on the Hurd.
4680         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4681         Reported by Paul Eggert.
4682
4683         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4684         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4685         * lib/chdir-long.h: Include pathmax.h.
4686         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4687         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4688         (PATH_MAX): Remove code that is done by pathmax.h.
4689         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4690         * lib/tmpfile.c: Add a comment.
4691         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4692         * modules/chdir-long (Depends-on): Add pathmax.
4693         * modules/getcwd (Depends-on): Add pathmax.
4694         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4695         is not defined.
4696         * doc/posix-headers/limits.texi: Mention the pathmax module.
4697         * NEWS: Mention the change.
4698
4699 2011-08-02  Bruno Haible  <bruno@clisp.org>
4700
4701         pthread_sigmask: Actually use results of gl_THREADLIB.
4702         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4703         gl_THREADLIB, not gl_[]THREADLIB.
4704         Reported by Eric Blake.
4705
4706 2011-08-02  Jim Meyering  <meyering@redhat.com>
4707
4708         maint.mk: relax the default _gl_TS_function_match regexp
4709         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4710         space between function name and "(" in an "extern" declaration.
4711         That would fail to match a decl with no space there: extern void foo();
4712
4713 2011-07-31  Iain Nicol  <iain@thenicols.net>
4714
4715         git-version-gen: document that EXTRA_DIST must include .version
4716         * build-aux/git-version-gen: In the how-to-use comment, document
4717         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4718         will fail when run from an unpacked distribution tarball.
4719
4720 2011-08-01  Bruno Haible  <bruno@clisp.org>
4721
4722         wctype-h: Fix last change.
4723         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4724         REPLACE_TOWLOWER to 0.
4725         Reported by Sam Steingold <sds@gnu.org>.
4726
4727 2011-07-31  Bruno Haible  <bruno@clisp.org>
4728
4729         frexpl: Update autoconf test.
4730         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4731         according to changes of 2011-06-20.
4732
4733 2011-07-31  Bruno Haible  <bruno@clisp.org>
4734
4735         sys_utsname: Add support for Minix.
4736         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4737         <sys/utsname.h>.
4738         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4739         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4740
4741 2011-07-31  Bruno Haible  <bruno@clisp.org>
4742
4743         strings: Add support for Minix.
4744         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4745         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4746         * doc/posix-headers/strings.texi: Document the Minix problem.
4747
4748 2011-07-31  Bruno Haible  <bruno@clisp.org>
4749
4750         wctype-h: Add support for Minix.
4751         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4752         REPLACE_TOWLOWER.
4753         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4754         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4755         REPLACE_ISWCNTRL.
4756
4757 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4758
4759         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4760         This is a performance improvement for 64-bit hosts: it causes the
4761         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4762
4763 2011-07-31  Bruno Haible  <bruno@clisp.org>
4764
4765         stdioext: Add support for Minix.
4766         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4767         * lib/fpurge.c (fpurge): Likewise.
4768         * lib/freadahead.c (freadahead): Likewise.
4769         * lib/freadable.c (freadable): Likewise.
4770         * lib/freading.c (freading): Likewise.
4771         * lib/freadptr.c (freadptr): Likewise.
4772         * lib/freadseek.c (freadptrinc): Likewise.
4773         * lib/fseeko.c (rpl_fseeko): Likewise.
4774         * lib/fseterr.c (fseterr): Likewise.
4775         * lib/fwritable.c (fwritable): Likewise.
4776         * lib/fwriting.c (fwriting): Likewise.
4777         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4778         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4779
4780 2011-07-31  Bruno Haible  <bruno@clisp.org>
4781
4782         errno: Port to Minix.
4783         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4784         ECONNABORTED are defined.
4785         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4786         GNULIB_defined_ECONNABORTED): New macros.
4787         * lib/strerror-override.h (strerror_override): Test also
4788         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4789         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4790         ECONNABORTED.
4791         * doc/posix-headers/errno.texi: Mention the Minix problem.
4792
4793 2011-07-31  Bruno Haible  <bruno@clisp.org>
4794
4795         Work around declaration collisions on Minix.
4796         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4797         defined, set REPLACE_MBSINIT.
4798         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4799         defined, set REPLACE_MBRTOWC.
4800         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4801         set REPLACE_MBRLEN.
4802         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4803         defined, set REPLACE_MBSRTOWCS.
4804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4805         defined, set REPLACE_WCRTOMB.
4806         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4807         defined, set REPLACE_WCSRTOMBS.
4808
4809 2011-07-31  Bruno Haible  <bruno@clisp.org>
4810
4811         Add support for Minix with ACK compiler.
4812         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4813         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4814         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4815
4816 2011-07-31  Bruno Haible  <bruno@clisp.org>
4817
4818         Documentation about Minix.
4819         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4820         * doc/glibc-headers/*.texi: Likewise.
4821         * doc/posix-functions/*.texi: Likewise.
4822         * doc/glibc-functions/*.texi: Likewise.
4823
4824 2011-07-31  Bruno Haible  <bruno@clisp.org>
4825
4826         snippet/warn-on-use: Fix indentation.
4827         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4828
4829 2011-07-25  Jim Meyering  <meyering@redhat.com>
4830
4831         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4832         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4833         commands.
4834
4835 2011-07-27  Jim Meyering  <meyering@redhat.com>
4836
4837         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4838         * top/maint.mk (gl_extract_significant_defines_): Now that
4839         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4840         gnulib/lib/signal.in.h, and now that we recommend to
4841         define-if-undefined those two symbols in application code,
4842         we must filter them out of the "significant" list.
4843         This avoids a "make syntax-check" failure in coreutils.
4844
4845 2011-07-26  Eric Blake  <eblake@redhat.com>
4846
4847         warnings: add comments about previous patch
4848         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4849         * m4/include_next.m4: Likewise.
4850         * m4/warn-on-use.m4: Likewise.
4851         * m4/warnings.m4: Likewise, and simplify use.
4852         Suggested by Stefano Lattarini.
4853
4854         include-next, warnings: support older autoconf
4855         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4856         AS_VAR_PUSHDEF in a way that works with older autoconf.
4857         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4858         Reported by Daniel P. Berrange.
4859
4860 2011-07-25  Bruno Haible  <bruno@clisp.org>
4861
4862         fseek, ftell: Fix doc.
4863         * doc/posix-functions/fseek.texi: Reword statement about
4864         AC_SYS_LARGEFILE.
4865         * doc/posix-functions/ftell.texi: Likewise.
4866
4867 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4868             Bruno Haible  <bruno@clisp.org>
4869
4870         Add dependencies to the 'largefile' module.
4871         * modules/fopen (Depends-on): Add 'largefile'.
4872         * modules/freopen (Depends-on): Likewise.
4873         * modules/fseeko (Depends-on): Likewise.
4874         * modules/ftello (Depends-on): Likewise.
4875         * modules/glob (Depends-on): Likewise.
4876         * modules/lseek (Depends-on): Likewise.
4877         * modules/lstat (Depends-on): Likewise.
4878         * modules/mkostemp (Depends-on): Likewise.
4879         * modules/mkostemps (Depends-on): Likewise.
4880         * modules/mkstemp (Depends-on): Likewise.
4881         * modules/mkstemps (Depends-on): Likewise.
4882         * modules/open (Depends-on): Likewise.
4883         * modules/openat (Depends-on): Likewise.
4884         * modules/pread (Depends-on): Likewise.
4885         * modules/pwrite (Depends-on): Likewise.
4886         * modules/scandir (Depends-on): Likewise.
4887         * modules/stat (Depends-on): Likewise.
4888         * modules/tmpfile (Depends-on): Likewise.
4889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4890         since the containing module now depends on the largefile module.
4891         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4892         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4893         off_t is fixed by gnulib.
4894         * doc/posix-functions/freopen.texi: Likewise.
4895         * doc/posix-functions/fseeko.texi: Likewise.
4896         * doc/posix-functions/fstatat.texi: Likewise.
4897         * doc/posix-functions/ftello.texi: Likewise.
4898         * doc/posix-functions/glob.texi: Likewise.
4899         * doc/posix-functions/lseek.texi: Likewise.
4900         * doc/posix-functions/lstat.texi: Likewise.
4901         * doc/posix-functions/mkstemp.texi: Likewise.
4902         * doc/posix-functions/open.texi: Likewise.
4903         * doc/posix-functions/openat.texi: Likewise.
4904         * doc/posix-functions/pread.texi: Likewise.
4905         * doc/posix-functions/pwrite.texi: Likewise.
4906         * doc/posix-functions/scandir.texi: Likewise.
4907         * doc/posix-functions/stat.texi: Likewise.
4908         * doc/posix-functions/tmpfile.texi: Likewise.
4909         * doc/glibc-functions/mkostemp.texi: Likewise.
4910         * doc/glibc-functions/mkostemps.texi: Likewise.
4911         * doc/glibc-functions/mkstemps.texi: Likewise.
4912
4913 2011-07-25  Bruno Haible  <bruno@clisp.org>
4914
4915         fcntl: Move AC_LIBOBJ invocation to module description.
4916         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4917         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4918
4919         fcntl: Remove call-in from fchdir.m4.
4920         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4922
4923         dup3: Remove potential call-in from fchdir.m4.
4924         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4926
4927         dup2: Move AC_LIBOBJ invocation to module description.
4928         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4929         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4930         Don't invoke AC_LIBOBJ.
4931         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4932
4933         dup2: Remove call-in from fchdir.m4.
4934         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4936
4937         fclose: Move AC_LIBOBJ invocation to module description.
4938         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4939         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4940         to 1.
4941         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4942
4943         fclose: Remove call-in from close.m4.
4944         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4945         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4946
4947         close: Move AC_LIBOBJ invocation to module description.
4948         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4949         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4950         1.
4951         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4952
4953         close: Remove call-in from fchdir.m4.
4954         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4956
4957         open: Move AC_LIBOBJ invocation to module description.
4958         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4959         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4960         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4961
4962         open: Remove call-in from fchdir.m4.
4963         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4965
4966         fchdir: Start to remove gl_REPLACE_* idiom.
4967         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4968         (gl_FUNC_FCHDIR): Invoke it.
4969
4970 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4971
4972         * lib/ftell.c (ftell): Comment out cast.
4973
4974         close: use gl_REPLACE_FCLOSE only if defined
4975         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4976         is defined.  The close module doesn't depend on the fclose module
4977         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4979         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4980
4981 2011-07-24  Jim Meyering  <meyering@redhat.com>
4982
4983         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4984         * tests/test-select.h (test_function): Declare as "static".
4985
4986 2011-07-24  Bruno Haible  <bruno@clisp.org>
4987
4988         doc: Mention the effects of AC_SYS_LARGEFILE.
4989         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4990         on this function.
4991         * doc/posix-functions/aio_error.texi: Likewise.
4992         * doc/posix-functions/aio_fsync.texi: Likewise.
4993         * doc/posix-functions/aio_read.texi: Likewise.
4994         * doc/posix-functions/aio_return.texi: Likewise.
4995         * doc/posix-functions/aio_suspend.texi: Likewise.
4996         * doc/posix-functions/aio_write.texi: Likewise.
4997         * doc/posix-functions/fgetpos.texi: Likewise.
4998         * doc/posix-functions/fopen.texi: Likewise.
4999         * doc/posix-functions/freopen.texi: Likewise.
5000         * doc/posix-functions/fsetpos.texi: Likewise.
5001         * doc/posix-functions/fstatvfs.texi: Likewise.
5002         * doc/posix-functions/ftruncate.texi: Likewise.
5003         * doc/posix-functions/ftw.texi: Likewise.
5004         * doc/posix-functions/getrlimit.texi: Likewise.
5005         * doc/posix-functions/glob.texi: Likewise.
5006         * doc/posix-functions/lio_listio.texi: Likewise.
5007         * doc/posix-functions/lockf.texi: Likewise.
5008         * doc/posix-functions/mkstemp.texi: Likewise.
5009         * doc/posix-functions/mmap.texi: Likewise.
5010         * doc/posix-functions/nftw.texi: Likewise.
5011         * doc/posix-functions/openat.texi: Likewise.
5012         * doc/posix-functions/opendir.texi: Likewise.
5013         * doc/posix-functions/posix_fadvise.texi: Likewise.
5014         * doc/posix-functions/posix_fallocate.texi: Likewise.
5015         * doc/posix-functions/pread.texi: Likewise.
5016         * doc/posix-functions/pwrite.texi: Likewise.
5017         * doc/posix-functions/readdir.texi: Likewise.
5018         * doc/posix-functions/readdir_r.texi: Likewise.
5019         * doc/posix-functions/rewinddir.texi: Likewise.
5020         * doc/posix-functions/scandir.texi: Likewise.
5021         * doc/posix-functions/seekdir.texi: Likewise.
5022         * doc/posix-functions/setrlimit.texi: Likewise.
5023         * doc/posix-functions/statvfs.texi: Likewise.
5024         * doc/posix-functions/telldir.texi: Likewise.
5025         * doc/posix-functions/tmpfile.texi: Likewise.
5026         * doc/posix-functions/truncate.texi: Likewise.
5027         * doc/glibc-functions/fallocate.texi: Likewise.
5028         * doc/glibc-functions/fstatfs.texi: Likewise.
5029         * doc/glibc-functions/fts_children.texi: Likewise.
5030         * doc/glibc-functions/fts_read.texi: Likewise.
5031         * doc/glibc-functions/getdirentries.texi: Likewise.
5032         * doc/glibc-functions/mkostemp.texi: Likewise.
5033         * doc/glibc-functions/mkostemps.texi: Likewise.
5034         * doc/glibc-functions/mkstemps.texi: Likewise.
5035         * doc/glibc-functions/preadv.texi: Likewise.
5036         * doc/glibc-functions/pwritev.texi: Likewise.
5037         * doc/glibc-functions/sendfile.texi: Likewise.
5038         * doc/glibc-functions/statfs.texi: Likewise.
5039
5040 2011-07-24  Bruno Haible  <bruno@clisp.org>
5041
5042         doc: Fix typo.
5043         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5044
5045 2011-07-24  Bruno Haible  <bruno@clisp.org>
5046
5047         doc: Mention fsusage.
5048         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5049
5050 2011-07-24  Bruno Haible  <bruno@clisp.org>
5051
5052         doc: Mention new glibc headers and functions.
5053         * doc/glibc-headers/gshadow.texi: New file.
5054         * doc/glibc-functions/endsgent.texi: New file.
5055         * doc/glibc-functions/fgetsgent.texi: New file.
5056         * doc/glibc-functions/fgetsgent_r.texi: New file.
5057         * doc/glibc-functions/getsgent.texi: New file.
5058         * doc/glibc-functions/getsgent_r.texi: New file.
5059         * doc/glibc-functions/getsgnam.texi: New file.
5060         * doc/glibc-functions/getsgnam_r.texi: New file.
5061         * doc/glibc-functions/putsgent.texi: New file.
5062         * doc/glibc-functions/setsgent.texi: New file.
5063         * doc/glibc-functions/sgetsgent.texi: New file.
5064         * doc/glibc-functions/sgetsgent_r.texi: New file.
5065         * doc/glibc-functions/malloc_info.texi: New file.
5066         * doc/glibc-functions/preadv.texi: New file.
5067         * doc/glibc-functions/pwritev.texi: New file.
5068         * doc/glibc-functions/register_printf_modifier.texi: New file.
5069         * doc/glibc-functions/register_printf_specifier.texi: New file.
5070         * doc/glibc-functions/register_printf_type.texi: New file.
5071         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5072         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5073         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5074         * doc/glibc-functions/pthread_getname_np.texi: New file.
5075         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5076         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5077         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5078         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5079         * doc/glibc-functions/pthread_setname_np.texi: New file.
5080         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5081         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5082         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5083         * doc/glibc-functions/qsort_r.texi: New file.
5084         * doc/glibc-functions/quick_exit.texi: New file.
5085         * doc/glibc-functions/syncfs.texi: New file.
5086         * doc/gnulib.texi: Include them.
5087         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5088         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5089         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5090         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5091         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5092         * doc/glibc-functions/execvpe.texi: Likewise.
5093
5094 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5095
5096         ftell: don't include <unistd.h>
5097         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5098         guaranteed to define off_t, and the ftell module depends on the
5099         stdio module.
5100
5101         ftell: do not assume wraparound signed arithmetic
5102         * lib/ftell.c: Include <limits.h>.
5103         (ftell): Don't assume wraparound signed arithmetic.
5104
5105 2011-07-24  Bruno Haible  <bruno@clisp.org>
5106
5107         close: No longer depend on module 'fclose'.
5108         * modules/close (Depends-on): Remove fclose.
5109         * NEWS: Mention the change.
5110         Suggested by Sam Steingold <sds@gnu.org>.
5111
5112 2011-07-24  Bruno Haible  <bruno@clisp.org>
5113
5114         fsusage: Enable large volume support on AIX >= 5.2.
5115         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5116         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5117         instead of STAT_STATVFS.
5118         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5119
5120         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5122         f_blocks field only on MacOS X.
5123
5124         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5125         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5126         * modules/fsusage (Depends-on): Add largefile.
5127
5128 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5129
5130         * README: Modernize discussion of signed integers.
5131         Assuming overflow wraparound is no longer safe.
5132         Mention ones' complement and signed magnitude.
5133
5134 2011-07-22  Bruno Haible  <bruno@clisp.org>
5135
5136         select tests, pselect tests: Refactor.
5137         * tests/test-select.h: New file, extracted from tests/test-select.c.
5138         (select_fn): New type.
5139         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5140         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5141         test_pipe): Add my_select argument.
5142         (test_function): Renamed from main. Add my_select argument.
5143         * tests/test-select.c: Move most code to tests/test-select.h. Include
5144         test-select.h.
5145         * modules/select-tests (Files): Add tests/test-select.h.
5146         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5147         (my_select, main): New functions.
5148         * modules/pselect-tests (Files): Add tests/test-select.h,
5149         tests/macros.h, tests/signature.h.
5150         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5151         (configure.ac): Check for <sys/wait.h>.
5152
5153 2011-07-22  Bruno Haible  <bruno@clisp.org>
5154
5155         sys_select tests: Check the signature of FD_*.
5156         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5157         signature tests from here...
5158         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5159         here.
5160         * modules/sys_select-tests (Files): Add tests/signature.h.
5161
5162 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5163
5164         largefile: new module, replacing large-inode
5165         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5166         * MODULES.html.sh: Add largefile, remove large-inode.
5167         * modules/largefile, m4/largefile.m4: New files.
5168         * modules/large-inode, m4/large-inode.m4: Remove.
5169
5170         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5172         implementations that use only 32 bits to count blocks.
5173         On typical hosts with 1024-byte blocks, this fails with file
5174         systems as small as 4 TiB.  Problem reported by Herb Wartens
5175         <http://debbugs.gnu.org/9140> and this should also fix a similar
5176         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5177
5178         large-inode: New module
5179         * MODULES.html.sh: Add it.
5180         * modules/large-inode, m4/large-inode.m4: New files.
5181
5182         extensions: Enable extensions on MacOS X 10.5 and later.
5183         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5184
5185 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5186
5187         file-has-acl: use acl_extended_file_nofollow if available
5188         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5189         (acl_extended_file): New macro.
5190         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5191         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5192
5193 2011-07-21  Bruno Haible  <bruno@clisp.org>
5194
5195         Declare system functions in a way that works with C++.
5196         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5197         declare fdopendir as extern "C".
5198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5199         declare frexpl as extern "C".
5200         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5201         declare gai_strerror as extern "C".
5202         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5203         programs, declare gai_strerror as extern "C".
5204         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5205         declare getlogin_r as extern "C".
5206         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5207         as extern "C".
5208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5209         declare ldexpl as extern "C".
5210         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5211         as extern "C".
5212         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5213         program, declare getmntinfo as extern "C".
5214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5215         stpncpy as extern "C".
5216         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5217         program, declare __xpg_strerror_r as extern "C".
5218         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5219         strndup as extern "C".
5220         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5221         declare memset and bzero as extern "C".
5222         Reported by Sam Steingold <sds@gnu.org>.
5223
5224 2011-07-12  Jim Meyering  <meyering@redhat.com>
5225
5226         maint.mk: prohibit inclusion of "verify.h" without use
5227         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5228
5229 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5230
5231         timer-time: A new module to check for timer_settime()
5232         * m4/timer_time.m4: Check for the posix function.
5233         * modules/timer-time: Add the new module.
5234         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5235         Mention it.
5236
5237 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5238             Bruno Haible  <bruno@clisp.org>
5239
5240         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5241         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5242         not defined, assume POSIX threads and look for pthread_sigmask in
5243         $LIBS, without changing $CPPFLAGS.
5244
5245 2011-07-19  Bruno Haible  <bruno@clisp.org>
5246
5247         strstr: Update cross-compilation guess.
5248         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5249         CPUs, guess no, in view of glibc
5250         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5251         Suggested by Eric Blake. Reported by Reuben Thomas.
5252
5253 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5254
5255         getopt-gnu: suppress core dumps from detection code
5256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5257         to suppress core dumps that may well occur on glibc systems.
5258         * modules/getopt-gnu: Depend on nocrash.
5259
5260 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5261
5262         pthread_sigmask: ensure usleep is declared
5263         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5264         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5265
5266 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5267
5268         doc: Document NonStop portability issues.
5269         * doc/posix-functions/sigaction.texi (sigaction):
5270         * doc/posix-headers/signal.texi (signal.h):
5271         Document NonStop.  See Joachim Schmitz in
5272         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5273
5274 2011-07-15  Bruno Haible  <bruno@clisp.org>
5275
5276         ffsl, ffsll: Avoid unportable behaviour.
5277         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5278
5279 2011-07-15  Bruno Haible  <bruno@clisp.org>
5280
5281         ffs: More tests.
5282         * tests/test-ffs.c (NBITS): New macro.
5283         (main): Add more tests.
5284         * tests/test-ffsl.c (NBITS): New macro.
5285         (main): Add more tests.
5286         * tests/test-ffsll.c (NBITS): New macro.
5287         (main): Add more tests.
5288
5289 2011-07-15  Eric Blake  <eblake@redhat.com>
5290
5291         ffsl, ffsll: new modules
5292         * modules/ffsl: New file.
5293         * modules/ffsll: Likewise.
5294         * m4/ffsl.m4: Likewise.
5295         * m4/ffsll.m4: Likewise.
5296         * lib/ffsl.c: Likewise.
5297         * lib/ffsl.h: Likewise.
5298         * lib/ffsll.c: Likewise.
5299         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5300         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5301         * modules/string (Makefile.am): Substitute witnesses.
5302         * lib/strings.in.h (ffsl, ffsll): Declare.
5303         * modules/ffsl-tests: New test file.
5304         * modules/ffsll-tests: Likewise.
5305         * tests/test-ffsl.c: Likewise.
5306         * tests/test-ffsll.c: Likewise.
5307         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5308         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5309         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5310
5311         ffs: fix m4 prerequisite
5312         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5313
5314         ffs: avoid undefined behavior
5315         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5316         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5317         Reported by Bruno Haible.
5318
5319 2011-07-12  Bruno Haible  <bruno@clisp.org>
5320
5321         pthread_sigmask: Rely on module 'threadlib'.
5322         * modules/pthread_sigmask (Depends-on): Add threadlib.
5323         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5324         is defined.
5325
5326 2011-07-12  Bruno Haible  <bruno@clisp.org>
5327
5328         regex: Depend on module 'strcase'.
5329         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5330
5331 2011-07-12  Jim Meyering  <meyering@redhat.com>
5332
5333         warn-on-use: fix typo in file name
5334         * modules/snippet/warn-on-use (Files): Correct file name:
5335         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5336
5337 2011-07-12  Bruno Haible  <bruno@clisp.org>
5338
5339         strings: Document module.
5340         * doc/posix-headers/strings.texi: Mention module 'strings'.
5341
5342 2011-07-12  Bruno Haible  <bruno@clisp.org>
5343
5344         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5345         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5346         (Files, Makefile.am): Update.
5347         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5348         * modules/stdlib (Depends-on): Update.
5349
5350 2011-07-12  Bruno Haible  <bruno@clisp.org>
5351
5352         * NEWS: Mention the changes.
5353
5354         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5355         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5356         (Files, Makefile.am): Update.
5357         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5358         * modules/arpa_inet (Depends-on): Update.
5359         * modules/ctype (Depends-on): Update.
5360         * modules/dirent (Depends-on): Update.
5361         * modules/fcntl-h (Depends-on): Update.
5362         * modules/glob (Depends-on): Update.
5363         * modules/iconv-h (Depends-on): Update.
5364         * modules/inttypes-incomplete (Depends-on): Update.
5365         * modules/langinfo (Depends-on): Update.
5366         * modules/locale (Depends-on): Update.
5367         * modules/math (Depends-on): Update.
5368         * modules/netdb (Depends-on): Update.
5369         * modules/poll-h (Depends-on): Update.
5370         * modules/pty (Depends-on): Update.
5371         * modules/search (Depends-on): Update.
5372         * modules/signal (Depends-on): Update.
5373         * modules/spawn (Depends-on): Update.
5374         * modules/stdio (Depends-on): Update.
5375         * modules/stdlib (Depends-on): Update.
5376         * modules/string (Depends-on): Update.
5377         * modules/strings (Depends-on): Update.
5378         * modules/sys_file (Depends-on): Update.
5379         * modules/sys_ioctl (Depends-on): Update.
5380         * modules/sys_select (Depends-on): Update.
5381         * modules/sys_socket (Depends-on): Update.
5382         * modules/sys_stat (Depends-on): Update.
5383         * modules/sys_time (Depends-on): Update.
5384         * modules/sys_times (Depends-on): Update.
5385         * modules/sys_utsname (Depends-on): Update.
5386         * modules/sys_wait (Depends-on): Update.
5387         * modules/termios (Depends-on): Update.
5388         * modules/time (Depends-on): Update.
5389         * modules/unistd (Depends-on): Update.
5390         * modules/wchar (Depends-on): Update.
5391         * modules/wctype-h (Depends-on): Update.
5392         * MODULES.html.sh (Support for building libraries and executables):
5393         Update.
5394
5395         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5396         * modules/snippet/unused-parameter: Renamed from
5397         modules/unused-parameter.
5398         (Files, Makefile.am): Update.
5399         * build-aux/snippet/unused-parameter.h: Renamed from
5400         build-aux/unused-parameter.h.
5401         * modules/selinux-h (Depends-on): Update.
5402         * modules/unistr/base (Depends-on): Update.
5403         * MODULES.html.sh (Core language properties): Update.
5404
5405         Rename module 'link-warning' to 'snippet/link-warning'.
5406         * modules/snippet/link-warning: Renamed from modules/link-warning.
5407         (Files, Makefile.am): Update.
5408         * build-aux/snippet/link-warning.h: Renamed from
5409         build-aux/link-warning.h.
5410         * MODULES.html.sh (Support for building libraries and executables):
5411         Update.
5412
5413         Rename module 'c++defs' to 'snippet/c++defs'.
5414         * modules/snippet/c++defs: Renamed from modules/c++defs.
5415         (Files, Makefile.am): Update.
5416         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5417         * modules/arpa_inet (Depends-on): Update.
5418         * modules/ctype (Depends-on): Update.
5419         * modules/dirent (Depends-on): Update.
5420         * modules/fcntl-h (Depends-on): Update.
5421         * modules/glob (Depends-on): Update.
5422         * modules/iconv-h (Depends-on): Update.
5423         * modules/langinfo (Depends-on): Update.
5424         * modules/locale (Depends-on): Update.
5425         * modules/math (Depends-on): Update.
5426         * modules/netdb (Depends-on): Update.
5427         * modules/poll-h (Depends-on): Update.
5428         * modules/pty (Depends-on): Update.
5429         * modules/search (Depends-on): Update.
5430         * modules/signal (Depends-on): Update.
5431         * modules/spawn (Depends-on): Update.
5432         * modules/stdio (Depends-on): Update.
5433         * modules/stdlib (Depends-on): Update.
5434         * modules/string (Depends-on): Update.
5435         * modules/strings (Depends-on): Update.
5436         * modules/sys_ioctl (Depends-on): Update.
5437         * modules/sys_select (Depends-on): Update.
5438         * modules/sys_socket (Depends-on): Update.
5439         * modules/sys_stat (Depends-on): Update.
5440         * modules/sys_time (Depends-on): Update.
5441         * modules/sys_wait (Depends-on): Update.
5442         * modules/termios (Depends-on): Update.
5443         * modules/time (Depends-on): Update.
5444         * modules/unistd (Depends-on): Update.
5445         * modules/wchar (Depends-on): Update.
5446         * modules/wctype-h (Depends-on): Update.
5447
5448         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5449         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5450         (Files, Makefile.am): Update.
5451         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5452         * modules/argv-iter (Depends-on): Update.
5453         * modules/arpa_inet (Depends-on): Update.
5454         * modules/dirent (Depends-on): Update.
5455         * modules/fcntl-h (Depends-on): Update.
5456         * modules/fnmatch (Depends-on): Update.
5457         * modules/getopt-posix (Depends-on): Update.
5458         * modules/glob (Depends-on): Update.
5459         * modules/iconv-h (Depends-on): Update.
5460         * modules/inttypes-incomplete (Depends-on): Update.
5461         * modules/locale (Depends-on): Update.
5462         * modules/math (Depends-on): Update.
5463         * modules/netdb (Depends-on): Update.
5464         * modules/search (Depends-on): Update.
5465         * modules/signal (Depends-on): Update.
5466         * modules/spawn (Depends-on): Update.
5467         * modules/stdio (Depends-on): Update.
5468         * modules/stdlib (Depends-on): Update.
5469         * modules/string (Depends-on): Update.
5470         * modules/strings (Depends-on): Update.
5471         * modules/sys_socket (Depends-on): Update.
5472         * modules/sys_stat (Depends-on): Update.
5473         * modules/sys_time (Depends-on): Update.
5474         * modules/sys_times (Depends-on): Update.
5475         * modules/sys_utsname (Depends-on): Update.
5476         * modules/time (Depends-on): Update.
5477         * modules/unistd (Depends-on): Update.
5478         * modules/wchar (Depends-on): Update.
5479         * MODULES.html.sh (Support for building libraries and executables):
5480         Update.
5481
5482 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5483
5484         Improvements on _Noreturn and related modules.
5485
5486         modules/_Exit-tests: test _Noreturn too
5487         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5488         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5489         (main): Use them.
5490
5491         stdnoreturn, stdnoreturn-tests: remove modules
5492         They're not needed here and a bit premature for use elsewhere.  See
5493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5494         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5495         * tests/test-stdnoreturn.c: Remove files.
5496         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5497         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5498         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5499         and using noreturn.
5500         * modules/openat, modules/sigpipe-die, modules/xalloc:
5501         * modules/xmemdup0, modules/xstrtol:
5502         Remove dependency on stdnoreturn.
5503
5504         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5505         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5506         Reparenthesize to avoid GCC warning.
5507         Support Microsoft's syntax.
5508         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5509
5510         _Noreturn-tests: remove module
5511         * modules/_Noreturn-tests: Remove.
5512         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5513         * tests/test-_Noreturn.c: Remove.
5514         * tests/test-stdnoreturn.c: Merge from the old
5515         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5516
5517 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5518
5519         _Noreturn, stdnoreturn, and related modules.
5520
5521         * top/maint.mk: Adjust to new noreturn support.
5522         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5523         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5524
5525         xalloc: use stdnoreturn.h
5526         * lib/xalloc.h: Include <stdnoreturn.h>.
5527         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5528         * modules/xalloc (Depends-on): Add stdnoreturn.
5529
5530         xstrtol: use stdnoreturn.h
5531         * lib/xstrtol.h: Include <stdnoreturn.h>.
5532         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5533         * modules/xstrtol (Depends-on): Add stdnoreturn.
5534
5535         xmemdup0: use stdnoreturn.h
5536         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5537         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5538         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5539
5540         sigpipe-die: use stdnoreturn.h
5541         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5542         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5543         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5544
5545         openat: use stdnoreturn.h
5546         * lib/openat.h: Include <stdnoreturn.h>.
5547         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5548         * modules/openat (Depends-on): Add stdnoreturn.
5549
5550         * lib/openat-die.c (openat_save_fail): Modernize comment.
5551
5552         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5553
5554         * lib/glthread/thread.h: Modernize comment.
5555
5556         obstack: use _Noreturn
5557         * lib/obstack.c (__attribute__): Remove macro.
5558         (print_and_abort): Use _Noreturn.
5559
5560         c-stack: use _Noreturn
5561         * lib/c-stack.c (die, overflow_handler, segv_handler):
5562         Use _Noreturn rather than __attribute__((noreturn)).
5563
5564         argmatch-tests, exclude_tests: use _Noreturn
5565         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5566         Remove.
5567         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5568
5569         stdlib: use _Noreturn
5570         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5571         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5572         * modules/stdlib (Depends-on): Add _Noreturn.
5573         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5574
5575         stdnoreturn-tests: new module
5576         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5577
5578         stdnoreturn: new module
5579         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5580         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5581
5582         _Noreturn-tests: new module
5583         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5584
5585         _Noreturn: new module
5586         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5587         New section, mentioning it.
5588         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5589
5590         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5591
5592 2011-07-11  Eric Blake  <eblake@redhat.com>
5593
5594         ffs: new module
5595         * modules/ffs: New file.
5596         * m4/ffs.m4: Likewise.
5597         * lib/ffs.c: Likewise.
5598         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5599         * modules/strings (Makefile.am): Substitute witness.
5600         (Depends-on): Add c++defs.
5601         * lib/strings.in.h (ffs): Declare.
5602         * modules/ffs-tests: New test file.
5603         * tests/test-ffs.c: Test new module.
5604         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5605         * doc/posix-functions/ffs.texi (ffs): Likewise.
5606
5607         regex: avoid compiler warning
5608         * lib/regex.c (includes): Include <strings.h>, for use of
5609         strcasecmp in regcomp.c.
5610         Reported by Joachim Schmitz.
5611
5612 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5613
5614         stdint: respect system's intmax_t if INTMAX_MAX
5615         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5616         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5617         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5618         long but int64_t is long long, and where we will clash with the
5619         system intmax_t if we override it.  See
5620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5621         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5622         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5623         similarly for UINTMAX_C.
5624
5625 2011-07-08  Bruno Haible  <bruno@clisp.org>
5626
5627         pthread_sigmask tests: Avoid a compiler warning.
5628         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5629         non-zero.
5630
5631         sigprocmask tests: A better way to avoid a compiler warning.
5632         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5633         (main): Complain if system() returns non-zero.
5634         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5635
5636 2011-07-08  Bruno Haible  <bruno@clisp.org>
5637
5638         pthread_sigmask: Work around IRIX bug.
5639         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5640         bug.
5641         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5642         there may be unblocked pending signals.
5643         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5644
5645 2011-07-08  Bruno Haible  <bruno@clisp.org>
5646
5647         pthread_sigmask: Work around Cygwin bug.
5648         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5649         bug.
5650         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5651         the system's pthread_sigmask function.
5652         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5653
5654 2011-07-08  Bruno Haible  <bruno@clisp.org>
5655
5656         pthread_sigmask: Work around bug in single-threaded implementation.
5657         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5658         FreeBSD, HP-UX, Solaris bug.
5659         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5660         * lib/pthread_sigmask.c: Include <stddef.h>.
5661         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5662         the system's pthread_sigmask function.
5663         * modules/pthread_sigmask (configure.ac): Invoke
5664         gl_PREREQ_PTHREAD_SIGMASK.
5665         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5666         HP-UX, Solaris.
5667
5668 2011-07-08  Eric Blake  <eblake@redhat.com>
5669
5670         test-sigprocmask: avoid compiler warning
5671         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5672         * tests/test-sigprocmask.c (main): Use it to silence warning.
5673         Reported by Jim Meyering.
5674
5675         test-snprintf: avoid compiler warning
5676         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5677         * tests/test-vsnprintf.c (main): Likewise.
5678         Reported by Jim Meyering.
5679
5680 2011-07-08  Bruno Haible  <bruno@clisp.org>
5681
5682         Tests for module 'pthread_sigmask'.
5683         * modules/pthread_sigmask-tests: New file.
5684         * tests/test-pthread_sigmask1.c: New file, based on
5685         tests/test-sigprocmask.c.
5686         * tests/test-pthread_sigmask2.c: New file.
5687
5688 2011-07-08  Jim Meyering  <meyering@redhat.com>
5689
5690         test-getopt.h: avoid warning about an unused variable
5691         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5692
5693 2011-07-07  Jim Meyering  <meyering@redhat.com>
5694
5695         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5696         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5697         now that it no longer contains leading TABs.
5698         Remove unused "url=FIXME" statement.
5699
5700 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5701
5702         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5703         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5704         When gl_THREADLIB is not in use, assume that the POSIX sematics
5705         are desired.  This is better for Emacs, which uses POSIX semantics
5706         on GNUish and/or POSIXish platforms, and does not use threads at
5707         all otherwise.
5708
5709         pthread_sigmask: fix typo when testing for libraries
5710         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5711         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5712
5713 2011-07-08  Eric Blake  <eblake@redhat.com>
5714
5715         fts: introduce FTS_NOATIME
5716         * lib/fts_.h (FTS_NOATIME): New bit flag.
5717         (FTS_OPTIONMASK): Adjust.
5718         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5719         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5720
5721 2011-07-08  Bruno Haible  <bruno@clisp.org>
5722
5723         Tests for module 'thread'.
5724         * modules/thread-tests: New file.
5725         * tests/test-thread_self.c: New file.
5726         * tests/test-thread_create.cc: New file.
5727
5728 2011-07-08  Bruno Haible  <bruno@clisp.org>
5729
5730         thread: Avoid gcc warnings when using gl_thread_self().
5731         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5732         'void *'.
5733         (gl_thread_self_pointer): Update.
5734
5735 2011-07-07  Bruno Haible  <bruno@clisp.org>
5736
5737         signal-c++-tests: Check declaration of pthread_sigmask.
5738         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5739         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5740         $(LIB_PTHREAD_SIGMASK).
5741
5742 2011-07-07  Bruno Haible  <bruno@clisp.org>
5743
5744         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5745         * lib/signal.in.h (pthread_sigmask): Override if
5746         REPLACE_PTHREAD_SIGMASK is 1.
5747         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5748         REPLACE_PTHREAD_SIGMASK.
5749         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5750         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5751         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5752         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5753         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5754
5755 2011-07-07  Bruno Haible  <bruno@clisp.org>
5756
5757         pthread_sigmask: Ensure declaration in <signal.h>.
5758         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5759         include <pthread.h>.
5760         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5761         problem.
5762
5763 2011-07-07  Bruno Haible  <bruno@clisp.org>
5764
5765         pthread_sigmask: Document the module.
5766         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5767
5768 2011-07-07  Bruno Haible  <bruno@clisp.org>
5769
5770         pthread_sigmask: Follow gnulib conventions.
5771         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5772         gl_PTHREAD_SIGMASK.
5773         * modules/pthread_sigmask (configure.ac): Update.
5774
5775 2011-07-07  Bruno Haible  <bruno@clisp.org>
5776
5777         pthread_sigmask: Make declaration C++ safe.
5778         * lib/signal.in.h: In two special conditions, just do an #include_next.
5779         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5780         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5781         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5782         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5783         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5784         not REPLACE_PTHREAD_MASK.
5785         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5786         not REPLACE_PTHREAD_MASK.
5787         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5788
5789 2011-07-07  Bruno Haible  <bruno@clisp.org>
5790
5791         pthread_sigmask: Fix return value.
5792         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5793         * lib/pthread_sigmask.c: New file.
5794         * modules/pthread_sigmask (Files): Add it.
5795         (configure.ac): Invoke AC_LIBOBJ.
5796
5797 2011-07-07  Eric Blake  <eblake@redhat.com>
5798
5799         getopt: more portable argv creation
5800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5801         const, use char arrays rather than strings.
5802         Suggested by Paul Eggert.
5803
5804 2011-07-07  Bruno Haible  <bruno@clisp.org>
5805
5806         Tests for module 'sigprocmask'.
5807         * modules/sigprocmask-tests: New file.
5808         * tests/test-sigprocmask.c: New file.
5809
5810 2011-07-07  Bruno Haible  <bruno@clisp.org>
5811
5812         float tests: Tweak.
5813         * tests/test-float.c (main): Tweak skip message.
5814
5815 2011-07-07  Eric Blake  <eblake@redhat.com>
5816
5817         getopt: avoid compiler warning during configure
5818         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5819         assigning string literals to non-const pointer.
5820
5821         getopt-gnu: avoid crash in glibc getopt
5822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5823         * tests/test-getopt.h (test_getopt): Enhance test.
5824         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5825         * doc/posix-functions/getopt.texi (getopt): Document it.
5826         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5827         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5828         Likewise.
5829
5830 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5831
5832         getopt: handle W; without long options in getopt [BZ #12922]
5833         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5834         but no long options are defined, just return 'W'.
5835
5836 2011-07-07  Bruno Haible  <bruno@clisp.org>
5837
5838         Avoid literal tabs.
5839         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5840         variable containing a tab instead of a literal tab.
5841         Reported by Jim Meyering.
5842
5843 2011-07-07  Bruno Haible  <bruno@clisp.org>
5844
5845         Comments.
5846         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5847
5848 2011-07-06  Bruno Haible  <bruno@clisp.org>
5849
5850         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5851         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5852         <winsock2.h>.
5853         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5854         lib/sys_socket.in.h.
5855         (close, gethostname): Hide declarations from <winsock2.h>.
5856         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5857         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5858         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5859         (select): Don't override if gnulib's <sys/select.h> was already
5860         included.
5861         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5862         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5863         setsockopt, shutdown, select): Tweak indentation.
5864
5865 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5866
5867         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5868         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5869         in an application that does not use the sys_select module.
5870
5871 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5872
5873         poll: do not return 0 on timeout=-1
5874         * lib/poll.c: Loop with yield if no events occured
5875
5876 2011-07-06  Eric Blake  <eblake@redhat.com>
5877
5878         pthread_sigmask: always replace when not using pthread
5879         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5880         replacement when using some threading other than pthread.  Fix
5881         logic bug.
5882
5883 2011-07-06  Bruno Haible  <bruno@clisp.org>
5884
5885         Comments.
5886         * m4/printf.m4: Update comments about mingw.
5887
5888 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5889
5890         sys_select: define sigset_t more portably
5891         * lib/sys_select.in.h: Always include <sys/types.h>, since
5892         we now need sigset_t and mingw defines it there.
5893         Include <signal.h> before split inclusion guard, to avoid
5894         mishaps on Solaris, whose <signal.h> eventually includes us.
5895         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5896         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5897         which come from ...
5898         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5899         gl_CHECK_TYPE_SIGSET_T.
5900         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5901         does the real work.
5902         * modules/sys_select (Depends-on): Add 'signal'.
5903
5904         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5905         Suggested by Bruno Haible.
5906
5907         pselect: Use pthread_sigmask, not sigprocmask.
5908         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5909         multithreaded apps better than sigprocmask does.
5910         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5911         sigprocmask directly.
5912
5913 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5914
5915         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5916         Don't #undef,  since we don't need any underlying pselect.
5917         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5918         (Depends-on): Add select.
5919         (Link): Add $(LIBSOCKET).
5920         These changes suggested by Bruno Haible.
5921
5922         pselect: document better
5923         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5924         * doc/posix-functions/pselect.texi (pselect): Document new module.
5925
5926         pthread_sigmask: new module
5927         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5928         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5929         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5930         This is done only as a macro; I don't know how well that'll
5931         work for C++.  Move <sys/types.h> include before the include_next,
5932         to avoid mishap on Solaris.
5933         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5934         * modules/signal (Makefile.am): Substitute the check's results.
5935         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5936
5937         test-pselect: new module
5938         * modules/pselect-tests, tests/test-pselect.c: New files.
5939         * tests/test-select.c, tests/test-sys_select-c++.cc:
5940         If TEST_PSELECT is defined, test pselect instead of testing select.
5941
5942         * tests/test-sys_select.c (sigset_t): Test for it, too.
5943         Suggested by Bruno Haible.
5944
5945 2011-07-05  Eric Blake  <eblake@redhat.com>
5946
5947         snprintf: guarantee %1$d, for libintl
5948         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5949         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5950         * doc/posix-functions/snprintf.texi (snprintf): Update.
5951         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5952         * tests/test-snprintf.c (main): Enhance test.
5953         * tests/test-vsnprintf.c (main): Likewise.
5954
5955 2011-07-05  Jim Meyering  <meyering@redhat.com>
5956
5957         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5958         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5959         per Bruno's request, to accommodate this idiom (no space after "#")
5960         even when the function is inside an #if block:
5961         char *
5962         gets (char *s)
5963         #undef gets
5964         {
5965           ...
5966         }
5967
5968 2011-07-04  Jim Meyering  <meyering@redhat.com>
5969
5970         maint: indent with spaces, not TABs, and add a rule to check this
5971         * tests/test-userspec.c: Indent with spaces, not TABs.
5972         * tests/test-argp.c: Likewise.
5973         * tests/test-c-stack2.sh: Likewise.
5974         * tests/test-parse-duration.sh: Likewise
5975         * m4/strtod.m4: Likewise.
5976         * m4/alloca.m4: Likewise.
5977         * m4/pselect.m4: Likewise.
5978         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5979
5980 2011-07-03  Jim Meyering  <meyering@redhat.com>
5981
5982         maint.mk: correct omissions in prohibit_argmatch_without_use check
5983         This rule would mistakenly report that argmatch.h is included without
5984         use even when both the argmatch and invalid_arg macro were used.
5985         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5986         of argmatch and invalid_arg.
5987
5988 2011-07-03  Bruno Haible  <bruno@clisp.org>
5989
5990         Comments about EINTR.
5991         * lib/safe-read.h: Explain the purpose of this module.
5992         * lib/safe-write.h: Likewise.
5993         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5994         module.
5995         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5996         module.
5997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5998
5999 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6000
6001         xnanosleep: Rewrite to use new dtotimespec module.
6002         It has the conversion code that used to be in xnanosleep.
6003         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6004         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6005         (TIME_T_MAX): Remove.
6006         (xnanosleep): Rewrite in terms of dtotimespec.
6007         * modules/xnanosleep (Depends-on): Add dtotimespec.
6008         Remove intprops, stdbool.
6009
6010         timespec-add, timespec-sub: new modules
6011         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6012         * lib/timespec-add.c, lib/timespec-sub.c:
6013         * modules/timespec-add, modules/timespec-sub: New files.
6014
6015         dtotimespec: new module
6016         * lib/timespec.h (dtotimespec): New decl.
6017         * lib/dtotimespec.c, modules/dtotimespec: New files.
6018
6019         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6020
6021         pselect: new module
6022         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6023         (pselect): New decls.
6024         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6025         since the standard pselect decl uses 'restrict'.
6026         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6027         HAVE_PSELECT, REPLACE_PSELECT.
6028         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6029         HAVE_PSELECT, REPLACE_PSELECT.
6030         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6031
6032         sys_select: don't depend on sys_socket
6033         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6035         This fix works on GNU and GNU-like platforms, but has not been tested
6036         on native Windows.
6037         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6039         gl_HEADER_SYS_SOCKET.
6040         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6041         gl_PREREQ_SYS_H_WINSOCK2.
6042
6043 2011-06-29  Eric Blake  <eblake@redhat.com>
6044
6045         pipe2: fix C89 compile problem
6046         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6047         Reported by Bruno Haible.
6048
6049         pipe, pipe2: don't corrupt fd on error
6050         * lib/pipe.c (pipe): Leave fd unchanged on error.
6051         * lib/pipe2.c (pipe2): Likewise.
6052         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6053         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6054
6055 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6056
6057         mmap-anon: do not use regular expressions inadvertently
6058         * m4/mmap-anon.m4: Remove trailing period from strings sought
6059         in the output.
6060
6061 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6062
6063         nanosleep: fix integer overflow problem
6064         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6065         arithmetic wraps around on overflow.
6066
6067         nanosleep: simplify carrying
6068         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6069         first call to the underyling nanosleep, not for the last one.
6070         This doesn't fix any bugs, but it simplifies the computation of
6071         the remaining delay.  Found while auditing integer overflow issues.
6072
6073         dup2: remove test for existence of fcntl
6074         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6075         "#if HAVE_FCNTL", in the configure-time test program.
6076         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6077         and therefore speeds up "configure" a bit.  Found while
6078         adding the dup2 module to Emacs.
6079
6080 2011-06-24  Eric Blake  <eblake@redhat.com>
6081
6082         maint.mk: enhance useless header checks
6083         * top/maint.mk (_sc_header_without_use): Check both include
6084         styles.
6085         (sc_prohibit_assert_without_use)
6086         (sc_prohibit_close_stream_without_use)
6087         (sc_prohibit_getopt_without_use)
6088         (sc_prohibit_quotearg_without_use)
6089         (sc_prohibit_quote_without_use)
6090         (sc_prohibit_long_options_without_use)
6091         (sc_prohibit_inttostr_without_use)
6092         (sc_prohibit_ignore_value_without_use)
6093         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6094         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6095         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6096         (sc_prohibit_hash_pjw_without_use)
6097         (sc_prohibit_safe_read_without_use)
6098         (sc_prohibit_argmatch_without_use)
6099         (sc_prohibit_canonicalize_without_use)
6100         (sc_prohibit_root_dev_ino_without_use)
6101         (sc_prohibit_openat_without_use)
6102         (sc_prohibit_c_ctype_without_use)
6103         (sc_prohibit_signal_without_use)
6104         (sc_prohibit_stdio--_without_use)
6105         (sc_prohibit_stdio-safer_without_use)
6106         (sc_prohibit_strings_without_use)
6107         (sc_prohibit_intprops_without_use)
6108         (sc_prohibit_stddef_without_use)
6109         (sc_prohibit_xfreopen_without_use): Update clients.
6110
6111 2011-06-24  Jim Meyering  <meyering@redhat.com>
6112
6113         syntax-check: keep one maint.mk rule in sync with its header
6114         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6115         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6116         I prefer to avoid temporary files here, so use <(...), but that
6117         is not supported by /bin/sh, so...
6118         (SHELL): Define to /bin/bash.
6119
6120 2011-06-24  Eric Blake  <eblake@redhat.com>
6121
6122         maint.mk: update sc_prohibit_intprops_without_use
6123         * top/maint.mk (_intprops_names): Match recent changes.
6124
6125 2011-06-24  Bruno Haible  <bruno@clisp.org>
6126
6127         strerror-override: No-op tweak.
6128         * lib/strerror-override.h (strerror_override): Reorder conditions,
6129         for consistency with lib/strerror-override.c.
6130
6131 2011-06-23  Eric Blake  <eblake@redhat.com>
6132
6133         maint.mk: test further PATH_MAX issues
6134         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6135         (sc_prohibit_path_max_allocation): ...and also test alloca.
6136         Suggested by Jim Meyering.
6137
6138 2011-06-22  Eric Blake  <eblake@redhat.com>
6139
6140         maint.mk: add syntax-check to avoid char[PATH_MAX]
6141         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6142
6143         stat: be robust to PATH_MAX definition
6144         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6145         * modules/stat (Depends-on): Add verify.
6146
6147         link: work around IRIX bug
6148         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6149         * lib/link.c (rpl_link): Work around it.
6150         * tests/test-link.h (test_link): Enhance test.
6151         * doc/posix-functions/link.texi (link): Document the bug.
6152
6153         getopt: silence clang warning
6154         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6155         dereference.
6156         Reported by Gustavo Martin Domato.
6157
6158 2011-06-22  Jim Meyering  <meyering@redhat.com>
6159
6160         bootstrap: do not insert a blank line into each .gitignore file
6161         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6162
6163 2011-06-21  Eric Blake  <eblake@redhat.com>
6164
6165         perror: test for output mismatch
6166         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6167         perror on IRIX.
6168
6169         strerror_r: fix OpenBSD behavior on out-of-range
6170         * lib/strerror_r.c (strerror_r): Always use maximal string.
6171         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6172
6173         strerror_r: fix OpenBSD behavior on 0
6174         * lib/strerror-override.c (strerror_override): Also override 0
6175         when needed.
6176         * lib/strerror-override.h (strerror_override): Likewise.
6177         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6178         earlier.
6179         * lib/strerror_r.c (strerror_r): Likewise.
6180         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6181         behavior...
6182         (gl_FUNC_STRERROR_0): ...into new macro.
6183         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6184         is overridden.
6185         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6186         * modules/strerror-override (Files): Add strerror.m4.
6187         (configure.ac): Also provide override for 0 when needed.
6188         * doc/posix-functions/strerror.texi (strerror): Document this.
6189         * doc/posix-functions/perror.texi (perror): Likewise.
6190
6191         perror: adjust array size
6192         * modules/perror (Depends-on): Add strerror-override.
6193         * lib/perror.c (perror): Use it to avoid magic number.
6194
6195         strerror-override: reduce size
6196         * lib/strerror-override.c (strerror_override): Use fewer lines.
6197
6198 2011-06-20  Bruno Haible  <bruno@clisp.org>
6199
6200         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6201         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6202
6203 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6204
6205         alloca: port to compilers that can optimize like GCC 4.6.0
6206         * lib/alloca.c (find_stack_direction): New signature, taken from
6207         Autoconf git.  This works with GCC 4.6.0.  This code should never
6208         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6209         be used with other compilers that optimize as well as GCC 4.6.0 does.
6210         (alloca): Adjust to new signature.
6211         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6212         New macro, which patches Autoconf in a similar way.
6213
6214         c-stack: stop worrying about stack direction
6215         * lib/c-stack.c (find_stack_direction): Remove.
6216         (segv_handler): Don't worry about stack direction growth, as it's
6217         too much of a pain to configure this correctly, given how compilers
6218         are optimizing-away our stack-growth detection code.  Instead, assume
6219         that any access to just before or just after the stack is OK.
6220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6221         Don't require AC_FUNC_ALLOCA; no longer needed.
6222
6223 2011-06-20  Eric Blake  <eblake@redhat.com>
6224
6225         test-stat: don't allocate PATH_MAX bytes
6226         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6227         PATH_MAX-sized buffer.
6228         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6229         * modules/stat-tests (Depends-on): Likewise.
6230         * tests/test-fstatat.c (includes): Drop pathmax.h.
6231         * tests/test-stat.c (includes): Likewise.
6232         Reported by Bruno Haible.
6233
6234 2011-06-20  Bruno Haible  <bruno@clisp.org>
6235
6236         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6237         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6238         * lib/float.c: New file.
6239         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6240         REPLACE_FLOAT_LDBL.
6241         * modules/float (Files): Add lib/float.c.
6242         (configure.ac): Invoke AC_LIBOBJ.
6243         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6244
6245 2011-06-20  Bruno Haible  <bruno@clisp.org>
6246
6247         Tests for module 'float'.
6248         * modules/float-tests: New file.
6249         * tests/test-float.c: New file.
6250
6251 2011-06-19  Bruno Haible  <bruno@clisp.org>
6252
6253         isinf: Coding style.
6254         * lib/isinf.c: Use GNU coding style.
6255
6256 2011-06-19  Bruno Haible  <bruno@clisp.org>
6257
6258         linkat test: Avoid test failure on AIX 7.1.
6259         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6260         * tests/test-link.h (test_link): Likewise.
6261
6262 2011-06-19  Bruno Haible  <bruno@clisp.org>
6263
6264         pread test: Avoid test failure on OpenBSD 4.9.
6265         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6266
6267 2011-06-19  Bruno Haible  <bruno@clisp.org>
6268
6269         sprintf-posix: Fix test failure on AIX 7.1.
6270         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6271         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6272         on AIX.
6273         * doc/posix-functions/fprintf.texi: Likewise.
6274         * doc/posix-functions/printf.texi: Likewise.
6275         * doc/posix-functions/snprintf.texi: Likewise.
6276         * doc/posix-functions/sprintf.texi: Likewise.
6277         * doc/posix-functions/vdprintf.texi: Likewise.
6278         * doc/posix-functions/vfprintf.texi: Likewise.
6279         * doc/posix-functions/vprintf.texi: Likewise.
6280         * doc/posix-functions/vsnprintf.texi: Likewise.
6281         * doc/posix-functions/vsprintf.texi: Likewise.
6282
6283 2011-06-19  Bruno Haible  <bruno@clisp.org>
6284
6285         roundl-ieee: Fix test failure on AIX 7.1.
6286         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6287         * doc/posix-functions/roundl.texi: Mention problem with negative
6288         arguments.
6289
6290 2011-06-19  Bruno Haible  <bruno@clisp.org>
6291
6292         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6293         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6294         * doc/posix-functions/round.texi: Mention problem with negative
6295         arguments.
6296         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6297
6298 2011-06-19  Bruno Haible  <bruno@clisp.org>
6299
6300         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6301         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6302         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6303         * doc/posix-functions/roundf.texi: Mention problem with negative
6304         arguments.
6305         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6306
6307 2011-06-19  Bruno Haible  <bruno@clisp.org>
6308
6309         ceilf-ieee: Work around bug on MacOS X 10.5.
6310         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6311
6312         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6313         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6314         IEEE compliant, avoid compiler optimizations.
6315         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6316         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6317         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6318         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6320         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6321         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6322         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6323         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6324         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6325
6326 2011-06-19  Bruno Haible  <bruno@clisp.org>
6327
6328         ceilf-ieee: Work around bug on AIX 7.1.
6329         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6330         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6331
6332 2011-06-19  Bruno Haible  <bruno@clisp.org>
6333
6334         ceil-ieee: Work around bug on AIX 7.1.
6335         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6336         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6337
6338 2011-06-18  Bruno Haible  <bruno@clisp.org>
6339
6340         fsync test: Avoid test failure on MacOS X and AIX.
6341         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6342         EINVAL.
6343
6344 2011-06-18  Bruno Haible  <bruno@clisp.org>
6345
6346         openat, fdopendir tests: Fix link errors.
6347         * modules/openat-tests (Depends-on): Add progname.
6348         * modules/fdopendir-tests (Depends-on): Likewise.
6349         * tests/test-fchownat.c: Include progname.h.
6350         (main): Call set_program_name.
6351         * tests/test-fstatat.c: Include progname.h.
6352         (main): Call set_program_name.
6353         * tests/test-mkdirat.c: Include progname.h.
6354         (main): Call set_program_name.
6355         * tests/test-openat.c: Include progname.h.
6356         (main): Call set_program_name.
6357         * tests/test-unlinkat.c: Include progname.h.
6358         (main): Call set_program_name.
6359         * tests/test-fdopendir.c: Include progname.h.
6360         (main): Call set_program_name.
6361
6362 2011-06-18  Bruno Haible  <bruno@clisp.org>
6363
6364         Doc update.
6365         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6366         HP-UX.
6367         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6368
6369 2011-06-18  Bruno Haible  <bruno@clisp.org>
6370
6371         getcwd tests: Avoid compilation error on HP-UX 11.31.
6372         * modules/getcwd-tests (Depends-on): Add pathmax.
6373         * tests/test-getcwd.c: Include pathmax.h.
6374
6375 2011-06-18  Bruno Haible  <bruno@clisp.org>
6376
6377         isfinite, isinf: Fix link error on AIX 6 and 7.
6378         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6379         needed, also test the macro with a 'float' argument.
6380         * m4/isinf.m4 (gl_ISINF): Likewise.
6381
6382 2011-06-18  Bruno Haible  <bruno@clisp.org>
6383
6384         getloadavg: Don't clobber LIBS. Regression from previous commit.
6385         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6386         AC_CHECK_LIB from here...
6387         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6388         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6389         gl_func_getloadavg_done.
6390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6391
6392 2011-06-18  Bruno Haible  <bruno@clisp.org>
6393
6394         clean-temp: Improve documentation.
6395         * lib/clean-temp.h: Explain better how to use this module.
6396         Reported by John Darrington <john@darrington.wattle.id.au>.
6397
6398 2011-06-17  Bruno Haible  <bruno@clisp.org>
6399
6400         pread, pwrite: Avoid cc warning on AIX.
6401         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6402         (pwrite): Likewise.
6403
6404 2011-06-17  Bruno Haible  <bruno@clisp.org>
6405
6406         spawn-pipe tests: Fix link error.
6407         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6408         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6409
6410 2011-06-17  Bruno Haible  <bruno@clisp.org>
6411
6412         Tests: Remove unnecessary dependency.
6413         * modules/canonicalize-tests (Depends-on): Remove progname.
6414         * modules/chown-tests (Depends-on): Likewise.
6415         * modules/dirname-tests (Depends-on): Likewise.
6416         * modules/fdopendir-tests (Depends-on): Likewise.
6417         * modules/fdutimensat-tests (Depends-on): Likewise.
6418         * modules/hash-tests (Depends-on): Likewise.
6419         * modules/lchown-tests (Depends-on): Likewise.
6420         * modules/linkat-tests (Depends-on): Likewise.
6421         * modules/renameat-tests (Depends-on): Likewise.
6422         * modules/spawn-pipe-tests (Depends-on): Likewise.
6423         * modules/utimensat-tests (Depends-on): Likewise.
6424
6425 2011-06-17  Bruno Haible  <bruno@clisp.org>
6426
6427         spawn-pipe tests: Fix link error.
6428         * tests/test-spawn-pipe-child.c: Undefine fflush.
6429
6430 2011-06-17  Bruno Haible  <bruno@clisp.org>
6431
6432         Fix tests link errors.
6433         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6434         * modules/chown-tests (Makefile.am): Don't link test-chown with
6435         LIBINTL.
6436         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6437         LIBINTL.
6438         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6439         LIBINTL.
6440         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6441         LIBINTL.
6442
6443 2011-06-16  Bruno Haible  <bruno@clisp.org>
6444
6445         crypto/gc-sha1: Fix recent regression.
6446         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6447         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6448
6449         crypto/gc-md5: Fix recent regression.
6450         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6451
6452         crypto/gc-md4: Fix recent regression.
6453         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6454         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6455
6456         crypto/gc-arctwo: Fix recent regression.
6457         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6458         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6459
6460         crypto/gc-rijndael: Fix recent regression.
6461         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6462         (configure.ac): Invoke AC_LIBOBJ here.
6463         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6465
6466         crypto/gc-hmac-sha1: Fix recent regression.
6467         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6468         (configure.ac): Invoke AC_LIBOBJ here.
6469         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6470         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6471
6472         crypto/gc-hmac-md5: Fix recent regression.
6473         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6474         (configure.ac): Invoke AC_LIBOBJ here.
6475         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6476         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6477
6478         crypto/gc-des: Fix recent regression.
6479         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6480         (configure.ac): Invoke AC_LIBOBJ here.
6481         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6483
6484         crypto/gc-arcfour: Fix recent regression.
6485         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6486         (configure.ac): Invoke AC_LIBOBJ here.
6487         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6489
6490 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6491
6492         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6493         After the 2011-05-21 change, this macro requires
6494         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6495         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6496
6497 2011-06-16  Bruno Haible  <bruno@clisp.org>
6498
6499         fprintftime: Move AC_LIBOBJ invocations to module description.
6500         * m4/fprintftime.m4: Remove file.
6501         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6502         (configure.ac): Remove gl_FPRINTFTIME call.
6503         (Makefile.am): Augment lib_SOURCES.
6504         Reported by Jim Meyering.
6505
6506 2011-06-16  Bruno Haible  <bruno@clisp.org>
6507
6508         tmpfile-safer: Finish 2011-05-23 commit.
6509         * m4/stdio-safer.m4: Really remove file.
6510         Reported by Jim Meyering.
6511
6512 2011-06-16  Bruno Haible  <bruno@clisp.org>
6513
6514         syntax-check: Fix typo.
6515         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6516         printf-posix.m4.
6517         Reported by Jim Meyering.
6518
6519 2011-06-13  Jim Meyering  <meyering@redhat.com>
6520
6521         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6522         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6523
6524 2011-05-23  Bruno Haible  <bruno@clisp.org>
6525
6526         yesno: Move AC_LIBOBJ invocations to module description.
6527         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6528         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6529
6530 2011-05-23  Bruno Haible  <bruno@clisp.org>
6531
6532         xstrtol: Move AC_LIBOBJ invocations to module description.
6533         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6534         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6535
6536 2011-05-23  Bruno Haible  <bruno@clisp.org>
6537
6538         xstrtold: Move AC_LIBOBJ invocations to module description.
6539         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6540         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6541
6542 2011-05-23  Bruno Haible  <bruno@clisp.org>
6543
6544         xstrtod: Move AC_LIBOBJ invocations to module description.
6545         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6546         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6547
6548 2011-05-23  Bruno Haible  <bruno@clisp.org>
6549
6550         xnanosleep: Move AC_LIBOBJ invocations to module description.
6551         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6552         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6553
6554 2011-05-23  Bruno Haible  <bruno@clisp.org>
6555
6556         xgetcwd: Move AC_LIBOBJ invocations to module description.
6557         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6558         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6559
6560 2011-05-23  Bruno Haible  <bruno@clisp.org>
6561
6562         xalloc: Move AC_LIBOBJ invocations to module description.
6563         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6564         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6565
6566 2011-05-23  Bruno Haible  <bruno@clisp.org>
6567
6568         write-any-file: Move AC_LIBOBJ invocations to module description.
6569         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6570         invocation.
6571         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6572
6573 2011-05-23  Bruno Haible  <bruno@clisp.org>
6574
6575         utimens: Move AC_LIBOBJ invocations to module description.
6576         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6577         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6578
6579 2011-05-23  Bruno Haible  <bruno@clisp.org>
6580
6581         utimecmp: Move AC_LIBOBJ invocations to module description.
6582         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6583         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6584
6585 2011-05-23  Bruno Haible  <bruno@clisp.org>
6586
6587         userspec: Move AC_LIBOBJ invocations to module description.
6588         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6589         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6590
6591 2011-05-23  Bruno Haible  <bruno@clisp.org>
6592
6593         unlinkdir: Move AC_LIBOBJ invocations to module description.
6594         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6595         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6596
6597 2011-05-23  Bruno Haible  <bruno@clisp.org>
6598
6599         unistd-safer: Move AC_LIBOBJ invocations to module description.
6600         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6601         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6602
6603 2011-05-23  Bruno Haible  <bruno@clisp.org>
6604
6605         tempname: Move AC_LIBOBJ invocations to module description.
6606         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6607         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6608
6609 2011-05-23  Bruno Haible  <bruno@clisp.org>
6610
6611         strftime: Move AC_LIBOBJ invocations to module description.
6612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6613         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6614
6615 2011-05-23  Bruno Haible  <bruno@clisp.org>
6616
6617         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6618         * m4/stdlib-safer.m4: Remove file.
6619         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6620         (configure.ac): Remove gl_STDLIB_SAFER call.
6621         (Makefile.am): Augment lib_SOURCES.
6622
6623 2011-05-23  Bruno Haible  <bruno@clisp.org>
6624
6625         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6626         * m4/stdio-safer.m4: Remove file.
6627         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6628         (configure.ac): Remove gl_TMPFILE_SAFER call.
6629         (Makefile.am): Augment lib_SOURCES.
6630
6631 2011-05-23  Bruno Haible  <bruno@clisp.org>
6632
6633         popen-safer: Move AC_LIBOBJ invocations to module description.
6634         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6635         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6636         (configure.ac): Remove gl_POPEN_SAFER call.
6637         (Makefile.am): Augment lib_SOURCES.
6638
6639 2011-05-23  Bruno Haible  <bruno@clisp.org>
6640
6641         freopen-safer: Move AC_LIBOBJ invocations to module description.
6642         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6643         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6644         (configure.ac): Remove gl_FREOPEN_SAFER call.
6645         (Makefile.am): Augment lib_SOURCES.
6646
6647 2011-05-23  Bruno Haible  <bruno@clisp.org>
6648
6649         fopen-safer: Move AC_LIBOBJ invocations to module description.
6650         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6651         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6652         (configure.ac): Remove gl_FOPEN_SAFER call.
6653         (Makefile.am): Augment lib_SOURCES.
6654
6655 2011-05-23  Bruno Haible  <bruno@clisp.org>
6656
6657         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6658         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6659         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6660
6661 2011-05-23  Bruno Haible  <bruno@clisp.org>
6662
6663         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6664         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6665         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6666
6667 2011-05-23  Bruno Haible  <bruno@clisp.org>
6668
6669         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6670         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6671         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6672
6673 2011-05-23  Bruno Haible  <bruno@clisp.org>
6674
6675         settime: Move AC_LIBOBJ invocations to module description.
6676         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6677         * modules/settime (Makefile.am): Augment lib_SOURCES.
6678
6679 2011-05-23  Bruno Haible  <bruno@clisp.org>
6680
6681         savedir: Move AC_LIBOBJ invocations to module description.
6682         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6683         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6684
6685 2011-05-23  Bruno Haible  <bruno@clisp.org>
6686
6687         save-cwd: Move AC_LIBOBJ invocations to module description.
6688         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6689         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6690
6691 2011-05-23  Bruno Haible  <bruno@clisp.org>
6692
6693         same: Move AC_LIBOBJ invocations to module description.
6694         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6695         * modules/same (Makefile.am): Augment lib_SOURCES.
6696
6697 2011-05-23  Bruno Haible  <bruno@clisp.org>
6698
6699         safe-write: Move AC_LIBOBJ invocations to module description.
6700         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6701         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6702         instead of gl_SAFE_WRITE.
6703         (Makefile.am): Augment lib_SOURCES.
6704
6705 2011-05-23  Bruno Haible  <bruno@clisp.org>
6706
6707         safe-read: Move AC_LIBOBJ invocations to module description.
6708         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6709         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6710         of gl_SAFE_READ.
6711         (Makefile.am): Augment lib_SOURCES.
6712
6713 2011-05-23  Bruno Haible  <bruno@clisp.org>
6714
6715         safe-alloc: Move AC_LIBOBJ invocations to module description.
6716         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6717         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6718
6719 2011-05-23  Bruno Haible  <bruno@clisp.org>
6720
6721         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6722         * m4/rijndael.m4: Remove file.
6723         * modules/crypto/rijndael (Files): Remove it.
6724         (configure.ac): Remove gl_RIJNDAEL call.
6725         (Makefile.am): Augment lib_SOURCES.
6726
6727 2011-05-23  Bruno Haible  <bruno@clisp.org>
6728
6729         readtokens: Move AC_LIBOBJ invocations to module description.
6730         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6731         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6732
6733 2011-05-23  Bruno Haible  <bruno@clisp.org>
6734
6735         read-file: Move AC_LIBOBJ invocations to module description.
6736         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6737         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6738         of gl_FUNC_READ_FILE.
6739         (Makefile.am): Augment lib_SOURCES.
6740
6741 2011-05-23  Bruno Haible  <bruno@clisp.org>
6742
6743         quotearg: Move AC_LIBOBJ invocations to module description.
6744         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6745         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6746
6747 2011-05-23  Bruno Haible  <bruno@clisp.org>
6748
6749         quote: Move AC_LIBOBJ invocations to module description.
6750         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6751         * modules/quote (Makefile.am): Augment lib_SOURCES.
6752
6753 2011-05-23  Bruno Haible  <bruno@clisp.org>
6754
6755         posixver: Move AC_LIBOBJ invocations to module description.
6756         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6757         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6758
6759 2011-05-23  Bruno Haible  <bruno@clisp.org>
6760
6761         posixtm: Move AC_LIBOBJ invocations to module description.
6762         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6763         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6764
6765 2011-05-23  Bruno Haible  <bruno@clisp.org>
6766
6767         physmem: Move AC_LIBOBJ invocations to module description.
6768         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6769         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6770
6771 2011-05-23  Bruno Haible  <bruno@clisp.org>
6772
6773         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6774         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6775         invocation.
6776         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6777
6778 2011-05-23  Bruno Haible  <bruno@clisp.org>
6779
6780         mpsort: Move AC_LIBOBJ invocations to module description.
6781         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6782         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6783
6784 2011-05-23  Bruno Haible  <bruno@clisp.org>
6785
6786         modechange: Move AC_LIBOBJ invocations to module description.
6787         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6788         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6789
6790 2011-05-23  Bruno Haible  <bruno@clisp.org>
6791
6792         mkdir-p: Move AC_LIBOBJ invocations to module description.
6793         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6794         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6795
6796 2011-05-23  Bruno Haible  <bruno@clisp.org>
6797
6798         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6799         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6800         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6801
6802 2011-05-23  Bruno Haible  <bruno@clisp.org>
6803
6804         mgetgroups: Move AC_LIBOBJ invocations to module description.
6805         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6806         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6807
6808 2011-05-23  Bruno Haible  <bruno@clisp.org>
6809
6810         memxor: Move AC_LIBOBJ invocations to module description.
6811         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6812         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6813
6814 2011-05-23  Bruno Haible  <bruno@clisp.org>
6815
6816         memcoll: Move AC_LIBOBJ invocations to module description.
6817         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6818         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6819
6820 2011-05-23  Bruno Haible  <bruno@clisp.org>
6821
6822         memcasecmp: Move AC_LIBOBJ invocations to module description.
6823         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6824         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6825
6826 2011-05-23  Bruno Haible  <bruno@clisp.org>
6827
6828         crypto/md5: Move AC_LIBOBJ invocations to module description.
6829         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6830         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6831
6832 2011-05-23  Bruno Haible  <bruno@clisp.org>
6833
6834         crypto/md4: Move AC_LIBOBJ invocations to module description.
6835         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6836         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6837
6838 2011-05-23  Bruno Haible  <bruno@clisp.org>
6839
6840         crypto/md2: Move AC_LIBOBJ invocations to module description.
6841         * m4/md2.m4: Remove file.
6842         * modules/crypto/md2 (Files): Remove it.
6843         (configure.ac): Remove gl_MD2 call.
6844         (Makefile.am): Augment lib_SOURCES.
6845
6846 2011-05-23  Bruno Haible  <bruno@clisp.org>
6847
6848         long-options: Move AC_LIBOBJ invocations to module description.
6849         * m4/long-options.m4: Remove file.
6850         * modules/long-options (Files): Remove it.
6851         (configure.ac): Remove gl_LONG_OPTIONS call.
6852         (Makefile.am): Augment lib_SOURCES.
6853
6854 2011-05-23  Bruno Haible  <bruno@clisp.org>
6855
6856         i-ring: Move AC_LIBOBJ invocations to module description.
6857         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6858         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6859
6860 2011-05-23  Bruno Haible  <bruno@clisp.org>
6861
6862         idcache: Move AC_LIBOBJ invocations to module description.
6863         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6864         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6865
6866 2011-05-23  Bruno Haible  <bruno@clisp.org>
6867
6868         human: Move AC_LIBOBJ invocations to module description.
6869         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6870         * modules/human (Makefile.am): Augment lib_SOURCES.
6871
6872 2011-05-23  Bruno Haible  <bruno@clisp.org>
6873
6874         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6875         * m4/hmac-sha1.m4: Remove file.
6876         * modules/crypto/hmac-sha1 (Files): Remove it.
6877         (configure.ac): Remove gl_HMAC_SHA1 call.
6878         (Makefile.am): Augment lib_SOURCES.
6879
6880 2011-05-23  Bruno Haible  <bruno@clisp.org>
6881
6882         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6883         * m4/hmac-md5.m4: Remove file.
6884         * modules/crypto/hmac-md5 (Files): Remove it.
6885         (configure.ac): Remove gl_HMAC_MD5 call.
6886         (Makefile.am): Augment lib_SOURCES.
6887
6888 2011-05-23  Bruno Haible  <bruno@clisp.org>
6889
6890         hash: Move AC_LIBOBJ invocations to module description.
6891         * m4/hash.m4: Remove file.
6892         * modules/hash (Files): Remove it.
6893         (configure.ac): Remove gl_HASH call.
6894         (Makefile.am): Augment lib_SOURCES.
6895
6896 2011-05-23  Bruno Haible  <bruno@clisp.org>
6897
6898         hard-locale: Move AC_LIBOBJ invocations to module description.
6899         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6900         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6901
6902 2011-05-23  Bruno Haible  <bruno@clisp.org>
6903
6904         getugroups: Move AC_LIBOBJ invocations to module description.
6905         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6906         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6907
6908 2011-05-23  Bruno Haible  <bruno@clisp.org>
6909
6910         gettime: Move AC_LIBOBJ invocations to module description.
6911         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6912         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6913
6914 2011-05-23  Bruno Haible  <bruno@clisp.org>
6915
6916         getndelim2: Move AC_LIBOBJ invocations to module description.
6917         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6918         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6919
6920 2011-05-23  Bruno Haible  <bruno@clisp.org>
6921
6922         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6923         * m4/gc-pbkdf2-sha1.m4: Remove file.
6924         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6925         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6926         (Makefile.am): Augment lib_SOURCES.
6927
6928 2011-05-23  Bruno Haible  <bruno@clisp.org>
6929
6930         fts: Move AC_LIBOBJ invocations to module description.
6931         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6932         * modules/fts (configure.ac): ... to here.
6933
6934 2011-05-23  Bruno Haible  <bruno@clisp.org>
6935
6936         file-type: Move AC_LIBOBJ invocations to module description.
6937         * m4/file-type.m4: Remove file.
6938         * modules/file-type (Files): Remove it.
6939         (configure.ac): Remove gl_FILE_TYPE call.
6940         (Makefile.am): Augment lib_SOURCES.
6941
6942 2011-05-23  Bruno Haible  <bruno@clisp.org>
6943
6944         filenamecat*: Respect rules for use of AC_LIBOBJ.
6945         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6946         Remove AC_LIBOBJ invocation.
6947         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6948         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6949
6950 2011-05-23  Bruno Haible  <bruno@clisp.org>
6951
6952         filemode: Move AC_LIBOBJ invocations to module description.
6953         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6954         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6955
6956 2011-05-23  Bruno Haible  <bruno@clisp.org>
6957
6958         openat-safer: Move AC_LIBOBJ invocations to module description.
6959         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6960         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6961
6962 2011-05-23  Bruno Haible  <bruno@clisp.org>
6963
6964         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6965         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6966         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6967
6968 2011-05-23  Bruno Haible  <bruno@clisp.org>
6969
6970         exclude: Move AC_LIBOBJ invocations to module description.
6971         * m4/exclude.m4: Remove file.
6972         * modules/exclude (Files): Remove it.
6973         (configure.ac): Remove gl_EXCLUDE call.
6974         (Makefile.am): Augment lib_SOURCES.
6975
6976 2011-05-23  Bruno Haible  <bruno@clisp.org>
6977
6978         dirname*: Respect rules for use of AC_LIBOBJ.
6979         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6980         invocations.
6981         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6982         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6983
6984 2011-05-23  Bruno Haible  <bruno@clisp.org>
6985
6986         dirent-safer: Move AC_LIBOBJ invocations to module description.
6987         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6988         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6989
6990 2011-05-23  Bruno Haible  <bruno@clisp.org>
6991
6992         crypto/des: Move AC_LIBOBJ invocations to module description.
6993         * m4/des.m4: Remove file.
6994         * modules/crypto/des (Files): Remove it.
6995         (configure.ac): Remove gl_DES call.
6996         (Makefile.am): Augment lib_SOURCES.
6997
6998 2011-05-23  Bruno Haible  <bruno@clisp.org>
6999
7000         cycle-check: Move AC_LIBOBJ invocations to module description.
7001         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7002         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7003
7004 2011-05-23  Bruno Haible  <bruno@clisp.org>
7005
7006         c-strtold: Move AC_LIBOBJ invocations to module description.
7007         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7008         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7009
7010 2011-05-23  Bruno Haible  <bruno@clisp.org>
7011
7012         c-strtod: Move AC_LIBOBJ invocations to module description.
7013         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7014         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7015
7016 2011-05-23  Bruno Haible  <bruno@clisp.org>
7017
7018         crc: Move AC_LIBOBJ invocations to module description.
7019         * m4/crc.m4: Remove file.
7020         * modules/crc (Files): Remove it.
7021         (configure.ac): Remove gl_CRC call.
7022         (Makefile.am): Augment lib_SOURCES.
7023
7024 2011-05-23  Bruno Haible  <bruno@clisp.org>
7025
7026         close-stream: Move AC_LIBOBJ invocations to module description.
7027         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7028         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7029
7030 2011-05-23  Bruno Haible  <bruno@clisp.org>
7031
7032         closeout: Move AC_LIBOBJ invocations to module description.
7033         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7034         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7035
7036 2011-05-23  Bruno Haible  <bruno@clisp.org>
7037
7038         closein: Move AC_LIBOBJ invocations to module description.
7039         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7040         * modules/closein (Makefile.am): Augment lib_SOURCES.
7041
7042 2011-05-23  Bruno Haible  <bruno@clisp.org>
7043
7044         cloexec: Move AC_LIBOBJ invocations to module description.
7045         * m4/cloexec.m4: Remove file.
7046         * modules/cloexec (Files): Remove it.
7047         (configure.ac): Remove gl_CLOEXEC call.
7048         (Makefile.am): Augment lib_SOURCES.
7049
7050 2011-05-23  Bruno Haible  <bruno@clisp.org>
7051
7052         check-version: Move AC_LIBOBJ invocations to module description.
7053         * m4/check-version.m4: Remove file.
7054         * modules/check-version (Files): Remove it.
7055         (configure.ac): Remove gl_CHECK_VERSION call.
7056         (Makefile.am): Augment lib_SOURCES.
7057
7058 2011-05-23  Bruno Haible  <bruno@clisp.org>
7059
7060         chdir-safer: Move AC_LIBOBJ invocations to module description.
7061         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7062         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7063
7064 2011-05-23  Bruno Haible  <bruno@clisp.org>
7065
7066         canonicalize: Move AC_LIBOBJ invocations to module description.
7067         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7068         AC_LIBOBJ invocation.
7069         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7070
7071 2011-05-23  Bruno Haible  <bruno@clisp.org>
7072
7073         canon-host: Move AC_LIBOBJ invocations to module description.
7074         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7075         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7076         instead of gl_CANON_HOST.
7077         (Makefile.am): Augment lib_SOURCES.
7078
7079 2011-05-23  Bruno Haible  <bruno@clisp.org>
7080
7081         backupfile: Move AC_LIBOBJ invocations to module description.
7082         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7083         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7084
7085 2011-05-23  Bruno Haible  <bruno@clisp.org>
7086
7087         argmatch: Move AC_LIBOBJ invocations to module description.
7088         * m4/argmatch.m4: Remove file.
7089         * modules/argmatch (Files): Remove it.
7090         (configure.ac): Remove gl_ARGMATCH call.
7091         (Makefile.am): Augment lib_SOURCES.
7092
7093 2011-05-23  Bruno Haible  <bruno@clisp.org>
7094
7095         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7096         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7097         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7098
7099 2011-05-23  Bruno Haible  <bruno@clisp.org>
7100
7101         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7102         * m4/arcfour.m4: Remove file.
7103         * modules/crypto/arcfour (Files): Remove it.
7104         (configure.ac): Remove gl_ARCFOUR call.
7105         (Makefile.am): Augment lib_SOURCES.
7106
7107 2011-05-22  Bruno Haible  <bruno@clisp.org>
7108
7109         write: Move AC_LIBOBJ invocations to module description.
7110         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7111         * modules/write (configure.ac): ... to here.
7112
7113 2011-05-22  Bruno Haible  <bruno@clisp.org>
7114
7115         wmemset: Move AC_LIBOBJ invocations to module description.
7116         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7117         here...
7118         * modules/wmemset (configure.ac): ... to here.
7119
7120 2011-05-22  Bruno Haible  <bruno@clisp.org>
7121
7122         wmemmove: Move AC_LIBOBJ invocations to module description.
7123         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7124         here...
7125         * modules/wmemmove (configure.ac): ... to here.
7126
7127 2011-05-22  Bruno Haible  <bruno@clisp.org>
7128
7129         wmemcpy: Move AC_LIBOBJ invocations to module description.
7130         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7131         here...
7132         * modules/wmemcpy (configure.ac): ... to here.
7133
7134 2011-05-22  Bruno Haible  <bruno@clisp.org>
7135
7136         wmemcmp: Move AC_LIBOBJ invocations to module description.
7137         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7138         here...
7139         * modules/wmemcmp (configure.ac): ... to here.
7140
7141 2011-05-22  Bruno Haible  <bruno@clisp.org>
7142
7143         wmemchr: Move AC_LIBOBJ invocations to module description.
7144         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7145         here...
7146         * modules/wmemchr (configure.ac): ... to here.
7147
7148 2011-05-22  Bruno Haible  <bruno@clisp.org>
7149
7150         wcswidth: Move AC_LIBOBJ invocations to module description.
7151         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7152         here...
7153         * modules/wcswidth (configure.ac): ... to here.
7154
7155 2011-05-22  Bruno Haible  <bruno@clisp.org>
7156
7157         wcwidth: Respect rules for use of AC_LIBOBJ.
7158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7159         invocation from here...
7160         * modules/wcwidth (configure.ac): ... to here.
7161         (Depends-on): Update conditions.
7162
7163 2011-05-22  Bruno Haible  <bruno@clisp.org>
7164
7165         wctype: Move AC_LIBOBJ invocations to module description.
7166         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7167         invocation from here...
7168         * modules/wctype (configure.ac): ... to here.
7169         (Depends-on): Update conditions.
7170
7171 2011-05-22  Bruno Haible  <bruno@clisp.org>
7172
7173         wctrans: Move AC_LIBOBJ invocations to module description.
7174         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7175         invocation from here...
7176         * modules/wctrans (configure.ac): ... to here.
7177
7178 2011-05-22  Bruno Haible  <bruno@clisp.org>
7179
7180         wctomb: Move AC_LIBOBJ invocations to module description.
7181         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7182         invocations from here...
7183         * modules/wctomb (configure.ac): ... to here.
7184
7185 2011-05-22  Bruno Haible  <bruno@clisp.org>
7186
7187         wctob: Move AC_LIBOBJ invocations to module description.
7188         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7189         gl_PREREQ_WCTOB invocations from here...
7190         * modules/wctob (configure.ac): ... to here.
7191         (Depends-on): Update conditions.
7192
7193 2011-05-22  Bruno Haible  <bruno@clisp.org>
7194
7195         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7196         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7197         here...
7198         * modules/wcsxfrm (configure.ac): ... to here.
7199
7200 2011-05-22  Bruno Haible  <bruno@clisp.org>
7201
7202         wcstok: Move AC_LIBOBJ invocations to module description.
7203         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7204         * modules/wcstok (configure.ac): ... to here.
7205
7206 2011-05-22  Bruno Haible  <bruno@clisp.org>
7207
7208         wcsstr: Move AC_LIBOBJ invocations to module description.
7209         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7210         * modules/wcsstr (configure.ac): ... to here.
7211
7212 2011-05-22  Bruno Haible  <bruno@clisp.org>
7213
7214         wcsspn: Move AC_LIBOBJ invocations to module description.
7215         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7216         * modules/wcsspn (configure.ac): ... to here.
7217
7218 2011-05-22  Bruno Haible  <bruno@clisp.org>
7219
7220         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7221         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7222         gl_PREREQ_WCSRTOMBS invocations from here...
7223         * modules/wcsrtombs (configure.ac): ... to here.
7224
7225 2011-05-22  Bruno Haible  <bruno@clisp.org>
7226
7227         wcsrchr: Move AC_LIBOBJ invocations to module description.
7228         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7229         here...
7230         * modules/wcsrchr (configure.ac): ... to here.
7231
7232 2011-05-22  Bruno Haible  <bruno@clisp.org>
7233
7234         wcspbrk: Move AC_LIBOBJ invocations to module description.
7235         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7236         here...
7237         * modules/wcspbrk (configure.ac): ... to here.
7238
7239 2011-05-22  Bruno Haible  <bruno@clisp.org>
7240
7241         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7242         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7243         gl_PREREQ_WCSNRTOMBS invocations from here...
7244         * modules/wcsnrtombs (configure.ac): ... to here.
7245
7246 2011-05-22  Bruno Haible  <bruno@clisp.org>
7247
7248         wcsnlen: Move AC_LIBOBJ invocations to module description.
7249         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7250         here...
7251         * modules/wcsnlen (configure.ac): ... to here.
7252
7253 2011-05-22  Bruno Haible  <bruno@clisp.org>
7254
7255         wcsncpy: Move AC_LIBOBJ invocations to module description.
7256         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7257         here...
7258         * modules/wcsncpy (configure.ac): ... to here.
7259
7260 2011-05-22  Bruno Haible  <bruno@clisp.org>
7261
7262         wcsncmp: Move AC_LIBOBJ invocations to module description.
7263         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7264         here...
7265         * modules/wcsncmp (configure.ac): ... to here.
7266
7267 2011-05-22  Bruno Haible  <bruno@clisp.org>
7268
7269         wcsncat: Move AC_LIBOBJ invocations to module description.
7270         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7271         here...
7272         * modules/wcsncat (configure.ac): ... to here.
7273
7274 2011-05-22  Bruno Haible  <bruno@clisp.org>
7275
7276         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7277         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7278         from here...
7279         * modules/wcsncasecmp (configure.ac): ... to here.
7280
7281 2011-05-22  Bruno Haible  <bruno@clisp.org>
7282
7283         wcslen: Move AC_LIBOBJ invocations to module description.
7284         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7285         * modules/wcslen (configure.ac): ... to here.
7286
7287 2011-05-22  Bruno Haible  <bruno@clisp.org>
7288
7289         wcsdup: Move AC_LIBOBJ invocations to module description.
7290         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7291         * modules/wcsdup (configure.ac): ... to here.
7292
7293 2011-05-22  Bruno Haible  <bruno@clisp.org>
7294
7295         wcscspn: Move AC_LIBOBJ invocations to module description.
7296         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7297         here...
7298         * modules/wcscspn (configure.ac): ... to here.
7299
7300 2011-05-22  Bruno Haible  <bruno@clisp.org>
7301
7302         wcscpy: Move AC_LIBOBJ invocations to module description.
7303         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7304         * modules/wcscpy (configure.ac): ... to here.
7305
7306 2011-05-22  Bruno Haible  <bruno@clisp.org>
7307
7308         wcscoll: Move AC_LIBOBJ invocations to module description.
7309         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7310         here...
7311         * modules/wcscoll (configure.ac): ... to here.
7312
7313 2011-05-22  Bruno Haible  <bruno@clisp.org>
7314
7315         wcscmp: Move AC_LIBOBJ invocations to module description.
7316         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7317         * modules/wcscmp (configure.ac): ... to here.
7318
7319 2011-05-22  Bruno Haible  <bruno@clisp.org>
7320
7321         wcschr: Move AC_LIBOBJ invocations to module description.
7322         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7323         * modules/wcschr (configure.ac): ... to here.
7324
7325 2011-05-22  Bruno Haible  <bruno@clisp.org>
7326
7327         wcscat: Move AC_LIBOBJ invocations to module description.
7328         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7329         * modules/wcscat (configure.ac): ... to here.
7330
7331 2011-05-22  Bruno Haible  <bruno@clisp.org>
7332
7333         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7334         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7335         here...
7336         * modules/wcscasecmp (configure.ac): ... to here.
7337
7338 2011-05-22  Bruno Haible  <bruno@clisp.org>
7339
7340         wcrtomb: Move AC_LIBOBJ invocations to module description.
7341         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7342         invocations from here...
7343         * modules/wcrtomb (configure.ac): ... to here.
7344
7345 2011-05-22  Bruno Haible  <bruno@clisp.org>
7346
7347         wcpncpy: Move AC_LIBOBJ invocations to module description.
7348         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7349         here...
7350         * modules/wcpncpy (configure.ac): ... to here.
7351
7352 2011-05-22  Bruno Haible  <bruno@clisp.org>
7353
7354         wcpcpy: Move AC_LIBOBJ invocations to module description.
7355         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7356         * modules/wcpcpy (configure.ac): ... to here.
7357
7358 2011-05-22  Bruno Haible  <bruno@clisp.org>
7359
7360         waitpid: Move AC_LIBOBJ invocations to module description.
7361         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7362         invocation from here...
7363         * modules/waitpid (configure.ac): ... to here.
7364
7365 2011-05-22  Bruno Haible  <bruno@clisp.org>
7366
7367         utimensat: Move AC_LIBOBJ invocations to module description.
7368         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7369         here...
7370         * modules/utimensat (configure.ac): ... to here.
7371
7372 2011-05-22  Bruno Haible  <bruno@clisp.org>
7373
7374         usleep: Move AC_LIBOBJ invocations to module description.
7375         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7376         here...
7377         * modules/usleep (configure.ac): ... to here.
7378
7379 2011-05-22  Bruno Haible  <bruno@clisp.org>
7380
7381         unlockpt: Move AC_LIBOBJ invocations to module description.
7382         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7383         gl_PREREQ_UNLOCKPT invocations from here...
7384         * modules/unlockpt (configure.ac): ... to here.
7385
7386 2011-05-22  Bruno Haible  <bruno@clisp.org>
7387
7388         unlink: Respect rules for use of AC_LIBOBJ.
7389         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7390         * modules/unlink (configure.ac): ... to here.
7391
7392 2011-05-22  Bruno Haible  <bruno@clisp.org>
7393
7394         uname: Move AC_LIBOBJ invocations to module description.
7395         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7396         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7397         here...
7398         * modules/uname (configure.ac): ... to here.
7399
7400 2011-05-22  Bruno Haible  <bruno@clisp.org>
7401
7402         ttyname_r: Move AC_LIBOBJ invocations to module description.
7403         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7404         gl_PREREQ_TTYNAME_R invocations from here...
7405         * modules/ttyname_r (configure.ac): ... to here.
7406
7407 2011-05-22  Bruno Haible  <bruno@clisp.org>
7408
7409         tsearch: Move AC_LIBOBJ invocations to module description.
7410         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7411         invocations from here...
7412         * modules/tsearch (configure.ac): ... to here.
7413
7414 2011-05-22  Bruno Haible  <bruno@clisp.org>
7415
7416         towctrans: Move AC_LIBOBJ invocations to module description.
7417         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7418         AC_LIBOBJ invocation from here...
7419         * modules/towctrans (configure.ac): ... to here.
7420
7421 2011-05-22  Bruno Haible  <bruno@clisp.org>
7422
7423         tmpfile: Move AC_LIBOBJ invocations to module description.
7424         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7425         invocations from here...
7426         * modules/tmpfile (configure.ac): ... to here.
7427
7428 2011-05-22  Bruno Haible  <bruno@clisp.org>
7429
7430         times: Move AC_LIBOBJ invocations to module description.
7431         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7432         * modules/times (configure.ac): ... to here.
7433
7434 2011-05-22  Bruno Haible  <bruno@clisp.org>
7435
7436         time_r: Move AC_LIBOBJ invocations to module description.
7437         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7438         invocations from here...
7439         * modules/time_r (configure.ac): ... to here.
7440
7441 2011-05-22  Bruno Haible  <bruno@clisp.org>
7442
7443         timegm: Move AC_LIBOBJ invocations to module description.
7444         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7445         invocations from here...
7446         * modules/timegm (configure.ac): ... to here.
7447
7448 2011-05-22  Bruno Haible  <bruno@clisp.org>
7449
7450         tcgetsid: Move AC_LIBOBJ invocations to module description.
7451         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7452         and gl_PREREQ_TCGETSID invocations from here...
7453         * modules/tcgetsid (configure.ac): ... to here.
7454         (Depends-on): Update conditions.
7455
7456 2011-05-22  Bruno Haible  <bruno@clisp.org>
7457
7458         symlinkat: Move AC_LIBOBJ invocations to module description.
7459         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7460         here...
7461         * modules/symlinkat (configure.ac): ... to here.
7462
7463 2011-05-22  Bruno Haible  <bruno@clisp.org>
7464
7465         symlink: Move AC_LIBOBJ invocations to module description.
7466         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7467         here...
7468         * modules/symlink (configure.ac): ... to here.
7469
7470 2011-05-22  Bruno Haible  <bruno@clisp.org>
7471
7472         strverscmp: Move AC_LIBOBJ invocations to module description.
7473         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7474         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7475         from here...
7476         * modules/strverscmp (configure.ac): ... to here.
7477
7478 2011-05-22  Bruno Haible  <bruno@clisp.org>
7479
7480         strtok_r: Move AC_LIBOBJ invocations to module description.
7481         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7482         and gl_PREREQ_STRTOK_R invocations from here...
7483         * modules/strtok_r (configure.ac): ... to here.
7484         (Depends-on): Update conditions.
7485
7486 2011-05-22  Bruno Haible  <bruno@clisp.org>
7487
7488         strtoumax: Move AC_LIBOBJ invocations to module description.
7489         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7491         from here...
7492         * modules/strtoumax (configure.ac): ... to here.
7493
7494 2011-05-22  Bruno Haible  <bruno@clisp.org>
7495
7496         strtoimax: Move AC_LIBOBJ invocations to module description.
7497         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7499         from here...
7500         * modules/strtoimax (configure.ac): ... to here.
7501
7502 2011-05-22  Bruno Haible  <bruno@clisp.org>
7503
7504         strtoull: Move AC_LIBOBJ invocations to module description.
7505         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7507         from here...
7508         * modules/strtoull (configure.ac): ... to here.
7509
7510 2011-05-22  Bruno Haible  <bruno@clisp.org>
7511
7512         strtoll: Move AC_LIBOBJ invocations to module description.
7513         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7515         here...
7516         * modules/strtoll (configure.ac): ... to here.
7517
7518 2011-05-22  Bruno Haible  <bruno@clisp.org>
7519
7520         strtoul: Move AC_LIBOBJ invocations to module description.
7521         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7522         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7523         * modules/strtoul (configure.ac): ... to here.
7524
7525 2011-05-22  Bruno Haible  <bruno@clisp.org>
7526
7527         strtol: Move AC_LIBOBJ invocations to module description.
7528         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7529         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7530         * modules/strtol (configure.ac): ... to here.
7531
7532 2011-05-22  Bruno Haible  <bruno@clisp.org>
7533
7534         strtod: Move AC_LIBOBJ invocations to module description.
7535         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7536         invocations from here...
7537         * modules/strtod (configure.ac): ... to here.
7538
7539 2011-05-22  Bruno Haible  <bruno@clisp.org>
7540
7541         strstr*: Move AC_LIBOBJ invocations to module description.
7542         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7543         invocations from here...
7544         * modules/strstr-simple (configure.ac): ... to here.
7545         * modules/strstr (configure.ac): ... and here.
7546
7547 2011-05-22  Bruno Haible  <bruno@clisp.org>
7548
7549         strsignal: Move AC_LIBOBJ invocations to module description.
7550         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7551         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7552         * modules/strsignal (configure.ac): ... to here.
7553         (Depends-on): Update conditions.
7554
7555 2011-05-22  Bruno Haible  <bruno@clisp.org>
7556
7557         strsep: Move AC_LIBOBJ invocations to module description.
7558         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7560         here...
7561         * modules/strsep (configure.ac): ... to here.
7562
7563 2011-05-22  Bruno Haible  <bruno@clisp.org>
7564
7565         strptime: Move AC_LIBOBJ invocations to module description.
7566         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7567         gl_PREREQ_STRPTIME invocations from here...
7568         * modules/strptime (configure.ac): ... to here.
7569
7570 2011-05-22  Bruno Haible  <bruno@clisp.org>
7571
7572         strpbrk: Move AC_LIBOBJ invocations to module description.
7573         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7574         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7575         here...
7576         * modules/strpbrk (configure.ac): ... to here.
7577
7578 2011-05-22  Bruno Haible  <bruno@clisp.org>
7579
7580         strnlen: Move AC_LIBOBJ invocations to module description.
7581         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7582         invocations from here...
7583         * modules/strnlen (configure.ac): ... to here.
7584
7585 2011-05-22  Bruno Haible  <bruno@clisp.org>
7586
7587         strndup: Move AC_LIBOBJ invocations to module description.
7588         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7589         invocations from here...
7590         * modules/strndup (configure.ac): ... to here.
7591         (Depends-on): Update conditions.
7592
7593 2011-05-22  Bruno Haible  <bruno@clisp.org>
7594
7595         strncat: Move AC_LIBOBJ invocations to module description.
7596         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7597         invocations from here...
7598         * modules/strncat (configure.ac): ... to here.
7599
7600 2011-05-22  Bruno Haible  <bruno@clisp.org>
7601
7602         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7603         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7604         invocations from here...
7605         * modules/strdup (configure.ac): ... to here.
7606         * modules/strdup-posix (configure.ac): ... and here.
7607
7608 2011-05-22  Bruno Haible  <bruno@clisp.org>
7609
7610         strcspn: Move AC_LIBOBJ invocations to module description.
7611         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7613         here...
7614         * modules/strcspn (configure.ac): ... to here.
7615
7616 2011-05-22  Bruno Haible  <bruno@clisp.org>
7617
7618         strchrnul: Move AC_LIBOBJ invocations to module description.
7619         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7620         gl_PREREQ_STRCHRNUL invocations from here...
7621         * modules/strchrnul (configure.ac): ... to here.
7622
7623 2011-05-22  Bruno Haible  <bruno@clisp.org>
7624
7625         strcasestr*: Move AC_LIBOBJ invocations to module description.
7626         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7627         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7628         * modules/strcasestr-simple (configure.ac): ... to here.
7629         * modules/strcasestr (configure.ac): ... and here.
7630
7631 2011-05-22  Bruno Haible  <bruno@clisp.org>
7632
7633         strcase: Move AC_LIBOBJ invocations to module description.
7634         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7635         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7636         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7637         gl_PREREQ_STRNCASECMP invocations from here...
7638         * modules/strcase (configure.ac): ... to here.
7639
7640 2011-05-22  Bruno Haible  <bruno@clisp.org>
7641
7642         stpncpy: Move AC_LIBOBJ invocations to module description.
7643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7644         here...
7645         * modules/stpncpy (configure.ac): ... to here.
7646
7647 2011-05-22  Bruno Haible  <bruno@clisp.org>
7648
7649         stpcpy: Move AC_LIBOBJ invocations to module description.
7650         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7652         here...
7653         * modules/stpcpy (configure.ac): ... to here.
7654
7655 2011-05-21  Bruno Haible  <bruno@clisp.org>
7656
7657         stat: Move AC_LIBOBJ invocations to module description.
7658         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7659         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7660         here...
7661         * modules/stat (configure.ac): ... to here.
7662
7663 2011-05-21  Bruno Haible  <bruno@clisp.org>
7664
7665         sleep: Move AC_LIBOBJ invocations to module description.
7666         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7667         * modules/sleep (configure.ac): ... to here.
7668
7669 2011-05-21  Bruno Haible  <bruno@clisp.org>
7670
7671         signbit: Move AC_LIBOBJ invocations to module description.
7672         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7673         * modules/signbit (configure.ac): ... to here.
7674
7675 2011-05-21  Bruno Haible  <bruno@clisp.org>
7676
7677         sigprocmask: Move AC_LIBOBJ invocations to module description.
7678         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7679         gl_PREREQ_SIGPROMASK invocations from here...
7680         * modules/sigprocmask (configure.ac): ... to here.
7681
7682 2011-05-21  Bruno Haible  <bruno@clisp.org>
7683
7684         sigaction: Move AC_LIBOBJ invocations to module description.
7685         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7686         gl_PREREQ_SIGACTION invocations from here...
7687         * modules/sigaction (configure.ac): ... to here.
7688
7689 2011-05-21  Bruno Haible  <bruno@clisp.org>
7690
7691         sig2str: Move AC_LIBOBJ invocations to module description.
7692         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7694         here...
7695         * modules/sig2str (configure.ac): ... to here.
7696
7697 2011-05-21  Bruno Haible  <bruno@clisp.org>
7698
7699         setlocale: Move AC_LIBOBJ invocations to module description.
7700         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7701         gl_PREREQ_SETLOCALE invocations from here...
7702         * modules/setlocale (configure.ac): ... to here.
7703
7704 2011-05-21  Bruno Haible  <bruno@clisp.org>
7705
7706         unsetenv: Move AC_LIBOBJ invocations to module description.
7707         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7708         and gl_PREREQ_UNSETENV invocations from here...
7709         * modules/unsetenv (configure.ac): ... to here.
7710         (Depends-on): Update.
7711
7712 2011-05-21  Bruno Haible  <bruno@clisp.org>
7713
7714         setenv: Move AC_LIBOBJ invocations to module description.
7715         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7716         here...
7717         * modules/setenv (configure.ac): ... to here.
7718
7719 2011-05-21  Bruno Haible  <bruno@clisp.org>
7720
7721         selinux-h: Move AC_LIBOBJ invocations to module description.
7722         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7723         AC_LIBOBJ invocation from here...
7724         * modules/selinux-h (configure.ac): ... to here.
7725
7726 2011-05-21  Bruno Haible  <bruno@clisp.org>
7727
7728         select: Respect rules for use of AC_LIBOBJ.
7729         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7730         here...
7731         * modules/select (configure.ac): ... to here.
7732
7733 2011-05-21  Bruno Haible  <bruno@clisp.org>
7734
7735         scandir: Move AC_LIBOBJ invocations to module description.
7736         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7737         invocations from here...
7738         * modules/scandir (configure.ac): ... to here.
7739
7740 2011-05-21  Bruno Haible  <bruno@clisp.org>
7741
7742         rpmatch: Move AC_LIBOBJ invocations to module description.
7743         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7745         here...
7746         * modules/rpmatch (configure.ac): ... to here.
7747
7748 2011-05-21  Bruno Haible  <bruno@clisp.org>
7749
7750         rmdir: Respect rules for use of AC_LIBOBJ.
7751         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7752         * modules/rmdir (configure.ac): ... to here.
7753
7754 2011-05-21  Bruno Haible  <bruno@clisp.org>
7755
7756         renameat: Move AC_LIBOBJ invocations to module description.
7757         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7758         here...
7759         * modules/renameat (configure.ac): ... to here.
7760
7761 2011-05-21  Bruno Haible  <bruno@clisp.org>
7762
7763         rename: Respect rules for use of AC_LIBOBJ.
7764         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7765         here...
7766         * modules/rename (configure.ac): ... to here.
7767
7768 2011-05-21  Bruno Haible  <bruno@clisp.org>
7769
7770         remove: Move AC_LIBOBJ invocations to module description.
7771         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7772         here...
7773         * modules/remove (configure.ac): ... to here.
7774
7775 2011-05-21  Bruno Haible  <bruno@clisp.org>
7776
7777         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7778         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7779         macro.
7780         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7781         * modules/relocatable-lib (configure.ac): ... to here.
7782         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7783         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7784
7785 2011-05-21  Bruno Haible  <bruno@clisp.org>
7786
7787         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7788         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7789         here...
7790         * modules/relocatable-prog (configure.ac): ... to here.
7791
7792 2011-05-21  Bruno Haible  <bruno@clisp.org>
7793
7794         regex: Move AC_LIBOBJ invocations to module description.
7795         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7796         invocations from here...
7797         * modules/regex (configure.ac): ... to here.
7798
7799 2011-05-21  Bruno Haible  <bruno@clisp.org>
7800
7801         realloc-*: Move AC_LIBOBJ invocations to module description.
7802         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7803         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7804         AC_LIBOBJ invocations from here...
7805         * modules/realloc-gnu (configure.ac): ... to here.
7806         * modules/realloc-posix (configure.ac): ... and here.
7807
7808 2011-05-21  Bruno Haible  <bruno@clisp.org>
7809
7810         readutmp: Move AC_LIBOBJ invocations to module description.
7811         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7812         * modules/readutmp (configure.ac): ... to here.
7813
7814 2011-05-21  Bruno Haible  <bruno@clisp.org>
7815
7816         readlinkat: Move AC_LIBOBJ invocations to module description.
7817         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7818         here...
7819         * modules/readlinkat (configure.ac): ... to here.
7820
7821 2011-05-21  Bruno Haible  <bruno@clisp.org>
7822
7823         readlink: Move AC_LIBOBJ invocations to module description.
7824         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7825         gl_PREREQ_READLINK invocations from here...
7826         * modules/readlink (configure.ac): ... to here.
7827
7828 2011-05-21  Bruno Haible  <bruno@clisp.org>
7829
7830         readline: Move AC_LIBOBJ invocations to module description.
7831         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7832         gl_PREREQ_READLINE invocations from here...
7833         * modules/readline (configure.ac): ... to here.
7834
7835 2011-05-21  Bruno Haible  <bruno@clisp.org>
7836
7837         read: Move AC_LIBOBJ invocations to module description.
7838         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7839         * modules/read (configure.ac): ... to here.
7840
7841 2011-05-21  Bruno Haible  <bruno@clisp.org>
7842
7843         rawmemchr: Move AC_LIBOBJ invocations to module description.
7844         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7846         from here...
7847         * modules/rawmemchr (configure.ac): ... to here.
7848
7849 2011-05-21  Bruno Haible  <bruno@clisp.org>
7850
7851         random_r: Move AC_LIBOBJ invocations to module description.
7852         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7853         gl_PREREQ_RANDOM_R invocations from here...
7854         * modules/random_r (configure.ac): ... to here.
7855
7856 2011-05-21  Bruno Haible  <bruno@clisp.org>
7857
7858         pwrite: Move AC_LIBOBJ invocations to module description.
7859         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7860         * modules/pwrite (configure.ac): ... to here.
7861
7862 2011-05-21  Bruno Haible  <bruno@clisp.org>
7863
7864         putenv: Move AC_LIBOBJ invocations to module description.
7865         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7866         * modules/putenv (configure.ac): ... to here.
7867
7868 2011-05-21  Bruno Haible  <bruno@clisp.org>
7869
7870         login_tty: Move AC_LIBOBJ invocations to module description.
7871         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7872         * modules/login_tty (configure.ac): ... to here.
7873
7874 2011-05-21  Bruno Haible  <bruno@clisp.org>
7875
7876         openpty: Move AC_LIBOBJ invocations to module description.
7877         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7878         * modules/openpty (configure.ac): ... to here.
7879
7880 2011-05-21  Bruno Haible  <bruno@clisp.org>
7881
7882         forkpty: Move AC_LIBOBJ invocations to module description.
7883         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7884         * modules/forkpty (configure.ac): ... to here.
7885
7886 2011-05-21  Bruno Haible  <bruno@clisp.org>
7887
7888         ptsname: Move AC_LIBOBJ invocations to module description.
7889         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7890         invocations from here...
7891         * modules/ptsname (configure.ac): ... to here.
7892
7893 2011-05-21  Bruno Haible  <bruno@clisp.org>
7894
7895         pread: Move AC_LIBOBJ invocations to module description.
7896         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7897         * modules/pread (configure.ac): ... to here.
7898
7899 2011-05-21  Bruno Haible  <bruno@clisp.org>
7900
7901         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7902         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7903         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7904         * modules/posix_spawn (configure.ac): ... to here.
7905         * modules/posix_spawnp (configure.ac): ... and here.
7906
7907 2011-05-21  Bruno Haible  <bruno@clisp.org>
7908
7909         popen: Move AC_LIBOBJ invocations to module description.
7910         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7911         invocations from here...
7912         * modules/popen (configure.ac): ... to here.
7913
7914 2011-05-21  Bruno Haible  <bruno@clisp.org>
7915
7916         poll: Move AC_LIBOBJ invocations to module description.
7917         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7918         invocations from here...
7919         * modules/poll (configure.ac): ... to here.
7920
7921 2011-05-21  Bruno Haible  <bruno@clisp.org>
7922
7923         pipe-posix: Move AC_LIBOBJ invocations to module description.
7924         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7925         * modules/pipe-posix (configure.ac): ... to here.
7926
7927 2011-05-21  Bruno Haible  <bruno@clisp.org>
7928
7929         openat: Respect rules for use of AC_LIBOBJ.
7930         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7931         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7932         * modules/openat (configure.ac): ... to here.
7933
7934 2011-05-21  Bruno Haible  <bruno@clisp.org>
7935
7936         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7937         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7938         invocation from here...
7939         * modules/obstack-printf (configure.ac): ... to here.
7940         * modules/obstack-printf-posix (configure.ac): ... and here.
7941
7942 2011-05-21  Bruno Haible  <bruno@clisp.org>
7943
7944         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7945         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7946         from here...
7947         * modules/nl_langinfo (configure.ac): ... to here.
7948
7949 2011-05-21  Bruno Haible  <bruno@clisp.org>
7950
7951         nanosleep: Move AC_LIBOBJ invocations to module description.
7952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7953         gl_PREREQ_NANOSLEEP invocations from here...
7954         * modules/nanosleep (configure.ac): ... to here.
7955
7956 2011-05-21  Bruno Haible  <bruno@clisp.org>
7957
7958         mountlist: Move AC_LIBOBJ invocations to module description.
7959         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7960         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7961         * modules/mountlist (configure.ac): ... to here.
7962
7963 2011-05-21  Bruno Haible  <bruno@clisp.org>
7964
7965         mktime: Respect rules for use of AC_LIBOBJ.
7966         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7967         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7968         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7969         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7970         * modules/mktime (configure.ac): ... to here.
7971         * modules/mktime-internal (configure.ac): ... and here.
7972         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7973
7974 2011-05-21  Bruno Haible  <bruno@clisp.org>
7975
7976         mkstemps: Move AC_LIBOBJ invocations to module description.
7977         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7978         here...
7979         * modules/mkstemps (configure.ac): ... to here.
7980
7981 2011-05-21  Bruno Haible  <bruno@clisp.org>
7982
7983         mkstemp: Move AC_LIBOBJ invocations to module description.
7984         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7985         gl_PREREQ_MKSTEMP invocations from here...
7986         * modules/mkstemp (configure.ac): ... to here.
7987
7988 2011-05-21  Bruno Haible  <bruno@clisp.org>
7989
7990         mkostemps: Move AC_LIBOBJ invocations to module description.
7991         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7992         here...
7993         * modules/mkostemps (configure.ac): ... to here.
7994
7995 2011-05-21  Bruno Haible  <bruno@clisp.org>
7996
7997         mkostemp: Move AC_LIBOBJ invocations to module description.
7998         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7999         gl_PREREQ_MKOSTEMP invocations from here...
8000         * modules/mkostemp (configure.ac): ... to here.
8001
8002 2011-05-21  Bruno Haible  <bruno@clisp.org>
8003
8004         mknod: Move AC_LIBOBJ invocations to module description.
8005         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8006         * modules/mknod (configure.ac): ... to here.
8007
8008 2011-05-21  Bruno Haible  <bruno@clisp.org>
8009
8010         mkfifoat: Move AC_LIBOBJ invocations to module description.
8011         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8012         here...
8013         * modules/mkfifoat (configure.ac): ... to here.
8014
8015 2011-05-21  Bruno Haible  <bruno@clisp.org>
8016
8017         mkfifo: Respect rules for use of AC_LIBOBJ.
8018         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8019         here...
8020         * modules/mkfifo (configure.ac): ... to here.
8021
8022 2011-05-21  Bruno Haible  <bruno@clisp.org>
8023
8024         mkdtemp: Move AC_LIBOBJ invocations to module description.
8025         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8026         invocations from here...
8027         * modules/mkdtemp (configure.ac): ... to here.
8028
8029 2011-05-21  Bruno Haible  <bruno@clisp.org>
8030
8031         mkdir: Move AC_LIBOBJ invocations to module description.
8032         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8033         * modules/mkdir (configure.ac): ... to here.
8034
8035 2011-05-21  Bruno Haible  <bruno@clisp.org>
8036
8037         memset: Move AC_LIBOBJ invocations to module description.
8038         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8040         here...
8041         * modules/memset (configure.ac): ... to here.
8042
8043 2011-05-21  Bruno Haible  <bruno@clisp.org>
8044
8045         memrchr: Move AC_LIBOBJ invocations to module description.
8046         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8048         here...
8049         * modules/memrchr (configure.ac): ... to here.
8050
8051 2011-05-21  Bruno Haible  <bruno@clisp.org>
8052
8053         mempcpy: Move AC_LIBOBJ invocations to module description.
8054         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8055         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8056         here...
8057         * modules/mempcpy (configure.ac): ... to here.
8058
8059 2011-05-21  Bruno Haible  <bruno@clisp.org>
8060
8061         memmove: Move AC_LIBOBJ invocations to module description.
8062         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8063         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8064         here...
8065         * modules/memmove (configure.ac): ... to here.
8066
8067 2011-05-21  Bruno Haible  <bruno@clisp.org>
8068
8069         memmem*: Move AC_LIBOBJ invocations to module description.
8070         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8071         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8072         here...
8073         (gl_FUNC_MEMMEM): ... and here...
8074         * modules/memmem-simple (configure.ac): ... to here.
8075         * modules/memmem (configure.ac): ... and here.
8076
8077 2011-05-21  Bruno Haible  <bruno@clisp.org>
8078
8079         memcpy: Move AC_LIBOBJ invocations to module description.
8080         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8082         here...
8083         * modules/memcpy (configure.ac): ... to here.
8084
8085 2011-05-21  Bruno Haible  <bruno@clisp.org>
8086
8087         memcmp: Simplify autoconf macro.
8088         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8089         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8090         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8091
8092 2011-05-21  Bruno Haible  <bruno@clisp.org>
8093
8094         memcmp: Move AC_LIBOBJ invocations to module description.
8095         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8096         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8097         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8098         * modules/memcmp (configure.ac): ... to here.
8099         (Depends-on): Update conditions.
8100
8101 2011-05-21  Bruno Haible  <bruno@clisp.org>
8102
8103         memchr: Respect rules for use of AC_LIBOBJ.
8104         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8105         invocations from here...
8106         * modules/memchr (configure.ac): ... to here.
8107
8108 2011-05-21  Bruno Haible  <bruno@clisp.org>
8109
8110         mbtowc: Move AC_LIBOBJ invocations to module description.
8111         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8112         invocations from here...
8113         * modules/mbtowc (configure.ac): ... to here.
8114
8115 2011-05-21  Bruno Haible  <bruno@clisp.org>
8116
8117         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8118         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8119         gl_PREREQ_MBSRTOWCS invocations from here...
8120         * modules/mbsrtowcs (configure.ac): ... to here.
8121
8122 2011-05-21  Bruno Haible  <bruno@clisp.org>
8123
8124         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8125         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8126         gl_PREREQ_MBSNRTOWCS invocations from here...
8127         * modules/mbsnrtowcs (configure.ac): ... to here.
8128
8129 2011-05-21  Bruno Haible  <bruno@clisp.org>
8130
8131         mbsinit: Move AC_LIBOBJ invocations to module description.
8132         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8133         invocations from here...
8134         * modules/mbsinit (configure.ac): ... to here.
8135
8136 2011-05-21  Bruno Haible  <bruno@clisp.org>
8137
8138         mbrlen: Move AC_LIBOBJ invocations to module description.
8139         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8140         invocations from here...
8141         * modules/mbrlen (configure.ac): ... to here.
8142
8143 2011-05-21  Bruno Haible  <bruno@clisp.org>
8144
8145         mbrtowc: Respect rules for use of AC_LIBOBJ.
8146         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8147         invocations from here...
8148         * modules/mbrtowc (configure.ac): ... to here.
8149
8150 2011-05-21  Bruno Haible  <bruno@clisp.org>
8151
8152         malloc-*: Move AC_LIBOBJ invocations to module description.
8153         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8154         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8155         AC_LIBOBJ invocations from here...
8156         * modules/malloc-gnu (configure.ac): ... to here.
8157         * modules/malloc-posix (configure.ac): ... and here.
8158
8159 2011-05-21  Bruno Haible  <bruno@clisp.org>
8160
8161         lstat, openat: Respect rules for use of AC_LIBOBJ.
8162         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8163         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8164         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8165         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8166         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8167         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8168         here.
8169         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8170
8171 2011-05-21  Bruno Haible  <bruno@clisp.org>
8172
8173         lseek: Move AC_LIBOBJ invocations to module description.
8174         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8175         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8176         * modules/lseek (configure.ac): ... to here.
8177
8178 2011-05-21  Bruno Haible  <bruno@clisp.org>
8179
8180         linkat: Move AC_LIBOBJ invocations to module description.
8181         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8182         here...
8183         * modules/linkat (configure.ac): ... to here.
8184
8185 2011-05-21  Bruno Haible  <bruno@clisp.org>
8186
8187         link: Respect rules for use of AC_LIBOBJ.
8188         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8189         * modules/link (configure.ac): ... to here.
8190
8191 2011-05-21  Bruno Haible  <bruno@clisp.org>
8192
8193         lchown: Move AC_LIBOBJ invocations to module description.
8194         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8195         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8196         * modules/lchown (configure.ac): ... to here.
8197
8198 2011-05-21  Bruno Haible  <bruno@clisp.org>
8199
8200         iswctype: Move AC_LIBOBJ invocations to module description.
8201         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8202         here...
8203         * modules/iswctype (configure.ac): ... to here.
8204
8205 2011-05-21  Bruno Haible  <bruno@clisp.org>
8206
8207         iswblank: Move AC_LIBOBJ invocations to module description.
8208         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8209         here...
8210         * modules/iswblank (configure.ac): ... to here.
8211
8212 2011-05-21  Bruno Haible  <bruno@clisp.org>
8213
8214         atanl: Move AC_LIBOBJ invocations to module description.
8215         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8216         * modules/atanl (configure.ac): ... to here.
8217
8218 2011-05-21  Bruno Haible  <bruno@clisp.org>
8219
8220         acosl: Move AC_LIBOBJ invocations to module description.
8221         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8222         * modules/acosl (configure.ac): ... to here.
8223
8224 2011-05-21  Bruno Haible  <bruno@clisp.org>
8225
8226         asinl: Respect rules for use of AC_LIBOBJ.
8227         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8228         * modules/asinl (configure.ac): ... to here.
8229
8230 2011-05-21  Bruno Haible  <bruno@clisp.org>
8231
8232         tanl: Move AC_LIBOBJ invocations to module description.
8233         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8234         * modules/tanl (configure.ac): ... to here.
8235
8236 2011-05-21  Bruno Haible  <bruno@clisp.org>
8237
8238         cosl: Move AC_LIBOBJ invocations to module description.
8239         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8240         * modules/cosl (configure.ac): ... to here.
8241
8242 2011-05-21  Bruno Haible  <bruno@clisp.org>
8243
8244         sinl: Move AC_LIBOBJ invocations to module description.
8245         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8246         * modules/sinl (configure.ac): ... to here.
8247
8248 2011-05-21  Bruno Haible  <bruno@clisp.org>
8249
8250         logl: Move AC_LIBOBJ invocations to module description.
8251         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8252         * modules/logl (configure.ac): ... to here.
8253
8254 2011-05-21  Bruno Haible  <bruno@clisp.org>
8255
8256         expl: Move AC_LIBOBJ invocations to module description.
8257         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8258         * modules/expl (configure.ac): ... to here.
8259
8260 2011-05-21  Bruno Haible  <bruno@clisp.org>
8261
8262         roundl: Move AC_LIBOBJ invocations to module description.
8263         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8264         * modules/roundl (configure.ac): ... to here.
8265
8266 2011-05-21  Bruno Haible  <bruno@clisp.org>
8267
8268         round: Move AC_LIBOBJ invocations to module description.
8269         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8270         * modules/round (configure.ac): ... to here.
8271
8272 2011-05-21  Bruno Haible  <bruno@clisp.org>
8273
8274         roundf: Move AC_LIBOBJ invocations to module description.
8275         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8276         * modules/roundf (configure.ac): ... to here.
8277
8278 2011-05-21  Bruno Haible  <bruno@clisp.org>
8279
8280         truncl: Move AC_LIBOBJ invocations to module description.
8281         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8282         * modules/truncl (configure.ac): ... to here.
8283
8284 2011-05-21  Bruno Haible  <bruno@clisp.org>
8285
8286         trunc: Move AC_LIBOBJ invocations to module description.
8287         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8288         * modules/trunc (configure.ac): ... to here.
8289
8290 2011-05-21  Bruno Haible  <bruno@clisp.org>
8291
8292         truncf: Move AC_LIBOBJ invocations to module description.
8293         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8294         * modules/truncf (configure.ac): ... to here.
8295
8296 2011-05-21  Bruno Haible  <bruno@clisp.org>
8297
8298         ceill: Move AC_LIBOBJ invocations to module description.
8299         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8300         * modules/ceill (configure.ac): ... to here.
8301
8302 2011-05-21  Bruno Haible  <bruno@clisp.org>
8303
8304         ceil: Move AC_LIBOBJ invocations to module description.
8305         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8306         * modules/ceil (configure.ac): ... to here.
8307
8308 2011-05-21  Bruno Haible  <bruno@clisp.org>
8309
8310         ceilf: Move AC_LIBOBJ invocations to module description.
8311         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8312         * modules/ceilf (configure.ac): ... to here.
8313
8314 2011-05-21  Bruno Haible  <bruno@clisp.org>
8315
8316         floorl: Respect rules for use of AC_LIBOBJ.
8317         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8318         * modules/floorl (configure.ac): ... to here.
8319
8320 2011-05-21  Bruno Haible  <bruno@clisp.org>
8321
8322         floor: Respect rules for use of AC_LIBOBJ.
8323         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8324         * modules/floor (configure.ac): ... to here.
8325
8326 2011-05-21  Bruno Haible  <bruno@clisp.org>
8327
8328         floorf: Move AC_LIBOBJ invocations to module description.
8329         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8330         * modules/floorf (configure.ac): ... to here.
8331
8332 2011-05-20  Bruno Haible  <bruno@clisp.org>
8333
8334         sqrtl: Respect rules for use of AC_LIBOBJ.
8335         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8336         * modules/sqrtl (configure.ac): ... to here.
8337
8338 2011-05-20  Bruno Haible  <bruno@clisp.org>
8339
8340         ldexpl: Respect rules for use of AC_LIBOBJ.
8341         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8342         * modules/ldexpl (configure.ac): ... to here.
8343
8344 2011-05-20  Bruno Haible  <bruno@clisp.org>
8345
8346         frexpl*: Respect rules for use of AC_LIBOBJ.
8347         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8348         invocation from here...
8349         * modules/frexpl (configure.ac): ... to here.
8350         * modules/frexpl-nolibm (configure.ac): ... and here.
8351
8352 2011-05-20  Bruno Haible  <bruno@clisp.org>
8353
8354         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8355         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8356         invocation from here...
8357         * modules/frexp (configure.ac): ... to here.
8358         * modules/frexp-nolibm (configure.ac): ... and here.
8359
8360 2011-05-20  Bruno Haible  <bruno@clisp.org>
8361
8362         isnan: Respect rules for use of AC_LIBOBJ.
8363         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8364         invocations here.
8365         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8366         REPLACE_ISNAN.
8367         * modules/isnand (configure.ac): Likewise.
8368         * modules/isnanl (configure.ac): Likewise.
8369
8370 2011-05-20  Bruno Haible  <bruno@clisp.org>
8371
8372         isnanl*: Respect rules for use of AC_LIBOBJ.
8373         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8374         invocation from here...
8375         * modules/isnanl (configure.ac): ... to here.
8376         * modules/isnanl-nolibm (configure.ac): ... and here.
8377
8378 2011-05-20  Bruno Haible  <bruno@clisp.org>
8379
8380         isnand*: Move AC_LIBOBJ invocations to module description.
8381         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8382         invocation from here...
8383         * modules/isnand (configure.ac): ... to here.
8384         * modules/isnand-nolibm (configure.ac): ... and here.
8385
8386 2011-05-20  Bruno Haible  <bruno@clisp.org>
8387
8388         isnanf*: Move AC_LIBOBJ invocations to module description.
8389         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8390         invocation from here...
8391         * modules/isnanf (configure.ac): ... to here.
8392         * modules/isnanf-nolibm (configure.ac): ... and here.
8393
8394 2011-05-20  Bruno Haible  <bruno@clisp.org>
8395
8396         isnan*: Separate the AC_LIBOBJ invocations.
8397         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8398         AC_LIBOBJ invocation.
8399         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8400         here.
8401         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8402         AC_LIBOBJ invocation.
8403         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8404         here.
8405         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8406         AC_LIBOBJ invocation.
8407         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8408         here.
8409         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8410
8411 2011-05-08  Bruno Haible  <bruno@clisp.org>
8412
8413         isinf: Move AC_LIBOBJ invocations to module description.
8414         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8415         * modules/isinf (configure.ac): ... to here.
8416
8417 2011-05-08  Bruno Haible  <bruno@clisp.org>
8418
8419         isfinite: Move AC_LIBOBJ invocations to module description.
8420         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8421         * modules/isfinite (configure.ac): ... to here.
8422
8423 2011-05-08  Bruno Haible  <bruno@clisp.org>
8424
8425         isblank: Move AC_LIBOBJ invocations to module description.
8426         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8427         here...
8428         * modules/isblank (configure.ac): ... to here.
8429
8430 2011-05-08  Bruno Haible  <bruno@clisp.org>
8431
8432         isapipe: Move AC_LIBOBJ invocations to module description.
8433         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8434         gl_PREREQ_ISAPIPE invocations from here...
8435         * modules/isapipe (configure.ac): ... to here.
8436         (Depends-on): Update condition.
8437
8438 2011-05-08  Bruno Haible  <bruno@clisp.org>
8439
8440         ioctl: Move AC_LIBOBJ invocations to module description.
8441         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8442         invocations from here...
8443         * modules/ioctl (configure.ac): ... to here.
8444         (Depends-on): Update condition.
8445
8446 2011-05-08  Bruno Haible  <bruno@clisp.org>
8447
8448         imaxdiv: Move AC_LIBOBJ invocations to module description.
8449         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8450         invocations from here...
8451         * modules/imaxdiv (configure.ac): ... to here.
8452
8453 2011-05-08  Bruno Haible  <bruno@clisp.org>
8454
8455         imaxabs: Move AC_LIBOBJ invocations to module description.
8456         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8457         invocations from here...
8458         * modules/imaxabs (configure.ac): ... to here.
8459
8460 2011-05-08  Bruno Haible  <bruno@clisp.org>
8461
8462         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8463         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8464         AC_LIBOBJ invocations from here...
8465         * modules/getaddrinfo (configure.ac): ... to here.
8466         (Depends-on): Add conditions.
8467
8468 2011-05-08  Bruno Haible  <bruno@clisp.org>
8469
8470         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8471         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8472         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8473         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8474         (gl_PREREQ_INET_PTON): ... from here.
8475         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8476         gl_PREREQ_INET_PTON here.
8477         (Depends-on): Update condition.
8478
8479 2011-05-08  Bruno Haible  <bruno@clisp.org>
8480
8481         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8482         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8483         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8484         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8485         (gl_PREREQ_INET_NTOP): ... from here.
8486         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8487         gl_PREREQ_INET_NTOP here.
8488         (Depends-on): Update condition.
8489
8490 2011-05-08  Bruno Haible  <bruno@clisp.org>
8491
8492         iconv_open: Move AC_LIBOBJ invocations to module description.
8493         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8494         AC_LIBOBJ invocations from here...
8495         * modules/iconv_open (configure.ac): ... to here.
8496
8497 2011-05-08  Bruno Haible  <bruno@clisp.org>
8498
8499         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8500         If module 'iconv_open' is among the main modules and module
8501         'iconv_open-utf' is among the tests dependencies, then
8502         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8503         return the special iconv_t values. Therefore iconv() and iconv_close()
8504         must support these special iconv_t values, already in lib, not only in
8505         tests.
8506         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8507         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8508         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8509         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8510         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8511         (Depends-on): Add the dependencies of iconv_open-utf.
8512         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8513         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8514         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8515
8516 2011-05-08  Bruno Haible  <bruno@clisp.org>
8517
8518         group-member: Move AC_LIBOBJ invocations to module description.
8519         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8520         gl_PREREQ_GROUP_MEMBER invocations from here...
8521         * modules/group-member (configure.ac): ... to here.
8522
8523 2011-05-08  Bruno Haible  <bruno@clisp.org>
8524
8525         grantpt: Move AC_LIBOBJ invocations to module description.
8526         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8527         invocations from here...
8528         * modules/grantpt (configure.ac): ... to here.
8529
8530 2011-05-08  Bruno Haible  <bruno@clisp.org>
8531
8532         glob: Move AC_LIBOBJ invocations to module description.
8533         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8534         from here...
8535         * modules/glob (configure.ac): ... to here.
8536
8537 2011-05-08  Bruno Haible  <bruno@clisp.org>
8538
8539         getusershell: Move AC_LIBOBJ invocations to module description.
8540         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8541         Move AC_LIBOBJ invocation from here...
8542         * modules/getusershell (configure.ac): ... to here.
8543         (Depends-on): Update condition.
8544
8545 2011-05-08  Bruno Haible  <bruno@clisp.org>
8546
8547         gettimeofday: Move AC_LIBOBJ invocations to module description.
8548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8549         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8550         gl_PREREQ_GETTIMEOFDAY invocations from here...
8551         * modules/gettimeofday (configure.ac): ... to here.
8552
8553 2011-05-08  Bruno Haible  <bruno@clisp.org>
8554
8555         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8556         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8557         just gl_FUNC_TZSET.
8558         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8559         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8561         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8562
8563 2011-05-08  Bruno Haible  <bruno@clisp.org>
8564
8565         getsubopt: Move AC_LIBOBJ invocations to module description.
8566         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8567         gl_PREREQ_GETSUBOPT invocations from here...
8568         * modules/getsubopt (configure.ac): ... to here.
8569
8570 2011-05-08  Bruno Haible  <bruno@clisp.org>
8571
8572         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8573         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8574         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8575         * modules/getpass-gnu (configure.ac): ... to here.
8576
8577 2011-05-08  Bruno Haible  <bruno@clisp.org>
8578
8579         getpass: Move AC_LIBOBJ invocations to module description.
8580         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8581         gl_PREREQ_GETPASS invocations from here...
8582         * modules/getpass (configure.ac): ... to here.
8583
8584 2011-05-08  Bruno Haible  <bruno@clisp.org>
8585
8586         getpagesize: Move AC_LIBOBJ invocations to module description.
8587         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8588         from here...
8589         * modules/getpagesize (configure.ac): ... to here.
8590
8591 2011-05-08  Bruno Haible  <bruno@clisp.org>
8592
8593         getopt: Move AC_LIBOBJ invocations to module description.
8594         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8595         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8596         invocations from here...
8597         * modules/getopt-gnu (configure.ac): ... to here.
8598         * modules/getopt-posix (configure.ac): ... and here.
8599         (Depends-on): Update condition.
8600
8601 2011-05-08  Bruno Haible  <bruno@clisp.org>
8602
8603         getopt, argp: Respect rules for use of AC_LIBOBJ.
8604         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8605         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8606         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8607         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8608
8609 2011-05-08  Bruno Haible  <bruno@clisp.org>
8610
8611         getlogin_r: Move AC_LIBOBJ invocations to module description.
8612         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8613         gl_PREREQ_GETLOGIN_R invocations from here...
8614         * modules/getlogin_r (configure.ac): ... to here.
8615
8616 2011-05-08  Bruno Haible  <bruno@clisp.org>
8617
8618         getlogin: Move AC_LIBOBJ invocations to module description.
8619         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8620         here...
8621         * modules/getlogin (configure.ac): ... to here.
8622
8623 2011-05-08  Bruno Haible  <bruno@clisp.org>
8624
8625         getloadavg: Move AC_LIBOBJ invocations to module description.
8626         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8627         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8628         * modules/getloadavg (configure.ac): ... to here.
8629
8630 2011-05-08  Bruno Haible  <bruno@clisp.org>
8631
8632         gethrxtime: Move AC_LIBOBJ invocations to module description.
8633         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8634         LIB_GETHRXTIME from here...
8635         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8636         invocations from here...
8637         * modules/gethrxtime (configure.ac): ... to here.
8638
8639 2011-05-08  Bruno Haible  <bruno@clisp.org>
8640
8641         gethostname: Move AC_LIBOBJ invocations to module description.
8642         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8643         gl_PREREQ_GETHOSTNAME invocations from here...
8644         * modules/gethostname (configure.ac): ... to here.
8645
8646 2011-05-08  Bruno Haible  <bruno@clisp.org>
8647
8648         getgroups: Move AC_LIBOBJ invocations to module description.
8649         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8650         here...
8651         * modules/getgroups (configure.ac): ... to here.
8652
8653 2011-05-08  Bruno Haible  <bruno@clisp.org>
8654
8655         getdtablesize: Move AC_LIBOBJ invocations to module description.
8656         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8657         invocation from here...
8658         * modules/getdtablesize (configure.ac): ... to here.
8659
8660 2011-05-08  Bruno Haible  <bruno@clisp.org>
8661
8662         getdomainname: Move AC_LIBOBJ invocations to module description.
8663         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8664         gl_PREREQ_GETDOMAINNAME invocations from here...
8665         * modules/getdomainname (configure.ac): ... to here.
8666
8667 2011-05-08  Bruno Haible  <bruno@clisp.org>
8668
8669         getline: Move AC_LIBOBJ invocations to module description.
8670         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8671         invocations from here...
8672         * modules/getline (configure.ac): ... to here.
8673
8674 2011-05-08  Bruno Haible  <bruno@clisp.org>
8675
8676         getline: Simplify.
8677         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8678         It's already handled through the module dependency.
8679
8680 2011-05-08  Bruno Haible  <bruno@clisp.org>
8681
8682         getdelim: Move AC_LIBOBJ invocations to module description.
8683         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8684         and gl_PREREQ_GETDELIM invocations from here...
8685         * modules/getdelim (configure.ac): ... to here.
8686         (Depends-on): Fix condition.
8687
8688 2011-05-08  Bruno Haible  <bruno@clisp.org>
8689
8690         getcwd: Move AC_LIBOBJ invocations to module description.
8691         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8692         invocations from here...
8693         * modules/getcwd (configure.ac): ... to here.
8694
8695 2011-05-08  Bruno Haible  <bruno@clisp.org>
8696
8697         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8698         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8699         here...
8700         * modules/getcwd-lgpl (configure.ac): ... to here.
8701
8702 2011-05-07  Bruno Haible  <bruno@clisp.org>
8703
8704         crypto/gc: Move AC_LIBOBJ invocations to module description.
8705         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8706         * modules/crypto/gc (configure.ac): ... to here.
8707
8708 2011-05-07  Bruno Haible  <bruno@clisp.org>
8709
8710         fwriting: Move AC_LIBOBJ invocations to module description.
8711         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8712         here...
8713         * modules/fwriting (configure.ac): ... to here.
8714
8715 2011-05-07  Bruno Haible  <bruno@clisp.org>
8716
8717         fwritable: Move AC_LIBOBJ invocations to module description.
8718         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8719         here...
8720         * modules/fwritable (configure.ac): ... to here.
8721
8722 2011-05-07  Bruno Haible  <bruno@clisp.org>
8723
8724         futimens: Move AC_LIBOBJ invocations to module description.
8725         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8726         here...
8727         * modules/futimens (configure.ac): ... to here.
8728
8729 2011-05-07  Bruno Haible  <bruno@clisp.org>
8730
8731         ftruncate: Move AC_LIBOBJ invocations to module description.
8732         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8733         gl_PREREQ_FTRUNCATE invocations from here...
8734         * modules/ftruncate (configure.ac): ... to here.
8735
8736 2011-05-07  Bruno Haible  <bruno@clisp.org>
8737
8738         fsync: Move AC_LIBOBJ invocations to module description.
8739         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8740         invocations from here...
8741         * modules/fsync (configure.ac): ... to here.
8742
8743 2011-05-07  Bruno Haible  <bruno@clisp.org>
8744
8745         fsusage: Move AC_LIBOBJ invocations to module description.
8746         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8747         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8748         * modules/fsusage (configure.ac): ... to here.
8749
8750 2011-05-07  Bruno Haible  <bruno@clisp.org>
8751
8752         freopen: Move AC_LIBOBJ invocations to module description.
8753         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8754         invocations from here...
8755         * modules/freopen (configure.ac): ... to here.
8756
8757 2011-05-07  Bruno Haible  <bruno@clisp.org>
8758
8759         free: Move AC_LIBOBJ invocations to module description.
8760         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8761         invocations from here...
8762         * modules/free (configure.ac): ... to here.
8763
8764 2011-05-07  Bruno Haible  <bruno@clisp.org>
8765
8766         freadable: Move AC_LIBOBJ invocations to module description.
8767         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8768         here...
8769         * modules/freadable (configure.ac): ... to here.
8770
8771 2011-05-07  Bruno Haible  <bruno@clisp.org>
8772
8773         fpurge: Move AC_LIBOBJ invocations to module description.
8774         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8775         invocations from here...
8776         * modules/fpurge (configure.ac): ... to here.
8777
8778 2011-05-07  Bruno Haible  <bruno@clisp.org>
8779
8780         fpending: Move AC_LIBOBJ invocations to module description.
8781         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8782         gl_FUNC_FPENDING.
8783         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8784         invocations from here...
8785         * modules/fpending (configure.ac): ... to here.
8786
8787 2011-05-07  Bruno Haible  <bruno@clisp.org>
8788
8789         fopen: Move AC_LIBOBJ invocations to module description.
8790         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8791         invocations from here...
8792         * modules/fopen (configure.ac): ... to here.
8793
8794 2011-05-07  Bruno Haible  <bruno@clisp.org>
8795
8796         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8797         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8798         gl_FUNC_FNMATCH_POSIX.
8799         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8800         invocations from here...
8801         * modules/fnmatch (configure.ac): ... to here.
8802         * modules/fnmatch-gnu (configure.ac): ... and here.
8803
8804 2011-05-07  Bruno Haible  <bruno@clisp.org>
8805
8806         flock: Move AC_LIBOBJ invocations to module description.
8807         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8808         invocations from here...
8809         * modules/flock (configure.ac): ... to here.
8810
8811 2011-05-07  Bruno Haible  <bruno@clisp.org>
8812
8813         fileblocks: Move AC_LIBOBJ invocations to module description.
8814         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8815         gl_PREREQ_FILEBLOCKS invocations from here...
8816         * modules/fileblocks (configure.ac): ... to here.
8817
8818 2011-05-06  Bruno Haible  <bruno@clisp.org>
8819
8820         fflush: Move AC_LIBOBJ invocations to module description.
8821         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8822         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8823         invocations from here...
8824         * modules/fflush (configure.ac): ... to here.
8825
8826 2011-05-06  Bruno Haible  <bruno@clisp.org>
8827
8828         fdopendir: Move AC_LIBOBJ invocations to module description.
8829         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8830         here...
8831         * modules/fdopendir (configure.ac): ... to here.
8832         (Depends-on): Improve conditions.
8833
8834 2011-05-06  Bruno Haible  <bruno@clisp.org>
8835
8836         _Exit: Move AC_LIBOBJ invocations to module description.
8837         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8838         invocations from here...
8839         * modules/_Exit (configure.ac): ... to here.
8840
8841 2011-05-21  Bruno Haible  <bruno@clisp.org>
8842
8843         euidaccess: Respect rules for use of AC_LIBOBJ.
8844         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8845         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8846         from here...
8847         * modules/euidaccess (configure.ac): ... to here.
8848
8849 2011-05-06  Bruno Haible  <bruno@clisp.org>
8850
8851         error: Move AC_LIBOBJ invocations to module description.
8852         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8853         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8854         invocations from here...
8855         * modules/error (configure.ac): ... to here.
8856
8857 2011-05-06  Bruno Haible  <bruno@clisp.org>
8858
8859         duplocale: Move AC_LIBOBJ invocations to module description.
8860         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8861         gl_PREREQ_DUPLOCALE invocations from here...
8862         * modules/duplocale (configure.ac): ... to here.
8863
8864 2011-05-05  Bruno Haible  <bruno@clisp.org>
8865
8866         dirfd: Move AC_LIBOBJ invocations to module description.
8867         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8868         gl_FUNC_DIRFD.
8869         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8870         here...
8871         * modules/dirfd (configure.ac): ... to here.
8872         (Depends-on): Fix condition.
8873
8874 2011-05-05  Bruno Haible  <bruno@clisp.org>
8875
8876         chown: Respect rules for use of AC_LIBOBJ.
8877         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8878         * modules/chown (configure.ac): ... to here.
8879
8880 2011-05-05  Bruno Haible  <bruno@clisp.org>
8881
8882         chdir-long: Move AC_LIBOBJ invocations to module description.
8883         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8884         gl_PREREQ_CHDIR_LONG invocations from here...
8885         * modules/chdir-long (configure.ac): ... to here.
8886
8887 2011-05-05  Bruno Haible  <bruno@clisp.org>
8888
8889         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8890         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8891         from here...
8892         * modules/canonicalize-lgpl (configure.ac): ... to here.
8893
8894 2011-05-05  Bruno Haible  <bruno@clisp.org>
8895
8896         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8897         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8898         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8899         REPLACE_CALLOC.
8900         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8901         * modules/calloc-gnu (configure.ac): Likewise.
8902
8903 2011-05-05  Bruno Haible  <bruno@clisp.org>
8904
8905         btowc: Move AC_LIBOBJ invocations to module description.
8906         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8907         invocations from here...
8908         * modules/btowc (configure.ac): ... to here.
8909
8910 2011-05-21  Bruno Haible  <bruno@clisp.org>
8911
8912         atexit: Move AC_LIBOBJ invocations to module description.
8913         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8915         here...
8916         * modules/atexit (configure.ac): ... to here.
8917
8918 2011-05-05  Bruno Haible  <bruno@clisp.org>
8919
8920         atoll: Move AC_LIBOBJ invocations to module description.
8921         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8922         invocations from here...
8923         * modules/atoll (configure.ac): ... to here.
8924
8925 2011-05-05  Bruno Haible  <bruno@clisp.org>
8926
8927         argz: Move AC_LIBOBJ invocations to module description.
8928         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8929         * modules/argz (configure.ac): ... to here.
8930
8931 2011-05-05  Bruno Haible  <bruno@clisp.org>
8932
8933         alphasort: Move AC_LIBOBJ invocations to module description.
8934         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8935         gl_PREREQ_ALPHASORT invocations from here...
8936         * modules/alphasort (configure.ac): ... to here.
8937
8938 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8939
8940         verify: new macro verify_expr; verify_true deprecated
8941         * NEWS: Mention this.
8942         * doc/verify.texi (Compile-time Assertions): Document this.
8943         * lib/verify.h (verify_true): Deprecate.
8944         (verify_expr): New macro.
8945         * tests/test-verify.c (function): Test verify_expr.
8946
8947 2011-06-14  Jim Meyering  <meyering@redhat.com>
8948
8949         init.sh: give more portable redirection-related advice in a comment
8950         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8951         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8952         for lots of discussion.  Stefano Lattarini suggested the solution
8953         of putting "9>&2" after the command.  Reported by Bruno Haible.
8954
8955 2011-06-13  Bruno Haible  <bruno@clisp.org>
8956
8957         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8958         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8959         'none'.
8960
8961 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8962
8963         ftoastr: use strtof only if HAVE_STRTOF
8964         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8966         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8967         * modules/ftoastr (configure.ac): Check for strtof.
8968
8969 2011-06-13  Bruno Haible  <bruno@clisp.org>
8970
8971         gnulib-tool: Addendum to 2011-06-08 commit.
8972         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8973         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8974
8975 2011-06-13  Bruno Haible  <bruno@clisp.org>
8976
8977         fseeko: Provide a non-inline replacement of fseek().
8978         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8979         * modules/fseeko (Depends-on): Add fseek.
8980         * modules/fseek (License): Change to LGPLv2+.
8981
8982 2011-06-13  Bruno Haible  <bruno@clisp.org>
8983
8984         ftello: Provide a non-inline replacement of ftell().
8985         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8986         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8987         not have ftello() (such as on mingw).
8988         * modules/ftello (Depends-on): Add ftell.
8989         * modules/ftell (License): Change to LGPLv2+.
8990
8991 2011-05-07  Bruno Haible  <bruno@clisp.org>
8992
8993         ftell: Move AC_LIBOBJ invocations to module description.
8994         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8995         * modules/ftell (configure.ac): ... to here.
8996
8997 2011-05-07  Bruno Haible  <bruno@clisp.org>
8998
8999         ftello: Respect rules for use of AC_LIBOBJ.
9000         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9001         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9002         here...
9003         * modules/ftello (configure.ac): ... to here.
9004
9005 2011-05-07  Bruno Haible  <bruno@clisp.org>
9006
9007         fseeko: Simplify.
9008         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9009         (gl_FUNC_FSEEKO): Inline it here.
9010
9011 2011-05-07  Bruno Haible  <bruno@clisp.org>
9012
9013         fseek: Move AC_LIBOBJ invocations to module description.
9014         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9015         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9016         * modules/fseek (configure.ac): ... to here.
9017
9018 2011-05-07  Bruno Haible  <bruno@clisp.org>
9019
9020         fseek: Respect rules for use of AC_LIBOBJ.
9021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9022         here...
9023         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9024
9025 2011-05-07  Bruno Haible  <bruno@clisp.org>
9026
9027         fseeko: Respect rules for use of AC_LIBOBJ.
9028         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9029         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9030         here...
9031         * modules/fseeko (configure.ac): ... to here.
9032
9033 2011-06-13  Bruno Haible  <bruno@clisp.org>
9034
9035         gnulib-tool: Allow comments in the 'Depends-on' section.
9036         * doc/gnulib.texi (Module description): Mention comment syntax in the
9037         Depends-on section.
9038         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9039
9040 2011-06-13  Bruno Haible  <bruno@clisp.org>
9041
9042         file-set.h: guard __attibute__ use, now that it's not always defined
9043         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9044         versions that support it.  This fixes a coreutils build failure with
9045         the vendor cc on HP-UX 11.31.
9046
9047 2011-06-12  Bruno Haible  <bruno@clisp.org>
9048
9049         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9050         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9051         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9052         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9053         (acl, aclsort): New declarations.
9054         (aclv_nontrivial): New declaration.
9055         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9056         (file_has_acl): Read also the second kind of HP-UX ACLs.
9057         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9058         kind of HP-UX ACLs if the first kind fails.
9059         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9060         second kind of HP-UX ACLs.
9061         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9062         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9063         agree.
9064         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9065         hpuxjfs.
9066         Handle hpuxjfs.
9067         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9068         hpuxjfs.
9069         Handle hpuxjfs.
9070         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9071         (func_test_same_acls): Use both lsacl and getacl.
9072         Handle hpuxjfs.
9073         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9074         (func_test_same_acls): Use both lsacl and getacl.
9075         Handle hpuxjfs.
9076
9077 2011-06-12  Bruno Haible  <bruno@clisp.org>
9078
9079         acl: Complete the 2010-08-10 fix.
9080         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9081         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9082         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9083         explicitly.
9084         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9085         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9086
9087 2011-06-12  Bruno Haible  <bruno@clisp.org>
9088
9089         spawn-pipe tests: Comments.
9090         * tests/test-spawn-pipe-child.c (main): Update comment.
9091         Reported by James Youngman <jay@gnu.org>.
9092
9093 2011-06-11  James Youngman  <jay@gnu.org>
9094
9095         New module 'stat-size'.
9096         * modules/stat-size: New module.  Provides macros for accessing
9097         file size information in instances of struct stat.  Depends on the
9098         fileblocks module because it calls st_blocks.
9099         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9100         * doc/gnulib.texi: Include stat-size.texi.
9101         * doc/stat-size.texi: Documentation for this module.
9102         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9103         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9104         AC_STRUCT_ST_BLOCKS.
9105
9106 2011-06-09  Bruno Haible  <bruno@clisp.org>
9107
9108         thread: Support pthreads-win32.
9109         * lib/glthread/thread.h (gl_thread_self): Define differently on
9110         pthreads-win32.
9111         (gl_null_thread): New declaration.
9112         (gl_thread_self_pointer): New macro.
9113         * lib/glthread/thread.c (gl_null_thread): New constant.
9114         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9115         gl_thread_self.
9116         * tests/test-tls.c: Likewise.
9117         Suggested by Paul Eggert. Reported by Eric Blake.
9118
9119 2011-06-09  Bruno Haible  <bruno@clisp.org>
9120
9121         thread: Fix confusion between NULL and 0.
9122         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9123         Reported by Paul Eggert.
9124
9125 2011-06-09  Bruno Haible  <bruno@clisp.org>
9126
9127         spawn-pipe tests: Avoid test failure on HP-UX 11.
9128         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9129         is closed.
9130
9131 2011-06-09  Bruno Haible  <bruno@clisp.org>
9132
9133         acl tests: Fix compilation error on HP-UX 11.
9134         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9135
9136 2011-06-09  Bruno Haible  <bruno@clisp.org>
9137
9138         rmdir: Avoid test failure on HP-UX 10.20.
9139         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9140         EEXIST.
9141
9142 2011-06-08  Eric Blake  <eblake@redhat.com>
9143
9144         perror: fix test on mingw
9145         * modules/perror-tests (Depends-on): Add dup2.
9146
9147         strerror_r-posix: fix on MacOS
9148         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9149         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9150         logic bug.
9151         * lib/strerror_r.c (strerror_r): Fix the bug.
9152         * lib/strerror.c (strerror): Likewise.
9153         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9154         problem.
9155         * doc/posix-functions/strerror.texi (strerror): Likewise.
9156         * doc/posix-functions/perror.texi (perror): Likewise.
9157         * tests/test-strerror.c (main): Enhance test.
9158         * tests/test-strerror_r.c (main): Likewise.
9159
9160 2011-06-08  Bruno Haible  <bruno@clisp.org>
9161
9162         gnulib-tool: Better isolation between different gnulib-tool invocations.
9163         * gnulib-tool: New option --witness-c-macro.
9164         (witness_c_macro): New variable.
9165         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9166         AM_CPPFLAGS define it as a C macro.
9167         (func_emit_tests_Makefile_am): Likewise.
9168         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9169         read it from there.
9170         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9171         m4_define, not AC_DEFUN.
9172         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9173         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9174         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9175         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9176         s|...|...|, to substitute the values of the GNULIB_* module indicator
9177         variables.
9178         * modules/dirent (Makefile.am): Likewise.
9179         * modules/fcntl-h (Makefile.am): Likewise.
9180         * modules/iconv-h (Makefile.am): Likewise.
9181         * modules/langinfo (Makefile.am): Likewise.
9182         * modules/locale (Makefile.am): Likewise.
9183         * modules/math (Makefile.am): Likewise.
9184         * modules/netdb (Makefile.am): Likewise.
9185         * modules/poll-h (Makefile.am): Likewise.
9186         * modules/pty (Makefile.am): Likewise.
9187         * modules/search (Makefile.am): Likewise.
9188         * modules/signal (Makefile.am): Likewise.
9189         * modules/spawn (Makefile.am): Likewise.
9190         * modules/stdio (Makefile.am): Likewise.
9191         * modules/stdlib (Makefile.am): Likewise.
9192         * modules/string (Makefile.am): Likewise.
9193         * modules/sys_ioctl (Makefile.am): Likewise.
9194         * modules/sys_select (Makefile.am): Likewise.
9195         * modules/sys_socket (Makefile.am): Likewise.
9196         * modules/sys_stat (Makefile.am): Likewise.
9197         * modules/sys_times (Makefile.am): Likewise.
9198         * modules/sys_utsname (Makefile.am): Likewise.
9199         * modules/sys_wait (Makefile.am): Likewise.
9200         * modules/termios (Makefile.am): Likewise.
9201         * modules/time (Makefile.am): Likewise.
9202         * modules/unistd (Makefile.am): Likewise.
9203         * modules/wchar (Makefile.am): Likewise.
9204
9205 2011-06-08  Eric Blake  <eblake@redhat.com>
9206
9207         strerror: simplify replacement
9208         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9209         * modules/strerror (configure.ac): No prereqs needed here...
9210         * modules/strerror-override (configure.ac): ...but this needs it.
9211         (Files): Add file for needed prereq macro.
9212
9213 2011-06-08  Bruno Haible  <bruno@clisp.org>
9214
9215         strerror_r-posix: Tweaks.
9216         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9217         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9218         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9219         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9220         (gl_FUNC_STRERROR_R): ... to here.
9221         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9222
9223 2011-06-07  Eric Blake  <eblake@redhat.com>
9224
9225         perror: document fixed bugs
9226         * doc/posix-functions/perror.texi (perror): Document recent
9227         patches.
9228
9229 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9230
9231         stat-time: get_stat_birthtime failure is better-defined
9232         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9233         return a timestamp whose tv_sec and tv_nsec values are both -1.
9234         Previously, the spec said only that the tv_nsec value was negative.
9235         This upward-compatible change simplifies GNU tar a bit.
9236
9237 2011-06-07  Eric Blake  <eblake@redhat.com>
9238
9239         strerror_r-posix: work around cygwin 1.7.9
9240         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9241         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9242         bug without replacing strerror_r.
9243         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9244         strerror_r is buggy, but without requiring strerror_r compilation.
9245         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9246
9247         test-perror: relax test to ignore cygwin bug
9248         * tests/test-perror2.c (main): Relax test on requiring detection
9249         of stream errors, and use unbuffered stream.
9250         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9251         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9252         * doc/posix-functions/fputc.texi (fputc): Likewise.
9253         * doc/posix-functions/fputs.texi (fputs): Likewise.
9254         * doc/posix-functions/fputws.texi (fputws): Likewise.
9255         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9256         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9257         * doc/posix-functions/getopt.texi (getopt): Likewise.
9258         * doc/posix-functions/perror.texi (perror): Likewise.
9259         * doc/posix-functions/printf.texi (printf): Likewise.
9260         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9261         * doc/posix-functions/psignal.texi (psignal): Likewise.
9262         * doc/posix-functions/putc.texi (putc): Likewise.
9263         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9264         Likewise.
9265         * doc/posix-functions/putchar.texi (putchar): Likewise.
9266         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9267         Likewise.
9268         * doc/posix-functions/puts.texi (puts): Likewise.
9269         * doc/posix-functions/putwc.texi (putwc): Likewise.
9270         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9271         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9272         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9273         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9274         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9275         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9276         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9277         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9278
9279 2011-05-22  Bruno Haible  <bruno@clisp.org>
9280
9281         strerror: Move AC_LIBOBJ invocations to module description.
9282         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9283         gl_PREREQ_STRERROR invocations from here...
9284         * modules/strerror (configure.ac): ... to here.
9285
9286 2011-05-21  Bruno Haible  <bruno@clisp.org>
9287
9288         perror: Use common idiom.
9289         * modules/perror (configure.ac): Reorder statements.
9290
9291 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9292
9293         tests: fix usage message in 'mktempd_'
9294         * tests/init.sh (mktempd_): In the usage message, use literal
9295         'mktempd_', not '$ME' (which is even undefined), as the name of
9296         the subroutine.
9297
9298 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9299
9300         tests init: new function 'fatal_', for hard errors
9301         Before this patch, the only way offered by tests/init.sh to
9302         properly signal a hard error was the `framework_failure_'
9303         function.  But the error message issued by that function,
9304         as its name would suggest, refers to a set-up failure in the
9305         testsuite, while hard errors can obviously also be due to
9306         other reasons.  The best way to fix this inconsistency is to
9307         introduce a new function with a more general error message.
9308         * tests/init.sh (fatal_): New function.
9309
9310 2011-06-06  Eric Blake  <eblake@redhat.com>
9311
9312         canonicalize-lgpl: use common idiom
9313         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9314         over newer POSIX -Rf.
9315         Reported by Bruno Haible.
9316
9317         canonicalize-lgpl: work around AIX realpath bug
9318         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9319         * doc/posix-functions/realpath.texi (realpath): Document it.
9320         Reported by Bruno Haible.
9321
9322         strerror: work around FreeBSD bug
9323         * lib/strerror.c (strerror): Special case 0.
9324         Reported by Bruno Haible.
9325
9326         strerror-override: avoid bloating errno module
9327         * modules/errno (Files, configure.ac): Move replacement strings...
9328         * modules/strerror-override: ...to new module.
9329         * modules/strerror (Depends-on): Add strerror-override.
9330         * modules/strerror_r-posix (Depends-on): Likewise.
9331         * MODULES.html.sh: Document new module.
9332         Reported by Bruno Haible.
9333
9334 2011-06-06  Bruno Haible  <bruno@clisp.org>
9335
9336         spawn-pipe tests: Rename program.
9337         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9338         * tests/test-spawn-pipe-child.c: Update comment.
9339         * tests/test-spawn-pipe.sh: Update.
9340         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9341
9342         spawn-pipe tests: Link the child program only against libc.
9343         * tests/test-spawn-pipe-child.c: New file, extracted from
9344         tests/test-spawn-pipe.c.
9345         (main): Expect only one argument.
9346         (is_open): New function, copied from tests/test-pipe.c.
9347         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9348         (child_main): Remove function.
9349         (test_pipe): Pass only one argument to the child program.
9350         (main): Remove child process code. Expect the child program's name as
9351         first argument.
9352         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9353         argument.
9354         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9355         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9356         test-spawn-pipe-child against no libraries.
9357
9358 2011-06-06  Bruno Haible  <bruno@clisp.org>
9359
9360         careadlinkat: Avoid mismatch between ssize_t and int.
9361         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9362         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9363
9364 2011-06-06  Jim Meyering  <meyering@redhat.com>
9365
9366         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9367         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9368         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9369
9370 2011-06-05  Bruno Haible  <bruno@clisp.org>
9371
9372         ansi-c++-opt: Interoperability with libtool.
9373         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9374         set the variable to "no", not to ":".
9375         * NEWS: Mention the change.
9376
9377 2011-06-05  Bruno Haible  <bruno@clisp.org>
9378
9379         acl: Fix test failure on AIX 7.
9380         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9381         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9382
9383 2011-06-05  Bruno Haible  <bruno@clisp.org>
9384
9385         pipe-filter-ii: Fix test failure on AIX and IRIX.
9386         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9387         with EAGAIN, retry with a smaller buffer size.
9388
9389 2011-06-05  Bruno Haible  <bruno@clisp.org>
9390
9391         localename: Fix link dependencies.
9392         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9393         * modules/localename-tests (Makefile.am): Link test-localename with
9394         $(LIBTHREAD).
9395
9396 2011-06-05  Bruno Haible  <bruno@clisp.org>
9397
9398         error: Avoid gcc warning.
9399         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9400
9401 2011-06-05  Bruno Haible  <bruno@clisp.org>
9402
9403         unsetenv: Avoid gcc warning.
9404         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9405
9406 2011-06-05  Bruno Haible  <bruno@clisp.org>
9407
9408         setenv: Avoid gcc warning.
9409         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9410
9411 2011-06-05  Bruno Haible  <bruno@clisp.org>
9412
9413         sys_select: Ensure memset is declared also on AIX 7.
9414         * lib/sys_select.in.h: Include <string.h> also on AIX.
9415         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9416         self-contained also on AIX 7.1.
9417
9418 2011-06-04  Jim Meyering  <meyering@redhat.com>
9419
9420         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9421         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9422         function name, "error".
9423         (_gl_translatable_diag_func_re): New configurable variable.
9424
9425 2011-06-04  Bruno Haible  <bruno@clisp.org>
9426
9427         getopt: Avoid gcc warning.
9428         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9429
9430 2011-06-04  Bruno Haible  <bruno@clisp.org>
9431
9432         strerror_r: Fix comments.
9433         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9434         commit.
9435
9436 2011-06-04  Bruno Haible  <bruno@clisp.org>
9437
9438         perror: Fix compilation error.
9439         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9440         Undefine fprintf, not sprintf.
9441         * modules/perror (Depends-on): Remove intprops, verify.
9442
9443 2011-06-04  Bruno Haible  <bruno@clisp.org>
9444
9445         setlocale: Enable replacement on Cygwin 1.5.
9446         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9447         Cygwin 1.5.x.
9448         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9449         LC_CTYPE category also exists on Cygwin 1.5.x.
9450
9451 2011-06-04  Bruno Haible  <bruno@clisp.org>
9452
9453         strerror-override: Don't disable symbol renamings.
9454         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9455         * lib/strerror-override.c: Include config.h.
9456         (strerror_override): Don't undefine.
9457
9458 2011-06-03  Bruno Haible  <bruno@clisp.org>
9459
9460         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9461         * lib/localename.h: Update copyright header.
9462         * lib/localename.c: Likewise.
9463         * lib/relocatable.h: Likewise.
9464         * lib/relocatable.c: Likewise.
9465
9466 2011-06-02  Bruno Haible  <bruno@clisp.org>
9467
9468         doc: Fix a module name.
9469         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9470
9471 2011-06-02  Bruno Haible  <bruno@clisp.org>
9472
9473         pipe2: Remove dependency on 'nonblocking' module.
9474         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9475         O_NONBLOCK is defined by gnulib.
9476         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9477         is zero.
9478         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9479         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9480         defined by gnulib.
9481         (get_nonblocking_flag): New function.
9482         (main): Test O_NONBLOCK flag only if it is nonzero.
9483         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9484
9485 2011-06-03  Jim Meyering  <meyering@redhat.com>
9486
9487         maint: three new prohibit-header-without-use rules
9488         Prohibit use of cloexec.h, posixver.h, same.h without use.
9489         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9490         (sc_prohibit_posixver_without_use): Likewise.
9491         (sc_prohibit_same_without_use): Likewise.
9492
9493 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9494
9495         allocator: 'die' routine is now given requested size
9496         * lib/allocator.h (struct allocator.die): New size arg.
9497         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9498         If the actual problem is an ssize_t limitation, not a size_t or
9499         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9500
9501 2011-06-01  Eric Blake  <eblake@redhat.com>
9502
9503         strerror: drop strerror_r dependency
9504         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9505         * lib/strerror-override.c (strerror_override): ...to new file.
9506         * lib/strerror-override.h: Add prototype.
9507         * lib/strerror-impl.h: Delete.
9508         * lib/strerror.c (strerror): New implementation.
9509         * modules/errno (Files): Add new files.
9510         (configure.ac): Compile new file as appropriate.
9511         * modules/strerror (Files): Drop unused file.
9512         (Depends-on): Drop strerror_r-posix.
9513         * MODULES.html.sh: Document strerror_r-posix.
9514         Requested by Sam Steingold.
9515
9516         perror: call strerror_r directly
9517         * modules/perror (Files): Drop strerror-impl.h.
9518         * lib/perror.c (perror): Use our own stack buffer, rather than
9519         calling a wrapper that uses static storage.
9520         * doc/posix-functions/perror.texi (perror): Document a limitation
9521         of our replacement.
9522
9523         strerror_r: fix includes for FreeBSD
9524         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9525         since we use abort on some platforms.
9526         Reported by Matthias Bolte.
9527
9528 2011-05-31  Bruno Haible  <bruno@clisp.org>
9529
9530         Fix link errors in tests: openat-die uses gettext-h.
9531         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9532         against $(LIBINTL).
9533         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9534         against $(LIBINTL).
9535         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9536         $(LIBINTL).
9537         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9538         against $(LIBINTL).
9539         * modules/linkat-tests (Makefile.am): Link test-linkat against
9540         $(LIBINTL).
9541         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9542         $(LIBINTL).
9543         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9544         against $(LIBINTL).
9545         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9546         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9547         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9548         $(LIBINTL).
9549         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9550         $(LIBINTL).
9551         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9552         $(LIBINTL).
9553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9554
9555 2011-05-31  Bruno Haible  <bruno@clisp.org>
9556
9557         Fix link errors in tests: wait-process uses gettext-h.
9558         * modules/nonblocking-pipe-tests (Makefile.am): Set
9559         test_nonblocking_pipe_main_LDADD.
9560         * modules/nonblocking-socket-tests (Makefile.am): Link
9561         test-nonblocking-socket-main against $(LIBINTL).
9562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9563
9564 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9565
9566         assert-h: work around 'verify' incompatibility
9567         * lib/verify.h: Use @...@ directives, not ifdef.
9568         * modules/assert-h (assert.h): Implement the directives.
9569         (assert.h): Substitute the symbol-prefix more consistently.
9570
9571 2011-05-29  Jim Meyering  <meyering@redhat.com>
9572
9573         trim: remove three superfluous assignments
9574         * lib/trim.c (trim2): Remove three superfluous assignments
9575         and correct brace positioning.
9576
9577 2011-05-29  Bruno Haible  <bruno@clisp.org>
9578
9579         wctype-h: Avoid namespace pollution on Solaris 2.6.
9580         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9581         identifiers.
9582         * doc/posix-headers/wctype.texi: Mention the problem.
9583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9584
9585 2011-05-28  Jim Meyering  <meyering@redhat.com>
9586
9587         parse-datetime.y: accommodate -Wstrict-overflow
9588         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9589         placate -Wstrict-overflow.
9590
9591         trim: avoid a warning from -O2 -Wstrict-overflow
9592         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9593
9594 2011-05-29  Bruno Haible  <bruno@clisp.org>
9595
9596         gnulib-tool: Fix bug in yesterday's commit.
9597         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9598         twice.
9599
9600 2011-05-29  Bruno Haible  <bruno@clisp.org>
9601
9602         Allow multiple gnulib generated include files to be combined.
9603         * gnulib-tool (func_compute_include_guard_prefix): New function.
9604         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9605         ${gl_include_guard_prefix} references.
9606         (func_import, func_create_testdir): Invoke
9607         func_compute_include_guard_prefix.
9608         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9609         * lib/ctype.in.h: Likewise.
9610         * lib/dirent.in.h: Likewise.
9611         * lib/errno.in.h: Likewise.
9612         * lib/fcntl.in.h: Likewise.
9613         * lib/float.in.h: Likewise.
9614         * lib/getopt.in.h: Likewise.
9615         * lib/iconv.in.h: Likewise.
9616         * lib/langinfo.in.h: Likewise.
9617         * lib/locale.in.h: Likewise.
9618         * lib/math.in.h: Likewise.
9619         * lib/netdb.in.h: Likewise.
9620         * lib/netinet_in.in.h: Likewise.
9621         * lib/poll.in.h: Likewise.
9622         * lib/pthread.in.h: Likewise.
9623         * lib/pty.in.h: Likewise.
9624         * lib/sched.in.h: Likewise.
9625         * lib/se-selinux.in.h: Likewise.
9626         * lib/search.in.h: Likewise.
9627         * lib/signal.in.h: Likewise.
9628         * lib/spawn.in.h: Likewise.
9629         * lib/stdarg.in.h: Likewise.
9630         * lib/stddef.in.h: Likewise.
9631         * lib/stdint.in.h: Likewise.
9632         * lib/stdio.in.h: Likewise.
9633         * lib/stdlib.in.h: Likewise.
9634         * lib/string.in.h: Likewise.
9635         * lib/strings.in.h: Likewise.
9636         * lib/sys_file.in.h: Likewise.
9637         * lib/sys_ioctl.in.h: Likewise.
9638         * lib/sys_select.in.h: Likewise.
9639         * lib/sys_socket.in.h: Likewise.
9640         * lib/sys_stat.in.h: Likewise.
9641         * lib/sys_time.in.h: Likewise.
9642         * lib/sys_times.in.h: Likewise.
9643         * lib/sys_uio.in.h: Likewise.
9644         * lib/sys_utsname.in.h: Likewise.
9645         * lib/sys_wait.in.h: Likewise.
9646         * lib/sysexits.in.h: Likewise.
9647         * lib/termios.in.h: Likewise.
9648         * lib/time.in.h: Likewise.
9649         * lib/unistd.in.h: Likewise.
9650         * lib/wchar.in.h: Likewise.
9651         * lib/wctype.in.h: Likewise.
9652         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9653         * modules/ctype (Makefile.am): Likewise.
9654         * modules/dirent (Makefile.am): Likewise.
9655         * modules/errno (Makefile.am): Likewise.
9656         * modules/fcntl-h (Makefile.am): Likewise.
9657         * modules/float (Makefile.am): Likewise.
9658         * modules/getopt-posix (Makefile.am): Likewise.
9659         * modules/iconv-h (Makefile.am): Likewise.
9660         * modules/langinfo (Makefile.am): Likewise.
9661         * modules/locale (Makefile.am): Likewise.
9662         * modules/math (Makefile.am): Likewise.
9663         * modules/netdb (Makefile.am): Likewise.
9664         * modules/netinet_in (Makefile.am): Likewise.
9665         * modules/poll-h (Makefile.am): Likewise.
9666         * modules/pthread (Makefile.am): Likewise.
9667         * modules/pty (Makefile.am): Likewise.
9668         * modules/sched (Makefile.am): Likewise.
9669         * modules/search (Makefile.am): Likewise.
9670         * modules/selinux-h (Makefile.am): Likewise.
9671         * modules/signal (Makefile.am): Likewise.
9672         * modules/spawn (Makefile.am): Likewise.
9673         * modules/stdarg (Makefile.am): Likewise.
9674         * modules/stddef (Makefile.am): Likewise.
9675         * modules/stdint (Makefile.am): Likewise.
9676         * modules/stdio (Makefile.am): Likewise.
9677         * modules/stdlib (Makefile.am): Likewise.
9678         * modules/string (Makefile.am): Likewise.
9679         * modules/strings (Makefile.am): Likewise.
9680         * modules/sys_file (Makefile.am): Likewise.
9681         * modules/sys_ioctl (Makefile.am): Likewise.
9682         * modules/sys_select (Makefile.am): Likewise.
9683         * modules/sys_socket (Makefile.am): Likewise.
9684         * modules/sys_stat (Makefile.am): Likewise.
9685         * modules/sys_time (Makefile.am): Likewise.
9686         * modules/sys_times (Makefile.am): Likewise.
9687         * modules/sys_uio (Makefile.am): Likewise.
9688         * modules/sys_utsname (Makefile.am): Likewise.
9689         * modules/sys_wait (Makefile.am): Likewise.
9690         * modules/sysexits (Makefile.am): Likewise.
9691         * modules/termios (Makefile.am): Likewise.
9692         * modules/time (Makefile.am): Likewise.
9693         * modules/unistd (Makefile.am): Likewise.
9694         * modules/wchar (Makefile.am): Likewise.
9695         * modules/wctype-h (Makefile.am): Likewise.
9696         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9697
9698 2011-05-29  Bruno Haible  <bruno@clisp.org>
9699
9700         assert-h: Allow multiple gnulib generated replacements to coexist.
9701         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9702
9703 2011-05-29  Bruno Haible  <bruno@clisp.org>
9704
9705         argp: Allow coexistence with strerror_r-posix module.
9706         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9707         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9708         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9709         not the glibc signature.
9710
9711 2011-05-28  Bruno Haible  <bruno@clisp.org>
9712
9713         gnulib-tool: Alternative structure of testdirs, similar to --import.
9714         * gnulib-tool: New option --single-configure.
9715         (func_usage): Document it.
9716         (single_configure): New variable.
9717         (func_modules_transitive_closure_separately,
9718         func_modules_transitive_closure_separately,
9719         func_determine_use_libtests, func_modules_add_dummy_separately,
9720         func_modules_to_filelist_separately): New functions, extracted from
9721         func_import.
9722         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9723         (func_import): Use the new functions.
9724         (func_create_testdir): Set final_modules. Handle $single_configure =
9725         true case.
9726
9727 2011-05-28  Bruno Haible  <bruno@clisp.org>
9728
9729         getloadavg: Remove an unreliable safety check.
9730         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9731         getloadavg.c is in place.
9732         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9733         Reported by Sam Steingold <sds@gnu.org>.
9734
9735 2011-05-28  Bruno Haible  <bruno@clisp.org>
9736
9737         doc: Cleanup yet another file produced by texinfo.tex.
9738         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9739
9740 2011-05-28  Bruno Haible  <bruno@clisp.org>
9741
9742         Finish the conditional dependencies mechanism.
9743         * gnulib-tool: New option --no-conditional-dependencies.
9744         (func_usage): Document it. Don't mark --conditional-dependencies as
9745         experimental.
9746         (cond_dependencies): The possible values can now be true, false, empty.
9747         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9748         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9749         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9750
9751 2011-05-28  Bruno Haible  <bruno@clisp.org>
9752
9753         doc: Use a recent texinfo.tex.
9754         * doc/Makefile (tex_opts): New variable.
9755         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9756
9757 2011-05-28  Jim Meyering  <meyering@redhat.com>
9758
9759         intprops.h: adjust comment to match code change
9760         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9761         only once, it *may* have side effects.  Also fix an unrelated typo.
9762         (_GL_INT_SIGNED): Likewise.
9763
9764 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9765
9766         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9767
9768 2011-05-26  Bruno Haible  <bruno@clisp.org>
9769
9770         mbsrchr: Avoid collision with system function on Interix.
9771         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9772         Reported by Markus Duft <mduft@gentoo.org>.
9773
9774 2011-05-15  James Youngman  <jay@gnu.org>
9775
9776         getopt: for ambiguous options, enumerate the possibilities.
9777         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9778         the ambiguous options when an ambiguous prefix is given. This was
9779         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9780         glibc change was
9781         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9782
9783 2011-05-25  Eric Blake  <eblake@redhat.com>
9784
9785         getcwd: work around mingw bug
9786         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9787         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9788         Reported by Matthias Bolte.
9789
9790 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9791
9792         test-intprops: disable -Wtype-limits diagnostics
9793         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9794         diagnostics.  Otherwise, the integer overflow macros generate many
9795         diagnostics.  Reported by Jim Meyering in
9796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9797
9798         intprops: shorten, to pacify gcc -Woverlength-strings
9799         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9800         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9801         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9802         likely to run afoul of C compiler limits for string constant lengths.
9803         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9804
9805 2011-05-24  Eric Blake  <eblake@redhat.com>
9806
9807         docs: document recently fixed glibc printf bug
9808         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9809         * doc/posix-functions/printf.texi (printf): Likewise.
9810         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9811         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9812
9813         closein-tests: convert to init.sh
9814         * modules/closein-tests (Files): Add init.sh
9815         * tests/test-closein.sh Use it.
9816
9817         yesno-tests: convert to init.sh
9818         * modules/yesno-tests (Files): Add init.sh.
9819         * tests/test-yesno.sh: Use it.
9820
9821         atexit-tests: ensure reliable exit status
9822         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9823         Reported by Bruno Haible.
9824
9825 2011-05-24  Bruno Haible  <bruno@clisp.org>
9826
9827         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9828         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9829         gl_PREREQ_STRERROR_R invocations from here...
9830         * modules/strerror_r-posix (configure.ac): ... to here.
9831
9832 2011-05-24  Eric Blake  <eblake@redhat.com>
9833
9834         strerror_r: fix missing header
9835         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9836
9837         strerror_r: fix AIX test failures
9838         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9839         ERANGE failure.
9840
9841         strerror_r: fix Solaris test failures
9842         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9843         failures.
9844         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9845
9846         strerror_r: enforce POSIX recommendations
9847         * lib/strerror_r.c (safe_copy): New helper method.
9848         (strerror_r): Guarantee a non-empty string.
9849         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9850         recent POSIX rulings and to match our strerror guarantees.
9851         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9852
9853 2011-05-24  Jim Meyering  <meyering@redhat.com>
9854
9855         test-perror2.c: avoid warning about unused variable
9856         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9857
9858 2011-05-24  Eric Blake  <eblake@redhat.com>
9859
9860         perror: avoid spurious test failure on HP-UX
9861         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9862
9863         tests: fix logic bug in init.sh
9864         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9865         shell.
9866
9867 2011-05-24  Jim Meyering  <meyering@redhat.com>
9868
9869         utimensat: do not reference an out-of-scope buffer
9870         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9871         declared in an inner scope, yet "times" would be dereferenced outside
9872         the scope in which "ts" was valid.
9873         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9874         of ts[2] "out/up", so that the use of aliased "times" (via
9875         "times = ts;") does not end up referencing an out-of-scope "ts"
9876
9877         opendir-safer.c: don't clobber errno; don't close negative FD
9878         * lib/opendir-safer.c (opendir_safer):
9879         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9880         file descriptor, and more importantly, don't clobber the
9881         offending errno value with EINVAL.  Before, upon failure
9882         of dup_safer, we would pass the negative file descriptor to
9883         fdopendir, which would clobber errno.
9884
9885 2011-05-23  Bruno Haible  <bruno@clisp.org>
9886
9887         idcache: Fix module description.
9888         * modules/idcache (Include): Set to "idcache.h".
9889
9890 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9891
9892         gnulib-tool: fix portability problem with MacOS sed
9893         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9894         before the "}".  Problem reported by Leo in
9895         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9896         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9897         sed_extract_condition1, sed_extract_condition2.
9898
9899 2011-05-23  Bruno Haible  <bruno@clisp.org>
9900
9901         hash: Simplify autoconf macro.
9902         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9903
9904 2011-05-23  Bruno Haible  <bruno@clisp.org>
9905
9906         getugroups: Fix module description.
9907         * modules/getugroups (Include): Set to "getugroups.h".
9908
9909 2011-05-23  Bruno Haible  <bruno@clisp.org>
9910
9911         linkat: Simplify autoconf macro.
9912         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9913
9914 2011-05-23  Bruno Haible  <bruno@clisp.org>
9915             Eric Blake  <eblake@redhat.com>
9916
9917         linkat, renameat: Update dependencies.
9918         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9919         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9920         symlinkat.
9921
9922 2011-05-23  Jim Meyering  <meyering@redhat.com>
9923
9924         maint.mk: more tight_scope improvements
9925         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9926         (_gl_TS_headers): Define only in if-0'd block.
9927         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9928         sometimes we must *not* use it.  Adjust uses accordingly.
9929         (sc_tight_scope): Use much simpler grep-based test to determine
9930         whether we skip this rule.
9931
9932         maint.mk: generalize/improve the tight-scope rule
9933         * top/maint.mk: Emit a warning when the test is skipped.
9934         (_gl_TS_dir): Add $(srcdir)/ prefix.
9935         (_gl_TS_function_match): Simplify, rather than trying
9936         to enumerate common types.  Otherwise, it would fail to match an
9937         "extern unsigned char const *" declaration in idutils.
9938         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9939         a way to support use of that type of macro.
9940         (_gl_TS_var_match): Simplify regexp.
9941         (_gl_TS_obj_files): New configurable variable.
9942         (_gl_TS_headers): Likewise.
9943
9944 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9945
9946         verify: fix bug when gnulib <assert.h> is also included
9947         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9948         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9949         Perhaps there's a better way, but this fixes the immediate problem.
9950         Problem reported by Bruno Haible in
9951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9952
9953 2011-05-22  Bruno Haible  <bruno@clisp.org>
9954
9955         xgetcwd: Simplify autoconf macro.
9956         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9957
9958 2011-05-22  Bruno Haible  <bruno@clisp.org>
9959
9960         New module 'mktime-internal'.
9961         * modules/mktime-internal: New file.
9962         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9963         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9964         mktime_internal as a C macro if libc has __mktime_internal.
9965         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9966         conditions.
9967         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9968
9969 2011-05-22  Bruno Haible  <bruno@clisp.org>
9970
9971         timegm: Correct mktime replacement statements.
9972         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9973         defining mktime as a C macro. This completes a 2009-07-28 commit.
9974
9975 2011-05-22  Bruno Haible  <bruno@clisp.org>
9976
9977         timegm: Simplify autoconf macro.
9978         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9979
9980 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9981
9982         clock-time: change to LGPLv2+.
9983         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9984         BSD-like but we have no mark for that; this is good enough for now.
9985
9986 2011-05-21  Bruno Haible  <bruno@clisp.org>
9987
9988         strerror_r: Fix comments.
9989         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9990
9991 2011-05-21  Bruno Haible  <bruno@clisp.org>
9992
9993         relocatable-prog-wrapper: Fix possible link error.
9994         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9995         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9996         (gl_FUNC_SETENV): ... to here.
9997         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9998         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9999
10000 2011-05-21  Bruno Haible  <bruno@clisp.org>
10001
10002         relocatable-prog-wrapper: Assume strerror() exists.
10003         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10004         m4/strerror.m4.
10005         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10006         * lib/relocwrapper.c: Remove mention of strerror module.
10007         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10008         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10009         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10010         C macro.
10011
10012 2011-05-21  Bruno Haible  <bruno@clisp.org>
10013
10014         select: Simplify replacement idiom.
10015         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10016         Win32 platforms.
10017         * lib/sys_select.in.h (select): Simplify accordingly.
10018         * modules/select (Depends-on): Likewise.
10019
10020 2011-05-21  Bruno Haible  <bruno@clisp.org>
10021
10022         mkdir-p: Simplify autoconf macro.
10023         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10024         gl_FUNC_LCHOWN.
10025
10026 2011-05-21  Eric Blake  <eblake@redhat.com>
10027
10028         strerror_r: avoid clobbering strerror on cygwin
10029         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10030         fall back instead to sys_errlist.
10031         * modules/strerror (configure.ac): Add witness.
10032         * tests/test-strerror_r.c (main): Enhance test.
10033         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10034         * tests/test-perror2.c (main): Free memory before exit.
10035
10036 2011-05-21  Bruno Haible  <bruno@clisp.org>
10037
10038         mkdtemp: Use gnulib naming conventions.
10039         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10040         * modules/mkdtemp (configure.ac): Update.
10041
10042 2011-05-20  Eric Blake  <eblake@redhat.com>
10043
10044         strerror_r: avoid corrupting errno on Solaris
10045         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10046         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10047
10048         strerror_r: avoid compiler warning
10049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10050
10051         strerror_r: simplify AIX code
10052         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10053
10054         test-perror: avoid spurious failure on FreeBSD
10055         * modules/perror-tests (Depends-on): Add strerror, now that
10056         strerror_r no longer pulls it in.
10057
10058 2011-05-20  Bruno Haible  <bruno@clisp.org>
10059
10060         strerror_r-posix: Remove unused dependencies.
10061         * modules/strerror_r-posix (Depends-on): Remove strerror.
10062         Reported by Eric Blake.
10063
10064 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10065
10066         intprops: remove assumption about A|B representation
10067         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10068         is a valid integer if both A and B are.  Although this is true for
10069         all known practical hosts, the C standard doesn't guarantee it,
10070         and the code need not assume it.  Also, this change may work around
10071         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10073
10074 2011-05-20  Eric Blake  <eblake@redhat.com>
10075
10076         perror: work around FreeBSD bug
10077         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10078         is broken.  Move AC_LIBOBJ...
10079         * modules/perror (configure.ac): Here.
10080         * doc/posix-functions/perror.texi (perror): Document this.
10081         * tests/test-perror2.c (main): Enhance test.
10082
10083         test-perror: check for strerror interactions
10084         * tests/macros.h (STREQ): Add macro.
10085         * modules/perror-tests (Files): Add second test.
10086         * tests/test-perror2.c (main): New file.
10087         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10088
10089         test-perror: rewrite to use init script
10090         * modules/perror-tests (Files): Add init.sh.
10091         * tests/test-perror.sh: Use temporary directory.
10092
10093 2011-05-20  Jim Meyering  <meyering@redhat.com>
10094
10095         maint: replace misused "a" with "an"
10096         * doc/intprops.texi: "a integer"
10097         * doc/regex.texi: "a explanation"
10098         * lib/alignof.h: "a object"
10099         * lib/argmatch.h: "a explanation"
10100         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10101         * lib/stdint.in.h: "a integer"
10102         * lib/userspec.c: "a owner"
10103         * doc/gnulib.texi: Fix "a idea", and reword.
10104
10105 2011-05-19  Jim Meyering  <meyering@redhat.com>
10106
10107         maint: correct misuse of "a" and "an"
10108         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10109         * lib/argp-help.c: "an docum...": s/an/a/
10110         * lib/argp-parse.c: "An vector": s/An/A/
10111         * lib/execute.c: "an native": s/an/a/
10112         * lib/spawn-pipe.c: Likewise.
10113         * lib/gc.h: "an Gc_rc": s/an/a/
10114         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10115         * lib/fts.c: "an stat.st_dev": s/an/a/
10116
10117 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10118
10119         intprops-tests: work around HP-UX 11.23 cc bug with constants
10120         * tests/test-intprops.c (VERIFY): New macro.
10121         (main): Use it, instead of verify, to work around the compiler bug; see
10122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10123
10124         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10125         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10126         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10127         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10128         (_GL_REMAINDER_OVERFLOW): Use it.
10129
10130         intprops-tests: revert unsigned part of previous change
10131         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10132         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10133         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10135
10136 2011-05-19  Bruno Haible  <bruno@clisp.org>
10137
10138         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10139         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10140         strerror_r() returned without filling the buffer.
10141         Reported by Eric Blake.
10142
10143 2011-05-19  Eric Blake  <eblake@redhat.com>
10144
10145         strerror_r: guarantee unchanged errno
10146         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10147         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10148         failure.
10149         * tests/test-strerror_r.c (main): Enhance test.
10150
10151 2011-05-19  Bruno Haible  <bruno@clisp.org>
10152
10153         strerror_r: Reorder #if blocks.
10154         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10155         for consistency with the previous commit.
10156
10157 2011-05-19  Bruno Haible  <bruno@clisp.org>
10158
10159         perror: Avoid clobbering the strerror buffer when possible.
10160         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10161         * lib/strerror.c: Include it.
10162         * modules/strerror (Files): Add lib/strerror-impl.h.
10163         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10164         (my_strerror): New function, defined through lib/strerror-impl.h.
10165         (perror): Use it instead of strerror.
10166         * modules/perror (Files): Add lib/strerror-impl.h.
10167         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10168
10169 2011-05-19  Eric Blake  <eblake@redhat.com>
10170
10171         strerror_r: fix on newer cygwin
10172         * lib/strerror_r.c (strerror_r): Cygwin now has
10173         __xpg_strerror_r, use it.
10174
10175 2011-05-19  Bruno Haible  <bruno@clisp.org>
10176
10177         strerror_r: Avoid clobbering the strerror buffer when possible.
10178         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10179         (sys_nerr, sys_errlist): New declarations.
10180         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10181         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10182         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10183
10184 2011-05-19  Bruno Haible  <bruno@clisp.org>
10185
10186         strerror_r: Fix test failure on mingw.
10187         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10188         EXTEND_STRERROR_R.
10189         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10190         macros from errno.in.h instead.
10191
10192 2011-05-19  Eric Blake  <eblake@redhat.com>
10193
10194         strerror: relax test for Solaris
10195         * tests/test-strerror.c (main): Permit Solaris behavior.
10196         * tests/test-strerror_r.c (main): Likewise.
10197
10198         strerror: enforce POSIX ruling on strerror(0)
10199         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10200         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10201         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10202         * doc/posix-functions/strerror.texi (strerror): Document it.
10203         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10204         * tests/test-strerror.c (main): Strengthen test.
10205         * tests/test-strerror_r.c (main): Likewise.
10206
10207 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10208
10209         intprop-tests: port to older and more-pedantic compilers
10210         * modules/intprops-tests (Files): Add tests/macros.h.
10211         * tests/test-intprops.c: Include macros.h.
10212         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10213         it's no longer documented to expand to an integer constant expression.
10214         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10215         argument is floating point, as it's no longer documented to expand
10216         to an integer constant expression in that case.
10217         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10218         compiler bugs reported by Bruno Haible.  See
10219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10220         (U0, U1): New constants, to work around the same bugs.  Also,
10221         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10222
10223         intprops: work around C compiler bugs
10224         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10225         bug in Sun C 5.11 2010/08/13 and other compilers; see
10226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10227
10228         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10229         * doc/intprops.texi (Integer Type Determination): Fix
10230         documentation for TYPE_IS_INTEGER: it returns an constant
10231         expression, not an integer constant expression.  Fix doc for
10232         TYPE_SIGNED: it returns an integer constant expression only if its
10233         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10234         hardly worth documented that way....)
10235
10236 2011-05-18  Bruno Haible  <bruno@clisp.org>
10237
10238         strerror_r: Avoid clobbering the strerror buffer when possible.
10239         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10240         Handle gnulib defined errno values here. When strerror() returns NULL
10241         or an empty string, return EINVAL.
10242         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10243         gnulib defined errno values here.
10244         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10245
10246 2011-05-18  Eric Blake  <eblake@redhat.com>
10247
10248         fnmatch: avoid compiler warning
10249         * lib/fnmatch_loop.c (FCT): Use correct type.
10250         Reported by Matthias Bolte.
10251
10252 2011-05-13  Jim Meyering  <meyering@redhat.com>
10253
10254         maint.mk: three new prohibit_<HDR>_without_use rules
10255         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10256         (sc_prohibit_stdio-safer_without_use): Likewise.
10257         (sc_prohibit_xfreopen_without_use): Likewise.
10258
10259 2011-05-17  Jim Meyering  <meyering@redhat.com>
10260
10261         announce-gen: fail if the NEWS delta is empty
10262         If there's nothing noteworthy in NEWS, then either you forgot
10263         or you shouldn't be releasing.
10264         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10265
10266 2011-05-17  Pádraig Brady <P@draigBrady.com>
10267
10268         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10269         reserved symbols starting with double underscore from the check.
10270
10271 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10272
10273         intprops: add doc
10274         * doc/intprops.texi: New file, documenting intprops.
10275         * doc/gnulib.texi (Particular Modules): Include it.
10276
10277         verify: add doc to gnulib manual and fix example
10278         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10279         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10280         (Compile-time Assertions): Fix example so it can't overflow.
10281
10282 2011-05-17  Jim Meyering  <meyering@redhat.com>
10283
10284         warnings.m4: don't usurp save_CPPFLAGS variable name
10285         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10286
10287         doc: fix typo
10288         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10289
10290 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10291             Bruno Haible  <bruno@clisp.org>
10292
10293         doc: Tweak recent change.
10294         * README (Portability guidelines): Tweak new text.
10295         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10296         Interix 6.1.
10297
10298 2011-05-16  Eric Blake  <eblake@redhat.com>
10299
10300         inttypes: avoid autoconf warning
10301         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10302         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10303
10304 2011-05-16  Sam Steingold <sds@gnu.org>
10305         and Eric Blake  <eblake@redhat.com>
10306
10307         vc-list-files: accept multiple directory operands
10308         * build-aux/vc-list-files: Iterate over all remaining operands.
10309
10310 2011-05-16  Bruno Haible  <bruno@clisp.org>
10311
10312         Fix confusion regarding deprecated modules.
10313         * modules/calloc (Status, Notice): Mark module as deprecated, not
10314         obsolete.
10315         * modules/fnmatch-posix (Status, Notice): Likewise.
10316         * modules/getdate (Status, Notice): Likewise.
10317         * modules/getopt (Status, Notice): Likewise.
10318         * modules/malloc (Status, Notice): Likewise.
10319         * modules/pipe (Status, Notice): Likewise.
10320         * modules/realloc (Status, Notice): Likewise.
10321         * modules/rename-dest-slash (Status, Notice): Likewise.
10322         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10323         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10324         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10325         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10326         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10327
10328 2011-05-16  Bruno Haible  <bruno@clisp.org>
10329
10330         doc: List the target platforms.
10331         * doc/gnulib-intro.texi (Target Platforms): New section.
10332         * doc/gnulib.texi (Introduction): Update menu.
10333         * README (Portability guidelines): Refer to the new section. Update
10334         statement about oldest supported environment. Remove rationale why
10335         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10336         unportable C89 function.
10337         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10338         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10339
10340 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10341
10342         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10343
10344 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         intprops-tests: new module
10347         * modules/intprops-tests, tests/test-intprops.c: New files.
10348
10349         intprops: add safe, portable integer overflow checking
10350         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10351         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10352         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10353         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10354         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10355         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10356         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10357         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10358         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10359         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10360         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10361
10362 2011-05-12  James Youngman  <jay@gnu.org>
10363
10364         Add a test for glibc's Bugzilla bug #12378.
10365         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10366         doesn't allow the literal matching of a lone "[" (which is
10367         required by POSIX).
10368         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10369
10370 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10371
10372         Sync glibc change fixing Bugzilla bug #12378.
10373         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10374         beginning and fall back to matching as normal character if the
10375         string ends before the matching ']' is found.  This is what POSIX
10376         requires.
10377
10378 2011-05-13  Eric Blake  <eblake@redhat.com>
10379
10380         getcwd-lgpl: relax test for FreeBSD
10381         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10382         issue.
10383         * tests/test-getcwd-lgpl.c (main): Relax test.
10384         Reported by Matthias Bolte.
10385
10386 2011-05-11  Eric Blake  <eblake@redhat.com>
10387
10388         test-fflush: silence compiler warning
10389         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10390
10391 2011-05-11  Bruno Haible  <bruno@clisp.org>
10392
10393         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10394         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10395         * modules/canonicalize (Depends-on): Add 'nocrash'.
10396         * modules/canonicalize-lgpl (Depends-on): Likewise.
10397         * doc/posix-functions/realpath.texi: Update platforms list.
10398         Reported by Ryan Schmidt <ryandesign@macports.org>.
10399
10400 2011-05-11  Bruno Haible  <bruno@clisp.org>
10401
10402         group-member: Declare function in <unistd.h>.
10403         * lib/unistd.in.h (group_member): New declaration.
10404         * lib/group-member.h: Remove file.
10405         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10406         * tests/test-unistd-c++.cc: Check signature of group_member.
10407         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10408         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10409         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10410         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10411         HAVE_GROUP_MEMBER.
10412         * modules/group-member (Files): Remove lib/group-member.h.
10413         (Depends-on): Add unistd. Specify conditions.
10414         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10415         (Include): Change to <unistd.h>.
10416         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10417         HAVE_GROUP_MEMBER.
10418         * NEWS: Mention the change.
10419         * lib/euidaccess.c: Don't include group-member.h.
10420
10421 2011-05-11  Bruno Haible  <bruno@clisp.org>
10422
10423         group-member: Document module.
10424         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10425         module.
10426
10427 2011-05-11  Bruno Haible  <bruno@clisp.org>
10428
10429         fclose: Fix mistake earlier today.
10430         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10431
10432 2011-05-11  Eric Blake  <eblake@redhat.com>
10433
10434         fclose: preserve fflush errors
10435         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10436         Reported by Jim Meyering.
10437
10438         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10439         * build-aux/bootstrap (check_versions): When no specific version
10440         is required, merely check that the app produces an exit status
10441         that indicates its existence.
10442
10443         maint.mk: drop redundant check
10444         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10445         the same but better.
10446
10447 2011-05-11  Bruno Haible  <bruno@clisp.org>
10448
10449         fclose: Fix possible link error.
10450         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10451         unregister_shadow_fd. Improve comments.
10452         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10453         Eric Blake.
10454
10455 2011-05-11  Jim Meyering  <meyering@redhat.com>
10456
10457         maint.mk: improve "can not" detection and generalize rule name
10458         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10459         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10460         Use the same technique as in sc_prohibit_doubled_word, so that
10461         we recognize "can not" also when the words are separated by a newline.
10462         Suggested by Eric Blake.
10463         (perl_filename_lineno_text_): Define.  Factored out of...
10464         (prohibit_doubled_word_): ...here.  Use the new definition.
10465         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10466         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10467         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10468
10469 2011-05-10  Eric Blake  <eblake@redhat.com>
10470
10471         fclose: avoid double close race when possible
10472         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10473         all but WINDOWS_SOCKETS.
10474
10475 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10476
10477         openat: correct new comment
10478         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10479
10480 2011-05-10  Jim Meyering  <meyering@redhat.com>
10481
10482         openat: add comments
10483         * lib/openat-proc.c (openat_proc_name): Add comments,
10484         mostly from Eric Blake.
10485
10486 2011-05-09  Eric Blake  <eblake@redhat.com>
10487
10488         openat: reduce syscalls in first probe of /proc
10489         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10490         be a directory.  Simplify the probe for .. bugs.
10491         * modules/openat (Depends-on): Drop same-inode.
10492         Reported by Bastien ROUCARIES.
10493
10494 2011-05-09  Jim Meyering  <meyering@redhat.com>
10495
10496         maint.mk: change semantics/name of tight_scope variables
10497         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10498         Rename variables to align with semantics that make them more useful.
10499
10500         maint.mk: tweak new rule's name not to impinge
10501         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10502         (sc_tight_scope): Use new rule name rather than $@-0.
10503
10504         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10505         * top/maint.mk (sc_tight_scope): New rule.
10506         (sc_tight_scope-0): New rule, ifdef'd out.
10507         (_gl_TS_dir): Default.
10508         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10509         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10510
10511 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10512
10513         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10514         Haible <bruno@clisp.org>.
10515
10516 2011-05-08  Bruno Haible  <bruno@clisp.org>
10517
10518         Comments.
10519         * m4/isnanf.m4: Add comment.
10520         * m4/isnanl.m4: Likewise.
10521
10522 2011-05-08  Bruno Haible  <bruno@clisp.org>
10523
10524         glob: Remove obsolete macro.
10525         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10526
10527 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         intprops: Sun C 5.11 supports __typeof__
10530         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10531         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10532         which is new.
10533         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10534
10535         intprops: switch to usual gnulib indenting and naming
10536         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10537         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10538
10539         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10540
10541 2011-05-08  Jim Meyering  <meyering@redhat.com>
10542
10543         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10544         * top/maint.mk (release-prep): Use make's --no-print-directory
10545         option when generating the announcement.  This eliminates the
10546         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10547         generated announcement template.
10548
10549 2011-05-08  Bruno Haible  <bruno@clisp.org>
10550
10551         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10552         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10553         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10554
10555 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10556
10557         ignore-value, verify: Omit include files from lib_SOURCES.
10558         * modules/ignore-value, modules/verify (Makefile.am):
10559         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10560         that leads Automake to duplicate use of am__objects_... variables
10561         in Makefile.in.  See
10562         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10563
10564 2011-05-07  Bruno Haible  <bruno@clisp.org>
10565
10566         fclose: Simplify autoconf macro.
10567         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10568         defined.
10569
10570 2011-05-07  Bruno Haible  <bruno@clisp.org>
10571
10572         canonicalize-lgpl: Fix autoconf macro ordering bug.
10573         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10574         gl_STDLIB_H_DEFAULTS.
10575
10576 2011-05-06  Eric Blake  <eblake@redhat.com>
10577
10578         maintainer-makefile: make sc_po_check easier to tune
10579         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10580         to probe for strings, such as an alternate location for gnulib.
10581
10582         fclose: guarantee behavior on seekable stdin
10583         * modules/fclose (Depends-on): Add fflush.
10584         * doc/posix-functions/fclose.texi (fclose): Document this.
10585         * tests/test-fclose.c (main): Make test for this unconditional.
10586
10587 2011-05-06  Bruno Haible  <bruno@clisp.org>
10588
10589         fflush, fpurge: Relicense under LGPLv2+.
10590         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10591         * modules/fpurge (License): Likewise.
10592         With permission from Eric Blake and Jim Meyering.
10593         Suggested by Eric Blake.
10594
10595 2011-05-06  Karl Berry  <karl@gnu.org>
10596
10597         * MODULES.html.sh (func_all_modules): remove exit.
10598
10599 2011-05-06  Jim Meyering  <meyering@redhat.com>
10600
10601         maint.mk: use info-gnu@ as the default only for a stable release
10602         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10603         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10604         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10605         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10606
10607 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10608
10609         assert-h: new module, which supports C1X-style static_assert
10610         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10611         * lib/verify.h: Revamp so that this can be copied into assert.h,
10612         while retaining the ability to use it standalone as before.
10613         Rename private identifiers so as not to encroach on the
10614         standard C namespace, since this is now used by assert.h.
10615         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10616         the old verify_true.
10617         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10618         the old verify_true.  Use _GL_VERIFY_TYPE.
10619         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10620         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10621         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10622         defined when this file is copied into the replacement assert.h.
10623         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10624         and _Static_assert is not built in.
10625         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10626         defined, and use the new macros mentioned above.
10627         * doc/posix-headers/assert.texi: Document this.
10628
10629 2011-05-05  Bruno Haible  <bruno@clisp.org>
10630
10631         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10632         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10633         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10634         gl_REPLACE_FCLOSE here.
10635         * modules/fflush (Depends-on): Remove fclose.
10636         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10637         combination with module 'fclose'.
10638
10639 2011-05-05  Bruno Haible  <bruno@clisp.org>
10640
10641         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10642         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10643         gl_FUNC_FFLUSH.
10644         (gl_FUNC_FFLUSH): Use it.
10645         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10646         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10647         gl_REPLACE_FSEEKO here.
10648
10649 2011-05-05  Bruno Haible  <bruno@clisp.org>
10650
10651         tzset: Relicense under LGPL.
10652         * modules/tzset (License): Change to LGPL.
10653         No agreement needed; it's a no-op.
10654
10655         strtoimax, strtoumax: Relicense under LGPL.
10656         * modules/strtoimax (License): Change to LGPL.
10657         * modules/strtoumax (License): Likewise.
10658         With permission from Jim Meyering, Paul Eggert:
10659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10661
10662         getgroups: Relicense under LGPL.
10663         * modules/getgroups (License): Change to LGPL.
10664         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10668
10669         nanosleep: Relicense under LGPL.
10670         * modules/nanosleep (License): Change to LGPL.
10671         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10672         Haible:
10673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10674         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10677
10678         futimens: Relicense under LGPL.
10679         * modules/futimens (License): Change to LGPL.
10680         With permission from Eric Blake:
10681         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10682
10683         fflush: Relicense under LGPL.
10684         * modules/fflush (License): Change to LGPL.
10685         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10689
10690         tmpfile: Relicense under LGPL.
10691         * modules/tmpfile (License): Change to LGPL.
10692         With permission from Ben Pfaff:
10693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10694
10695         isfinite: Relicense under LGPL.
10696         * modules/isfinite (License): Change to LGPL.
10697         With permission from Ben Pfaff, Bruno Haible:
10698         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10700
10701         acosl..tanl: Relicense under LGPL.
10702         * modules/acosl (License): Change to LGPL.
10703         * modules/asinl (License): Likewise.
10704         * modules/atanl (License): Likewise.
10705         * modules/cosl (License): Likewise.
10706         * modules/expl (License): Likewise.
10707         * modules/logl (License): Likewise.
10708         * modules/sinl (License): Likewise.
10709         * modules/sqrtl (License): Likewise.
10710         * modules/tanl (License): Likewise.
10711         Source code originally from glibc and Paolo Bonzini. Agreements:
10712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10714
10715 2011-05-05  Bruno Haible  <bruno@clisp.org>
10716
10717         signal: Define sighandler_t.
10718         * lib/signal.in.h (sighandler_t): New type.
10719         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10720         whether sighandler_t is defined.
10721         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10722         * modules/signal (Depends-on): Add extensions.
10723         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10724         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10725         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10726
10727 2011-05-05  Eric Blake  <eblake@redhat.com>
10728
10729         maint: remove useless REPLACE_*_H macros
10730         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10731         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10732         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10733         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10734         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10735         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10736         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10737         * m4/btowc.m4: Update callers.
10738         * m4/dirfd.m4: Likewise.
10739         * m4/duplocale.m4: Likewise.
10740         * m4/fchdir.m4: Likewise.
10741         * m4/fdopendir.m4: Likewise.
10742         * m4/inet_ntop.m4: Likewise.
10743         * m4/inet_pton.m4: Likewise.
10744         * m4/ioctl.m4: Likewise.
10745         * m4/mbrlen.m4: Likewise.
10746         * m4/mbrtowc.m4: Likewise.
10747         * m4/mbsinit.m4: Likewise.
10748         * m4/mbsnrtowcs.m4: Likewise.
10749         * m4/mbsrtowcs.m4: Likewise.
10750         * m4/poll.m4: Likewise.
10751         * m4/setlocale.m4: Likewise.
10752         * m4/wcrtomb.m4: Likewise.
10753         * m4/wcsnrtombs.m4: Likewise.
10754         * m4/wcsrtombs.m4: Likewise.
10755         * m4/wctob.m4: Likewise.
10756         * m4/wcwidth.m4: Likewise.
10757         * modules/posix_spawn: Likewise.
10758         * modules/posix_spawn_file_actions_addclose: Likewise.
10759         * modules/posix_spawn_file_actions_adddup2: Likewise.
10760         * modules/posix_spawn_file_actions_addopen: Likewise.
10761         * modules/posix_spawn_file_actions_destroy: Likewise.
10762         * modules/posix_spawn_file_actions_init: Likewise.
10763         * modules/posix_spawnattr_destroy: Likewise.
10764         * modules/posix_spawnattr_getflags: Likewise.
10765         * modules/posix_spawnattr_getpgroup: Likewise.
10766         * modules/posix_spawnattr_getschedparam: Likewise.
10767         * modules/posix_spawnattr_getschedpolicy: Likewise.
10768         * modules/posix_spawnattr_getsigdefault: Likewise.
10769         * modules/posix_spawnattr_getsigmask: Likewise.
10770         * modules/posix_spawnattr_init: Likewise.
10771         * modules/posix_spawnattr_setflags: Likewise.
10772         * modules/posix_spawnattr_setpgroup: Likewise.
10773         * modules/posix_spawnattr_setschedparam: Likewise.
10774         * modules/posix_spawnattr_setschedpolicy: Likewise.
10775         * modules/posix_spawnattr_setsigdefault: Likewise.
10776         * modules/posix_spawnattr_setsigmask: Likewise.
10777         * modules/posix_spawnp: Likewise.
10778
10779 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10780
10781         Add option to do-release-commit-and-tag to specify branch.
10782         * build-aux/do-release-commit-and-tag: Add --branch.
10783
10784 2011-05-03  Bruno Haible  <bruno@clisp.org>
10785
10786         Avoid unnecessary compilation units, through conditional dependencies.
10787         * modules/accept (Depends-on): Add conditions to the dependencies.
10788         * modules/acosl (Depends-on): Likewise.
10789         * modules/argz (Depends-on): Likewise.
10790         * modules/asinl (Depends-on): Likewise.
10791         * modules/atanl (Depends-on): Likewise.
10792         * modules/atoll (Depends-on): Likewise.
10793         * modules/bind (Depends-on): Likewise.
10794         * modules/btowc (Depends-on): Likewise.
10795         * modules/canonicalize-lgpl (Depends-on): Likewise.
10796         * modules/ceil (Depends-on): Likewise.
10797         * modules/ceilf (Depends-on): Likewise.
10798         * modules/ceill (Depends-on): Likewise.
10799         * modules/chdir-long (Depends-on): Likewise.
10800         * modules/chown (Depends-on): Likewise.
10801         * modules/close (Depends-on): Likewise.
10802         * modules/connect (Depends-on): Likewise.
10803         * modules/cosl (Depends-on): Likewise.
10804         * modules/dirfd (Depends-on): Likewise.
10805         * modules/dprintf (Depends-on): Likewise.
10806         * modules/dprintf-posix (Depends-on): Likewise.
10807         * modules/error (Depends-on): Likewise.
10808         * modules/euidaccess (Depends-on): Likewise.
10809         * modules/expl (Depends-on): Likewise.
10810         * modules/faccessat (Depends-on): Likewise.
10811         * modules/fchdir (Depends-on): Likewise.
10812         * modules/fclose (Depends-on): Likewise.
10813         * modules/fcntl (Depends-on): Likewise.
10814         * modules/fdopendir (Depends-on): Likewise.
10815         * modules/fflush (Depends-on): Likewise.
10816         * modules/floor (Depends-on): Likewise.
10817         * modules/floorf (Depends-on): Likewise.
10818         * modules/floorl (Depends-on): Likewise.
10819         * modules/fnmatch (Depends-on): Likewise.
10820         * modules/fopen (Depends-on): Likewise.
10821         * modules/fprintf-posix (Depends-on): Likewise.
10822         * modules/frexp (Depends-on): Likewise.
10823         * modules/frexp-nolibm (Depends-on): Likewise.
10824         * modules/frexpl (Depends-on): Likewise.
10825         * modules/frexpl-nolibm (Depends-on): Likewise.
10826         * modules/fseek (Depends-on): Likewise.
10827         * modules/fsusage (Depends-on): Likewise.
10828         * modules/ftell (Depends-on): Likewise.
10829         * modules/ftello (Depends-on): Likewise.
10830         * modules/futimens (Depends-on): Likewise.
10831         * modules/getcwd (Depends-on): Likewise.
10832         * modules/getcwd-lgpl (Depends-on): Likewise.
10833         * modules/getdelim (Depends-on): Likewise.
10834         * modules/getdomainname (Depends-on): Likewise.
10835         * modules/getgroups (Depends-on): Likewise.
10836         * modules/gethostname (Depends-on): Likewise.
10837         * modules/getline (Depends-on): Likewise.
10838         * modules/getlogin_r (Depends-on): Likewise.
10839         * modules/getopt-posix (Depends-on): Likewise.
10840         * modules/getpeername (Depends-on): Likewise.
10841         * modules/getsockname (Depends-on): Likewise.
10842         * modules/getsockopt (Depends-on): Likewise.
10843         * modules/getsubopt (Depends-on): Likewise.
10844         * modules/getusershell (Depends-on): Likewise.
10845         * modules/glob (Depends-on): Likewise.
10846         * modules/grantpt (Depends-on): Likewise.
10847         * modules/iconv_open (Depends-on): Likewise.
10848         * modules/iconv_open-utf (Depends-on): Likewise.
10849         * modules/inet_ntop (Depends-on): Likewise.
10850         * modules/inet_pton (Depends-on): Likewise.
10851         * modules/ioctl (Depends-on): Likewise.
10852         * modules/isapipe (Depends-on): Likewise.
10853         * modules/isfinite (Depends-on): Likewise.
10854         * modules/isinf (Depends-on): Likewise.
10855         * modules/lchown (Depends-on): Likewise.
10856         * modules/ldexpl (Depends-on): Likewise.
10857         * modules/link (Depends-on): Likewise.
10858         * modules/linkat (Depends-on): Likewise.
10859         * modules/listen (Depends-on): Likewise.
10860         * modules/logl (Depends-on): Likewise.
10861         * modules/lstat (Depends-on): Likewise.
10862         * modules/mbrlen (Depends-on): Likewise.
10863         * modules/mbrtowc (Depends-on): Likewise.
10864         * modules/mbsinit (Depends-on): Likewise.
10865         * modules/mbsnrtowcs (Depends-on): Likewise.
10866         * modules/mbsrtowcs (Depends-on): Likewise.
10867         * modules/mbtowc (Depends-on): Likewise.
10868         * modules/memcmp (Depends-on): Likewise.
10869         * modules/mkdir (Depends-on): Likewise.
10870         * modules/mkdtemp (Depends-on): Likewise.
10871         * modules/mkfifo (Depends-on): Likewise.
10872         * modules/mkfifoat (Depends-on): Likewise.
10873         * modules/mknod (Depends-on): Likewise.
10874         * modules/mkostemp (Depends-on): Likewise.
10875         * modules/mkostemps (Depends-on): Likewise.
10876         * modules/mkstemp (Depends-on): Likewise.
10877         * modules/mkstemps (Depends-on): Likewise.
10878         * modules/mktime (Depends-on): Likewise.
10879         * modules/nanosleep (Depends-on): Likewise.
10880         * modules/open (Depends-on): Likewise.
10881         * modules/openat (Depends-on): Likewise.
10882         * modules/perror (Depends-on): Likewise.
10883         * modules/poll (Depends-on): Likewise.
10884         * modules/popen (Depends-on): Likewise.
10885         * modules/posix_spawn (Depends-on): Likewise.
10886         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10887         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10888         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10889         * modules/posix_spawnp (Depends-on): Likewise.
10890         * modules/pread (Depends-on): Likewise.
10891         * modules/printf-posix (Depends-on): Likewise.
10892         * modules/ptsname (Depends-on): Likewise.
10893         * modules/putenv (Depends-on): Likewise.
10894         * modules/pwrite (Depends-on): Likewise.
10895         * modules/readline (Depends-on): Likewise.
10896         * modules/readlink (Depends-on): Likewise.
10897         * modules/readlinkat (Depends-on): Likewise.
10898         * modules/recv (Depends-on): Likewise.
10899         * modules/recvfrom (Depends-on): Likewise.
10900         * modules/regex (Depends-on): Likewise.
10901         * modules/remove (Depends-on): Likewise.
10902         * modules/rename (Depends-on): Likewise.
10903         * modules/renameat (Depends-on): Likewise.
10904         * modules/rmdir (Depends-on): Likewise.
10905         * modules/round (Depends-on): Likewise.
10906         * modules/roundf (Depends-on): Likewise.
10907         * modules/roundl (Depends-on): Likewise.
10908         * modules/rpmatch (Depends-on): Likewise.
10909         * modules/select (Depends-on): Likewise.
10910         * modules/send (Depends-on): Likewise.
10911         * modules/sendto (Depends-on): Likewise.
10912         * modules/setenv (Depends-on): Likewise.
10913         * modules/setlocale (Depends-on): Likewise.
10914         * modules/setsockopt (Depends-on): Likewise.
10915         * modules/shutdown (Depends-on): Likewise.
10916         * modules/sigaction (Depends-on): Likewise.
10917         * modules/signbit (Depends-on): Likewise.
10918         * modules/sigprocmask (Depends-on): Likewise.
10919         * modules/sinl (Depends-on): Likewise.
10920         * modules/sleep (Depends-on): Likewise.
10921         * modules/snprintf (Depends-on): Likewise.
10922         * modules/snprintf-posix (Depends-on): Likewise.
10923         * modules/socket (Depends-on): Likewise.
10924         * modules/sprintf-posix (Depends-on): Likewise.
10925         * modules/sqrtl (Depends-on): Likewise.
10926         * modules/stat (Depends-on): Likewise.
10927         * modules/strchrnul (Depends-on): Likewise.
10928         * modules/strdup-posix (Depends-on): Likewise.
10929         * modules/strerror (Depends-on): Likewise.
10930         * modules/strerror_r-posix (Depends-on): Likewise.
10931         * modules/strndup (Depends-on): Likewise.
10932         * modules/strnlen (Depends-on): Likewise.
10933         * modules/strptime (Depends-on): Likewise.
10934         * modules/strsep (Depends-on): Likewise.
10935         * modules/strsignal (Depends-on): Likewise.
10936         * modules/strstr-simple (Depends-on): Likewise.
10937         * modules/strtod (Depends-on): Likewise.
10938         * modules/strtoimax (Depends-on): Likewise.
10939         * modules/strtok_r (Depends-on): Likewise.
10940         * modules/strtoumax (Depends-on): Likewise.
10941         * modules/symlink (Depends-on): Likewise.
10942         * modules/symlinkat (Depends-on): Likewise.
10943         * modules/tanl (Depends-on): Likewise.
10944         * modules/tcgetsid (Depends-on): Likewise.
10945         * modules/tmpfile (Depends-on): Likewise.
10946         * modules/trunc (Depends-on): Likewise.
10947         * modules/truncf (Depends-on): Likewise.
10948         * modules/truncl (Depends-on): Likewise.
10949         * modules/uname (Depends-on): Likewise.
10950         * modules/unlink (Depends-on): Likewise.
10951         * modules/unlockpt (Depends-on): Likewise.
10952         * modules/unsetenv (Depends-on): Likewise.
10953         * modules/usleep (Depends-on): Likewise.
10954         * modules/utimensat (Depends-on): Likewise.
10955         * modules/vasprintf (Depends-on): Likewise.
10956         * modules/vdprintf (Depends-on): Likewise.
10957         * modules/vdprintf-posix (Depends-on): Likewise.
10958         * modules/vfprintf-posix (Depends-on): Likewise.
10959         * modules/vprintf-posix (Depends-on): Likewise.
10960         * modules/vsnprintf (Depends-on): Likewise.
10961         * modules/vsnprintf-posix (Depends-on): Likewise.
10962         * modules/vsprintf-posix (Depends-on): Likewise.
10963         * modules/wcrtomb (Depends-on): Likewise.
10964         * modules/wcscasecmp (Depends-on): Likewise.
10965         * modules/wcscspn (Depends-on): Likewise.
10966         * modules/wcsdup (Depends-on): Likewise.
10967         * modules/wcsncasecmp (Depends-on): Likewise.
10968         * modules/wcsnrtombs (Depends-on): Likewise.
10969         * modules/wcspbrk (Depends-on): Likewise.
10970         * modules/wcsrtombs (Depends-on): Likewise.
10971         * modules/wcsspn (Depends-on): Likewise.
10972         * modules/wcsstr (Depends-on): Likewise.
10973         * modules/wcstok (Depends-on): Likewise.
10974         * modules/wcswidth (Depends-on): Likewise.
10975         * modules/wctob (Depends-on): Likewise.
10976         * modules/wctomb (Depends-on): Likewise.
10977         * modules/wctype (Depends-on): Likewise.
10978         * modules/wcwidth (Depends-on): Likewise.
10979         * modules/write (Depends-on): Likewise.
10980
10981 2011-05-03  Bruno Haible  <bruno@clisp.org>
10982
10983         Support for conditional dependencies.
10984         * doc/gnulib.texi (Module description): Document the syntax of
10985         conditional dependencies.
10986         * gnulib-tool: New option --conditional-dependencies.
10987         (func_usage): Document it.
10988         (cond_dependencies): New variable.
10989         (func_get_automake_snippet_conditional,
10990         func_get_automake_snippet_unconditional): New functions, extracted from
10991         func_get_automake_snippet.
10992         (func_get_automake_snippet): Use them.
10993         (sed_first_32_chars): New variable.
10994         (func_module_shellfunc_name): New function.
10995         (func_module_shellvar_name): New function.
10996         (func_module_conditional_name): New function.
10997         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10998         func_cond_module_condition): New functions.
10999         (func_modules_transitive_closure): Add support for conditional
11000         dependencies.
11001         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11002         conditional automake snippet in an automake conditional.
11003         (func_emit_autoconf_snippets): Emit shell functions that contain the
11004         code for conditional modules.
11005         (func_import, func_create_testdir): Update specification.
11006
11007 2011-05-03  Eric Blake  <eblake@redhat.com>
11008
11009         test-getaddrinfo: report error information
11010         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11011
11012 2011-05-03  Jim Meyering  <meyering@redhat.com>
11013
11014         bootstrap: avoid build failure when $GZIP is set
11015         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11016         program name.  If defined at all, it is supposed to list gzip options.
11017         Reported by Alan Curry in http://debbugs.gnu.org/8609
11018
11019 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11020
11021         readme-release: new module with release instructions
11022         * modules/readme-release: New module.
11023         * top/README-release: New file, from coreutils, grep, diffutils.
11024         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11025
11026 2011-05-02  Eric Blake  <eblake@redhat.com>
11027
11028         fflush: also replace fclose when fixing fflush
11029         * modules/fflush (Depends-on): Add fclose.
11030         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11031         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11032         memstreams with no backing fd.
11033         * doc/posix-functions/fclose.texi (fclose): Document the use of
11034         fflush module to fix the bug.
11035         * tests/test-fclose.c (main): Relax test when fclose is used in
11036         isolation.
11037
11038         fclose: add some tests
11039         * modules/fclose-tests: New test module.
11040         * tests/test-fclose.c: New file.
11041         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11042
11043         fclose: reduced dependencies
11044         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11045         simpler lseek.
11046         * lib/fclose.c (rpl_fclose): Likewise.
11047         Reported by Simon Josefsson.
11048
11049         exit: drop remaining clients
11050         * modules/argmatch (Depends-on): Replace exit with stdlib.
11051         * modules/copy-file (Depends-on): Likewise.
11052         * modules/execute (Depends-on): Likewise.
11053         * modules/exitfail (Depends-on): Likewise.
11054         * modules/obstack (Depends-on): Likewise.
11055         * modules/pagealign_alloc (Depends-on): Likewise.
11056         * modules/pipe-filter-gi (Depends-on): Likewise.
11057         * modules/pipe-filter-ii (Depends-on): Likewise.
11058         * modules/savewd (Depends-on): Likewise.
11059         * modules/spawn-pipe (Depends-on): Likewise.
11060         * modules/wait-process (Depends-on): Likewise.
11061         * modules/xsetenv (Depends-on): Likewise.
11062         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11063         * modules/git-merge-changelog (Depends-on): Likewise.
11064         * modules/long-options (Depends-on): Likewise.
11065         * modules/pt_chown (Depends-on): Likewise.
11066         * modules/sysexits (Depends-on): Likewise.
11067
11068         freading: relax license from LGPLv3+ to LGPLv2+
11069         * modules/freading (License): Relax LGPL version.
11070
11071 2011-05-02  Bruno Haible  <bruno@clisp.org>
11072
11073         fchdir: Remove unused dependencies.
11074         * modules/fchdir (Depends-on): Remove include_next.
11075
11076 2011-05-02  Bruno Haible  <bruno@clisp.org>
11077
11078         gnulib-tool: Refactor.
11079         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11080         from func_emit_autoconf_snippets.
11081         (func_emit_autoconf_snippets): Use it.
11082
11083 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11084
11085         * NEWS: Document removal of 'exit'.
11086         * modules/exit: Remove file.
11087
11088 2011-05-01  Bruno Haible  <bruno@clisp.org>
11089
11090         Update DEPENDENCIES.
11091         * DEPENDENCIES (gettext): Recommend the newest release.
11092         Reported by Simon Josefsson.
11093
11094 2011-05-01  Bruno Haible  <bruno@clisp.org>
11095
11096         gnulib-tool: Reduce code duplication.
11097         * gnulib-tool (func_emit_autoconf_snippets): New function.
11098         (func_import, func_create_testdir): Use it.
11099
11100 2011-04-30  Eric Blake  <eblake@redhat.com>
11101
11102         fclose: don't fail on non-seekable input stream
11103         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11104         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11105         since fflush is allowed to fail in that case.
11106
11107 2011-04-30  Bruno Haible  <bruno@clisp.org>
11108
11109         dup3: cleanup
11110         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11111
11112 2011-04-30  Bruno Haible  <bruno@clisp.org>
11113
11114         netdb: Make it work in C++ mode.
11115         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11116         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11117         module.
11118         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11119         gl_MODULE_INDICATOR_FOR_TESTS.
11120         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11121         * modules/netdb-c++-tests: New file.
11122         * tests/test-netdb-c++.cc: New file.
11123
11124 2011-04-30  Bruno Haible  <bruno@clisp.org>
11125
11126         New modules 'vfscanf', 'vscanf'.
11127         * modules/vfscanf: New file.
11128         * modules/vscanf: New file.
11129         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11130         here.
11131         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11132         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11133
11134 2011-04-30  Bruno Haible  <bruno@clisp.org>
11135
11136         passfd: Add comments.
11137         * lib/passfd.c: Add comments about platforms.
11138
11139 2011-04-30  Bruno Haible  <bruno@clisp.org>
11140
11141         sys_uio: Make <sys/uio.h> self-contained.
11142         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11143         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11144
11145 2011-04-30  Bruno Haible  <bruno@clisp.org>
11146
11147         sys_socket: Ensure 'struct iovec' definition.
11148         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11149         <sys/socket.h>.
11150         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11151
11152 2011-04-30  Bruno Haible  <bruno@clisp.org>
11153
11154         sys_uio: Protect definition of 'struct iovec'.
11155         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11156         it as a C struct.
11157
11158 2011-04-30  Bruno Haible  <bruno@clisp.org>
11159
11160         manywarnings: fix indentation
11161         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11162
11163 2011-04-30  Pádraig Brady <P@draigBrady.com>
11164
11165         manywarnings: add -Wno-missing-field-initializers if needed.
11166         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11167         option if it's needed to allow initialization with { 0, }
11168
11169 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11170
11171         announce-gen: cosmetic improvement
11172         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11173
11174 2011-04-29  Jim Meyering  <meyering@redhat.com>
11175
11176         vc-list-files: indent with spaces, not TABs
11177         * build-aux/vc-list-files: Convert leading TABs to spaces,
11178         to match the style of most other files in gnulib.
11179
11180         announce-gen: indent with spaces, not TABs
11181         * build-aux/announce-gen: Convert all TABs to spaces, to match
11182         the style of most other files in gnulib.
11183
11184 2011-04-29  Eric Blake  <eblake@redhat.com>
11185
11186         quotearg: avoid uninitialized variable use
11187         * lib/quotearg.c (quoting_options_from_style): Initialize
11188         remaining fields, and ensure that custom styles are only used via
11189         quoting_options rather than quoting_style.
11190
11191 2011-04-29  Jim Meyering  <meyering@redhat.com>
11192
11193         maint.mk: remove unused VC-tag variable
11194         * top/maint.mk (VC-tag): Remove unused variable.
11195
11196 2011-04-29  Bruno Haible  <bruno@clisp.org>
11197
11198         netdb: fix gai_strerror replacements
11199         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11200         * modules/netdb: Substitute it.
11201
11202 2011-04-29  Jim Meyering  <meyering@redhat.com>
11203
11204         test-getcwd.c: avoid new set-but-not-used warning
11205         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11206         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11207         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11208         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11209
11210         test-hash.c: avoid a new shadowing warning
11211         * tests/test-hash.c (main): Don't shadow "dup".
11212
11213 2011-04-28  Eric Blake  <eblake@redhat.com>
11214
11215         getaddrinfo: fix gai_strerror signature
11216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11217         and work around mingw with UNICODE defined.
11218         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11219         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11220         * modules/netdb (Makefile.am): Substitute it.
11221         * lib/netdb.in.h (gai_strerror): Declare replacement.
11222         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11223         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11224         the fix.
11225
11226         getsockopt: avoid compiler warning
11227         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11228         Reported by Matthias Bolte.
11229
11230         tests: drop unused link dependency
11231         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11232         * modules/dirent-safer-tests (Makefile.am): Likewise.
11233         * modules/fdopendir-tests (Makefile.am): Likewise.
11234         * modules/mkfifoat-tests (Makefile.am): Likewise.
11235         * modules/openat-safer-tests (Makefile.am): Likewise.
11236         * modules/openat-tests (Makefile.am): Likewise.
11237         * modules/readlinkat-tests (Makefile.am): Likewise.
11238         * modules/symlinkat-tests (Makefile.am): Likewise.
11239         * modules/linkat-tests (Makefile.am): Likewise.
11240         (Depends-on): Switch to filenamecat-lgpl.
11241         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11242         LIBINTL.
11243         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11244         * tests/test-linkat.c (main): Don't require xalloc.
11245
11246         hash, mgetgroups: drop xalloc dependency
11247         * lib/hash.c (includes): Adjust includes.
11248         * lib/mgetgroups.c (includes): Likewise.
11249         (xgetgroups): Move...
11250         * lib/xgetgroups.c: ...to new file.
11251         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11252         * modules/xgetgroups: New file, split from...
11253         * modules/mgetgroups: ...here.
11254         (Depends-on): Add xalloc-oversized.
11255         * modules/hash (Depends-on): Likewise.
11256         * modules/hash-tests (Depends-on): Drop xalloc.
11257         (test_hash_LDADD): Drop unused library.
11258         * tests/test-hash.c (main): Break xalloc dependency.
11259         (includes): Drop unused include.
11260
11261         xalloc-oversized: new module
11262         * modules/xalloc-oversized: New module.
11263         * modules/xalloc (Depends-on): Add it.
11264         * lib/xalloc.h (xalloc_oversized): Move...
11265         * lib/xalloc-oversized.h: ...into new file.
11266
11267         utimecmp: drop dependency on xmalloc
11268         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11269         due to memory pressure.
11270         * modules/utimecmp (Depends-on): Drop xalloc.
11271
11272 2011-04-27  Eric Blake  <eblake@redhat.com>
11273
11274         getcwd: fix mingw bugs
11275         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11276         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11277         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11278
11279 2011-04-27  Bruno Haible  <bruno@clisp.org>
11280
11281         mkstemps: Ensure declaration on MacOS X 10.5.
11282         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11283         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11284         MacOS X.
11285
11286 2011-04-27  Bruno Haible  <bruno@clisp.org>
11287
11288         mkstemp: More documentation.
11289         * doc/posix-functions/mkstemp.texi: Document header file problem on
11290         MacOS X.
11291
11292 2011-04-27  Bruno Haible  <bruno@clisp.org>
11293
11294         mkstemp: Tweak configure message when cross-compiling.
11295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11296         result as a guess.
11297
11298 2011-04-27  Bruno Haible  <bruno@clisp.org>
11299
11300         clean-temp: Clarify what it does.
11301         * lib/clean-temp.h: Add more comments.
11302         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11303         module.
11304         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11305         * doc/glibc-functions/mkstemps.texi: Likewise.
11306         * doc/glibc-functions/mkostemps.texi: Likewise.
11307
11308 2011-04-27  Eric Blake  <eblake@redhat.com>
11309
11310         fchdir: avoid extra chdir and fix test
11311         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11312         getcwd-lgpl.
11313         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11314         have to be canonical.
11315         (canonicalize_file_name): Drop unused macro.
11316         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11317
11318         filenamecat-lgpl: fix licence
11319         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11320         when it was first created.
11321
11322         linkat, renameat: add missing dependency
11323         * modules/linkat (Depends-on): Require getcwd-lgpl.
11324         * modules/renameat (Depends-on): Likewise.
11325
11326         tests: reduce dependencies
11327         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11328         * tests/test-renameat.c (main): Likewise.
11329         * modules/linkat-tests (Depends-on): Relax dependency.
11330         * modules/renameat-tests (Depends-on): Likewise.
11331         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11332         dependency explicit.
11333
11334         save-cwd: reduce default dependency
11335         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11336         * lib/save-cwd.c: Update comments.
11337         * NEWS: Document the semantic change.
11338
11339         getcwd: enhance tests
11340         * tests/test-getcwd-lgpl.c: New file, taken from...
11341         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11342         repeat long path stress tests from m4 probe.
11343         * modules/getcwd-lgpl-tests: New module.
11344         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11345         * m4/getcwd-abort-bug.m4: Update comment.
11346         * m4/getcwd-path-max.m4: Likewise.
11347
11348         getcwd-lgpl: new module
11349         * modules/getcwd-lgpl: New module.
11350         * lib/getcwd-lgpl.c: New file.
11351         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11352         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11353         * modules/getcwd (configure.ac): Set C witness.
11354         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11355
11356         getcwd: tweak comments
11357         * m4/getcwd-abort-bug.m4: Fix comments.
11358         * m4/getcwd-path-max.m4: Likewise.
11359         * m4/getcwd.m4: Likewise.
11360
11361 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11362         and Eric Blake  <eblake@redhat.com>
11363
11364         mkstemp: replace if system version uses wrong permissions
11365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11366         read/write mode bits set in file created by mkstemp.
11367         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11368
11369 2011-04-27  Eric Blake  <eblake@redhat.com>
11370
11371         passfd: avoid compiler warning
11372         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11373         Reported by Laine Stump.
11374
11375 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11376
11377         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11378         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11379
11380 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11381         and Eric Blake  <eblake@redhat.com>
11382
11383         mkstemp: mention clean-temp module
11384         * lib/mkstemp.c: Add comment.
11385         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11386
11387 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11388
11389         inttypes: also provide default values for 32-bit tests
11390         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11391         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11392
11393 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11394
11395         strtoumax: remove dependency on strtoimax
11396         This is like the strtoull change of yesterday.
11397         * modules/strtoumax (Files): Add lib/strtoimax.c.
11398         (Depends-on): Remove strtoimax and add verify.
11399
11400         inttypes-incomplete: new module
11401         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11402         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11403         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11404         of gl_INTTYPES_H.
11405         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11406         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11407         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11408         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11409         * modules/strtoumax, modules/xstrtol (Depends-on):
11410         Depend on inttypes-incomplete, not inttypes.
11411         * modules/inttypes-incomplete: New module, containing the contents
11412         of the old modules/inttypes module, except that the Files: section
11413         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11414         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11415         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11416         (Depends-on): Depend only on inttypes-incomplete.
11417         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11418
11419         inttypes: omit now-redundant strtoimax and strtoumax work
11420         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11421         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11422
11423         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11424         This supports apps that need pointers to strtoimax and strtoumax,
11425         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11426         nonexistent functions.  See
11427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11428         et seq.
11429         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11430         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11431         a macro.
11432         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11433
11434 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11435
11436         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11437
11438 2011-04-25  Bruno Haible  <bruno@clisp.org>
11439
11440         strtol, strtoul: Mark modules as obsolete.
11441         * modules/strtol (Status, Notice): New sections.
11442         * modules/strtoul (Status, Notice): New sections.
11443
11444 2011-04-25  Bruno Haible  <bruno@clisp.org>
11445
11446         strtod: Remove check for strtod, unless supporting old platforms.
11447         * modules/strtod-obsolete: New file.
11448         * m4/strtod-obsolete.m4: New file.
11449         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11450         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11451         * modules/strtod (Depends-on): Add strtod-obsolete.
11452         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11453
11454 2011-04-25  Bruno Haible  <bruno@clisp.org>
11455
11456         strcase: Make module obsolete.
11457         * modules/strcase (Status, Notice): New sections.
11458
11459 2011-04-25  Bruno Haible  <bruno@clisp.org>
11460
11461         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11462         * modules/dup2-obsolete: New file.
11463         * m4/dup2-obsolete.m4: New file.
11464         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11465         gl_FUNC_DUP2_OBSOLETE is not also defined.
11466         * modules/dup2 (Depends-on): Add dup2-obsolete.
11467         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11468
11469 2011-04-25  Bruno Haible  <bruno@clisp.org>
11470
11471         strnlen: Avoid memchr related link error on old obsolete platforms.
11472         * modules/memchr-obsolete: New file.
11473         * m4/memchr-obsolete.m4: New file.
11474         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11475         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11476         * modules/memchr (Depends-on): Add memchr-obsolete.
11477         * modules/strnlen (Depends-on): Likewise.
11478         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11479
11480 2011-04-25  Jim Meyering  <meyering@redhat.com>
11481
11482         maint.mk: makefile_at_at_check extend and clean up
11483         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11484         in addition to */Makefile.am.
11485         Exempt legitimate uses of @VAR@ notation, e.g.,
11486         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11487         Remove obsolete coreutils-specific comment.
11488         Prompted by discussion here:
11489         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11490
11491 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11492
11493         strtoul: remove dependency on strtol
11494         This is so that 'configure' need not check for strtol merely because
11495         the application needs strtoul.
11496         * modules/strtoul (Files): Add lib/strtol.c.
11497         (Depends-on): Remove strtol.
11498
11499         strtoull: remove dependency on strtoul
11500         This is like the strtoll change.
11501         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11502         (Depends-on): Remove strtoul.
11503
11504         strtoll: remove dependency on strtol
11505         This is so that 'configure' need not check for strtol merely because
11506         the application needs strtoll.
11507         * modules/strtoll (Files): Add lib/strtol.c.
11508         (Depends-on): Remove strtol.
11509
11510 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11511
11512         inttypes: Move some configure check to module 'imaxdiv'.
11513         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11514         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11515         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11516
11517 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         inttypes: Move some configure check to module 'imaxabs'.
11520         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11521         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11522         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11523
11524 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11525
11526         inttypes: Remove configure tests that are not needed since 2009-12-31.
11527         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11528         gl_cv_header_working_inttypes_h.
11529
11530 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11531
11532         * modules/strnlen (Depends-on): Remove memchr.
11533         The strnlen implementation doesn't need the memchr module's fixes; see
11534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11535
11536         strtol: remove dependency on wchar
11537         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11538         * modules/strtol (Depends-on): Remove wchar.
11539
11540 2011-04-21  Eric Blake  <eblake@redhat.com>
11541
11542         passfd: fix test regression on Linux
11543         * modules/passfd-tests (configure.ac): Correct socketpair check.
11544
11545         passfd: speed up configure and drop unused code
11546         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11547         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11548         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11549         Instead of probing at configure for unix_scm_rights_bsd44_way,
11550         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11551         check to a struct member probe.
11552         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11553         (sendfd, recvfd): Update preprocessor checks.
11554         * modules/passfd (Files): Reflect rename, and drop unused file.
11555         (Depends-on): Drop unused dependency.
11556
11557         passfd: allow compilation on mingw
11558         * modules/sys_socket (Depends-on): Add sys_uio.
11559         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11560         iovec and a minimal struct msghdr.
11561         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11562         * tests/test-sys_socket.c (main): Enhance test.
11563         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11564         guaranteed to provide what we need.
11565         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11566         * modules/passfd-tests (Depends-on): Add sys_wait.
11567         * tests/test-passfd.c (main): Skip test on mingw, for now.
11568         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11569         partial 'struct msghdr' implementation.
11570
11571         sys_uio: new module
11572         * modules/sys_uio: New module.
11573         * modules/sys_uio-tests: Likewise.
11574         * lib/sys_uio.in.h: New file.
11575         * m4/sys_uio_h.m4: Likewise.
11576         * tests/test-sys_uio.c: Likewise.
11577         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11578         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11579
11580 2011-04-20  Jim Meyering  <meyering@redhat.com>
11581
11582         useless-if-before-free: avoid false-positive
11583         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11584         disjunct so that it too requires a terminating ";".  Without that,
11585         this script would identify as useless one statement from gcc that
11586         was not:
11587           if (aligned_ptr)
11588             free (((void **) aligned_ptr) [-1]);
11589
11590 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11591
11592         doc: update users.txt.
11593         * users.txt: Add barcode.
11594
11595 2011-04-19  Bruno Haible  <bruno@clisp.org>
11596
11597         ioctl: Remove link dependency on native Windows.
11598         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11599         (gl_close_fn, gl_ioctl_fn): New types.
11600         (struct fd_hook): Renamed from struct close_hook. Change type of
11601         private_close_fn field. Add private_ioctl_fn field.
11602         (close_hook_fn): Add parameter for primary close method.
11603         (execute_close_hooks, execute_all_close_hooks): Likewise.
11604         (ioctl_hook_fn): New type.
11605         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11606         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11607         argument.
11608         (unregister_fd_hook): Renamed from unregister_close_hook.
11609         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11610         Don't include <unistd.h>.
11611         (close): Remove undef.
11612         (anchor): Update.
11613         (execute_close_hooks): Add argument for primary close method.
11614         (execute_all_close_hooks): Likewise.
11615         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11616         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11617         argument. Allow each argument to be NULL.
11618         (unregister_fd_hook): Renamed from unregister_close_hook.
11619         * lib/close.c (rpl_close): Pass 'close' function pointer to
11620         execute_all_close_hooks.
11621         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11622         (primary_ioctl): New function.
11623         (ioctl): Don't call ioctlsocket here. Instead, call
11624         execute_all_ioctl_hooks.
11625         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11626         close method.
11627         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11628         (fd_sockets_hook): Renamed from close_sockets_hook.
11629         (gl_sockets_startup, gl_sockets_cleanup): Update.
11630         * modules/fd-hook: Renamed from modules/close-hook. Update.
11631         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11632         * modules/sockets (Depends-on): Likewise.
11633         * modules/ioctl (Depends-on): Add fd-hook.
11634         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11635         GNULIB_SOCKET.
11636
11637 2011-04-19  Bruno Haible  <bruno@clisp.org>
11638
11639         Move the support of O_NONBLOCK in open() to the 'open' module.
11640         * modules/nonblocking (Depends-on): Remove 'open'.
11641         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11642         gl_cv_have_open_O_NONBLOCK.
11643         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11644         O_NONBLOCK support.
11645         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11646
11647 2011-04-17  Bruno Haible  <bruno@clisp.org>
11648
11649         pipe2: Simplify code.
11650         * lib/pipe2.c (pipe2): Reduce code duplication.
11651
11652 2011-04-17  Bruno Haible  <bruno@clisp.org>
11653
11654         nonblocking: Add comment.
11655         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11656
11657 2011-04-17  Bruno Haible  <bruno@clisp.org>
11658
11659         nonblocking: Add tests for sockets.
11660         * tests/test-nonblocking-socket.sh: New file.
11661         * tests/test-nonblocking-socket-main.c: New file.
11662         * tests/test-nonblocking-socket-child.c: New file.
11663         * tests/test-nonblocking-socket.h: New file.
11664         * tests/socket-server.h: New file.
11665         * tests/socket-client.h: New file.
11666         * modules/nonblocking-socket-tests: New file.
11667         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11668
11669 2011-04-17  Bruno Haible  <bruno@clisp.org>
11670
11671         nonblocking: Add tests for pipes.
11672         * tests/test-nonblocking-pipe.sh: New file.
11673         * tests/test-nonblocking-pipe-main.c: New file.
11674         * tests/test-nonblocking-pipe-child.c: New file.
11675         * tests/test-nonblocking-pipe.h: New file.
11676         * tests/test-nonblocking-writer.h: New file.
11677         * tests/test-nonblocking-reader.h: New file.
11678         * tests/test-nonblocking-misc.h: New file.
11679         * modules/nonblocking-pipe-tests: New file.
11680         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11681
11682 2011-04-16  Bruno Haible  <bruno@clisp.org>
11683
11684         gettext: Clarify the needed programmer actions.
11685         * modules/gettext (Notice): New field.
11686         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11687
11688 2011-04-16  Bruno Haible  <bruno@clisp.org>
11689
11690         strchrnul: Tweak last commit.
11691         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11692         bug.
11693         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11694         as in _GL_FUNCDECL_SYS.
11695         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11696         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11697
11698 2011-04-15  Eric Blake  <eblake@redhat.com>
11699
11700         strchrnul: work around cygwin bug
11701         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11702         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11704         * modules/string (Makefile.am): Substitute it.
11705         * lib/string.in.h (strchrnul): Use it.
11706
11707 2011-04-15  Bruno Haible  <bruno@clisp.org>
11708
11709         Don't require lib/stdio-write.c when only module 'stdio' is used.
11710         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11711         invocation.
11712         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11713
11714 2011-04-14  Bruno Haible  <bruno@clisp.org>
11715
11716         Support non-blocking pipe I/O in read() on native Windows.
11717         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11718         (read): New declaration.
11719         * lib/read.c: New file.
11720         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11721         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11722         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11723         vscanf): New declarations.
11724         * lib/stdio-read.c: New file.
11725         * m4/read.m4: New file.
11726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11727         REPLACE_READ.
11728         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11729         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11730         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11731         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11732         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11733         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11734         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11735         * modules/read: New file.
11736         * modules/nonblocking (Files): Add lib/stdio-read.c.
11737         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11738         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11739         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11740         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11741         * modules/pread (Depends-on): Add read.
11742         * modules/safe-read (Depends-on): Likewise.
11743         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11744         gets, scanf, vfscanf, vscanf): Verify signatures.
11745         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11746         problem with non-blocking pipes.
11747         * doc/posix-functions/fgetc.texi: Likewise.
11748         * doc/posix-functions/fgets.texi: Likewise.
11749         * doc/posix-functions/fread.texi: Likewise.
11750         * doc/posix-functions/fscanf.texi: Likewise.
11751         * doc/posix-functions/getc.texi: Likewise.
11752         * doc/posix-functions/getchar.texi: Likewise.
11753         * doc/posix-functions/gets.texi: Likewise.
11754         * doc/posix-functions/scanf.texi: Likewise.
11755         * doc/posix-functions/vfscanf.texi: Likewise.
11756         * doc/posix-functions/vscanf.texi: Likewise.
11757
11758 2011-04-14  Bruno Haible  <bruno@clisp.org>
11759
11760         Support non-blocking pipe I/O in write() on native Windows.
11761         * lib/write.c (rpl_write): Split a write request that failed merely
11762         because the byte count was larger than the pipe buffer's size.
11763         * doc/posix-functions/write.texi: Mention the problem with large byte
11764         counts.
11765
11766 2011-04-14  Bruno Haible  <bruno@clisp.org>
11767
11768         wchar: Ensure that wchar_t gets defined on uClibc.
11769         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11770         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11771
11772 2011-04-13  Bruno Haible  <bruno@clisp.org>
11773
11774         safe-write, full-read: Avoid unnecessary compilation units.
11775         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11776         (Depends-on): Remove safe-read. Add ssize_t.
11777         * modules/full-read (Files): Add lib/full-write.c.
11778         (Depends-on): Add full-write.
11779
11780 2011-04-13  Bruno Haible  <bruno@clisp.org>
11781
11782         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11783         * modules/pwrite (Depends-on): Add 'write'.
11784
11785 2011-04-13  Bruno Haible  <bruno@clisp.org>
11786
11787         Support non-blocking pipe I/O in write() on native Windows.
11788         * lib/unistd.in.h (write): Enable replacement also if
11789         GNULIB_UNISTD_H_NONBLOCKING is 1.
11790         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11791         (rpl_write): When failing to write on a non-blocking pipe, change
11792         errno from ENOSPC to EAGAIN.
11793         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11794         putchar, puts, vfprintf, vprintf): Enable replacement also if
11795         GNULIB_STDIO_H_NONBLOCKING is 1.
11796         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11797         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11798         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11799         CALL_WITH_SIGPIPE_EMULATION.
11800         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11801         * m4/nonblocking.m4: New file.
11802         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11803         for non-blocking I/O support.
11804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11805         GNULIB_UNISTD_H_NONBLOCKING.
11806         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11807         required for non-blocking I/O support.
11808         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11809         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11810         lib/stdio-write.c, m4/asm-underscore.m4.
11811         (Depends-on): Add stdio, unistd.
11812         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11813         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11814         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11815         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11816         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11817         problem with non-blocking pipes.
11818         * doc/posix-functions/fputc.texi: Likewise.
11819         * doc/posix-functions/fputs.texi: Likewise.
11820         * doc/posix-functions/fwrite.texi: Likewise.
11821         * doc/posix-functions/printf.texi: Likewise.
11822         * doc/posix-functions/putc.texi: Likewise.
11823         * doc/posix-functions/putchar.texi: Likewise.
11824         * doc/posix-functions/puts.texi: Likewise.
11825         * doc/posix-functions/vfprintf.texi: Likewise.
11826         * doc/posix-functions/vprintf.texi: Likewise.
11827         * doc/posix-functions/write.texi: Likewise.
11828
11829 2011-04-10  Jim Meyering  <meyering@redhat.com>
11830
11831         maint.mk: prohibit doubled words
11832         Detect them also when they're separated by a newline.
11833         There are 3 ways to customize it:
11834           - disable the test on a per file basis, as usual with rules using
11835             $(VC_LIST_EXCEPT)
11836           - replace the default doubled-word-selecting regexp (affects all files)
11837           - ignore a particular file-vs-doubled-word match
11838         I nearly used that last one to ignore the "is is" match in
11839         coreutils' NEWS file, since the text was "ls -is is ..."
11840         To do that, I would have added this line to cfg.mk:
11841           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11842         but it would have ignored any "is is" match in NEWS.
11843         Low probability, but still...
11844         Instead, I changed the text, slightly:
11845           -  ls -is is now consistent with ls -lis in ignoring values returned
11846           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11847         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11848         (prohibit_doubled_word_): Define.
11849         (sc_prohibit_doubled_word): New rule.
11850         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11851
11852 2011-04-10  Jim Meyering  <meyering@redhat.com>
11853
11854         maint: fix doubled-word typo in comment
11855         * m4/gethostname.m4: s/is is/it is/
11856         * m4/getdomainname.m4: Likewise.
11857
11858 2011-04-10  Jim Meyering  <meyering@redhat.com>
11859
11860         maint: remove doubled word: s/it it/it/
11861         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11862
11863 2011-04-10  Jim Meyering  <meyering@redhat.com>
11864
11865         maint.mk: remove useless semicolon and backslash
11866         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11867         semicolon and backslash.
11868
11869 2011-04-10  Bruno Haible  <bruno@clisp.org>
11870
11871         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11872         * modules/stdint-tests (Depends-on): Add wchar.
11873
11874 2011-04-10  Jim Meyering  <meyering@redhat.com>
11875
11876         maint: remove doubled words in comments, e.g., s/a a/a/
11877         * lib/strptime.c (day_of_the_week): s/the the/the/
11878         * tests/test-chown.h (test_chown): s/a a/a/
11879
11880         test-chown.h: correct a cast
11881         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11882         when the destination is a stat.st_gid.
11883
11884 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11885
11886         getaddrinfo: Fix test for sa_len member.
11887         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11888         include <sys/types.h> before <sys/socket.h>.
11889
11890 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11891
11892         maint: change "can not" to "cannot"
11893         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11894         boundaries.
11895
11896 2011-04-09  Jim Meyering  <meyering@redhat.com>
11897
11898         maint: change "a a" to "a"
11899         * tests/test-lchown.h (test_lchown): s/a a/a/
11900
11901         maint.mk: prohibit \<the the\>
11902         * top/maint.mk (sc_prohibit_the_the): New rule.
11903
11904         maint: fix "the the" in comment
11905         * lib/count-one-bits.h: s/the the/the/
11906
11907         maint: change "can not" to "cannot"
11908         But do not change the occurrences in maintain.texi or in
11909         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11910         * doc/gnulib-tool.texi: s/can not/cannot/
11911         * doc/posix-functions/accept.texi (accept): Likewise.
11912         * doc/posix-functions/socket.texi (socket): Likewise.
11913         * lib/mbrtowc.c: Likewise.
11914
11915         maint.mk: prohibit use of "can not"
11916         * top/maint.mk (sc_prohibit_can_not): New rule.
11917         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11918
11919 2011-04-09  Bruno Haible  <bruno@clisp.org>
11920
11921         careadlinkat: Guard against misuse of careadlinkatcwd.
11922         * lib/careadlinkat.c: Include <stdlib.h>.
11923         (careadlinkatcwd): Check that the fd argument is as expected.
11924
11925 2011-04-09  Bruno Haible  <bruno@clisp.org>
11926
11927         careadlinkat: Use common coding style.
11928         * lib/careadlinkat.c: Move gnulib includes after system includes.
11929
11930 2011-04-09  Bruno Haible  <bruno@clisp.org>
11931
11932         careadlinkat: Clarify specification.
11933         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11934         (careadlinkatcwd): Add comment.
11935         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11936
11937 2011-04-09  Bruno Haible  <bruno@clisp.org>
11938
11939         areadlinkat: Avoid link error on many platforms.
11940         * modules/areadlinkat (Depends-on): Add areadlink.
11941
11942 2011-04-09  Bruno Haible  <bruno@clisp.org>
11943
11944         allocator, careadlinkat: Fix double-inclusion guard.
11945         * lib/allocator.h: Fix double-inclusion guard.
11946         * lib/careadlinkat.h: Likewise.
11947
11948 2011-04-09  Bruno Haible  <bruno@clisp.org>
11949
11950         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11951         * lib/relocwrapper.c: Update dependencies hierarchy.
11952         * build-aux/install-reloc: Update list of files to be compiled.
11953         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11954         lib/allocator.[hc].
11955
11956 2011-04-08  Eric Blake  <eblake@redhat.com>
11957
11958         strftime: silence gnulib-tool warning
11959         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11960
11961 2011-04-08  Bruno Haible  <bruno@clisp.org>
11962
11963         verify: Fix syntax error with GCC 4.6 in C++ mode.
11964         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11965         (HAVE_STATIC_ASSERT): New macro.
11966         (verify_true, verify): Use 'static_assert' if it is supported and
11967         '_Static_assert' is not supported.
11968
11969 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11970
11971         allocator: New module.
11972         * modules/allocator, lib/allocator.c: New files.
11973         * lib/allocator.h (stdlib_allocator): New decl.
11974         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11975         Remove.  Do not include <stdlib.h>.
11976         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11977         * modules/careadlinkat (Files): Remove lib/allocator.h.
11978         (Depends-on): Add allocator.
11979
11980         stdlib: let modules use system malloc, realloc
11981         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11982         if !_GL_USE_STDLIB_ALLOC.
11983         (malloc, realloc): Limit this change to a smaller scope.
11984
11985         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11986         (malloc, realloc): Don't #undef; no longer needed.
11987         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11988         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11989         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11990         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11991         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11992         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11993         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11994         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11995
11996         careadlinkat: rename members to avoid problem
11997         * lib/allocator.h (struct allocator): Rename members from
11998         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11999         and realloc are #define'd.  Reported by Eric Blake in
12000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12001         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12002
12003 2011-04-08  Eric Blake  <eblake@redhat.com>
12004
12005         nonblocking: reduce dependency
12006         * tests/test-nonblocking.c: Only test sockets when in use.
12007         * modules/nonblocking-tests (Depends-on): Drop socket.
12008         (Makefile.am): Link even if sockets are not present.
12009         * modules/pipe2-tests (Makefile.am): Likewise.
12010         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12011
12012         pipe2: fix O_NONBLOCK support on mingw
12013         * modules/pipe2 (Depends-on): Add nonblocking.
12014         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12015         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12016         * tests/test-nonblocking.c (main): Likewise.
12017         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12018
12019         fcntl-h: fix O_ACCMODE on cygwin
12020         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12021         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12022
12023         pipe-filter: drop O_NONBLOCK workarounds
12024         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12025         * modules/pipe-filter-ii (Depends-on): Likewise.
12026         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12027
12028         nonblocking: provide O_NONBLOCK for mingw
12029         * modules/nonblocking (Depends-on): Add open.
12030         (configure.ac): Set new witness macro.
12031         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12032         * modules/fcntl-h (Makefile.am): Substitute it.
12033         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12034         nonblocking module is in use.
12035         * lib/nonblocking.c: Adjust portability test.
12036         * lib/open.c (open): Don't let native open see gnulib flag.
12037         * tests/test-fcntl-h.c (main): Enhance test.
12038         * tests/test-open.h (test_open): Likewise.
12039         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12040
12041         careadlinkat: fix compilation error on mingw
12042         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12043         within struct allocator.
12044
12045 2011-04-06  Eric Blake  <eblake@redhat.com>
12046
12047         binary-io: relicense under LGPLv2+
12048         * modules/binary-io (License): Relax to LGPLv2+.
12049         Requested for libvirt, and required by pipe2.
12050
12051 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12052
12053         verify: use _Static_assert if available
12054         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12055         (verify_true, verify): Use it if available.  This generates better
12056         diagnostics with GCC 4.6.0 and later.
12057
12058 2011-04-05  Bruno Haible  <bruno@clisp.org>
12059
12060         Remove leftover generated .h files after config.status changed.
12061
12062         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12063         GL_GENERATE_ALLOCA_H.
12064         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12065         GL_GENERATE_ALLOCA_H evaluates to false.
12066
12067         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12068         GL_GENERATE_ARGZ_H.
12069         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12070         evaluates to false.
12071
12072         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12073         GL_GENERATE_BYTESWAP_H.
12074         * modules/byteswap (Makefile.am): Remove byteswap.h if
12075         GL_GENERATE_BYTESWAP_H evaluates to false.
12076
12077         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12078         GL_GENERATE_ERRNO_H.
12079         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12080         evaluates to false.
12081
12082         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12083         GL_GENERATE_FLOAT_H.
12084         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12085         evaluates to false.
12086
12087         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12088         GL_GENERATE_FNMATCH_H.
12089         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12090         GL_GENERATE_FNMATCH_H evaluates to false.
12091
12092         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12093         GL_GENERATE_GLOB_H.
12094         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12095         evaluates to false.
12096
12097         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12098         automake conditional GL_GENERATE_ICONV_H.
12099         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12100         evaluates to false.
12101
12102         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12103         GL_GENERATE_NETINET_IN_H.
12104         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12105         GL_GENERATE_NETINET_IN_H evaluates to false.
12106
12107         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12108         conditional GL_GENERATE_PTHREAD_H.
12109         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12110         * modules/pthread (Makefile.am): Remove pthread.h if
12111         GL_GENERATE_PTHREAD_H evaluates to false.
12112
12113         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12114         GL_GENERATE_SCHED_H.
12115         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12116         evaluates to false.
12117
12118         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12119         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12120         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12121         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12122
12123         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12124         GL_GENERATE_STDARG_H.
12125         * modules/stdarg (Makefile.am): Remove stdarg.h if
12126         GL_GENERATE_STDARG_H evaluates to false.
12127
12128         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12129         GL_GENERATE_STDBOOL_H.
12130         * modules/stdbool (Makefile.am): Remove stdbool.h if
12131         GL_GENERATE_STDBOOL_H evaluates to false.
12132
12133         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12134         conditional GL_GENERATE_STDDEF_H.
12135         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12136         * modules/stddef (Makefile.am): Remove stddef.h if
12137         GL_GENERATE_STDDEF_H evaluates to false.
12138
12139         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12140         GL_GENERATE_STDINT_H.
12141         * modules/stdint (Makefile.am): Remove stdint.h if
12142         GL_GENERATE_STDINT_H evaluates to false.
12143
12144         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12145         GL_GENERATE_SYSEXITS_H.
12146         * modules/sysexits (Makefile.am): Remove sysexits.h if
12147         GL_GENERATE_SYSEXITS_H evaluates to false.
12148
12149         Reported by Karl Berry and Ralf Wildenhues.
12150
12151 2011-04-05  Bruno Haible  <bruno@clisp.org>
12152
12153         Ensure to rebuild generated .h files when config.status has changed.
12154         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12155         config.status.
12156         * modules/ctype (Makefile.am): Likewise.
12157         * modules/dirent (Makefile.am): Likewise.
12158         * modules/errno (Makefile.am): Likewise.
12159         * modules/fcntl-h (Makefile.am): Likewise.
12160         * modules/float (Makefile.am): Likewise.
12161         * modules/getopt-posix (Makefile.am): Likewise.
12162         * modules/glob (Makefile.am): Likewise.
12163         * modules/iconv-h (Makefile.am): Likewise.
12164         * modules/inttypes (Makefile.am): Likewise.
12165         * modules/langinfo (Makefile.am): Likewise.
12166         * modules/locale (Makefile.am): Likewise.
12167         * modules/math (Makefile.am): Likewise.
12168         * modules/netdb (Makefile.am): Likewise.
12169         * modules/netinet_in (Makefile.am): Likewise.
12170         * modules/poll-h (Makefile.am): Likewise.
12171         * modules/pthread (Makefile.am): Likewise.
12172         * modules/pty (Makefile.am): Likewise.
12173         * modules/sched (Makefile.am): Likewise.
12174         * modules/search (Makefile.am): Likewise.
12175         * modules/selinux-h (Makefile.am): Likewise.
12176         * modules/signal (Makefile.am): Likewise.
12177         * modules/spawn (Makefile.am): Likewise.
12178         * modules/stdarg (Makefile.am): Likewise.
12179         * modules/stdbool (Makefile.am): Likewise.
12180         * modules/stddef (Makefile.am): Likewise.
12181         * modules/stdint (Makefile.am): Likewise.
12182         * modules/stdio (Makefile.am): Likewise.
12183         * modules/stdlib (Makefile.am): Likewise.
12184         * modules/string (Makefile.am): Likewise.
12185         * modules/strings (Makefile.am): Likewise.
12186         * modules/sys_file (Makefile.am): Likewise.
12187         * modules/sys_ioctl (Makefile.am): Likewise.
12188         * modules/sys_select (Makefile.am): Likewise.
12189         * modules/sys_socket (Makefile.am): Likewise.
12190         * modules/sys_stat (Makefile.am): Likewise.
12191         * modules/sys_time (Makefile.am): Likewise.
12192         * modules/sys_times (Makefile.am): Likewise.
12193         * modules/sys_utsname (Makefile.am): Likewise.
12194         * modules/sys_wait (Makefile.am): Likewise.
12195         * modules/sysexits (Makefile.am): Likewise.
12196         * modules/termios (Makefile.am): Likewise.
12197         * modules/time (Makefile.am): Likewise.
12198         * modules/unistd (Makefile.am): Likewise.
12199         * modules/wchar (Makefile.am): Likewise.
12200         * modules/wctype-h (Makefile.am): Likewise.
12201         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12202
12203 2011-04-05  Bruno Haible  <bruno@clisp.org>
12204
12205         pipe2: Relicense under LGPLv2+.
12206         * modules/pipe2 (License): Change to LGPLv2+.
12207         Requested by Eric Blake, for libvirt.
12208
12209 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12210
12211         bootstrap: compute gnulib_extra_files after updating build_aux
12212         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12213         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12214
12215 2011-04-05  Eric Blake  <eblake@redhat.com>
12216
12217         bootstrap: preserve git whitelist item sorting
12218         * build-aux/bootstrap (sort_patterns): New function.
12219         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12220
12221 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12222
12223         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12224         sc_space_tab check.
12225
12226 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12227
12228         areadlink, areadlinkat: rewrite in terms of careadlinkat
12229         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12230         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12231         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12232         (malloc, realloc): Remove #undefs.
12233         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12234         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12235         readlink, ssize_t, stdint, unistd.
12236         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12237         areadlink, stdint.
12238
12239         careadlinkat: new module
12240         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12241         * modules/careadlinkat: New files, written by me with
12242         a review and feedback from Ben Pfaff in
12243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12244
12245 2011-04-01  Bruno Haible  <bruno@clisp.org>
12246
12247         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12248         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12249         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12250         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12251         Reported by Bruce Korb <bruce.korb@gmail.com>.
12252
12253 2011-04-01  Bruno Haible  <bruno@clisp.org>
12254
12255         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12256         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12257         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12258         * modules/wcpcpy (Depends-on): Add extensions.
12259         * modules/wcpncpy (Depends-on): Likewise.
12260         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12261         systems.
12262         * doc/posix-functions/wcpncpy.texi: Likewise.
12263         * doc/posix-functions/wcwidth.texi: Likewise.
12264
12265 2011-03-31  Eric Blake  <eblake@redhat.com>
12266
12267         nonblocking: fix mingw test failures
12268         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12269         non-blocking flag on regular file.
12270         (get_nonblocking_flag): Set errno on invalid fd.
12271         * tests/test-nonblocking.c (main): Avoid test failure on
12272         directories if fchdir is not active.
12273         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12274
12275 2011-03-31  Bruno Haible  <bruno@clisp.org>
12276
12277         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12278         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12279         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12280         Reported by Simon Josefsson <simon@josefsson.org>.
12281
12282 2011-03-31  Bruno Haible  <bruno@clisp.org>
12283         and Eric Blake  <eblake@redhat.com>
12284
12285         nonblocking: new module
12286         * modules/nonblocking: New module.
12287         * modules/nonblocking-tests: Likewise.
12288         * lib/nonblocking.h: New file.
12289         * lib/nonblocking.c: Likewise.
12290         * tests/test-nonblocking.c: New test.
12291         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12292
12293 2011-03-30  Bruno Haible  <bruno@clisp.org>
12294
12295         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12296         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12297         instead of 'printf' format for GCC >= 4.4.
12298         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12299         (fprintf, printf, vfprintf, vprintf): Declare with
12300         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12301         the system's vfprintf() function.
12302         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12303
12304 2011-03-30  Eric Blake  <eblake@redhat.com>
12305
12306         passfd: fix scoping bug
12307         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12308         before sendmsg/recvmsg.
12309
12310         passfd: standardize coding conventions
12311         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12312         can be learned at compile time.
12313         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12314         ifdefs.
12315         (sendfd, recvfd): Follow gnulib code conventions.
12316
12317         passfd: fix incorrect sendmsg arguments
12318         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12319         incorrect msg_controllen value.
12320         * modules/passfd-tests (Depends-on): Check for alarm.
12321         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12322         Reported by Bastien ROUCARIES.
12323
12324 2011-03-30  Bruno Haible  <bruno@clisp.org>
12325
12326         c-strcasestr: Relicense under LGPLv2+.
12327         * modules/c-strcasestr (License): Change to LGPLv2+.
12328         Requested by Eric Blake, for libvirt.
12329
12330 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12331
12332         * users.txt: Add libidn2.  Fix libtasn1 link.
12333
12334 2011-03-30  Jim Meyering  <meyering@redhat.com>
12335
12336         tests: readlink* ("",... fails with EINVAL on newer kernels
12337         readlink and readlinkat have typically failed with ENOENT for
12338         the invalid, empty file name,  "".  However, with the advent
12339         of linux-2.6.39, they fail with EINVAL.
12340         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12341         when operating on the empty file name.
12342         * tests/test-readlink.h (test_readlink): Likewise.
12343
12344 2011-03-29  Bruno Haible  <bruno@clisp.org>
12345
12346         Relicense some modules under LGPLv2+, for libidn2.
12347         * modules/array-mergesort (License): Change to LGPLv2+.
12348         * modules/c-strcaseeq (License): Likewise.
12349         * modules/striconveh (License): Likewise.
12350         * modules/striconveha (License): Likewise.
12351         * modules/uniconv/base (License): Likewise.
12352         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12353         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12354         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12355         * modules/unictype/base (License): Likewise.
12356         * modules/unictype/bidiclass-of (License): Likewise.
12357         * modules/unictype/category-M (License): Likewise.
12358         * modules/unictype/category-none (License): Likewise.
12359         * modules/unictype/category-of (License): Likewise.
12360         * modules/unictype/category-test (License): Likewise.
12361         * modules/unictype/category-test-withtable (License): Likewise.
12362         * modules/unictype/combining-class (License): Likewise.
12363         * modules/unictype/joiningtype-of (License): Likewise.
12364         * modules/unictype/scripts (License): Likewise.
12365         * modules/uninorm/base (License): Likewise.
12366         * modules/uninorm/canonical-decomposition (License): Likewise.
12367         * modules/uninorm/composition (License): Likewise.
12368         * modules/uninorm/decompose-internal (License): Likewise.
12369         * modules/uninorm/decomposition-table (License): Likewise.
12370         * modules/uninorm/nfc (License): Likewise.
12371         * modules/uninorm/nfd (License): Likewise.
12372         * modules/uninorm/u32-normalize (License): Likewise.
12373         * modules/unistr/base (License): Likewise.
12374         * modules/unistr/u32-cpy (License): Likewise.
12375         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12376         * modules/unistr/u32-to-u8 (License): Likewise.
12377         * modules/unistr/u32-uctomb (License): Likewise.
12378         * modules/unistr/u8-check (License): Likewise.
12379         * modules/unistr/u8-mblen (License): Likewise.
12380         * modules/unistr/u8-mbtouc (License): Likewise.
12381         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12382         * modules/unistr/u8-mbtoucr (License): Likewise.
12383         * modules/unistr/u8-prev (License): Likewise.
12384         * modules/unistr/u8-strlen (License): Likewise.
12385         * modules/unistr/u8-to-u32 (License): Likewise.
12386         * modules/unistr/u8-uctomb (License): Likewise.
12387         * modules/unitypes (License): Likewise.
12388         Requested by Simon Josefsson.
12389
12390 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12391
12392         lib-symbol-visibility: Add a notice.
12393         * modules/lib-symbol-visibility (Notice): New field.
12394
12395 2011-03-29  Bruno Haible  <bruno@clisp.org>
12396
12397         getaddrinfo: Doc fix.
12398         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12399         section "fixed in Gnulib".
12400
12401 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12402
12403         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12404         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12405
12406 2011-03-26  Bruno Haible  <bruno@clisp.org>
12407
12408         unictype/property-byname: Reduce the number of load-time relocations.
12409         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12410         (UC_PROPERTY_INDEX_*): New enumeration values.
12411         (uc_property_byname): Convert an index from the lookup table to an
12412         uc_property_t.
12413         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12414         values.
12415
12416 2011-03-26  Bruno Haible  <bruno@clisp.org>
12417
12418         unictype/property-byname: Allow omitted word separators and aliases.
12419         * lib/unictype/pr_byname.gperf: Add property names without word
12420         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12421         for 'space'.
12422
12423 2011-03-26  Bruno Haible  <bruno@clisp.org>
12424
12425         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12426         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12427         also hyphens to space.
12428         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12429         without spaces.
12430         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12431
12432 2011-03-26  Bruno Haible  <bruno@clisp.org>
12433
12434         unictype/joiningtype-byname: Recognize long names as well.
12435         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12436         a long name.
12437         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12438         unictype/joiningtype_byname.h.
12439         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12440         * lib/unictype/joiningtype_byname.gperf: New file.
12441         * modules/unictype/joiningtype-byname (Files): Add
12442         lib/unictype/joiningtype_byname.gperf.
12443         (Depends-on): Add gperf.
12444         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12445         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12446         long names.
12447
12448         Tests for module 'unictype/joiningtype-longname'.
12449         * modules/unictype/joiningtype-longname-tests: New file.
12450         * tests/unictype/test-joiningtype_longname.c: New file.
12451
12452         New module 'unictype/joiningtype-longname'.
12453         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12454         * lib/unictype/joiningtype_longname.c: New file.
12455         * modules/unictype/joiningtype-longname: New file.
12456         * modules/unictype/joiningtype-all (Depends-on): Add
12457         unictype/joiningtype-longname.
12458
12459 2011-03-26  Bruno Haible  <bruno@clisp.org>
12460
12461         unictype/bidiclass-byname: Recognize long names as well.
12462         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12463         name.
12464         * lib/unictype/bidi_byname.c: Include <string.h>,
12465         unictype/bidi_byname.h.
12466         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12467         * lib/unictype/bidi_byname.gperf: New file.
12468         * modules/unictype/bidiclass-byname (Files): Add
12469         lib/unictype/bidi_byname.gperf.
12470         (Depends-on): Add gperf.
12471         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12472         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12473         long names.
12474
12475         Tests for module 'unictype/bidiclass-longname'.
12476         * modules/unictype/bidiclass-longname-tests: New file.
12477         * tests/unictype/test-bidi_longname.c: New file.
12478
12479         New module 'unictype/bidiclass-longname'.
12480         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12481         * lib/unictype/bidi_longname.c: New file.
12482         * modules/unictype/bidiclass-longname: New file.
12483         * modules/unictype/bidiclass-all (Depends-on): Add
12484         unictype/bidiclass-longname.
12485
12486 2011-03-26  Bruno Haible  <bruno@clisp.org>
12487
12488         unictype/bidi*: Rename modules.
12489         * modules/unictype/bidiclass-all: Renamed from
12490         modules/unictype/bidicategory-all.
12491         * modules/unictype/bidiclass-name: Renamed from
12492         modules/unictype/bidiclass-name.
12493         (Description): Update.
12494         * modules/unictype/bidiclass-name-tests: Renamed from
12495         modules/unictype/bidicategory-name-tests.
12496         * modules/unictype/bidiclass-byname: Renamed from
12497         modules/unictype/bidicategory-byname.
12498         (Description): Update.
12499         * modules/unictype/bidiclass-byname-tests: Renamed from
12500         modules/unictype/bidicategory-byname-tests.
12501         * modules/unictype/bidiclass-of: Renamed from
12502         modules/unictype/bidicategory-of.
12503         (Description): Update.
12504         * modules/unictype/bidiclass-of-tests: Renamed from
12505         modules/unictype/bidicategory-of-tests.
12506         * modules/unictype/bidiclass-test: Renamed from
12507         modules/unictype/bidicategory-test.
12508         (Description): Update.
12509         * modules/unictype/bidiclass-test-tests: Renamed from
12510         modules/unictype/bidicategory-test-tests.
12511         * modules/unictype/bidicategory-all: New file, a simple redirection.
12512         * modules/unictype/bidicategory-name: Likewise.
12513         * modules/unictype/bidicategory-byname: Likewise.
12514         * modules/unictype/bidicategory-of: Likewise.
12515         * modules/unictype/bidicategory-test: Likewise.
12516         * modules/unictype/property-bidi-* (Dependencies): Update.
12517         * lib/unictype/bidi_*.c: Update comment.
12518
12519 2011-03-26  Bruno Haible  <bruno@clisp.org>
12520
12521         unictype/bidi*: Rename functions, part 2.
12522         * modules/unictype/bidicategory-name (configure.ac): Update required
12523         libunistring version.
12524         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12525
12526 2011-03-25  Bruno Haible  <bruno@clisp.org>
12527
12528         New module 'unictype/combining-class-all'.
12529         * modules/unictype/combining-class-all: New file.
12530
12531         Tests for module 'unictype/combining-class-byname'.
12532         * modules/unictype/combining-class-byname-tests: New file.
12533         * tests/unictype/test-combiningclass_byname.c: New file.
12534
12535         New module 'unictype/combining-class-byname'.
12536         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12537         * lib/unictype/combiningclass_byname.c: New file.
12538         * lib/unictype/combiningclass_byname.gperf: New file.
12539         * modules/unictype/combining-class-byname: New file.
12540
12541         Tests for module 'unictype/combining-class-longname'.
12542         * modules/unictype/combining-class-longname-tests: New file.
12543         * tests/unictype/test-combiningclass_longname.c: New file.
12544
12545         New module 'unictype/combining-class-longname'.
12546         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12547         * lib/unictype/combiningclass_longname.c: New file.
12548         * modules/unictype/combining-class-longname: New file.
12549
12550         Tests for module 'unictype/combining-class-name'.
12551         * modules/unictype/combining-class-name-tests: New file.
12552         * tests/unictype/test-combiningclass_name.c: New file.
12553
12554         New module 'unictype/combining-class-name'.
12555         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12556         * lib/unictype/combiningclass_name.c: New file.
12557         * modules/unictype/combining-class-name: New file.
12558
12559 2011-03-25  Bruno Haible  <bruno@clisp.org>
12560
12561         unictype/combining-class: Rename source files.
12562         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12563         of unictype/combining.h.
12564         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12565         Update.
12566         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12567         * modules/unictype/combining-class (Description): Fix.
12568         (Files, Makefile.am): Update.
12569         * tests/unictype/test-combiningclass.c: Renamed from
12570         tests/unictype/test-combining.c.
12571         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12572
12573 2011-03-25  Bruno Haible  <bruno@clisp.org>
12574
12575         unictype: Update list of canonical combining classes.
12576         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12577
12578 2011-03-25  Bruno Haible  <bruno@clisp.org>
12579
12580         unictype/category-byname: Recognize long names as well.
12581         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12582         a long name.
12583         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12584         unictype/categ_byname.h.
12585         (UC_CATEGORY_INDEX_*): New enumeration values.
12586         (uc_general_category_byname): Use uc_general_category_lookup and
12587         convert from index to value.
12588         * lib/unictype/categ_byname.gperf: New file.
12589         * modules/unictype/category-byname (Files): Add
12590         lib/unictype/categ_byname.gperf.
12591         (Depends-on): Add gperf.
12592         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12593         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12594         long names.
12595
12596         Tests for module 'unictype/category-longname'.
12597         * modules/unictype/category-longname-tests: New file.
12598         * tests/unictype/test-categ_longname.c: New file.
12599
12600         New module 'unictype/category-longname'.
12601         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12602         * lib/unictype/categ_longname.c: New file.
12603         * modules/unictype/category-longname: New file.
12604         * modules/unictype/category-all (Depends-on): Add it.
12605
12606 2011-03-25  Bruno Haible  <bruno@clisp.org>
12607
12608         Tests for module 'unictype/category-LC'.
12609         * modules/unictype/category-LC-tests: New file.
12610         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12611
12612         New module 'unictype/category-LC'.
12613         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12614         (UC_CATEGORY_LC): New declaration.
12615         (UC_CASED_LETTER): New macro.
12616         * lib/gen-uni-tables.c (is_category_LC): New function.
12617         (output_categories): Also handle category LC.
12618         (UC_CATEGORY_MASK_LC): New enumeration value.
12619         (general_category_byname): Also handle category LC.
12620         * lib/unictype/categ_LC.c: New file.
12621         * lib/unictype/categ_LC.h: New file, automatically generated.
12622         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12623         category LC.
12624         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12625         * modules/unictype/category-LC: New file.
12626         * modules/unictype/category-byname (Depends-on): Add
12627         unictype/category-LC.
12628         * modules/unictype/category-all (Depends-on): Likewise.
12629
12630 2011-03-25  Eric Blake  <eblake@redhat.com>
12631
12632         xmalloc: revert yesterday's regression
12633         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12634         realloc's underlying behavior (allowing allocation of zero-size
12635         objects, especially if malloc-gnu is also in use).
12636
12637 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12638
12639         maint.mk: add missing version to VC-tag
12640         * top/maint.mk: git tag was missing actual tag name; add it.
12641
12642         valgrind: do leak checking, and exit with code 1 on error (not 0)
12643         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12644         to VALGRIND.
12645
12646 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12647
12648         posix-modules: say what it does.
12649         * posix-modules: Add a line to the --help output saying what it does.
12650
12651 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12652
12653         xmalloc: Do not leak if underlying realloc is C99 compatible.
12654         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12655         This avoids a leak on C99-based systems.  See
12656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12657
12658 2011-03-24  Eric Blake  <eblake@redhat.com>
12659
12660         realloc: document portability problem
12661         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12662         passing 0 size to realloc.
12663
12664 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12665
12666         doc: update users.txt
12667         * users.txt: Add cvsps, tmpwatch
12668
12669 2011-03-23  Matt Rice  <ratmice@gmail.com>
12670
12671         doc: update users.txt
12672         * users.txt: Add gdb.
12673
12674 2011-03-23  Jim Meyering  <meyering@redhat.com>
12675
12676         doc: update users.txt
12677         Looking through matches up to the following URL (there are still
12678         several more pages), I found several projects that use gnulib:
12679         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12680         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12681         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12682
12683 2011-03-22  Bruno Haible  <bruno@clisp.org>
12684
12685         unictype/bidi*: Rename functions.
12686         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12687         uc_bidi_class, uc_is_bidi_class): New declarations.
12688         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12689         uc_bidi_category_byname.
12690         (uc_bidi_category_byname): New function.
12691         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12692         u_bidi_category_name.
12693         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12694         (uc_bidi_category_name): New function.
12695         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12696         uc_bidi_category.
12697         (uc_bidi_category): New function.
12698         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12699         uc_is_bidi_category. Invoke uc_bidi_class.
12700         (uc_is_bidi_category): New function.
12701         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12702         instead of uc_bidi_category_byname.
12703         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12704         instead of uc_bidi_category_name.
12705         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12706         uc_bidi_category.
12707         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12708         instead of uc_is_bidi_category.
12709
12710 2011-03-21  Bruno Haible  <bruno@clisp.org>
12711
12712         New module 'unictype/joininggroup-all'.
12713         * modules/unictype/joininggroup-all: New file.
12714
12715         Tests for module 'unictype/joininggroup-of'.
12716         * modules/unictype/joininggroup-of-tests: New file.
12717         * tests/unictype/test-joininggroup_of.c: New file.
12718         * tests/unictype/test-joininggroup_of.h: New file, automatically
12719         generated by gen-uni-tables.
12720
12721         New module 'unictype/joininggroup-of'.
12722         * modules/unictype/joininggroup-of: New file.
12723         * lib/unictype/joininggroup_of.c: New file.
12724         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12725         gen-uni-tables.
12726
12727         Tests for module 'unictype/joininggroup-byname'.
12728         * modules/unictype/joininggroup-byname-tests: New file.
12729         * tests/unictype/test-joininggroup_byname.c: New file.
12730
12731         New module 'unictype/joininggroup-byname'.
12732         * modules/unictype/joininggroup-byname: New file.
12733         * lib/unictype/joininggroup_byname.c: New file.
12734         * lib/unictype/joininggroup_byname.gperf: New file.
12735
12736         Tests for module 'unictype/joininggroup-name'.
12737         * modules/unictype/joininggroup-name-tests: New file.
12738         * tests/unictype/test-joininggroup_name.c: New file.
12739
12740         New module 'unictype/joininggroup-name'.
12741         * modules/unictype/joininggroup-name: New file.
12742         * lib/unictype/joininggroup_name.c: New file.
12743         * lib/unictype/joininggroup_name.h: New file.
12744
12745         New module 'unictype/joiningtype-all'.
12746         * modules/unictype/joiningtype-all: New file.
12747
12748         Tests for module 'unictype/joiningtype-of'.
12749         * modules/unictype/joiningtype-of-tests: New file.
12750         * tests/unictype/test-joiningtype_of.c: New file.
12751         * tests/unictype/test-joiningtype_of.h: New file, automatically
12752         generated by gen-uni-tables.
12753
12754         New module 'unictype/joiningtype-of'.
12755         * modules/unictype/joiningtype-of: New file.
12756         * lib/unictype/joiningtype_of.c: New file.
12757         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12758         gen-uni-tables.
12759
12760         Tests for module 'unictype/joiningtype-byname'.
12761         * modules/unictype/joiningtype-byname-tests: New file.
12762         * tests/unictype/test-joiningtype_byname.c: New file.
12763
12764         New module 'unictype/joiningtype-byname'.
12765         * modules/unictype/joiningtype-byname: New file.
12766         * lib/unictype/joiningtype_byname.c: New file.
12767
12768         Tests for module 'unictype/joiningtype-name'.
12769         * modules/unictype/joiningtype-name-tests: New file.
12770         * tests/unictype/test-joiningtype_name.c: New file.
12771
12772         New module 'unictype/joiningtype-name'.
12773         * modules/unictype/joiningtype-name: New file.
12774         * lib/unictype/joiningtype_name.c: New file.
12775
12776         unictype: Add support for Arabic shaping properties.
12777         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12778         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12779         declarations.
12780         (UC_JOINING_GROUP_*): New enumeration values.
12781         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12782         declarations.
12783         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12784         (unicode_joining_type): New variable.
12785         (UC_JOINING_GROUP_*): New enumeration values.
12786         (unicode_joining_group): New variable.
12787         (fill_arabicshaping, joining_type_as_c_identifier,
12788         output_joining_type_test, output_joining_type,
12789         joining_group_as_c_identifier, output_joining_group_test,
12790         output_joining_group): New functions.
12791         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12792         fill_arabicshaping and output_joining_type_test, output_joining_type,
12793         output_joining_group_test, output_joining_group.
12794         Reported by Simon Josefsson.
12795
12796 2011-03-21  Jim Meyering  <meyering@redhat.com>
12797
12798         strftime: fix a bug in yesterday's change
12799         * lib/strftime.c (add): Accommodate width's initial value of -1.
12800         Otherwise, nstrftime would copy uninitialized data into
12801         the result buffer.
12802
12803 2011-03-21  Jim Meyering  <meyering@redhat.com>
12804
12805         tests: add strftime-tests module
12806         * tests/test-strftime.c: New file.
12807         * modules/strftime-tests: New module.
12808
12809 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12810
12811         strftime: don't assume a byte count fits in 'int'
12812         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12813         found this problem by static analysis, using gcc -Wstrict-overflow
12814         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12815         on an integer overflow having undefined behavior, but it turns out
12816         that the argument is a size, which might not fit in 'int' anyway,
12817
12818 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12819
12820         stdio: don't require ignore_value around fwrite
12821
12822         This patch works around libc bug 11959
12823         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12824         Without this patch, applications must often write
12825         ignore_value (fwrite (...)) even though the ignore_value is
12826         not helpful here.  It's common to write many objects, using
12827         fwrite/printf/etc., and then use ferror to detect output error.
12828
12829         I considered making this patch optional, but decided against it,
12830         because libc is obviously being inconsistent here: there is no
12831         reason libc should insist that user code must inspect fwrite
12832         return's value without also insisting that it inspect printf's,
12833         putchar's, etc.  If user code wants to have a strict style where
12834         all these functions' values are checked (so that ferror need not
12835         be checked), we could add support for that style in a new gnulib
12836         module, but in the meantime it's better to be consistent and to
12837         support common usage.
12838
12839         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12840         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12841         that we are compiling in checking mode, and if not C++, and
12842         if not already wrapping fwrite for some other reason.
12843         (fwrite): #define to rpl_fwrite if the latter is defined.
12844
12845 2011-03-20  Bruno Haible  <bruno@clisp.org>
12846
12847         verror: Fix compilation error introduced on 2011-02-13.
12848         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12849         instead of __attribute__.
12850         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12851
12852 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12853             Bruno Haible  <bruno@clisp.org>
12854
12855         socklen: do not depend on sys_socket
12856         While trying to modify Emacs to use gnulib's socklen module,
12857         I discovered a circular dependency: socklen depends on sys_socket
12858         and vice versa.  Emacs can use socklen, but it does not need
12859         sys_socket because it has its own substitute for sys/socket.h.
12860         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12861         gl_TYPE_SOCKLEN_T.
12862         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12863         gl_PREREQ_SYS_H_SOCKET.
12864         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12865         gl_PREREQ_SYS_H_SOCKET.
12866         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12867         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12868         * modules/socklen (Depends-on): Do not depend on sys_socket.
12869         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12870
12871 2011-03-20  Jim Meyering  <meyering@redhat.com>
12872
12873         maint.mk: sort file names *after* new transformation
12874         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12875         prefix would have led to an unwarranted failure in GNU parted.
12876         Sort after that transformation.
12877
12878 2011-03-19  Jim Meyering  <meyering@redhat.com>
12879
12880         maint.mk: fix po-file syntax-check rule
12881         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12882         Patch by Bruno Haible.
12883
12884 2011-03-19  Bruno Haible  <bruno@clisp.org>
12885
12886         socklen: Update comment.
12887         * m4/socklen.m4: Update comment about platforms.
12888
12889 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12890             Bruno Haible  <bruno@clisp.org>
12891
12892         inet_ntop, inet_pton: Simplify.
12893         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12894         documented to provide socklen_t and we already depend on sys_socket.
12895         * modules/inet_pton (Depends-on): Likewise.
12896         * lib/arpa_inet.in.h: Adjust comment.
12897
12898 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12899             Bruno Haible  <bruno@clisp.org>
12900
12901         netdb: Simplify.
12902         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12903         documented to provide socklen_t and we already depend on sys_socket.
12904         * lib/netdb.in.h: Adjust comment.
12905
12906 2011-03-19  Bruno Haible  <bruno@clisp.org>
12907
12908         sys_socket, netdb: Document problem with socklen_t.
12909         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12910         platforms.
12911         * doc/posix-headers/netdb.texi: Likewise.
12912
12913 2011-03-18  Eric Blake  <eblake@redhat.com>
12914
12915         maint.mk: let po check work in VPATH build
12916         * top/maint.mk (po_file): Allow cfg.mk override.
12917         (sc_po_check): Allow VPATH use.
12918         Reported by Jiri Denemark.
12919
12920 2011-03-16  Jim Meyering  <meyering@redhat.com>
12921
12922         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12923         Before, you would have had to create one .x-sc_ file per rule in order
12924         to exempt offending files.  Now, you may instead use a Make variable --
12925         usually defined in cfg.mk -- whose name identifies the affected rule.
12926         * top/maint.mk (_sc_excl): Define.
12927         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12928         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12929
12930 2011-03-13  Bruno Haible  <bruno@clisp.org>
12931
12932         ignore-value tests: Avoid warnings.
12933         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12934         empty for gcc < 3.4.
12935
12936 2011-03-13  Bruno Haible  <bruno@clisp.org>
12937
12938         passfd: Fix link error on Solaris.
12939         * modules/passfd (Description): Correct.
12940         (Depends-on): Add socketlib.
12941         (Link): New section.
12942         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12943
12944 2011-03-13  Bruno Haible  <bruno@clisp.org>
12945
12946         passfd: Fix link error on AIX 5.2.
12947         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12948
12949 2011-03-13  Bruno Haible  <bruno@clisp.org>
12950
12951         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12952         * lib/sys_socket.in.h: Include <stddef.h>.
12953         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12954         CMSG_FIRSTHDR. Remove unused variable.
12955
12956 2011-03-13  Bruno Haible  <bruno@clisp.org>
12957
12958         passfd: Fix compilation error on OpenBSD.
12959         * lib/passfd.c: Include <sys/uio.h>.
12960
12961 2011-03-13  Bruno Haible  <bruno@clisp.org>
12962
12963         passfd test: Fix warnings.
12964         * tests/test-passfd.c: Include <sys/wait.h>.
12965         (main): Fix typo.
12966
12967 2011-03-13  Bruno Haible  <bruno@clisp.org>
12968
12969         passfd module, part 4, tweaks.
12970         * tests/test-passfd.c: Reorder includes.
12971         (main): Fix perror and printf calls.
12972
12973 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12974
12975         passfd module, part 4.
12976         * modules/passfd-tests: New file.
12977         * tests/test-passfd.c: New file.
12978
12979 2011-03-13  Jim Meyering  <meyering@redhat.com>
12980
12981         Makefile: rely on GNU make; derive syntax-check rule names
12982         Rather than requiring that each sc_ rule be listed as a dependent
12983         of "check", use features of GNU make to derive the list.
12984         * Makefile (syntax-check-rules): Define.
12985         (check): Depend on the new variable, not the hard-coded list.
12986
12987 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12988             Bruno Haible  <bruno@clisp.org>
12989
12990         passfd module, part 3.
12991         * lib/passfd.h (recvfd): Add a flags argument.
12992         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12993         (recvfd): Add a flags argument.
12994         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12995         exists.
12996         * modules/passfd (Depends-on): Add cloexec.
12997         Suggested by Eric Blake.
12998
12999 2011-03-13  Bruno Haible  <bruno@clisp.org>
13000
13001         passfd module, part 2, tweaks.
13002         * modules/passfd (Files): Reorder.
13003         (Depends-on): Remove errno.
13004         (Include): Remove <sys/socket.h>, <sys/un.h>.
13005         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13006         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13007         specification header. Include <sys/socket.h> always. Don't include
13008         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13009         (sendfd): Clarify that it sets errno when it fails.
13010         (recvfd): Fix specification.
13011
13012 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13013
13014         passfd module, part 2.
13015         * modules/passfd: New file.
13016         * lib/passfd.h: New file.
13017         * lib/passfd.c: New file.
13018
13019 2011-03-12  Bruno Haible  <bruno@clisp.org>
13020
13021         wcswidth, mbswidth: Avoid integer overflow.
13022         * lib/wcswidth.c: Include <limits.h>.
13023         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13024         * lib/mbswidth.c: Include <limits.h>.
13025         (mbsnwidth): Avoid 'int' overflow.
13026         Reported by Jim Meyering.
13027
13028 2011-03-12  Bruno Haible  <bruno@clisp.org>
13029
13030         futimens, utimensat: Avoid endless recursion on Solaris 10.
13031         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13032         Solaris.
13033         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13034         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13035
13036 2011-03-11  Jim Meyering  <meyering@redhat.com>
13037
13038         maint.mk: relax a regexp to accommodate other formatting styles
13039         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13040         between "ngettext" and the following "(".
13041
13042 2011-03-11  Pádraig Brady <P@draigBrady.com>
13043
13044         maint.mk: suppress a false positive warning
13045         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13046         diagnostics are marked with ngettext.
13047
13048 2011-03-10  Eric Blake  <eblake@redhat.com>
13049
13050         wchar: add explicit dependencies, for Tru64
13051         * modules/mbmemcasecoll (Depends-on): Add wchar.
13052         * modules/mbtowc (Depends-on): Likewise.
13053         * modules/vasnprintf (Depends-on): Likewise.
13054         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13055         * modules/wctomb (Depends-on): Likewise.
13056         Reported by Peter O'Gorman.
13057
13058 2011-03-08  Bruno Haible  <bruno@clisp.org>
13059
13060         passfd module, part 1, tweaks.
13061         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13062         Improve indentation. Improve AC_MSG_CHECKING messages.
13063         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13064         gl_SOCKET_FAMILIES.
13065
13066 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13067
13068         passfd module, part 1.
13069         * m4/afunix.m4: New file.
13070         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13071         sockets.
13072
13073 2011-03-08  Bruno Haible  <bruno@clisp.org>
13074
13075         regex-quote: New API.
13076         * lib/regex-quote.h: Include <stdbool.h>.
13077         (struct regex_quote_spec): New type.
13078         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13079         New declarations.
13080         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13081         'const struct regex_quote_spec *' argument.
13082         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13083         (pcre_special): New constant.
13084         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13085         New functions.
13086         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13087         'const struct regex_quote_spec *' argument.
13088         * modules/regex-quote (Depends-on): Add stdbool.
13089         * tests/test-regex-quote.c (check): Update for new API. Add test for
13090         anchored results.
13091         * NEWS: Mention the API change.
13092         Reported by Reuben Thomas and Eric Blake.
13093
13094 2011-03-06  Bruno Haible  <bruno@clisp.org>
13095
13096         regex-quote: Fix creation of POSIX extended regular expressions.
13097         * lib/regex-quote.c (ere_special): Add grouping and alternation
13098         operators.
13099
13100 2011-03-05  Bruno Haible  <bruno@clisp.org>
13101
13102         doc: Improve doc regarding autopoint vs. gnulib.
13103         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13104         disable autopoint while running autoreconf.
13105         Suggested by Ralf Wildenhues.
13106
13107 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13108
13109         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13110         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13111
13112 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13113
13114         parse-duration: remove xalloc.h dependency
13115         * lib/parse-duration.c (parse_period): handle NULL return from
13116         strdup instead of calling xstrdup().
13117         * modules/parse-duration: remove "xalloc" dependency
13118
13119 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13120
13121         bootstrap: honor m4_base when running aclocal
13122         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13123
13124 2011-03-02  Jim Meyering  <meyering@redhat.com>
13125
13126         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13127         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13128         on request from Matt Booth.
13129
13130 2011-03-01  Eric Blake  <eblake@redhat.com>
13131
13132         test-link: work on Hurd
13133         * tests/test-link.h (test_link): Hurd rejects linking directories
13134         with EISDIR instead of the POSIX-mandated EPERM.
13135
13136 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13137
13138         stdio: simplify by moving files to printf-posix, sigpipe
13139         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13140         since this symbol is needed only if printf is replaced.
13141         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13142         Require gl_ASM_SYMBOL_PREFIX.
13143         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13144         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13145         (Depends-on): Add 'raise'.
13146         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13147         * modules/stdio (Files): Remove lib/stdio-write.c,
13148         m4/asm-underscore.m4.
13149         (Depends-on): Remove 'raise'.
13150
13151         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13152         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13153         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13154         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13155
13156 2011-02-28  Bruno Haible  <bruno@clisp.org>
13157
13158         localcharset: Assume ANSI C behaviour of free().
13159         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13160         calling free().
13161         Suggested by Simon Josefsson <simon@josefsson.org>.
13162
13163 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13164             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13165             Bruno Haible  <bruno@clisp.org>  (tiny change)
13166
13167         On Cygwin, use /proc file system instead of win32 API.
13168         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13169         Win32 file names.
13170         (DllMain): Simplify by removing Cygwin specific code.
13171         (find_shared_library_fullname): Use Linux specific implementation also
13172         for Cygwin.
13173         (get_shared_library_fullname): Update accordingly.
13174         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13175         Win32 file names.
13176         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13177         Cygwin specific code.
13178
13179 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13180             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13181
13182         Fix OpenMP flag detection for various Fortran compilers.
13183         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13184         OpenMP-conditional compilation construct, to force compile
13185         failure with missing OpenMP flag.
13186         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13187
13188 2011-02-25  Eric Blake  <eblake@redhat.com>
13189
13190         strstr: expand test coverage
13191         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13192         compilation.
13193         * tests/test-memmem.c (main): Duplicate tests.
13194         * tests/test-strcasestr.c (main): Likewise.
13195         * tests/test-c-strcasestr.c (main): Likewise.
13196
13197 2011-02-25  Jim Meyering  <meyering@redhat.com>
13198
13199         maint.mk: detect missing-NL-at-EOF, too
13200         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13201         it also detects when a file lacks a newline at EOF.
13202         (require_exactly_one_NL_at_EOF_): Renamed from
13203         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13204         since people may well have .x-sc_... file names tied to the
13205         existing name.  Suggested by Eric Blake.
13206
13207 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13208
13209         dirname: move m4/dos.m4 functionality into lib/dosname.h
13210
13211         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13212         extracts symbols from it, puts them into config.h; but it's much
13213         easier to use the symbols directly.  filename.h already does this,
13214         but it disagrees with dos.m4 in some respects.  This patch
13215         introduces a different include file dosname.h that packages up
13216         dos.m4, and then later we can work on merging filename.h and
13217         dosname.h.  Applications that need only the easy-to-configure
13218         symbols should consider including dosname.h rather than dirname.h.
13219         * NEWS: Mention incompatible changes.
13220         * m4/dos.m4: Remove.
13221         * lib/dosname.h, modules/dosname: New files.
13222         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13223         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13224         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13225         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13226         Include dosname.h, not dirname.h.
13227         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13228         Include dosname.h, for definitions of symbols like ISSLASH
13229         that used to be in config.h.
13230         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13232         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13233         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13234         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13235         * modules/rmdir (Files): Likewise.
13236         * modules/stat (Files): Likewise.
13237         * modules/unlink (Files): Likewise.
13238         * modules/dirname-lgpl (Depends-on): Add dosname.
13239         * modules/lstat (Depends-on): Likewise.
13240         * modules/openat (Depends-on): Likewise.
13241         * modules/rmdir (Depends-on): Likewise.
13242         * modules/savewd (Depends-on): Likewise.
13243         * modules/stat (Depends-on): Likewise.
13244         * modules/unlink (Depends-on): Likewise.
13245         * modules/openat (Depends-on): Remove dirname-lgpl.
13246         * modules/savewd (Depends-on): Likewise.
13247         * tests/test-dirname.c: Do not use removed symbols like
13248         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13249         the remaining symbols, e.g., ISSLASH ('\\').
13250
13251 2011-02-25  Eric Blake  <eblake@redhat.com>
13252
13253         strstr: revert patches that introduced bug and pessimization
13254         * lib/str-two-way.h: Add another reference.
13255         (two_way_short_needle, two_way_long_needle): Revert changes from
13256         2011-02-24; they pessimize search speed.
13257         (critical_factorization): Partially revert changes from
13258         2010-06-22; they violate the requirement that the left half of the
13259         needle be smaller than the period of the needle.
13260
13261 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13262
13263         filenamecat: remove unnecessary dependency on dirname-lgpl
13264         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13265         is no direct dependency, just an indirect one via filenamecat-lgpl.
13266
13267         remove: remove unnecessary use of m4/dos.m4
13268         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13269         * modules/remove (FILES): Remove m4/dos.m4.
13270
13271         * lib/openat-proc.c: Don't include dirname.h; not needed.
13272
13273         backupfile: remove unnecessary use of m4/dos.m4
13274         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13275         of its symbols are used by the backupfile code.  backupfile.c does
13276         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13277         for the rare case of programs that want all their backup file
13278         names to live within 8+3 limits, and dos.m4 doesn't address that.
13279         * modules/backupfile (Files): Remove m4/dos.m4.
13280
13281 2011-02-24  Jim Meyering  <meyering@redhat.com>
13282
13283         strstr: fix a bug whereby strstr would mistakenly return NULL
13284         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13285         in period calculation.
13286         (two_way_long_needle): Likewise.
13287         The original problem was reported by Mike Stump in
13288         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13289         Ralf Wildenhues provided the short needle and haystack.
13290         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13291         Add a more involved test to trigger the bug in two_way_long_needle.
13292
13293 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13294
13295         gnulib-tool: remove use of bold display in help screen
13296         * gnulib-tool (func_usage): Do not use bold display anymore in the
13297         help screen.  That was just meant to be a temporary emphasis for a
13298         backward-incompatible change.
13299
13300 2011-02-23  Bruno Haible  <bruno@clisp.org>
13301
13302         Fix misindentation of preprocessor directives.
13303         * lib/argp-namefrob.h: Reindent preprocessor directives.
13304         * lib/getopt_int.h (struct _getopt_data): Likewise.
13305         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13306         * lib/vasnprintf.c (decode_long_double): Likewise.
13307         * tests/test-argmatch.c: Insert blank lines, for clarity.
13308         * tests/test-exclude.c: Likewise.
13309
13310 2011-02-22  Bruno Haible  <bruno@clisp.org>
13311
13312         ioctl: Fix for MacOS X in 64-bit mode.
13313         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13314         value.
13315         Suggested by Eric Blake.
13316         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13317
13318 2011-02-22  Jim Meyering  <meyering@redhat.com>
13319
13320         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13321         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13322         in lib/.
13323
13324 2011-02-22  Eric Blake  <eblake@redhat.com>
13325
13326         maint: avoid any CDPATH issue
13327         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13328
13329         maint: adjust cpp indentation for my modules, as well
13330         * Makefile (sc_cpp_indent_check): Add my name.
13331         * lib/fbufmode.c: Filter through cppi.
13332         * lib/fpurge.c: Likewise.
13333         * lib/freadable.c: Likewise.
13334         * lib/freading.c: Likewise.
13335         * lib/fwritable.c: Likewise.
13336         * lib/fwriting.c: Likewise.
13337         * lib/sigaction.c: Likewise.
13338
13339 2011-02-22  Jim Meyering  <meyering@redhat.com>
13340
13341         maint: adjust cpp indentation to reflect nesting depth
13342         I.e., in a block of code that begins with an unnested "#if",
13343         put one space between the "#" in column 1 and following token.
13344         For example,
13345         -#include <sys/vfs.h>
13346         +# include <sys/vfs.h>
13347         Do this only in .c files that are part of a module I maintain.
13348         * lib/linkat.c: Filter through cppi.
13349         * lib/nanosleep.c: Likewise.
13350         * lib/openat.c: Likewise.
13351         * lib/openat-die.c: Likewise.
13352         * lib/dup3.c: Likewise.
13353         * lib/fchownat.c: Likewise.
13354         * lib/flock.c: Likewise.
13355         * lib/fsync.c: Likewise.
13356         * lib/fts.c: Likewise.
13357         * lib/getpass.c: Likewise.
13358         * lib/gettimeofday.c: Likewise.
13359         * lib/userspec.c: Likewise.
13360         * Makefile (sc_cpp_indent_check): New rule, to check this.
13361
13362 2011-02-22  Bruno Haible  <bruno@clisp.org>
13363
13364         New module 'wctomb'.
13365         * lib/stdlib.in.h (wctomb): New declaration.
13366         * lib/wctomb.c: New file.
13367         * lib/wctomb-impl.h: New file.
13368         * m4/wctomb.m4: New file.
13369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13370         REPLACE_WCTOMB.
13371         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13372         REPLACE_WCTOMB.
13373         * modules/wctomb: New file.
13374         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13375         * doc/posix-functions/wctomb.texi: Mention the new module.
13376         * modules/wctob (Depends-on): Add wctomb.
13377
13378 2011-02-22  Bruno Haible  <bruno@clisp.org>
13379
13380         New module 'mbtowc'.
13381         * lib/stdlib.in.h (mbtowc): New declaration.
13382         * lib/mbtowc.c: New file.
13383         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13384         * m4/mbtowc.m4: New file.
13385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13386         REPLACE_MBTOWC.
13387         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13388         REPLACE_MBTOWC.
13389         * modules/mbtowc: New file.
13390         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13391         * doc/posix-functions/mbtowc.texi: Mention the new module.
13392         * modules/btowc (Depends-on): Add mbtowc.
13393
13394 2011-02-22  Bruno Haible  <bruno@clisp.org>
13395
13396         wcrtomb: Add more tests for native Windows platforms.
13397         * tests/test-wcrtomb-w32-1.sh: New file.
13398         * tests/test-wcrtomb-w32-2.sh: New file.
13399         * tests/test-wcrtomb-w32-3.sh: New file.
13400         * tests/test-wcrtomb-w32-4.sh: New file.
13401         * tests/test-wcrtomb-w32-5.sh: New file.
13402         * tests/test-wcrtomb-w32.c: New file.
13403         * modules/wcrtomb-tests (Files): Add them.
13404         (Makefile.am): Arrange to run these tests.
13405         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13406         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13407
13408 2011-02-20  Bruno Haible  <bruno@clisp.org>
13409
13410         wcrtomb: Enhance test.
13411         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13412
13413 2011-02-20  Bruno Haible  <bruno@clisp.org>
13414
13415         mbrtowc: Tiny optimization.
13416         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13417
13418 2011-02-20  Jim Meyering  <meyering@redhat.com>
13419
13420         test-exclude.c: remove unmatched #endif
13421         * tests/test-exclude.c: Remove stray #endif, left over from
13422         the change of a week ago.
13423
13424 2011-02-19  Jim Meyering  <meyering@redhat.com>
13425
13426         git-version-gen: skip "-dirty" check when appropriate
13427         * build-aux/git-version-gen: Don't run any git commands when the
13428         version string comes from .tarball-version.  Prior to this, we
13429         would run git update-index --refresh even from a just-unpacked
13430         tarball directory, and that could affect a .git/ directory in a
13431         parent of the build directory.  Reported by Mike Frysinger.
13432
13433 2011-02-19  Bruno Haible  <bruno@clisp.org>
13434
13435         unictype/property-byname: Reduce the size of the 'data' segment.
13436         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13437
13438 2011-02-19  Bruno Haible  <bruno@clisp.org>
13439
13440         unictype/scripts: Reduce the size of the 'data' segment.
13441         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13442         '%pic'.
13443         * lib/unictype/scripts_byname.gperf: Regenerated.
13444
13445 2011-02-19  Bruno Haible  <bruno@clisp.org>
13446
13447         stdint: Update documentation.
13448         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13449
13450 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13451
13452         stdint: omit redundant check for wchar.h
13453         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13454         always tests whether wchar.h exists, so remove the now-redundant test.
13455
13456 2011-02-18  Bruno Haible  <bruno@clisp.org>
13457
13458         stdint: Cut dependency to module 'wchar'.
13459         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13460         include the necessary prerequisites.
13461         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13462         * modules/stdint (Depends-on): Remove wchar.
13463         (Makefile.am): Substitute HAVE_WCHAR_H.
13464         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13465
13466 2011-02-18  Eric Blake  <eblake@redhat.com>
13467
13468         longlong: skip, rather than fail, on cross-compilation
13469         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13470         when cross-compiling; regression from 2011-02-16.
13471
13472 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13473
13474         * NEWS: Mention 2011-02-08 change to stdlib.
13475
13476 2011-02-17  Bruno Haible  <bruno@clisp.org>
13477
13478         getloadavg: Add comments about platforms.
13479         * m4/getloadavg.m4: Add comment.
13480         * lib/getloadavg.c: Likewise.
13481
13482 2011-02-17  Bruno Haible  <bruno@clisp.org>
13483
13484         getloadavg: Fix link error on Solaris 2.6.
13485         * modules/getloadavg (Link): New section.
13486         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13487         linking test-getloadavg.
13488         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13489         getloadavg.
13490
13491 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13492
13493         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13494         It was 'int', but this doesn't match the IRIX 6.5 manual.
13495         Suggested by Bruno Haible in
13496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13497
13498 2011-02-17  Bruno Haible  <bruno@clisp.org>
13499
13500         havelib: Fix comments.
13501         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13502         change.
13503
13504 2011-02-17  Bruno Haible  <bruno@clisp.org>
13505
13506         havelib: Update config.rpath.
13507         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13508
13509 2011-02-17  Bruno Haible  <bruno@clisp.org>
13510
13511         getloadavg test: Add some plausibility checks.
13512         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13513         is improbable.
13514
13515 2011-02-16  Eric Blake  <eblake@redhat.com>
13516
13517         maintainer-makefile: make syntax-check a no-op from tarballs
13518         * top/maint.mk (no-vc-detected): New rule.
13519         (local-checks-available): Use it to avoid hanging if someone tries
13520         'make syntax-check' from a tarball.  Also append to any non-syntax
13521         checks already defined in cfg.mk.
13522
13523 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13524
13525         longlong: tune, particularly for common case of c99
13526
13527         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13528         or running anything if c99, or if unsigned long long int does not
13529         work.  In either case, we know the answer without further tests.
13530         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13531         it at most once, and use its results for both long long int and
13532         unsigned long long int.  This is more likely to be efficient in
13533         the common case where the program wants to check for both long
13534         long int and unsigned long long int.
13535         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13536         since the answer is already known.
13537
13538 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13539
13540         getloadavg: set errno
13541         * lib/getloadavg.c: Set errno when returning -1.  If no other
13542         error number looks appropriate, set it to ENOSYS if the getloadavg
13543         looks like it can't possibly ever work, ENOTSUP otherwise.
13544         Suggested by Bruno Haible in
13545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13546
13547         getloadavg: trim unused parts and speed up 'configure'
13548         * NEWS: Document this.
13549         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13550         always compiled if getloadavg is absent.
13551         Move test code to ...
13552         * tests/test-getloadavg.c: New file, containing previous
13553         contents of test from lib/getloadavg.c.  It also contains
13554         suggestions by Bruno Haible in
13555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13556         * modules/getloadavg-tests: New file.
13557         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13558         Do tests in the same order as they're needed for getloadavg.c.
13559         Omit setgid-related tests that generate symbols KMEM_GROUP,
13560         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13561         Do only the tests that are needed to see whether the system has
13562         getloadavg, moving the other tests into ...
13563         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13564         NLIST_NAME_UNION; nobody should be using it.  Do not define
13565         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13566         relevant, as the user of this module shouldn't care how getloadavg
13567         is implemented.
13568
13569         getloadavg: omit unused var
13570         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13571
13572 2011-02-15  Jim Meyering  <meyering@redhat.com>
13573
13574         doc: update users.txt
13575         * users.txt: Update iwhd's URL.
13576
13577 2011-02-13  Bruno Haible  <bruno@clisp.org>
13578
13579         Consistent macro naming for macros that use GCC __attribute__.
13580         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13581         _ATTRIBUTE_NONNULL_.
13582         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13583         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13584         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13585         ATTRIBUTE_DEPRECATED.
13586         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13587         ATTRIBUTE_NORETURN.
13588         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13589         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13590         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13591         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13592         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13593         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13594         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13595         ATTRIBUTE_SENTINEL.
13596         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13597         ATTRIBUTE_RETURN_CHECK.
13598         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13599         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13600         ATTRIBUTE_NORETURN.
13601         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13602         Reported by Paul Eggert.
13603
13604 2011-02-13  Bruno Haible  <bruno@clisp.org>
13605
13606         Don't interfere with a program's definition of __attribute__.
13607         * lib/argp.h (__attribute__): Remove definition.
13608         (_GL_ATTRIBUTE_FORMAT): New macro.
13609         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13610         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13611         (_GL_ATTRIBUTE_FORMAT): New macro.
13612         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13613         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13614         GCC 3 or newer.
13615         * lib/error.h (__attribute__): Remove definition.
13616         (_GL_ATTRIBUTE_FORMAT): New macro.
13617         (error, error_at_line): Use it.
13618         * lib/hash.h (__attribute__): Remove definition.
13619         (ATTRIBUTE_WUR): Update definition. Define always.
13620         * lib/openat.h (__attribute__): Remove definition.
13621         (ATTRIBUTE_NORETURN): Update definition. Define always.
13622         * lib/sigpipe-die.h (__attribute__): Remove definition.
13623         (ATTRIBUTE_NORETURN): Update definition. Define always.
13624         * lib/vasnprintf.h (__attribute__): Remove definition.
13625         (_GL_ATTRIBUTE_FORMAT): New macro.
13626         (asnprintf, vasnprintf): Use it.
13627         * lib/xalloc.h (__attribute__): Remove definition.
13628         (ATTRIBUTE_NORETURN): Update definition. Define always.
13629         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13630         * lib/xmemdup0.h (__attribute__): Remove definition.
13631         (ATTRIBUTE_NORETURN): Update definition. Define always.
13632         * lib/xprintf.h (__attribute__): Remove definition.
13633         (_GL_ATTRIBUTE_FORMAT): New macro.
13634         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13635         * lib/xstrtol.h (__attribute__): Remove definition.
13636         (ATTRIBUTE_NORETURN): Update definition. Define always.
13637         * lib/xvasprintf.h (__attribute__): Remove definition.
13638         (_GL_ATTRIBUTE_FORMAT): New macro.
13639         (xasprintf, xvasprintf): Use it.
13640         * tests/test-argmatch.c (__attribute__): Remove definition.
13641         (ATTRIBUTE_NORETURN): Update definition. Define always.
13642         * tests/test-exclude.c (__attribute__): Remove definition.
13643         (ATTRIBUTE_NORETURN): Update definition. Define always.
13644         Reported by Paul Eggert.
13645
13646 2011-02-13  Bruno Haible  <bruno@clisp.org>
13647
13648         mbrtowc: Add more tests for native Windows platforms.
13649         * tests/test-mbrtowc-w32-1.sh: New file.
13650         * tests/test-mbrtowc-w32-2.sh: New file.
13651         * tests/test-mbrtowc-w32-3.sh: New file.
13652         * tests/test-mbrtowc-w32-4.sh: New file.
13653         * tests/test-mbrtowc-w32-5.sh: New file.
13654         * tests/test-mbrtowc-w32.c: New file.
13655         * modules/mbrtowc-tests (Files): Add them.
13656         (Makefile.am): Arrange to run these tests.
13657         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13658         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13659
13660 2011-02-13  Bruno Haible  <bruno@clisp.org>
13661
13662         mbrtowc: Work around native Windows bug.
13663         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13664         guess when no suitable locale for testing was found.
13665         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13666
13667 2011-02-13  Bruno Haible  <bruno@clisp.org>
13668
13669         mbsinit: Work around mingw bug.
13670         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13671         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13672         Windows.
13673         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13674
13675 2011-02-13  Bruno Haible  <bruno@clisp.org>
13676
13677         mbsinit: Don't crash for a NULL argument.
13678         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13679         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13680
13681 2011-02-13  Bruno Haible  <bruno@clisp.org>
13682
13683         Don't interfere with a program's definition of __attribute__.
13684         * lib/stdio.in.h (__attribute__): Remove definition.
13685         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13686         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13687         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13688         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13689         * lib/string.in.h (__attribute__): Remove definition.
13690         Reported by Paul Eggert.
13691
13692 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13693
13694         stdlib: don't get in the way of non-GCC __attribute__
13695         See thread starting at
13696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13697         Revert previous stdlib change, installing the following instead:
13698         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13699         to get in the way of a non-GCC compiler that supports __attribute__.
13700         (_GL_ATTRIBUTE_RETURN): New macro.
13701         (_Exit): Use it instead of __attribute__.
13702
13703 2011-02-12  Bruno Haible  <bruno@clisp.org>
13704
13705         quotearg test: Avoid test failure on mingw.
13706         * tests/test-quotearg.sh: Convert the locale identifier from native
13707         Windows syntax to Unix syntax.
13708
13709 2011-02-12  Bruno Haible  <bruno@clisp.org>
13710
13711         setlocale: Prefer gnulib's override over libintl's override.
13712         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13713         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13714         GNULIB_defined_setlocale is set.
13715
13716 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13717
13718         stdlib: support non-GCC __attribute__
13719
13720         Fix a serious and tricky problem encountered when attempting to
13721         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13722         5.5, but it crashed due to memory corruption on Solaris 10 with
13723         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13724         bits that are otherwise zero.  This tagging is optional inside
13725         Emacs but is preferred and is used when __attribute__ ((__aligned
13726         (8))) works, as it does with both recent-enough GCC and with Sun C
13727         5.11.  However, Sun C 5.11 is not GCC and does not #define
13728         __GNUC__ and __GNUC_MINOR__.
13729
13730         When I added the getloadavg module to Emacs, it brought in
13731         stdlib.in.h, which contained this fragment:
13732
13733            #ifndef __attribute__
13734            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13735            #  define __attribute__(Spec)   /* empty */
13736            # endif
13737            #endif
13738
13739         When files that include <stdlib.h> were compiled with Sun C 5.11,
13740         the above code disabled __attribute__ ((__aligned (8))), which
13741         caused variables to not be properly aligned, which eventually led
13742         to the pointer corruption mentioned above.  (This was a bit hard
13743         to diagnose, unfortunately.)
13744
13745         Several "#define __attribute__(X) /* empty */" code snippets need
13746         to be eradicated from Gnulib to work with non-GCC compilers that
13747         support __attribute__.  The Autoconf way to do this is to test for
13748         each kind of attribute that we want support for, and selectively
13749         enable that in source code.
13750
13751         Fix this problem just for stdlib.h, by adding a test for the
13752         __noreturn__ attribute, and change stdlib.in.h to use that test
13753         when needed.  This technique can be easily generalized to the
13754         other *.in.h files and attributes, and a similar technique can be
13755         used for *.h and *.c files.  This patch is enough to solve the
13756         problem for Emacs + getloadavg, and I thought I'd publish it for
13757         feedback before undertaking further, similar fixes in other
13758         modules.
13759
13760         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13761         because it's not needed for stdlib.h.  It merely substitutes the
13762         value directly into stdlib.h.  We may well need to #define it, or
13763         similar symbols, for other modules, but it's nice to also have an
13764         option to not #define it for applications like Emacs that do not
13765         need it.
13766
13767         * lib/stdlib.in.h (__attribute__): Do not #define.
13768         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13769         be defined only if the _Exit module is also used.
13770         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13772         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13773         platforms.
13774         * modules/_Exit (Files): Add m4/attribute.m4.
13775         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13776         * m4/attribute.m4: New file.
13777
13778 2011-02-12  Bruno Haible  <bruno@clisp.org>
13779
13780         wcsrtombs: Work around bug on native Windows.
13781         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13782         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13783         instead of len.
13784         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13785
13786 2011-02-12  Bruno Haible  <bruno@clisp.org>
13787
13788         mbsrtowcs: Work around bug on native Windows.
13789         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13790         against mingw bug.
13791         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13792
13793 2011-02-12  Bruno Haible  <bruno@clisp.org>
13794
13795         Avoid setlocale bugs in tests.
13796         * modules/btowc (Dependencies): Add setlocale.
13797         * modules/c-strcase (Dependencies): Likewise.
13798         * modules/mbmemcasecmp (Dependencies): Likewise.
13799         * modules/mbmemcasecoll (Dependencies): Likewise.
13800         * modules/mbrtowc (Dependencies): Likewise.
13801         * modules/mbscasecmp (Dependencies): Likewise.
13802         * modules/mbscasestr (Dependencies): Likewise.
13803         * modules/mbschr (Dependencies): Likewise.
13804         * modules/mbscspn (Dependencies): Likewise.
13805         * modules/mbsinit (Dependencies): Likewise.
13806         * modules/mbsncasecmp (Dependencies): Likewise.
13807         * modules/mbsnrtowcs (Dependencies): Likewise.
13808         * modules/mbspbrk (Dependencies): Likewise.
13809         * modules/mbspcasecmp (Dependencies): Likewise.
13810         * modules/mbsrchr (Dependencies): Likewise.
13811         * modules/mbsrtowcs (Dependencies): Likewise.
13812         * modules/mbsspn (Dependencies): Likewise.
13813         * modules/mbsstr (Dependencies): Likewise.
13814         * modules/nl_langinfo (Dependencies): Likewise.
13815         * modules/quotearg (Dependencies): Likewise.
13816         * modules/unicase/locale-language (Dependencies): Likewise.
13817         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13818         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13819         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13820         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13821         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13822         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13823         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13824         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13825         * modules/vasnprintf-posix (Dependencies): Likewise.
13826         * modules/wcrtomb (Dependencies): Likewise.
13827         * modules/wcsnrtombs (Dependencies): Likewise.
13828         * modules/wcsrtombs (Dependencies): Likewise.
13829
13830 2011-02-12  Bruno Haible  <bruno@clisp.org>
13831
13832         setlocale: Workaround native Windows bug.
13833         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13834         succeeds but sets LC_CTYPE to "C", report a failure.
13835         * tests/test-setlocale2.sh: New file.
13836         * tests/test-setlocale2.c: New file.
13837         * modules/setlocale-tests (Files): Add the new files.
13838         (Makefile.am): Enable test-setlocale2.sh test.
13839         * doc/posix-functions/setlocale.texi: Mention workaround.
13840
13841 2011-02-11  Bruno Haible  <bruno@clisp.org>
13842
13843         Tests for module 'setlocale'.
13844         * modules/setlocale-tests: New file.
13845         * tests/test-setlocale1.sh: New file.
13846         * tests/test-setlocale1.c: New file.
13847
13848         New module 'setlocale'.
13849         * lib/locale.in.h (setlocale): New declaration.
13850         * lib/setlocale.c: New file, based on
13851         gettext/gettext-runtime/intl/setlocale.c.
13852         * m4/setlocale.m4: New file.
13853         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13854         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13855         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13856         REPLACE_SETLOCALE.
13857         * modules/setlocale: New file.
13858         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13859         * doc/posix-functions/setlocale.texi: Mention the new module.
13860
13861 2011-02-11  Bruno Haible  <bruno@clisp.org>
13862
13863         Prepare for locale dependent tests on mingw.
13864         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13865         because it has the wrong locale encoding.
13866         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13867         French_France.1252 instead of "fr".
13868         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13869         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13870         because it has the wrong locale encoding.
13871         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13872         native Windows, try Turkish_Turkey.65001.
13873         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13874         Chinese_China.54936.
13875
13876         Prepare for locale dependent tests on mingw.
13877         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13878         differently.
13879         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13880         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13881         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13882         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13883
13884 2011-02-11  Eric Blake  <eblake@redhat.com>
13885
13886         strptime: avoid compiler warnings
13887         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13888         compiler warnings about dead code.
13889         Reported by Daniel P. Berrange.
13890
13891 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13892
13893         doc: update users.txt
13894         * users.txt: Add rcs.
13895
13896 2011-02-10  John W. Eaton  <jwe@gnu.org>
13897
13898         doc: update users.txt
13899         * users.txt: Add octave.
13900
13901 2011-02-10  Jim Meyering  <meyering@redhat.com>
13902
13903         doc: update users.txt
13904         * users.txt: Add iwhd.
13905
13906 2011-02-09  Bruno Haible  <bruno@clisp.org>
13907
13908         gnulib-tool: Make copyright notice adjustment more robust.
13909         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13910         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13911         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13912         License".
13913         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13914
13915 2011-02-06  Bruno Haible  <bruno@clisp.org>
13916
13917         New module 'towctrans'.
13918         * modules/towctrans: New file.
13919         * lib/wctype.in.h (towctrans): New declaration.
13920         * lib/towctrans.c: New file.
13921         * lib/towctrans-impl.h: New file.
13922         * m4/towctrans.m4: New file.
13923         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13924         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13925         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13926         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13927         * doc/posix-functions/towctrans.texi: Mention the new module.
13928
13929 2011-02-06  Bruno Haible  <bruno@clisp.org>
13930
13931         New module 'wctrans'.
13932         * modules/wctrans: New file.
13933         * lib/wctype.in.h (wctrans): New declaration.
13934         * lib/wctrans.c: New file.
13935         * lib/wctrans-impl.h: New file.
13936         * m4/wctrans.m4: New file.
13937         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13938         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13939         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13940         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13941         * doc/posix-functions/wctrans.texi: Mention the new module.
13942
13943 2011-02-06  Bruno Haible  <bruno@clisp.org>
13944
13945         New module 'iswctype'.
13946         * modules/iswctype: New file.
13947         * lib/wctype.in.h (iswctype): New declaration.
13948         * lib/iswctype.c: New file.
13949         * lib/iswctype-impl.h: New file.
13950         * m4/iswctype.m4: New file.
13951         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13952         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13953         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13954         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13955         * doc/posix-functions/iswctype.texi: Mention the new module and the
13956         HP-UX 11.00 problem.
13957
13958 2011-02-06  Bruno Haible  <bruno@clisp.org>
13959
13960         New module 'wctype'.
13961         * modules/wctype: Change to represent the wctype() substitute.
13962         * lib/wctype.in.h (wctype): New declaration.
13963         * lib/wctype.c: New file.
13964         * lib/wctype-impl.h: New file.
13965         * m4/wctype.m4: New file.
13966         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13967         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13968         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13969         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13970         * doc/posix-functions/wctype.texi: Mention the new module and the
13971         HP-UX 11.00 problem.
13972
13973 2011-02-06  Bruno Haible  <bruno@clisp.org>
13974
13975         wctype-h: Ensure wctype_t and wctrans_t are defined.
13976         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13977         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13978         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13979         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13980         HAVE_WCTRANS_T.
13981         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13982
13983 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13984
13985         flock: fix license typo
13986
13987         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13988         omitted.
13989
13990 2011-02-08  Bruno Haible  <bruno@clisp.org>
13991
13992         Split large sed scripts, for HP-UX sed.
13993         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13994         to avoid HP-UX limit of 99 commands, in the near future.
13995         * modules/stdlib (Makefile.am): Likewise.
13996         * modules/unistd (Makefile.am): Likewise.
13997         * modules/wchar (Makefile.am): Likewise.
13998         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13999         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14000         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14001
14002 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14003             Bruno Haible  <bruno@clisp.org>
14004
14005         stdlib: improve random_r modularization
14006         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14007         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14008         you also need the random_r module to get this material right.
14009         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14010         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14011         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14012
14013 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14014
14015         stdlib: don't depend on stdint
14016         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14017         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14018         be independent of whether stdint.h is needed.
14019         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14020         here, instead of ...
14021         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14022         struct random_data should be using the random_r module, not just
14023         the stdlib module (which wouldn't make sense: what package needs
14024         just struct random_data without also needing random_r?).
14025         * modules/stdlib (Depends-on): Remove stdint.
14026
14027         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14028         See the thread rooted at
14029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14030         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14031         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14032         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14033         __VMS)); previously it was always included (via fcntl--.h).
14034         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14035         hand; this is good enough for load averages.  Also, do not use
14036         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14037         flags directly if available and don't bother otherwise.  (Packages
14038         that need the extra reliability should use the modules that define
14039         these flags on older platforms that lack them.)
14040         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14041         fcntl-safer.
14042
14043 2011-02-08  Jim Meyering  <meyering@redhat.com>
14044
14045         di-set.h, ino-map.h: add multiple-inclusion guard
14046         Technically, the guard is required only for ino-map.h, due to its
14047         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14048         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14049         * lib/ino-map.h: Likewise.
14050
14051 2011-02-06  Bruno Haible  <bruno@clisp.org>
14052
14053         iswblank: Ensure declaration on glibc systems.
14054         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14055         * modules/iswblank (Dependencies): Add 'extensions'.
14056         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14057
14058 2011-02-06  Bruno Haible  <bruno@clisp.org>
14059
14060         New module 'iswblank'.
14061         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14062         * modules/iswblank: New file.
14063         * modules/wctype-h (Files): Remove lib/iswblank.c.
14064         (Makefile.am): Substitute GNULIB_ISWBLANK.
14065         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14066         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14067         (gl_WCTYPE_H_DEFAULTS): New macro.
14068         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14069         * modules/iswblank-tests: New file.
14070         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14071         * tests/test-wctype-h.c (main): Remove iswblank tests.
14072         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14073         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14074         of 'wctype-h'.
14075         * NEWS: Mention the change.
14076         * modules/mbchar (Depends-on): Add iswblank.
14077
14078 2011-02-08  Bruno Haible  <bruno@clisp.org>
14079
14080         di-set tests: Refactor.
14081         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14082         unnecessary includes.
14083         (ASSERT): Remove macro.
14084         (main): Make C90 compliant by avoiding variable declaration after
14085         statement.
14086         * modules/di-set-tests (Files): Add tests/macros.h.
14087
14088 2011-02-08  Bruno Haible  <bruno@clisp.org>
14089
14090         ino-map tests: Refactor.
14091         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14092         unnecessary includes.
14093         (ASSERT): Remove macro.
14094         (main): Make C90 compliant by avoiding variable declaration after
14095         statement.
14096         * modules/ino-map-tests (Files): Add tests/macros.h.
14097
14098 2011-02-08  Jim Meyering  <meyering@redhat.com>
14099
14100         di-set: add "const" to a cast
14101         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14102         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14103
14104 2011-02-06  Bruno Haible  <bruno@clisp.org>
14105
14106         Rename module 'wctype' to 'wctype-h'.
14107         * modules/wctype-h: Renamed from modules/wctype.
14108         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14109         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14110         (Files, Depends-on, Makefile.am): Update.
14111         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14112         (Files, Makefile.am): Update.
14113         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14114         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14115         * doc/posix-headers/wctype.texi: Update.
14116         * doc/posix-functions/iswalnum.texi: Update.
14117         * doc/posix-functions/iswalpha.texi: Update.
14118         * doc/posix-functions/iswblank.texi: Update.
14119         * doc/posix-functions/iswcntrl.texi: Update.
14120         * doc/posix-functions/iswdigit.texi: Update.
14121         * doc/posix-functions/iswgraph.texi: Update.
14122         * doc/posix-functions/iswlower.texi: Update.
14123         * doc/posix-functions/iswprint.texi: Update.
14124         * doc/posix-functions/iswpunct.texi: Update.
14125         * doc/posix-functions/iswspace.texi: Update.
14126         * doc/posix-functions/iswupper.texi: Update.
14127         * doc/posix-functions/iswxdigit.texi: Update.
14128         * doc/posix-functions/towlower.texi: Update.
14129         * doc/posix-functions/towupper.texi: Update.
14130         * NEWS: Mention the change.
14131         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14132         * modules/mbchar (Dependencies): Likewise.
14133         * modules/mbswidth (Dependencies): Likewise.
14134         * modules/quotearg (Dependencies): Likewise.
14135         * modules/regex (Dependencies): Likewise.
14136         * modules/wcscasecmp (Dependencies): Likewise.
14137         * modules/wcsncasecmp (Dependencies): Likewise.
14138         * modules/wcwidth (Dependencies): Likewise.
14139
14140 2011-02-06  Bruno Haible  <bruno@clisp.org>
14141
14142         New module 'wcswidth'.
14143         * modules/wcswidth: New file.
14144         * lib/wchar.in.h (wcswidth): New declaration.
14145         * lib/wcswidth.c: New file.
14146         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14147         * m4/wcswidth.m4: New file.
14148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14150         REPLACE_WCSWIDTH.
14151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14152         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14153         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14154         * doc/posix-functions/wcswidth.texi: Mention the new module.
14155
14156 2011-02-06  Bruno Haible  <bruno@clisp.org>
14157
14158         New module 'wcstok'.
14159         * modules/wcstok: New file.
14160         * lib/wchar.in.h (wcstok): New declaration.
14161         * lib/wcstok.c: New file.
14162         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14163         * m4/wcstok.m4: New file.
14164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14166         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14167         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14168         * doc/posix-functions/wcstok.texi: Mention the new module.
14169
14170 2011-02-06  Bruno Haible  <bruno@clisp.org>
14171
14172         New module 'wcsstr'.
14173         * modules/wcsstr: New file.
14174         * lib/wchar.in.h (wcsstr): New declaration.
14175         * lib/wcsstr.c: New file.
14176         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14177         * m4/wcsstr.m4: New file.
14178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14180         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14181         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14182         * doc/posix-functions/wcsstr.texi: Mention the new module.
14183
14184 2011-02-06  Bruno Haible  <bruno@clisp.org>
14185
14186         New module 'wcspbrk'.
14187         * modules/wcspbrk: New file.
14188         * lib/wchar.in.h (wcspbrk): New declaration.
14189         * lib/wcspbrk.c: New file.
14190         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14191         * m4/wcspbrk.m4: New file.
14192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14195         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14196         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14197
14198 2011-02-06  Bruno Haible  <bruno@clisp.org>
14199
14200         New module 'wcsspn'.
14201         * modules/wcsspn: New file.
14202         * lib/wchar.in.h (wcsspn): New declaration.
14203         * lib/wcsspn.c: New file.
14204         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14205         * m4/wcsspn.m4: New file.
14206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14209         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14210         * doc/posix-functions/wcsspn.texi: Mention the new module.
14211
14212 2011-02-06  Bruno Haible  <bruno@clisp.org>
14213
14214         New module 'wcscspn'.
14215         * modules/wcscspn: New file.
14216         * lib/wchar.in.h (wcscspn): New declaration.
14217         * lib/wcscspn.c: New file.
14218         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14219         * m4/wcscspn.m4: New file.
14220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14222         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14223         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14224         * doc/posix-functions/wcscspn.texi: Mention the new module.
14225
14226 2011-02-06  Bruno Haible  <bruno@clisp.org>
14227
14228         New module 'wcsrchr'.
14229         * modules/wcsrchr: New file.
14230         * lib/wchar.in.h (wcsrchr): New declaration.
14231         * lib/wcsrchr.c: New file.
14232         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14233         * m4/wcsrchr.m4: New file.
14234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14237         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14238         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14239
14240 2011-02-06  Bruno Haible  <bruno@clisp.org>
14241
14242         New module 'wcschr'.
14243         * modules/wcschr: New file.
14244         * lib/wchar.in.h (wcschr): New declaration.
14245         * lib/wcschr.c: New file.
14246         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14247         * m4/wcschr.m4: New file.
14248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14251         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14252         * doc/posix-functions/wcschr.texi: Mention the new module.
14253
14254 2011-02-06  Bruno Haible  <bruno@clisp.org>
14255
14256         New module 'wcsdup'.
14257         * modules/wcsdup: New file.
14258         * lib/wchar.in.h (wcsdup): New declaration.
14259         * lib/wcsdup.c: New file.
14260         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14261         * m4/wcsdup.m4: New file.
14262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14265         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14266         * doc/posix-functions/wcsdup.texi: Mention the new module.
14267
14268 2011-02-06  Bruno Haible  <bruno@clisp.org>
14269
14270         New module 'wcsxfrm'.
14271         * modules/wcsxfrm: New file.
14272         * lib/wchar.in.h (wcsxfrm): New declaration.
14273         * lib/wcsxfrm.c: New file.
14274         * lib/wcsxfrm-impl.h: New file.
14275         * m4/wcsxfrm.m4: New file.
14276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14279         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14280         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14281
14282 2011-02-06  Bruno Haible  <bruno@clisp.org>
14283
14284         New module 'wcscoll'.
14285         * modules/wcscoll: New file.
14286         * lib/wchar.in.h (wcscoll): New declaration.
14287         * lib/wcscoll.c: New file.
14288         * lib/wcscoll-impl.h: New file.
14289         * m4/wcscoll.m4: New file.
14290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14293         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14294         * doc/posix-functions/wcscoll.texi: Mention the new module.
14295
14296 2011-02-06  Bruno Haible  <bruno@clisp.org>
14297
14298         New module 'wcsncasecmp'.
14299         * modules/wcsncasecmp: New file.
14300         * lib/wchar.in.h (wcsncasecmp): New declaration.
14301         * lib/wcsncasecmp.c: New file.
14302         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14303         * m4/wcsncasecmp.m4: New file.
14304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14307         HAVE_WCSNCASECMP.
14308         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14309         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14310
14311 2011-02-06  Bruno Haible  <bruno@clisp.org>
14312
14313         New module 'wcscasecmp'.
14314         * modules/wcscasecmp: New file.
14315         * lib/wchar.in.h (wcscasecmp): New declaration.
14316         * lib/wcscasecmp.c: New file.
14317         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14318         * m4/wcscasecmp.m4: New file.
14319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14322         HAVE_WCSCASECMP.
14323         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14324         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14325
14326 2011-02-05  Bruno Haible  <bruno@clisp.org>
14327
14328         New module 'wcsncmp'.
14329         * modules/wcsncmp: New file.
14330         * lib/wchar.in.h (wcsncmp): New declaration.
14331         * lib/wcsncmp.c: New file.
14332         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14333         * m4/wcsncmp.m4: New file.
14334         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14335         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14336         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14337         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14338         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14339
14340 2011-02-05  Bruno Haible  <bruno@clisp.org>
14341
14342         New module 'wcscmp'.
14343         * modules/wcscmp: New file.
14344         * lib/wchar.in.h (wcscmp): New declaration.
14345         * lib/wcscmp.c: New file.
14346         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14347         * m4/wcscmp.m4: New file.
14348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14351         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14352         * doc/posix-functions/wcscmp.texi: Mention the new module.
14353
14354 2011-02-05  Bruno Haible  <bruno@clisp.org>
14355
14356         New module 'wcsncat'.
14357         * modules/wcsncat: New file.
14358         * lib/wchar.in.h (wcsncat): New declaration.
14359         * lib/wcsncat.c: New file.
14360         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14361         * m4/wcsncat.m4: New file.
14362         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14363         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14364         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14365         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14366         * doc/posix-functions/wcsncat.texi: Mention the new module.
14367
14368 2011-02-05  Bruno Haible  <bruno@clisp.org>
14369
14370         New module 'wcscat'.
14371         * modules/wcscat: New file.
14372         * lib/wchar.in.h (wcscat): New declaration.
14373         * lib/wcscat.c: New file.
14374         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14375         * m4/wcscat.m4: New file.
14376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14378         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14379         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14380         * doc/posix-functions/wcscat.texi: Mention the new module.
14381
14382 2011-02-05  Bruno Haible  <bruno@clisp.org>
14383
14384         New module 'wcpncpy'.
14385         * modules/wcpncpy: New file.
14386         * lib/wchar.in.h (wcpncpy): New declaration.
14387         * lib/wcpncpy.c: New file.
14388         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14389         * m4/wcpncpy.m4: New file.
14390         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14391         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14392         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14393         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14394         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14395
14396 2011-02-05  Bruno Haible  <bruno@clisp.org>
14397
14398         New module 'wcsncpy'.
14399         * modules/wcsncpy: New file.
14400         * lib/wchar.in.h (wcsncpy): New declaration.
14401         * lib/wcsncpy.c: New file.
14402         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14403         * m4/wcsncpy.m4: New file.
14404         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14405         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14406         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14407         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14408         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14409
14410 2011-02-05  Bruno Haible  <bruno@clisp.org>
14411
14412         New module 'wcpcpy'.
14413         * modules/wcpcpy: New file.
14414         * lib/wchar.in.h (wcpcpy): New declaration.
14415         * lib/wcpcpy.c: New file.
14416         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14417         * m4/wcpcpy.m4: New file.
14418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14420         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14421         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14422         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14423
14424 2011-02-05  Bruno Haible  <bruno@clisp.org>
14425
14426         New module 'wcscpy'.
14427         * modules/wcscpy: New file.
14428         * lib/wchar.in.h (wcscpy): New declaration.
14429         * lib/wcscpy.c: New file.
14430         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14431         * m4/wcscpy.m4: New file.
14432         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14433         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14434         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14435         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14436         * doc/posix-functions/wcscpy.texi: Mention the new module.
14437
14438 2011-02-05  Bruno Haible  <bruno@clisp.org>
14439
14440         New module 'wcsnlen'.
14441         * modules/wcsnlen: New file.
14442         * lib/wchar.in.h (wcsnlen): New declaration.
14443         * lib/wcsnlen.c: New file.
14444         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14445         * m4/wcsnlen.m4: New file.
14446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14449         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14450         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14451
14452 2011-02-05  Bruno Haible  <bruno@clisp.org>
14453
14454         New module 'wcslen'.
14455         * modules/wcslen: New file.
14456         * lib/wchar.in.h (wcslen): New declaration.
14457         * lib/wcslen.c: New file.
14458         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14459         * m4/wcslen.m4: New file.
14460         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14461         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14462         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14463         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14464         * doc/posix-functions/wcslen.texi: Mention the new module.
14465
14466 2011-02-05  Bruno Haible  <bruno@clisp.org>
14467
14468         New module 'wmemset'.
14469         * modules/wmemset: New file.
14470         * lib/wchar.in.h (wmemset): New declaration.
14471         * lib/wmemset.c: New file.
14472         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14473         * m4/wmemset.m4: New file.
14474         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14475         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14476         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14477         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14478         * doc/posix-functions/wmemset.texi: Mention the new module.
14479
14480 2011-02-05  Bruno Haible  <bruno@clisp.org>
14481
14482         New module 'wmemmove'.
14483         * modules/wmemmove: New file.
14484         * lib/wchar.in.h (wmemmove): New declaration.
14485         * lib/wmemmove.c: New file.
14486         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14487         * m4/wmemmove.m4: New file.
14488         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14489         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14490         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14491         HAVE_WMEMMOVE.
14492         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14493         * doc/posix-functions/wmemmove.texi: Mention the new module.
14494
14495 2011-02-05  Bruno Haible  <bruno@clisp.org>
14496
14497         New module 'wmemcpy'.
14498         * modules/wmemcpy: New file.
14499         * lib/wchar.in.h (wmemcpy): New declaration.
14500         * lib/wmemcpy.c: New file.
14501         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14502         * m4/wmemcpy.m4: New file.
14503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14505         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14506         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14507         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14508
14509 2011-02-05  Bruno Haible  <bruno@clisp.org>
14510
14511         New module 'wmemcmp'.
14512         * modules/wmemcmp: New file.
14513         * lib/wchar.in.h (wmemcmp): New declaration.
14514         * lib/wmemcmp.c: New file.
14515         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14516         * m4/wmemcmp.m4: New file.
14517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14519         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14520         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14521         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14522
14523 2011-02-07  Jim Meyering  <meyering@redhat.com>
14524
14525         di-set, ino-map: new modules, from coreutils
14526         * lib/di-set.c: New file.
14527         * lib/di-set.h: Likewise.
14528         * lib/ino-map.c: Likewise.
14529         * lib/ino-map.h: Likewise.
14530         * modules/di-set: Likewise.
14531         * modules/di-set-tests: Likewise.
14532         * modules/ino-map: Likewise.
14533         * modules/ino-map-tests: Likewise.
14534         * tests/test-di-set.c: Likewise.
14535         * tests/test-ino-map.c: Likewise.
14536
14537 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14538
14539         getloadavg: merge minor changes from Emacs
14540
14541         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14542         (getloadavg): Use memset, not bzero.
14543
14544         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14545         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14546         clash (bug#86).
14547
14548 2010-11-14  Bruno Haible  <bruno@clisp.org>
14549
14550         Allow multiple gnulib generated replacements to coexist.
14551         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14552         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14553         * lib/langinfo.in.h (nl_item): Likewise.
14554         * lib/math.in.h (_NaN, NAN): Likewise.
14555         * lib/netdb.in.h (struct addrinfo): Likewise.
14556         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14557         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14558         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14559         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14560         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14561         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14562         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14563         pthread_mutexattr_init, pthread_mutexattr_settype,
14564         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14565         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14566         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14567         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14568         * lib/sched.in.h (struct sched_param): Likewise.
14569         * lib/se-selinux.in.h (security_class_t, security_context_t,
14570         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14571         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14572         lsetfilecon, fsetfilecon, security_check_context,
14573         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14574         Likewise.
14575         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14576         Likewise.
14577         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14578         _gl_function_taking_int_returning_void_t, union sigval,
14579         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14580         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14581         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14582         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14583         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14584         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14585         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14586         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14587         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14588         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14589         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14590         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14591         socklen_t, rpl_fd_isset): Likewise.
14592         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14593         * lib/sys_time.in.h (struct timeval): Likewise.
14594         * lib/sys_times.in.h (struct tms): Likewise.
14595         * lib/sys_utsname.in.h (struct utsname):
14596         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14597         * lib/unistd.in.h (getpagesize): Likewise.
14598         * lib/wchar.in.h (mbstate_t): Likewise.
14599         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14600         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14601         towlower, towupper): Likewise.
14602         Reported by Sam Steingold <sds@gnu.org>.
14603
14604 2011-02-05  Eric Blake  <eblake@redhat.com>
14605
14606         unsetenv: work around Haiku issues
14607         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14608         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14609
14610 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14611
14612         libposix: avoid calling error() within libposix
14613         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14614         is defined.
14615
14616 2011-02-05  Eric Blake  <eblake@redhat.com>
14617
14618         strerror_r-posix: port to cygwin
14619         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14620         implementation.
14621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14622         * tests/test-strerror_r.c (main): Fix test.
14623         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14624         issue.
14625
14626 2011-02-05  Bruno Haible  <bruno@clisp.org>
14627
14628         New module 'wmemchr'.
14629         * modules/wmemchr: New file.
14630         * lib/wchar.in.h (wmemchr): New declaration.
14631         * lib/wmemchr.c: New file.
14632         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14633         * m4/wmemchr.m4: New file.
14634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14636         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14637         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14638         * doc/posix-functions/wmemchr.texi: Mention the new module.
14639
14640 2011-02-04  Eric Blake  <eblake@redhat.com>
14641
14642         fdopendir: detect FreeBSD bug
14643         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14644         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14645
14646 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14647
14648         stdbool: do not define HAVE_STDBOOL_H
14649         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14650         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14651         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14652         imported from the latest Autoconf git.  It was motivated by Emacs,
14653         which uses gnulib but does not need HAVE_STDBOOL_H.
14654
14655 2011-02-04  Bruno Haible  <bruno@clisp.org>
14656
14657         wcsnrtombs: Prepare for new module wwcsnrtombs.
14658         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14659         * lib/wcsnrtombs.c: Include it.
14660         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14661
14662         wcsrtombs: Prepare for new module wwcsrtombs.
14663         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14664         * lib/wcsrtombs.c: Include it.
14665         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14666
14667         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14668         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14669         * lib/mbsnrtowcs.c: Include it.
14670         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14671
14672         mbsrtowcs: Prepare for new module mbsrtowwcs.
14673         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14674         * lib/mbsrtowcs.c: Include it.
14675         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14676
14677 2011-02-04  Bruno Haible  <bruno@clisp.org>
14678
14679         vasnprintf: Reduce use of malloc for small format strings.
14680         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14681         (arguments): Add room for the first 7 arguments.
14682         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14683         (char_directives, u8_directives, u16_directives, u32_directives): Add
14684         room for the first 7 directives.
14685         * lib/printf-parse.c: Include <string.h>.
14686         (PRINTF_PARSE): Change memory handling code so that it uses the first
14687         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14688         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14689         Reported by Pádraig Brady <P@draigbrady.com>.
14690
14691 2011-01-31  Eric Blake  <eblake@redhat.com>
14692
14693         dup2: work around Haiku bug
14694         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14695         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14696         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14697         * tests/test-dup2.c (main): Enhance test.
14698
14699 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14700
14701         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14702         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14703         declared by eglibc 2.11.2.
14704         * lib/stdio.in.h: Likewise.
14705
14706 2011-01-31  Eric Blake  <eblake@redhat.com>
14707
14708         ignore-value: add missing test dependency
14709         * tests/test-ignore-value.c: Revert previous change; stdio.h
14710         provides off_t.
14711         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14712
14713 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14714
14715         mktime: clarify long_int width checking
14716         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14717         the top level, to make it clearer that the assumption about
14718         long_int width is being checked.  See
14719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14720
14721 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14722
14723         ignore-value: Fix self-test.
14724         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14725
14726 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14727
14728         TYPE_MAXIMUM: avoid theoretically undefined behavior
14729         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14730         negative number, which the C Standard says has undefined behavior.
14731         In practice this is not a problem, but might as well do it by the book.
14732         Reported by Rich Felker and Eric Blake; see
14733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14734         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14735         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14737         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14738         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14739         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14740
14741         mktime: #undef mktime before #defining it
14742         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14743
14744         mktime: systematically normalize tm_isdst comparisons
14745         * lib/mktime.c (isdst_differ): New function.
14746         (__mktime_internal): Use it systematically for all isdst comparisons.
14747         This completes the fix for libc BZ #6723, and removes the need for
14748         normalizing tm_isdst.  See
14749         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14750         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14751
14752         mktime: fix some integer overflow issues and sidestep the rest
14753
14754         This was prompted by a bug report by Benjamin Lindner for MinGW
14755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14756         His bug is due to signed integer overflow (0 - INT_MIN), and I
14757         I scanned through mktime.c looking for other integer overflow
14758         problems, fixing all the bugs I found.
14759
14760         Although the C Standard says the resulting code is still not safe
14761         in the presence of integer overflow, in practice it should be good
14762         enough for all real-world two's-complement implementations, except
14763         for debugging environments that deliberately trap on integer
14764         overflow (e.g., gcc -ftrapv).
14765
14766         * lib/mktime.c (WRAPV): New macro.
14767         (SHR): Also check that long_int and time_t shift right in the
14768         usual way, before using the fast-but-unportable method.
14769         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14770         used.  The code already assumed two's complement, so there's
14771         no need to test for alternatives.  All uses removed.
14772         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14773         the C standard.  Problem reported by Rich Felker in
14774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14775         (twos_complement_arithmetic): Also check long_int and time_t.
14776         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14777         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14778         (__mktime_internal): Avoid integer overflow with unary subtraction
14779         in two instances where -1 - X is an adequate replacement for -X,
14780         since the calculations are approximate.
14781
14782 2011-01-29  Eric Blake  <eblake@redhat.com>
14783
14784         mktime: avoid infinite loop
14785         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14786         type; behavior is still undefined but portable to all known targets.
14787         Reported by Rich Felker.
14788
14789 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14790
14791         rename, unlink, same-inode: Relicense.
14792         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14793         * modules/unlink (License): Likewise.
14794         * modules/same-inode (License): Likewise.
14795
14796 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14797
14798         mktime: avoid problems on NetBSD 5 / i386
14799         * lib/mktime.c (long_int): New type.  This works around a problem
14800         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14801         but time_t is 64 bits, and where I expect the existing code is
14802         wrong in some cases.
14803         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14804         (ydhms_diff): Bring back the compile-time check for wide-enough
14805         year and yday.
14806
14807         mktime: fix misspelling in comment
14808         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14809         This merges all recent glibc changes of importance.
14810
14811 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14812
14813         move-if-change: cope with concurrent mv of identical file.
14814         * build-aux/move-if-change (CMPPROG): Accept environment
14815         variable as an override for `cmp'.
14816         (usage): Document CMPPROG.
14817         Adjust comparison to drop stdout.  Cope with failure of mv if
14818         the target file exists and is identical to the source, for
14819         parallel builds.
14820         Report from H.J. Lu against binutils in PR binutils/12283.
14821
14822 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14823
14824         * users.txt: Mention sharutils.
14825
14826 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14827
14828         * users.txt: Mention OATH Toolkit.
14829
14830 2011-01-27  Bruno Haible  <bruno@clisp.org>
14831
14832         Prepare for supporting FreeBSD 10.
14833         * build-aux/config.libpath: Remove handling of freebsd1*.
14834
14835 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14836
14837         Prepare for supporting FreeBSD 10.
14838         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14839         match FreeBSD 10.0.
14840
14841 2011-01-27  Bruno Haible  <bruno@clisp.org>
14842
14843         vma-iter, get-rusage-as: Add OpenBSD support.
14844         * modules/vma-iter (configure.ac): Test for mquery.
14845         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14846         * lib/vma-iter.c: Include <sys/mman.h>.
14847         (vma_iterate): Add an implementation based on mquery().
14848         * lib/resource-ext.h (get_rusage_as): Update comments.
14849         * lib/get-rusage-as.c: Likewise.
14850         * lib/get-rusage-data.c: Likewise.
14851
14852 2011-01-26  Karl Berry  <karl@gnu.org>
14853
14854         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14855         variables to make it easier to override the makeinfo program used.
14856
14857 2011-01-26  Eric Blake  <eblake@redhat.com>
14858
14859         fcntl: work around Haiku F_DUPFD bugs
14860         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14861         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14862         cloexec bit on duplication.
14863         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14864
14865 2011-01-26  Bruno Haible  <bruno@clisp.org>
14866
14867         Enable memory leak tests on AIX.
14868         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14869         * tests/test-fprintf-posix3.c (main): Likewise.
14870
14871 2011-01-26  Bruno Haible  <bruno@clisp.org>
14872
14873         Tests for module 'get-rusage-data'.
14874         * modules/get-rusage-data-tests: New file.
14875         * tests/test-get-rusage-data.c: New file.
14876
14877         New module 'get-rusage-data'.
14878         * lib/resource-ext.h (get_rusage_data): New declaration.
14879         * lib/get-rusage-data.c: New file.
14880         * modules/get-rusage-data: New file.
14881
14882 2011-01-25  Bruno Haible  <bruno@clisp.org>
14883
14884         get-rusage-as: Allow for easier testing.
14885         * lib/resource-ext.h (get_rusage_as): Add comment.
14886         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14887         (main): New function for interactive testing.
14888
14889 2011-01-25  Bruno Haible  <bruno@clisp.org>
14890
14891         vma-iter: Treat Haiku like BeOS.
14892         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14893         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14894
14895 2011-01-25  Eric Blake  <eblake@redhat.com>
14896
14897         c-stack: fix regression on cygwin when libsigsegv is present
14898         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14899
14900 2011-01-24  Bruno Haible  <bruno@clisp.org>
14901
14902         vma-iter: Avoid empty intervals.
14903         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14904         on an empty interval.
14905
14906 2011-01-24  Jim Meyering  <meyering@redhat.com>
14907
14908         u64: remove unnecessary #include
14909         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14910
14911 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14912
14913         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14914         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14915
14916 2011-01-23  Bruno Haible  <bruno@clisp.org>
14917
14918         New module 'vma-iter'.
14919         * lib/vma-iter.h: New file.
14920         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14921         * modules/vma-iter: New file.
14922         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14923         for get_rusage_as_via_iterator.
14924         (vma_iterate_callback): New function.
14925         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14926         * modules/get-rusage-as (Depends-on): Add vma-iter.
14927
14928 2011-01-23  Bruno Haible  <bruno@clisp.org>
14929
14930         uninorm: Tweak includes.
14931         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14932         Reported by Jim Meyering.
14933
14934 2011-01-23  Bruno Haible  <bruno@clisp.org>
14935
14936         get-rusage-as: Improve on NetBSD.
14937         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14938         /proc, like on FreeBSD.
14939
14940 2011-01-23  Jim Meyering  <meyering@redhat.com>
14941
14942         xreadlink.h: remove unnecessary #include
14943         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14944
14945         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14946         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14947
14948 2011-01-23  Bruno Haible  <bruno@clisp.org>
14949
14950         get-rusage-as: Fix bug.
14951         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14952         original limit when aborting the first loop.
14953
14954 2011-01-23  Bruno Haible  <bruno@clisp.org>
14955
14956         wctype: Ensure valid C syntax.
14957         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14958         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14959
14960 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14961
14962         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14964         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14965         as they are needed only for configure's test case.
14966         This removes two unnecessary symbols from config.h.
14967
14968         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14969         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14971         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14972         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14973         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14974         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14975         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14976         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14977         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14978         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14979         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14980         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14981         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14982         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14983         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14984         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14985         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14986
14987 2011-01-21  Eric Blake  <eblake@redhat.com>
14988
14989         maintainer-makefile: work with older git for submodule check
14990         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14991         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14992         Reported by Matthias Bolte.
14993
14994         bootstrap: minor portability fixes
14995         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14996         (usage): Omit leading capital and trailing . on help phrases, per
14997         GNU Coding Standards.
14998         (check_versions, top level): Prefix messages with script name.
14999
15000 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15001
15002         bootstrap: support --no-git option
15003         * build-aux/bootstrap: Add --no-git option, to be used when
15004         --gnulib-srcdir points to the exact desired checkout.
15005
15006 2011-01-21  Eric Blake  <eblake@redhat.com>
15007
15008         strerror_r-posix: work with glibc 2.13
15009         * lib/strerror_r.c (strerror_r): Fix return type.
15010
15011 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15012             Bruno Haible  <bruno@clisp.org>
15013
15014         uN_strstr: New unit tests.
15015         * modules/unistr/u8-strstr-tests: New file.
15016         * modules/unistr/u16-strstr-tests: New file.
15017         * modules/unistr/u32-strstr-tests: New file.
15018         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15019         * tests/unistr/test-u8-strstr.c: New file.
15020         * tests/unistr/test-u16-strstr.c: New file.
15021         * tests/unistr/test-u32-strstr.c: New file.
15022
15023 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15024             Bruno Haible  <bruno@clisp.org>
15025
15026         Make uN_strstr functions O(n) worst-case.
15027         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15028         16-bit and 32-bit unit cases, use the unibyte algorithm from
15029         lib/mbsstr.c.
15030         * lib/unistr/u8-strstr.c: Include <string.h>.
15031         (UNIT_IS_UINT8_T): New macro.
15032         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15033         (U_STRLEN, U_STRNLEN): New macros.
15034         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15035         (U_STRLEN, U_STRNLEN): New macros.
15036         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15037         (configure.ac): Update required libunistring version.
15038         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15039         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15040         malloca.
15041         (configure.ac): Update required libunistring version.
15042         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15043         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15044         malloca.
15045         (configure.ac): Update required libunistring version.
15046
15047 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15048             Bruno Haible  <bruno@clisp.org>
15049
15050         Prepare for faster uN_strstr functions.
15051         * lib/str-kmp.h: Support definable UNITs.
15052         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15053         needle_len argument.
15054         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15055         * lib/mbscasestr.c (mbscasestr): Likewise.
15056
15057 2011-01-21  Pádraig Brady <P@draigBrady.com>
15058
15059         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15060         * tests/test-malloca.c (main): Unset the environment variable
15061         to greatly speed up the test.
15062         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15063         * modules/malloca-tests: Depend on unsetenv.
15064
15065 2011-01-21  Pádraig Brady <P@draigBrady.com>
15066
15067         ignore-value: remove stdint dependency
15068         * lib/ignore-value.h: Remove <stdint.h>
15069         * modules/ignore-value: Remove stdint dependency.
15070
15071 2011-01-21  Jim Meyering  <meyering@redhat.com>
15072
15073         maint.mk: adjust variable name to be consistent with other gl_ vars
15074         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15075         to be lower case.
15076
15077 2011-01-20  Jim Meyering  <meyering@redhat.com>
15078
15079         maint.mk: make "check" depend on public-submodule-commit by default
15080         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15081
15082 2011-01-20  Bruno Haible  <bruno@clisp.org>
15083
15084         mbfile, mbiter: Complete change from 2008-12-21.
15085         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15086         * m4/mbiter.m4 (gl_MBITER): Likewise.
15087
15088 2011-01-20  Jim Meyering  <meyering@redhat.com>
15089
15090         init.sh: insert space between each function name and "()"
15091         * tests/init.sh: Make it a little easier to see that a function's
15092         name is "warn_", and not "warn" when looking at the first part of
15093         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15094
15095 2011-01-20  Jim Meyering  <meyering@redhat.com>
15096
15097         mountlist: clean up code formatting
15098         * lib/mountlist.c (read_file_system_list): Split a long line,
15099         correct bracing style, use NULL in place of "(struct statfs *)0",
15100         don't parenthesize return value, add spaces around "=" and after
15101         ";-in-for-stmt".
15102
15103 2011-01-14  Markus Duft <mduft@gentoo.org>
15104
15105         mountlist: add support for Interix
15106         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15107         Apply statvfs to all entries of /dev/fs.
15108         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15109         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15110
15111 2011-01-20  Jim Meyering  <meyering@redhat.com>
15112
15113         maint.mk: improve the public-submodule-commit rule
15114         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15115         to suppress printing of its commands... unless V=1.
15116         Add git submodule's --quiet option to suppress printing of e.g.,
15117         "Entering gnulib" output.
15118         "cd" into $(srcdir) before running git submodule.
15119
15120 2011-01-20  Bruno Haible  <bruno@clisp.org>
15121
15122         include_next: Fix bug introduced on 2011-01-18.
15123         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15124         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15125         ac_cv_header_... variable if the second argument is not 'check'.
15126         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15127         gl_NEXT_HEADERS_INTERNAL.
15128
15129 2011-01-20  Bruno Haible  <bruno@clisp.org>
15130
15131         Allow the user to avoid the GNULIB_TEST_* macros.
15132         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15133         Suggested by Paul Eggert.
15134
15135 2011-01-14  Jim Meyering  <meyering@redhat.com>
15136
15137         bootstrap: avoid failure when there is no .gitmodules file
15138         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15139         has been assigned to, even when its value is the empty string.
15140         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15141         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15142         Reported by John W. Eaton <jwe@gnu.org>.
15143
15144 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15145
15146         assume <ctype.h>, ..., <time.h> exist
15147         For years gnulib has been assuming the existence of the headers
15148         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15149         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15150         them, since they don't appear to be needed.
15151         * README (Portability guidelines): Document this.
15152         * lib/flock.c: Assume <fcntl.h> exists.
15153         * lib/regex_internal.h: Assume <locale.h> exists.
15154         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15155         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15156         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15157         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15158         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15159         * m4/regex.m4 (gl_REGEX): Likewise.
15160         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15161         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15162         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15163         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15164         * tests/test-argp.c: Likewise.
15165         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15166
15167         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15168         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15169         AA_APPLE_UNIVERSAL_BUILD.  See
15170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15171         * NEWS: Document this.
15172
15173 2011-01-19  Eric Blake  <eblake@redhat.com>
15174
15175         c-stack: assume stack overflow if SA_SIGINFO unsupported
15176         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15177         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15178         sigaction will work.
15179         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15180         behavior match Linux.
15181         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15182
15183         stdbool-tests: accomodate Haiku
15184         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15185
15186         binary-io: fix O_TEXT on Haiku
15187         * modules/binary-io (Depends-on): Add fcntl-h.
15188         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15189         than blindly undefining O_TEXT.
15190         Reported by Scott McCreary.
15191
15192 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15193
15194         include_next: do not check for standard headers like stddef.h
15195
15196         I found this problem when modifying Emacs to use gnulib.
15197         I noticed that it added HAVE_STDDEF_H to config.h, even though
15198         gnulib always assumes <stddef.h> exists as per README and this
15199         symbol is unnecessary.
15200         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15201         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15202         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15203         faster for headers like stddef.h that are known to exist.
15204         (gl_CHECK_NEXT_HEADERS): Use it.
15205         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15206         rather than gl_CHECK_NEXT_HEADERS.
15207         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15208         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15209
15210 2011-01-18  Eric Blake  <eblake@redhat.com>
15211
15212         ansi-c++-opt: skip C++ dependency style if C++ is unused
15213         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15214         tests when we know C++ compilation is not desired.
15215         Reported by Scott McCreary.
15216
15217 2011-01-18  Bruno Haible  <bruno@clisp.org>
15218
15219         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15220         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15221         (main): Perform test also when getrlimit and setrlimit don't exist or
15222         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15223         limiting the address space size using setrlimit, compare the address
15224         space size before and after the the test.
15225         * tests/test-dprintf-posix2.c: Likewise.
15226         * tests/test-fprintf-posix3.sh: Update skip messages.
15227         * tests/test-dprintf-posix2.sh: Likewise.
15228         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15229         * modules/dprintf-posix-tests (Depends-on): Likewise.
15230         Reported by Bruce Korb <bkorb@gnu.org> and
15231         Gary V. Vaughan <gary@gnu.org>.
15232
15233 2011-01-18  Bruno Haible  <bruno@clisp.org>
15234
15235         get-rusage-as: Improvement for Cygwin.
15236         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15237         areas that are merely reserved.
15238
15239 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15240
15241         strftime: remove dependencies on multibyte modules
15242
15243         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15244         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15245         only if __osf__ is defined, and I suspect OSF doesn't need these
15246         other modules.  If my guess is wrong, we'll need to come up with a
15247         variant of strftime that doesn't need the multibyte modules.
15248
15249         I discovered this problem when attempting modify Emacs to use the
15250         strftime module.  With the previous gnulib, this caused Emacs to
15251         need 31 new files, ranging from lib/config.charset to
15252         m4/wint_t.m4.  This was overkill and I expect would be offputting
15253         to the Emacs maintainers.  After this change, only 6 new files are
15254         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15255         stdbool.m4, and tm_gmtoff.m4.
15256
15257         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15258         Suggested by Bruno Haible in
15259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15260         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15261         and do not check for wchar.h.
15262         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15263         (Depends-on): Remove mbrlen, mbsinit, wchar.
15264
15265 2011-01-18  Bruno Haible  <bruno@clisp.org>
15266
15267         Tests for module 'get-rusage-as'.
15268         * modules/get-rusage-as-tests: New file.
15269         * tests/test-get-rusage-as.c: New file.
15270
15271         New module 'get-rusage-as'.
15272         * modules/get-rusage-as: New file.
15273         * lib/resource-ext.h: New file.
15274         * lib/get-rusage-as.c: New file.
15275
15276 2011-01-17  Eric Blake  <eblake@redhat.com>
15277
15278         sigaction: relax license from LGPLv3+ to LGPLv2+
15279         * modules/sigaction (License): Relax to LGPLv2+.
15280
15281 2011-01-14  Bruno Haible  <bruno@clisp.org>
15282
15283         filemode: Make function declarations usable in C++ mode.
15284         * lib/filemode.h: Enclose function declarations in extern "C" block.
15285         Reported by John W. Eaton <jwe@gnu.org>.
15286
15287 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15288
15289         save-cwd: no longer include "xgetcwd.h"
15290         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15291         This avoids a compilation failure in projects that use save-cwd
15292         without also using the xgetcwd module.
15293
15294 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15295
15296         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15297         This is so that a program like Emacs, which needs only dtoastr,
15298         does not have to bother with distributing and compiling ftoastr
15299         and ldtoastr.
15300         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15301         * modules/dtoastr, modules/ldtoastr: New files.
15302         * modules/ftoastr: Now works just for 'float'.
15303         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15304         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15305         dtoastr.c, ldtoastr.c.
15306
15307 2011-01-11  Jim Meyering  <meyering@redhat.com>
15308
15309         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15310         There is no need to work around the lack of the fchdir function,
15311         since gnulib can now provide a replacement when required.
15312         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15313         * modules/save-cwd (Depends-on): Add fchdir.
15314
15315 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15316
15317         openat, save-cwd: avoid xmalloc
15318
15319         This removes a direct (but undocumented) dependency of openat on
15320         xalloc, along with an indirect dependency via save-cwd.  It also
15321         removes a dependency of save-cwd on xgetcwd, and thereby
15322         indirectly on xalloc.  This change causes the openat substitute
15323         to fall back on save_cwd when memory is tight, and for save_cwd to
15324         fail instead of dying when memory is tight, but that's good enough.
15325         Problem and initial idea for fix reported by Bastien Roucaries in
15326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15327
15328         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15329         xalloc.h (for xmalloc).
15330         (openat_proc_name): Use malloc, not xmalloc.
15331         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15332         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15333
15334         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15335         This avoids heap allocation for file names whose lengths are in
15336         the range 512..1023, with the upper bound increasing to at most
15337         4031 depending on the platform's PATH_MAX.  (We do not want
15338         pathmax.h here as it might supply a non-constant PATH_MAX.)
15339         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15340         Perhaps they should be moved to malloca.h?
15341         (OPENAT_BUFFER_SIZE): Use them.
15342
15343 2011-01-10  Bruno Haible  <bruno@clisp.org>
15344
15345         doc: Update users.txt.
15346         * users.txt: Add recutils.
15347
15348 2011-01-09  Karl Berry  <karl@gnu.org>
15349
15350         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15351
15352         * doc/configmake.texi: New file.
15353         * doc/gnulib.texi: Include it.
15354         * modules/configmake: Move documentation from here.
15355
15356 2011-01-09  Bruno Haible  <bruno@clisp.org>
15357
15358         Update to Unicode 6.0.0.
15359         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15360         (get_lbp): Update for Unicode 6.0.0.
15361         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15362         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15363         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15364         U+11001, U+11038..U+11046. Remove U+06DE.
15365         (uc_width): Fix bounds of planes.
15366         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15367         lib/uniwidth/width.c.
15368         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15369         trailing whitespace removed.
15370         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15371         without comments, but with the original copyright notice.
15372         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15373         * lib/unicase/ignorable.h: Likewise.
15374         * lib/unicase/tocasefold.h: Likewise.
15375         * lib/unicase/tolower.h: Likewise.
15376         * lib/unicase/totitle.h: Likewise.
15377         * lib/unicase/toupper.h: Likewise.
15378         * lib/unictype/bidi_of.h: Likewise.
15379         * lib/unictype/blocks.h: Likewise.
15380         * lib/unictype/categ_C.h: Likewise.
15381         * lib/unictype/categ_Cn.h: Likewise.
15382         * lib/unictype/categ_L.h: Likewise.
15383         * lib/unictype/categ_Ll.h: Likewise.
15384         * lib/unictype/categ_Lm.h: Likewise.
15385         * lib/unictype/categ_Lo.h: Likewise.
15386         * lib/unictype/categ_Lu.h: Likewise.
15387         * lib/unictype/categ_M.h: Likewise.
15388         * lib/unictype/categ_Mc.h: Likewise.
15389         * lib/unictype/categ_Me.h: Likewise.
15390         * lib/unictype/categ_Mn.h: Likewise.
15391         * lib/unictype/categ_N.h: Likewise.
15392         * lib/unictype/categ_Nd.h: Likewise.
15393         * lib/unictype/categ_No.h: Likewise.
15394         * lib/unictype/categ_P.h: Likewise.
15395         * lib/unictype/categ_Po.h: Likewise.
15396         * lib/unictype/categ_S.h: Likewise.
15397         * lib/unictype/categ_Sc.h: Likewise.
15398         * lib/unictype/categ_Sk.h: Likewise.
15399         * lib/unictype/categ_Sm.h: Likewise.
15400         * lib/unictype/categ_So.h: Likewise.
15401         * lib/unictype/categ_of.h: Likewise.
15402         * lib/unictype/combining.h: Likewise.
15403         * lib/unictype/ctype_alnum.h: Likewise.
15404         * lib/unictype/ctype_alpha.h: Likewise.
15405         * lib/unictype/ctype_graph.h: Likewise.
15406         * lib/unictype/ctype_lower.h: Likewise.
15407         * lib/unictype/ctype_print.h: Likewise.
15408         * lib/unictype/ctype_punct.h: Likewise.
15409         * lib/unictype/ctype_upper.h: Likewise.
15410         * lib/unictype/decdigit.h: Likewise.
15411         * lib/unictype/digit.h: Likewise.
15412         * lib/unictype/numeric.h: Likewise.
15413         * lib/unictype/pr_alphabetic.h: Likewise.
15414         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15415         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15416         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15417         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15418         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15419         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15420         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15421         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15422         * lib/unictype/pr_case_ignorable.h: Likewise.
15423         * lib/unictype/pr_cased.h: Likewise.
15424         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15425         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15426         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15427         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15428         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15429         * lib/unictype/pr_combining.h: Likewise.
15430         * lib/unictype/pr_composite.h: Likewise.
15431         * lib/unictype/pr_currency_symbol.h: Likewise.
15432         * lib/unictype/pr_decimal_digit.h: Likewise.
15433         * lib/unictype/pr_deprecated.h: Likewise.
15434         * lib/unictype/pr_format_control.h: Likewise.
15435         * lib/unictype/pr_grapheme_base.h: Likewise.
15436         * lib/unictype/pr_grapheme_extend.h: Likewise.
15437         * lib/unictype/pr_grapheme_link.h: Likewise.
15438         * lib/unictype/pr_id_continue.h: Likewise.
15439         * lib/unictype/pr_id_start.h: Likewise.
15440         * lib/unictype/pr_ideographic.h: Likewise.
15441         * lib/unictype/pr_lowercase.h: Likewise.
15442         * lib/unictype/pr_math.h: Likewise.
15443         * lib/unictype/pr_numeric.h: Likewise.
15444         * lib/unictype/pr_other_alphabetic.h: Likewise.
15445         * lib/unictype/pr_other_id_continue.h: Likewise.
15446         * lib/unictype/pr_other_math.h: Likewise.
15447         * lib/unictype/pr_punctuation.h: Likewise.
15448         * lib/unictype/pr_sentence_terminal.h: Likewise.
15449         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15450         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15451         * lib/unictype/pr_unified_ideograph.h: Likewise.
15452         * lib/unictype/pr_uppercase.h: Likewise.
15453         * lib/unictype/pr_xid_continue.h: Likewise.
15454         * lib/unictype/pr_xid_start.h: Likewise.
15455         * lib/unictype/scripts.h: Likewise.
15456         * lib/unictype/scripts_byname.gperf: Likewise.
15457         * lib/unictype/sy_java_ident.h: Likewise.
15458         * lib/unigbrk/gbrkprop.h: Likewise.
15459         * lib/unilbrk/lbrkprop1.h: Likewise.
15460         * lib/unilbrk/lbrkprop2.h: Likewise.
15461         * lib/uninorm/decomposition-table2.h: Likewise.
15462         * lib/uniwbrk/wbrkprop.h: Likewise.
15463         * tests/unicase/test-cased.c: Likewise.
15464         * tests/unicase/test-ignorable.c: Likewise.
15465         * tests/unicase/test-uc_tolower.c: Likewise.
15466         * tests/unicase/test-uc_totitle.c: Likewise.
15467         * tests/unicase/test-uc_toupper.c: Likewise.
15468         * tests/unictype/test-categ_C.c: Likewise.
15469         * tests/unictype/test-categ_Cn.c: Likewise.
15470         * tests/unictype/test-categ_L.c: Likewise.
15471         * tests/unictype/test-categ_Ll.c: Likewise.
15472         * tests/unictype/test-categ_Lm.c: Likewise.
15473         * tests/unictype/test-categ_Lo.c: Likewise.
15474         * tests/unictype/test-categ_Lu.c: Likewise.
15475         * tests/unictype/test-categ_M.c: Likewise.
15476         * tests/unictype/test-categ_Mc.c: Likewise.
15477         * tests/unictype/test-categ_Me.c: Likewise.
15478         * tests/unictype/test-categ_Mn.c: Likewise.
15479         * tests/unictype/test-categ_N.c: Likewise.
15480         * tests/unictype/test-categ_Nd.c: Likewise.
15481         * tests/unictype/test-categ_No.c: Likewise.
15482         * tests/unictype/test-categ_P.c: Likewise.
15483         * tests/unictype/test-categ_Po.c: Likewise.
15484         * tests/unictype/test-categ_S.c: Likewise.
15485         * tests/unictype/test-categ_Sc.c: Likewise.
15486         * tests/unictype/test-categ_Sk.c: Likewise.
15487         * tests/unictype/test-categ_Sm.c: Likewise.
15488         * tests/unictype/test-categ_So.c: Likewise.
15489         * tests/unictype/test-ctype_alnum.c: Likewise.
15490         * tests/unictype/test-ctype_alpha.c: Likewise.
15491         * tests/unictype/test-ctype_graph.c: Likewise.
15492         * tests/unictype/test-ctype_lower.c: Likewise.
15493         * tests/unictype/test-ctype_print.c: Likewise.
15494         * tests/unictype/test-ctype_punct.c: Likewise.
15495         * tests/unictype/test-ctype_upper.c: Likewise.
15496         * tests/unictype/test-decdigit.h: Likewise.
15497         * tests/unictype/test-digit.h: Likewise.
15498         * tests/unictype/test-numeric.h: Likewise.
15499         * tests/unictype/test-pr_alphabetic.c: Likewise.
15500         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15501         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15502         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15503         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15504         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15505         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15506         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15507         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15508         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15509         * tests/unictype/test-pr_cased.c: Likewise.
15510         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15511         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15512         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15513         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15514         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15515         * tests/unictype/test-pr_combining.c: Likewise.
15516         * tests/unictype/test-pr_composite.c: Likewise.
15517         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15518         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15519         * tests/unictype/test-pr_deprecated.c: Likewise.
15520         * tests/unictype/test-pr_format_control.c: Likewise.
15521         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15522         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15523         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15524         * tests/unictype/test-pr_id_continue.c: Likewise.
15525         * tests/unictype/test-pr_id_start.c: Likewise.
15526         * tests/unictype/test-pr_ideographic.c: Likewise.
15527         * tests/unictype/test-pr_lowercase.c: Likewise.
15528         * tests/unictype/test-pr_math.c: Likewise.
15529         * tests/unictype/test-pr_numeric.c: Likewise.
15530         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15531         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15532         * tests/unictype/test-pr_other_math.c: Likewise.
15533         * tests/unictype/test-pr_punctuation.c: Likewise.
15534         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15535         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15536         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15537         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15538         * tests/unictype/test-pr_uppercase.c: Likewise.
15539         * tests/unictype/test-pr_xid_continue.c: Likewise.
15540         * tests/unictype/test-pr_xid_start.c: Likewise.
15541         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15542         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15543         changes.
15544         * lib/unictype/categ_Cc.h: Likewise.
15545         * lib/unictype/categ_Cf.h: Likewise.
15546         * lib/unictype/categ_Co.h: Likewise.
15547         * lib/unictype/categ_Cs.h: Likewise.
15548         * lib/unictype/categ_Lt.h: Likewise.
15549         * lib/unictype/categ_Nl.h: Likewise.
15550         * lib/unictype/categ_Pc.h: Likewise.
15551         * lib/unictype/categ_Pd.h: Likewise.
15552         * lib/unictype/categ_Pe.h: Likewise.
15553         * lib/unictype/categ_Pf.h: Likewise.
15554         * lib/unictype/categ_Pi.h: Likewise.
15555         * lib/unictype/categ_Ps.h: Likewise.
15556         * lib/unictype/categ_Z.h: Likewise.
15557         * lib/unictype/categ_Zl.h: Likewise.
15558         * lib/unictype/categ_Zp.h: Likewise.
15559         * lib/unictype/categ_Zs.h: Likewise.
15560         * lib/unictype/ctype_blank.h: Likewise.
15561         * lib/unictype/ctype_cntrl.h: Likewise.
15562         * lib/unictype/ctype_digit.h: Likewise.
15563         * lib/unictype/ctype_space.h: Likewise.
15564         * lib/unictype/ctype_xdigit.h: Likewise.
15565         * lib/unictype/mirror.h: Likewise.
15566         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15567         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15568         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15569         * lib/unictype/pr_bidi_control.h: Likewise.
15570         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15571         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15572         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15573         * lib/unictype/pr_bidi_pdf.h: Likewise.
15574         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15575         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15576         * lib/unictype/pr_dash.h: Likewise.
15577         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15578         * lib/unictype/pr_diacritic.h: Likewise.
15579         * lib/unictype/pr_extender.h: Likewise.
15580         * lib/unictype/pr_hex_digit.h: Likewise.
15581         * lib/unictype/pr_hyphen.h: Likewise.
15582         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15583         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15584         * lib/unictype/pr_ignorable_control.h: Likewise.
15585         * lib/unictype/pr_iso_control.h: Likewise.
15586         * lib/unictype/pr_join_control.h: Likewise.
15587         * lib/unictype/pr_left_of_pair.h: Likewise.
15588         * lib/unictype/pr_line_separator.h: Likewise.
15589         * lib/unictype/pr_logical_order_exception.h: Likewise.
15590         * lib/unictype/pr_non_break.h: Likewise.
15591         * lib/unictype/pr_not_a_character.h: Likewise.
15592         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15593         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15594         * lib/unictype/pr_other_id_start.h: Likewise.
15595         * lib/unictype/pr_other_lowercase.h: Likewise.
15596         * lib/unictype/pr_other_uppercase.h: Likewise.
15597         * lib/unictype/pr_paired_punctuation.h: Likewise.
15598         * lib/unictype/pr_paragraph_separator.h: Likewise.
15599         * lib/unictype/pr_pattern_syntax.h: Likewise.
15600         * lib/unictype/pr_pattern_white_space.h: Likewise.
15601         * lib/unictype/pr_private_use.h: Likewise.
15602         * lib/unictype/pr_quotation_mark.h: Likewise.
15603         * lib/unictype/pr_radical.h: Likewise.
15604         * lib/unictype/pr_soft_dotted.h: Likewise.
15605         * lib/unictype/pr_space.h: Likewise.
15606         * lib/unictype/pr_titlecase.h: Likewise.
15607         * lib/unictype/pr_variation_selector.h: Likewise.
15608         * lib/unictype/pr_white_space.h: Likewise.
15609         * lib/unictype/pr_zero_width.h: Likewise.
15610         * lib/unictype/sy_c_ident.h: Likewise.
15611         * lib/unictype/sy_c_whitespace.h: Likewise.
15612         * lib/unictype/sy_java_whitespace.h: Likewise.
15613         * lib/uninorm/composition-table.gperf: Likewise.
15614         * lib/uninorm/decomposition-table1.h: Likewise.
15615         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15616         LB8.
15617         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15618         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15619         * modules/unictype/*: Bump version number of expected libunistring
15620         version.
15621
15622 2011-01-09  Bruno Haible  <bruno@clisp.org>
15623
15624         Update to Unicode 5.2.0.
15625         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15626         trailing whitespace removed.
15627
15628 2011-01-09  Bruno Haible  <bruno@clisp.org>
15629
15630         New Unicode character properties, from Unicode 5.2.0.
15631         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15632         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15633         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15634         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15635         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15636         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15637         uc_is_property_cased, uc_is_property_case_ignorable,
15638         uc_is_property_changes_when_lowercased,
15639         uc_is_property_changes_when_uppercased,
15640         uc_is_property_changes_when_titlecased,
15641         uc_is_property_changes_when_casefolded,
15642         uc_is_property_changes_when_casemapped): New declarations.
15643         * lib/unictype/pr_byname.gperf: Add the new properties.
15644         * modules/unictype/property-byname (Depends-on): Depend on the new
15645         properties modules.
15646         * modules/unictype/property-all (Depends-on): Likewise.
15647         * MODULES.html.sh (Unicode string functions): Add
15648         unictype/property-case-ignorable, unictype/property-cased,
15649         unictype/property-changes-when-casefolded,
15650         unictype/property-changes-when-casemapped,
15651         unictype/property-changes-when-lowercased,
15652         unictype/property-changes-when-titlecased,
15653         unictype/property-changes-when-uppercased.
15654
15655         New module 'unictype/property-changes-when-casemapped'.
15656         * modules/unictype/property-changes-when-casemapped: New file.
15657         * lib/unictype/pr_changes_when_casemapped.c: New file.
15658         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15659         generated by gen-uni-tables.
15660         * modules/unictype/property-changes-when-casemapped-tests: New file.
15661         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15662         automatically generated by gen-uni-tables.
15663
15664         New module 'unictype/property-changes-when-casefolded'.
15665         * modules/unictype/property-changes-when-casefolded: New file.
15666         * lib/unictype/pr_changes_when_casefolded.c: New file.
15667         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15668         generated by gen-uni-tables.
15669         * modules/unictype/property-changes-when-casefolded-tests: New file.
15670         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15671         automatically generated by gen-uni-tables.
15672
15673         New module 'unictype/property-changes-when-titlecased'.
15674         * modules/unictype/property-changes-when-titlecased: New file.
15675         * lib/unictype/pr_changes_when_titlecased.c: New file.
15676         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15677         generated by gen-uni-tables.
15678         * modules/unictype/property-changes-when-titlecased-tests: New file.
15679         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15680         automatically generated by gen-uni-tables.
15681
15682         New module 'unictype/property-changes-when-uppercased'.
15683         * modules/unictype/property-changes-when-uppercased: New file.
15684         * lib/unictype/pr_changes_when_uppercased.c: New file.
15685         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15686         generated by gen-uni-tables.
15687         * modules/unictype/property-changes-when-uppercased-tests: New file.
15688         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15689         automatically generated by gen-uni-tables.
15690
15691         New module 'unictype/property-changes-when-lowercased'.
15692         * modules/unictype/property-changes-when-lowercased: New file.
15693         * lib/unictype/pr_changes_when_lowercased.c: New file.
15694         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15695         generated by gen-uni-tables.
15696         * modules/unictype/property-changes-when-lowercased-tests: New file.
15697         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15698         automatically generated by gen-uni-tables.
15699
15700         New module 'unictype/property-case-ignorable'.
15701         * modules/unictype/property-case-ignorable: New file.
15702         * lib/unictype/pr_case_ignorable.c: New file.
15703         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15704         by gen-uni-tables.
15705         * modules/unictype/property-case-ignorable-tests: New file.
15706         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15707         generated by gen-uni-tables.
15708
15709         New module 'unictype/property-cased'.
15710         * modules/unictype/property-cased: New file.
15711         * lib/unictype/pr_cased.c: New file.
15712         * lib/unictype/pr_cased.h: New file, automatically generated by
15713         gen-uni-tables.
15714         * modules/unictype/property-cased-tests: New file.
15715         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15716         gen-uni-tables.
15717
15718 2011-01-09  Bruno Haible  <bruno@clisp.org>
15719
15720         Update to Unicode 5.2.0.
15721         * lib/gen-uni-tables.c (output_predicate, output_category,
15722         output_combclass, output_bidi_category, output_decimal_digit_test,
15723         output_decimal_digit, output_digit_test, output_digit,
15724         output_numeric_test, output_numeric, output_mirror, output_scripts,
15725         output_scripts_byname, output_blocks, output_ident_category): Fix
15726         comment header.
15727         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15728         get_wbp.
15729         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15730         items.
15731         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15732         Changes_When_Lowercased, Changes_When_Uppercased,
15733         Changes_When_Titlecased, Changes_When_Casefolded,
15734         Changes_When_Casemapped.
15735         (is_property_alphabetic, is_property_default_ignorable_code_point):
15736         Update for Unicode 5.2.0.
15737         (is_property_cased, is_property_case_ignorable,
15738         is_property_changes_when_lowercased,
15739         is_property_changes_when_uppercased,
15740         is_property_changes_when_titlecased,
15741         is_property_changes_when_casefolded,
15742         is_property_changes_when_casemapped): New functions.
15743         (output_properties): Output also the properties cased, case_ignorable,
15744         changes_when_lowercased, changes_when_uppercased,
15745         changes_when_titlecased, changes_when_casefolded,
15746         changes_when_casemapped.
15747         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15748         Unicode TR#11 revision 17 -> 19.
15749         (LBP_CP): New enumeration value.
15750         (LBP_*): Adjust values accordingly.
15751         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15752         TR#14 revision 22 -> 24.
15753         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15754         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15755         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15756         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15757         is_WBP_MIDLETTER.
15758         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15759         the code1 and code2 of each composition rule.
15760         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15761         * lib/unicase/ignorable.h: Likewise.
15762         * lib/unicase/tocasefold.h: Likewise.
15763         * lib/unicase/tolower.h: Likewise.
15764         * lib/unicase/totitle.h: Likewise.
15765         * lib/unicase/toupper.h: Likewise.
15766         * lib/unictype/bidi_of.h: Likewise.
15767         * lib/unictype/blocks.h: Likewise.
15768         * lib/unictype/categ_C.h: Likewise.
15769         * lib/unictype/categ_Cf.h: Likewise.
15770         * lib/unictype/categ_Cn.h: Likewise.
15771         * lib/unictype/categ_L.h: Likewise.
15772         * lib/unictype/categ_Ll.h: Likewise.
15773         * lib/unictype/categ_Lm.h: Likewise.
15774         * lib/unictype/categ_Lo.h: Likewise.
15775         * lib/unictype/categ_Lu.h: Likewise.
15776         * lib/unictype/categ_M.h: Likewise.
15777         * lib/unictype/categ_Mc.h: Likewise.
15778         * lib/unictype/categ_Mn.h: Likewise.
15779         * lib/unictype/categ_N.h: Likewise.
15780         * lib/unictype/categ_Nd.h: Likewise.
15781         * lib/unictype/categ_Nl.h: Likewise.
15782         * lib/unictype/categ_No.h: Likewise.
15783         * lib/unictype/categ_P.h: Likewise.
15784         * lib/unictype/categ_Pd.h: Likewise.
15785         * lib/unictype/categ_Po.h: Likewise.
15786         * lib/unictype/categ_S.h: Likewise.
15787         * lib/unictype/categ_Sc.h: Likewise.
15788         * lib/unictype/categ_So.h: Likewise.
15789         * lib/unictype/categ_of.h: Likewise.
15790         * lib/unictype/combining.h: Likewise.
15791         * lib/unictype/ctype_alnum.h: Likewise.
15792         * lib/unictype/ctype_alpha.h: Likewise.
15793         * lib/unictype/ctype_graph.h: Likewise.
15794         * lib/unictype/ctype_lower.h: Likewise.
15795         * lib/unictype/ctype_print.h: Likewise.
15796         * lib/unictype/ctype_punct.h: Likewise.
15797         * lib/unictype/ctype_upper.h: Likewise.
15798         * lib/unictype/decdigit.h: Likewise.
15799         * lib/unictype/digit.h: Likewise.
15800         * lib/unictype/numeric.h: Likewise.
15801         * lib/unictype/pr_alphabetic.h: Likewise.
15802         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15803         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15804         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15805         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15806         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15807         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15808         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15809         * lib/unictype/pr_combining.h: Likewise.
15810         * lib/unictype/pr_composite.h: Likewise.
15811         * lib/unictype/pr_currency_symbol.h: Likewise.
15812         * lib/unictype/pr_dash.h: Likewise.
15813         * lib/unictype/pr_decimal_digit.h: Likewise.
15814         * lib/unictype/pr_deprecated.h: Likewise.
15815         * lib/unictype/pr_diacritic.h: Likewise.
15816         * lib/unictype/pr_extender.h: Likewise.
15817         * lib/unictype/pr_grapheme_base.h: Likewise.
15818         * lib/unictype/pr_grapheme_extend.h: Likewise.
15819         * lib/unictype/pr_grapheme_link.h: Likewise.
15820         * lib/unictype/pr_id_continue.h: Likewise.
15821         * lib/unictype/pr_id_start.h: Likewise.
15822         * lib/unictype/pr_ideographic.h: Likewise.
15823         * lib/unictype/pr_ignorable_control.h: Likewise.
15824         * lib/unictype/pr_logical_order_exception.h: Likewise.
15825         * lib/unictype/pr_lowercase.h: Likewise.
15826         * lib/unictype/pr_numeric.h: Likewise.
15827         * lib/unictype/pr_other_alphabetic.h: Likewise.
15828         * lib/unictype/pr_punctuation.h: Likewise.
15829         * lib/unictype/pr_sentence_terminal.h: Likewise.
15830         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15831         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15832         * lib/unictype/pr_unified_ideograph.h: Likewise.
15833         * lib/unictype/pr_uppercase.h: Likewise.
15834         * lib/unictype/pr_xid_continue.h: Likewise.
15835         * lib/unictype/pr_xid_start.h: Likewise.
15836         * lib/unictype/pr_zero_width.h: Likewise.
15837         * lib/unictype/scripts.h: Likewise.
15838         * lib/unictype/scripts_byname.gperf: Likewise.
15839         * lib/unictype/sy_java_ident.h: Likewise.
15840         * lib/unigbrk/gbrkprop.h: Likewise.
15841         * lib/unilbrk/lbrkprop1.h: Likewise.
15842         * lib/unilbrk/lbrkprop2.h: Likewise.
15843         * lib/unilbrk/lbrktables.h: Likewise.
15844         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15845         LBP_CP. Implement rule LB30.
15846         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15847         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15848         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15849         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15850         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15851         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15852         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15853         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15854         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15855         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15856         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15857         bits instead of 16 bits in the code1 and code2 of each composition
15858         rule.
15859         (uc_composition): Update for Unicode 5.2.0.
15860         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15861         * lib/uninorm/decomposition-table2.h: Likewise.
15862         * lib/uniwbrk/wbrkprop.h: Likewise.
15863         * tests/unicase/test-cased.c: Likewise.
15864         * tests/unicase/test-ignorable.c: Likewise.
15865         * tests/unicase/test-uc_tolower.c: Likewise.
15866         * tests/unicase/test-uc_totitle.c: Likewise.
15867         * tests/unicase/test-uc_toupper.c: Likewise.
15868         * tests/unictype/test-categ_C.c: Likewise.
15869         * tests/unictype/test-categ_Cf.c: Likewise.
15870         * tests/unictype/test-categ_Cn.c: Likewise.
15871         * tests/unictype/test-categ_L.c: Likewise.
15872         * tests/unictype/test-categ_Ll.c: Likewise.
15873         * tests/unictype/test-categ_Lm.c: Likewise.
15874         * tests/unictype/test-categ_Lo.c: Likewise.
15875         * tests/unictype/test-categ_Lu.c: Likewise.
15876         * tests/unictype/test-categ_M.c: Likewise.
15877         * tests/unictype/test-categ_Mc.c: Likewise.
15878         * tests/unictype/test-categ_Mn.c: Likewise.
15879         * tests/unictype/test-categ_N.c: Likewise.
15880         * tests/unictype/test-categ_Nd.c: Likewise.
15881         * tests/unictype/test-categ_Nl.c: Likewise.
15882         * tests/unictype/test-categ_No.c: Likewise.
15883         * tests/unictype/test-categ_P.c: Likewise.
15884         * tests/unictype/test-categ_Pd.c: Likewise.
15885         * tests/unictype/test-categ_Po.c: Likewise.
15886         * tests/unictype/test-categ_S.c: Likewise.
15887         * tests/unictype/test-categ_Sc.c: Likewise.
15888         * tests/unictype/test-categ_So.c: Likewise.
15889         * tests/unictype/test-ctype_alnum.c: Likewise.
15890         * tests/unictype/test-ctype_alpha.c: Likewise.
15891         * tests/unictype/test-ctype_graph.c: Likewise.
15892         * tests/unictype/test-ctype_lower.c: Likewise.
15893         * tests/unictype/test-ctype_print.c: Likewise.
15894         * tests/unictype/test-ctype_punct.c: Likewise.
15895         * tests/unictype/test-ctype_upper.c: Likewise.
15896         * tests/unictype/test-decdigit.h: Likewise.
15897         * tests/unictype/test-digit.h: Likewise.
15898         * tests/unictype/test-numeric.h: Likewise.
15899         * tests/unictype/test-pr_alphabetic.c: Likewise.
15900         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15901         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15902         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15903         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15904         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15905         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15906         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15907         * tests/unictype/test-pr_combining.c: Likewise.
15908         * tests/unictype/test-pr_composite.c: Likewise.
15909         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15910         * tests/unictype/test-pr_dash.c: Likewise.
15911         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15912         * tests/unictype/test-pr_deprecated.c: Likewise.
15913         * tests/unictype/test-pr_diacritic.c: Likewise.
15914         * tests/unictype/test-pr_extender.c: Likewise.
15915         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15916         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15917         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15918         * tests/unictype/test-pr_id_continue.c: Likewise.
15919         * tests/unictype/test-pr_id_start.c: Likewise.
15920         * tests/unictype/test-pr_ideographic.c: Likewise.
15921         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15922         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15923         * tests/unictype/test-pr_lowercase.c: Likewise.
15924         * tests/unictype/test-pr_numeric.c: Likewise.
15925         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15926         * tests/unictype/test-pr_punctuation.c: Likewise.
15927         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15928         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15929         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15930         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15931         * tests/unictype/test-pr_uppercase.c: Likewise.
15932         * tests/unictype/test-pr_xid_continue.c: Likewise.
15933         * tests/unictype/test-pr_xid_start.c: Likewise.
15934         * tests/unictype/test-pr_zero_width.c: Likewise.
15935         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15936         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15937         changed behaviour: line breaking is now disallowed between a letter
15938         or '=' and '('.
15939         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15940         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15941         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15942         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15943         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15944         lib/uniwidth/width.c.
15945         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15946         without comments, but with the original copyright notice.
15947         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15948         changes.
15949         * lib/unictype/categ_Cc.h: Likewise.
15950         * lib/unictype/categ_Co.h: Likewise.
15951         * lib/unictype/categ_Cs.h: Likewise.
15952         * lib/unictype/categ_Lt.h: Likewise.
15953         * lib/unictype/categ_Me.h: Likewise.
15954         * lib/unictype/categ_Pc.h: Likewise.
15955         * lib/unictype/categ_Pe.h: Likewise.
15956         * lib/unictype/categ_Pf.h: Likewise.
15957         * lib/unictype/categ_Pi.h: Likewise.
15958         * lib/unictype/categ_Ps.h: Likewise.
15959         * lib/unictype/categ_Sk.h: Likewise.
15960         * lib/unictype/categ_Sm.h: Likewise.
15961         * lib/unictype/categ_Z.h: Likewise.
15962         * lib/unictype/categ_Zl.h: Likewise.
15963         * lib/unictype/categ_Zp.h: Likewise.
15964         * lib/unictype/categ_Zs.h: Likewise.
15965         * lib/unictype/ctype_blank.h: Likewise.
15966         * lib/unictype/ctype_cntrl.h: Likewise.
15967         * lib/unictype/ctype_digit.h: Likewise.
15968         * lib/unictype/ctype_space.h: Likewise.
15969         * lib/unictype/ctype_xdigit.h: Likewise.
15970         * lib/unictype/mirror.h: Likewise.
15971         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15972         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15973         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15974         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15975         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15976         * lib/unictype/pr_bidi_control.h: Likewise.
15977         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15978         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15979         * lib/unictype/pr_bidi_pdf.h: Likewise.
15980         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15981         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15982         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15983         * lib/unictype/pr_format_control.h: Likewise.
15984         * lib/unictype/pr_hex_digit.h: Likewise.
15985         * lib/unictype/pr_hyphen.h: Likewise.
15986         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15987         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15988         * lib/unictype/pr_iso_control.h: Likewise.
15989         * lib/unictype/pr_join_control.h: Likewise.
15990         * lib/unictype/pr_left_of_pair.h: Likewise.
15991         * lib/unictype/pr_line_separator.h: Likewise.
15992         * lib/unictype/pr_math.h: Likewise.
15993         * lib/unictype/pr_non_break.h: Likewise.
15994         * lib/unictype/pr_not_a_character.h: Likewise.
15995         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15996         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15997         * lib/unictype/pr_other_id_continue.h: Likewise.
15998         * lib/unictype/pr_other_id_start.h: Likewise.
15999         * lib/unictype/pr_other_lowercase.h: Likewise.
16000         * lib/unictype/pr_other_math.h: Likewise.
16001         * lib/unictype/pr_other_uppercase.h: Likewise.
16002         * lib/unictype/pr_paired_punctuation.h: Likewise.
16003         * lib/unictype/pr_paragraph_separator.h: Likewise.
16004         * lib/unictype/pr_pattern_syntax.h: Likewise.
16005         * lib/unictype/pr_pattern_white_space.h: Likewise.
16006         * lib/unictype/pr_private_use.h: Likewise.
16007         * lib/unictype/pr_quotation_mark.h: Likewise.
16008         * lib/unictype/pr_radical.h: Likewise.
16009         * lib/unictype/pr_soft_dotted.h: Likewise.
16010         * lib/unictype/pr_space.h: Likewise.
16011         * lib/unictype/pr_titlecase.h: Likewise.
16012         * lib/unictype/pr_variation_selector.h: Likewise.
16013         * lib/unictype/pr_white_space.h: Likewise.
16014         * lib/unictype/sy_c_ident.h: Likewise.
16015         * lib/unictype/sy_c_whitespace.h: Likewise.
16016         * lib/unictype/sy_java_whitespace.h: Likewise.
16017         * modules/uni*/*: Bump version number of expected libunistring version.
16018         Reported by Simon Josefsson.
16019
16020 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16021
16022         useless-if-before-free: fix typo in --help and make the internal,
16023         automatic version date update process work once again.
16024         --help output contained a NUL character instead of the
16025         backslash-zero that was intended.  Also, the "must lie within
16026         the first 8 lines" line is on line 9, and hence not getting
16027         automatically updated.
16028         * build-aux/useless-if-before-free: Fix the former by adding a
16029         backslash, and the latter by condensing the three lines of what-it-does
16030         to a single line, leaving one line of slack for the future.
16031
16032 2011-01-09  Bruno Haible  <bruno@clisp.org>
16033
16034         uniwidth/width: Fix width of U+1D173..U+1D17A.
16035         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16036         symbolic_width, output_width_property_test): New functions.
16037         (main): Invoke output_nonspacing_property, output_width_property_test.
16038         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16039         U+1D173..U+1D17A.
16040         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16041         1.
16042         * modules/uniwidth/*: Bump version number of expected libunistring
16043         version.
16044         * modules/unilbrk/*: Likewise.
16045
16046 2011-01-08  Bruno Haible  <bruno@clisp.org>
16047
16048         uninorm tests: Preserve copyright of Unicode data file.
16049         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16050         Mention modifications.
16051
16052 2011-01-08  Bruno Haible  <bruno@clisp.org>
16053
16054         gen-uni-tables: Prepare for Unicode 5.2.0.
16055         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16056         (debug_output_lbp, output_lbp): Update.
16057
16058 2011-01-08  Bruno Haible  <bruno@clisp.org>
16059
16060         unilbrk: Clarify gen-uni-tables.c code.
16061         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16062         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16063         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16064
16065 2011-01-07  Bruno Haible  <bruno@clisp.org>
16066
16067         strtod: Restore errno when successfully parsing Infinity or NaN.
16068         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16069         restore the original errno.
16070
16071 2011-01-07  Bruno Haible  <bruno@clisp.org>
16072
16073         remove test: Avoid failure on HP-UX 11.
16074         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16075
16076 2011-01-07  Bruno Haible  <bruno@clisp.org>
16077
16078         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16079         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16080         error code.
16081
16082 2011-01-07  Pádraig Brady <P@draigBrady.com>
16083
16084         ignore-value: fixup comments, and add Eric Blake
16085         as an author since he rewrote the macros.
16086         * lib/ignore-value.h (ignore_value):  State that
16087         we now support aggregates.  Also specify exactly
16088         when the GCC warn_unused_result feature was added.
16089
16090 2011-01-06  Eric Blake  <eblake@redhat.com>
16091
16092         ignore-value: support aggregate types
16093         * lib/ignore-value.h (ignore_value): Provide separate gcc
16094         definition.
16095         * modules/ignore-value-tests: New test module.
16096         * tests/test-ignore-value.c: New test.
16097
16098         maint.mk: improve sc_prohibit_strcmp regex
16099         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16100         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16101         definition of STRNEQ.
16102
16103         signal: work around Haiku issue with SIGBUS
16104         * lib/siglist.h: Add comment.
16105         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16106         strsignal's favoring of SIGSEGV.
16107         * tests/test-signal.c (main): Avoid test failure.
16108         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16109         Reported by Scott McCreary.
16110
16111         maint.mk: add pre-release check to ensure submodule commits are public
16112         * top/maint.mk (public-submodule-commit): New rule.
16113         (submodule-checks): New variable.
16114         (alpha beta stable): Depend on the variable.
16115
16116 2011-01-05  Pádraig Brady <P@draigBrady.com>
16117         and Jim Meyering  <meyering@redhat.com>
16118
16119         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16120         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16121         (ATTRIBUTE_DEPRECATED): Define.
16122         (_ignore_case): New function.
16123         (ignore_value): New macro, to replace the old function.
16124         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16125         * modules/ignore-value (Depends-on): Add stdint.
16126
16127 2011-01-04  Eric Blake  <eblake@redhat.com>
16128
16129         doc: regenerate INSTALL
16130         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16131         @firstparagraphindent support, now that autoconf dropped it.
16132         (INSTALL_PRELUDE): Reinstate old macro.
16133         * doc/install.texi: Resync from autoconf.
16134         * doc/INSTALL: Reflect recent autoconf update.
16135         * doc/INSTALL.ISO: Likewise.
16136         * doc/INSTALL.UTF-8: Likewise.
16137         Reported by Karl Berry.
16138
16139 2011-01-04  Bruce Korb  <address@hidden>
16140
16141         git-version-gen: avoid a sub-shell
16142         * build-aux/git-version-gen: Redirect stderr in `...` via
16143         "exec 2>...", rather than via an added sub-shell.
16144
16145 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16146
16147         git-version-gen: use (...) rather than sh -c '...'
16148         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16149         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16150
16151 2011-01-03  Jim Meyering  <meyering@redhat.com>
16152
16153         git-version-gen: convert leading TABs to spaces
16154         * build-aux/git-version-gen: Expand leading TABs.
16155
16156         git-version-gen: handle failed "git rev-list"
16157         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16158         from git and proceeding as if it had succeeded but printed no SHA1
16159         checksums, suppress the diagnostic and handle the failure.
16160         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16161
16162         git-version-gen: include command name in one more diagnostic
16163         * build-aux/git-version-gen: When the required .tarball-version file
16164         was missing or unreadable, you might see the diagnostic from "cat",
16165         but no trace of the name of the invoking script.  Now, you still see
16166         the diagnostic from cat, but also get one from "git-version-gen: ".
16167         Inspired by a patch from Bruce Korb.
16168
16169         update-copyright: adjust test to match changed code
16170         * tests/test-update-copyright.sh: Change test's expected output
16171         to match new actual output.
16172
16173 2011-01-02  Bruno Haible  <bruno@clisp.org>
16174
16175         getlogin_r: Avoid test failure on HP-UX 11.
16176         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16177         ERANGE when the second argument is zero.
16178         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16179         portability problem.
16180
16181 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16182
16183         * build-aux/update-copyright: doc Simon's changes
16184
16185 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16186
16187         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16188         environment variable.
16189
16190 2011-01-02  Bruno Haible  <bruno@clisp.org>
16191
16192         unigbrk: Avoid gcc warnings.
16193         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16194         unused variable.
16195         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16196         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16197         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16198         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16199         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16200         Change type of first argument to 'const char *'.
16201         (main): Remove unused variable.
16202         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16203         type of first argument to 'const char *'.
16204         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16205         Likewise.
16206         (main): Change type of variable 's'.
16207         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16208         to 'int'.
16209
16210 2011-01-02  Bruno Haible  <bruno@clisp.org>
16211
16212         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16213         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16214         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16215         bug.
16216         * lib/pwrite.c: Undo 2010-12-31 patch.
16217         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16218
16219 2011-01-02  Bruno Haible  <bruno@clisp.org>
16220
16221         pread: Fix test whether it works.
16222         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16223
16224 2011-01-02  Bruno Haible  <bruno@clisp.org>
16225
16226         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16227         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16228         ends in "6". Don't require a specific month name. Try also the locale
16229         names found on HP-UX 11 and Solaris 7.
16230
16231 2011-01-02  Bruno Haible  <bruno@clisp.org>
16232
16233         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16234         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16235         C linkage.
16236         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16237
16238 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16239
16240         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16241         for consistency, since the "cluster" term is not used elsewhere.
16242         * lib/unigbrk.in.h: Update name.
16243         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16244         * lib/unigbrk/u16-grapheme-next.c: Update name.
16245         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16246         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16247         * lib/unigbrk/u32-grapheme-next.c: Update name.
16248         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16249         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16250         * lib/unigbrk/u8-grapheme-next.c: Update name.
16251         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16252         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16253         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16254         Suggested by Bruno Haible.
16255
16256 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16257
16258         Remove module 'u8-grapheme-len' as too redundant with
16259         'u8-grapheme-next'.
16260         * modules/unigbrk/u8-grapheme-len: Delete file.
16261         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16262         * lib/unigbrk.in.h: Remove prototype for deleted function.
16263         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16264         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16265
16266         Remove module 'u16-grapheme-len' as too redundant with
16267         'u16-grapheme-next'.
16268         * modules/unigbrk/u16-grapheme-len: Delete file.
16269         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16270         * lib/unigbrk.in.h: Remove prototype for deleted function.
16271         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16272         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16273
16274         Remove module 'u32-grapheme-len' as too redundant with
16275         'u32-grapheme-next'.
16276         * modules/unigbrk/u32-grapheme-len: Delete file.
16277         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16278         * lib/unigbrk.in.h: Remove prototype for deleted function.
16279         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16280         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16281
16282         Suggested by Bruno Haible.
16283
16284 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16285
16286         * unigbrk.in.h: Fix typo: "ben" => "been".
16287         Reported by Bruno Haible.
16288
16289 2011-01-01  Jim Meyering  <meyering@redhat.com>
16290
16291         maint: update almost all copyright ranges to include 2011
16292         Run the new "make update-copyright" rule.
16293
16294 2011-01-01  Jim Meyering  <meyering@redhat.com>
16295
16296         maint: update-copyright: exempt doc/INSTALL*
16297         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16298         since they are generated.  Suggested by Bruno Haible.
16299
16300 2011-01-01  Jim Meyering  <meyering@redhat.com>
16301
16302         maint: refine the update-copyright rule
16303         * Makefile (update-copyright): Also exclude any file that includes
16304         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16305         code that merely generates the comment.
16306
16307 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16308
16309         New module 'u8-grapheme-len'.
16310         * modules/unigbrk/u8-grapheme-len: New file.
16311         * modules/unigbrk/u8-grapheme-len-tests: New file.
16312         * lib/unigbrk.in.h: Add prototype for new function.
16313         * lib/unigbrk/u8-grapheme-len.c: New file.
16314         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16315
16316         New module 'u16-grapheme-len'.
16317         * modules/unigbrk/u16-grapheme-len: New file.
16318         * modules/unigbrk/u16-grapheme-len-tests: New file.
16319         * lib/unigbrk.in.h: Add prototype for new function.
16320         * lib/unigbrk/u16-grapheme-len.c: New file.
16321         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16322
16323         New module 'u32-grapheme-len'.
16324         * modules/unigbrk/u32-grapheme-len: New file.
16325         * modules/unigbrk/u32-grapheme-len-tests: New file.
16326         * lib/unigbrk.in.h: Add prototype for new function.
16327         * lib/unigbrk/u32-grapheme-len.c: New file.
16328         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16329
16330         New module 'u8-grapheme-next'.
16331         * modules/unigbrk/u8-grapheme-next: New file.
16332         * modules/unigbrk/u8-grapheme-next-tests: New file.
16333         * lib/unigbrk.in.h: Add prototype for new function.
16334         * lib/unigbrk/u8-grapheme-next.c: New file.
16335         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16336
16337         New module 'u16-grapheme-next'.
16338         * modules/unigbrk/u16-grapheme-next: New file.
16339         * modules/unigbrk/u16-grapheme-next-tests: New file.
16340         * lib/unigbrk.in.h: Add prototype for new function.
16341         * lib/unigbrk/u16-grapheme-next.c: New file.
16342         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16343
16344         New module 'u32-grapheme-next'.
16345         * modules/unigbrk/u32-grapheme-next: New file.
16346         * modules/unigbrk/u32-grapheme-next-tests: New file.
16347         * lib/unigbrk.in.h: Add prototype for new function.
16348         * lib/unigbrk/u32-grapheme-next.c: New file.
16349         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16350
16351         New module 'u8-grapheme-prev'.
16352         * modules/unigbrk/u8-grapheme-prev: New file.
16353         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16354         * lib/unigbrk.in.h: Add prototype for new function.
16355         * lib/unigbrk/u8-grapheme-prev.c: New file.
16356         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16357
16358         New module 'u16-grapheme-prev'.
16359         * modules/unigbrk/u16-grapheme-prev: New file.
16360         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16361         * lib/unigbrk.in.h: Add prototype for new function.
16362         * lib/unigbrk/u16-grapheme-prev.c: New file.
16363         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16364
16365         New module 'u32-grapheme-prev'.
16366         * modules/unigbrk/u32-grapheme-prev: New file.
16367         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16368         * lib/unigbrk.in.h: Add prototype for new function.
16369         * lib/unigbrk/u32-grapheme-prev.c: New file.
16370         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16371
16372         New module 'u8-grapheme-breaks'.
16373         * modules/unigbrk/u8-grapheme-breaks: New file.
16374         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16375         * lib/unigbrk.in.h: Add prototype for new function.
16376         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16377         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16378
16379         New module 'u16-grapheme-breaks'.
16380         * modules/unigbrk/u16-grapheme-breaks: New file.
16381         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16382         * lib/unigbrk.in.h: Add prototype for new function.
16383         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16384         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16385
16386         New module 'u32-grapheme-breaks'.
16387         * modules/unigbrk/u32-grapheme-breaks: New file.
16388         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16389         * lib/unigbrk.in.h: Add prototype for new function.
16390         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16391         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16392
16393         New module 'ulc-grapheme-breaks'.
16394         * modules/unigbrk/ulc-grapheme-breaks: New file.
16395         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16396         * m4/locale-ar.m4: New file.
16397         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16398         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16399         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16400
16401 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16402
16403         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16404         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16405         modified how this file was generated before I initially submitted
16406         the module, but failed to regenerate it.  This meant that several
16407         of the level2 entries were wrong.
16408         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16409         Remove the division-by-2 that is folded into the table now that
16410         gbrkprop.h has been regenerated properly.  Now -1 entries are
16411         handled correctly.
16412
16413         New module 'unigbrk/uc-gbrk-prop-tests'.
16414         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16415         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16416         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16417         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16418
16419 2011-01-01  Bruno Haible  <bruno@clisp.org>
16420
16421         Avoid use of hexadecimal escapes.
16422         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16423         instead of hexadecimal escapes.
16424
16425 2011-01-01  Jim Meyering  <meyering@redhat.com>
16426
16427         maint: new rule to update copyright year ranges
16428         * Makefile (update-copyright): New rule.
16429
16430         maint: indent with TABs in Makefile
16431         * Makefile: Expand leading sequences of spaces to TABs
16432
16433         version-etc: update the copyright year it reports
16434         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16435
16436 2010-12-31  Bruno Haible  <bruno@clisp.org>
16437
16438         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16439         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16440         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16441         zero.
16442
16443 2010-12-31  Bruno Haible  <bruno@clisp.org>
16444
16445         pwrite: Work around HP-UX 11.11 bug.
16446         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16447         works and set REPLACE_PWRITE if not.
16448         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16449         function.
16450         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16451
16452 2010-12-31  Bruno Haible  <bruno@clisp.org>
16453
16454         pread: Work around HP-UX 11 bugs.
16455         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16456         and set REPLACE_PREAD if not.
16457         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16458
16459 2010-12-31  Eric Blake  <eblake@redhat.com>
16460
16461         nl_langinfo: fix YESEXPR on Irix 6.5
16462         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16463         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16464         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16465         it.
16466
16467 2010-12-31  Bruno Haible  <bruno@clisp.org>
16468
16469         iconv: Document HP-UX 11 bug.
16470         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16471
16472 2010-12-31  Bruno Haible  <bruno@clisp.org>
16473
16474         ldexpl: Fix link error on HP-UX 11.
16475         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16476         LDEXPL_LIBM, using $ISNANL_LIBM.
16477
16478 2010-12-31  Eric Blake  <eblake@redhat.com>
16479
16480         ftello: avoid compilation failure with SunStudio c89
16481         * lib/ftello.c (ftello): Use lseek, not llseek.
16482
16483         tests: avoid failing coreutils tests on cygwin
16484         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16485         (create_exe_shims_): Return 0 when skipping.
16486
16487 2010-12-31  Bruno Haible  <bruno@clisp.org>
16488
16489         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16490         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16491
16492 2010-12-31  Bruno Haible  <bruno@clisp.org>
16493
16494         waitpid: Fix link error in C++ mode.
16495         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16496
16497 2010-12-31  Bruno Haible  <bruno@clisp.org>
16498
16499         isnan: Use GCC built-ins when possible.
16500         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16501         __builtin_isnan.
16502         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16503         (isnan): Define using GCC built-ins for GCC >= 4.0.
16504
16505 2010-12-31  Bruno Haible  <bruno@clisp.org>
16506
16507         isnand: Fix mistake.
16508         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16509         __builtin_isnand.
16510
16511 2010-12-31  Bruno Haible  <bruno@clisp.org>
16512
16513         open: Avoid C++ error on HP-UX 11.
16514         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16515
16516 2010-12-31  Bruno Haible  <bruno@clisp.org>
16517
16518         time_r: Add missing declarations on HP-UX 11.
16519         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16520         instead of HAVE_LOCALTIME_R.
16521         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16522         HAVE_LOCALTIME_R always.
16523         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16524         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16525         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16526         HAVE_LOCALTIME_R.
16527         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16528         * doc/posix-functions/localtime_r.texi: Likewise.
16529
16530 2010-12-29  Eric Blake  <eblake@redhat.com>
16531
16532         mountlist: tweak previous commit
16533         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16534         Reported by Paul Eggert.
16535
16536         mountlist: fix local drive detection on cygwin
16537         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16538         that works for cygwin.
16539
16540 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16541
16542         ftoastr, snprintf: ftoastr + snprintf module
16543         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16544         since the snprintf module now should be good enough here.
16545         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16546         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16547         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16548         GNULIB_SNPRINTF only for the test directory, and the latter
16549         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16550         seems to suffice by itself.
16551
16552 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16553
16554         alloca: one step towards thread-safety
16555         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16556         need for a static variable.  All callers changed.  This does not
16557         make the alloca replacement thread-safe, but it's one step.
16558
16559         tests: minor indenting change
16560         * tests/init.sh: Sync from coreutils housekeeping patch
16561         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16562         to keep lines within 80 columns.
16563
16564 2010-12-28  Jim Meyering  <meyering@redhat.com>
16565
16566         regex: don't infloop on persistent failing calloc
16567         * lib/regexec.c (build_trtable): Return failure indication upon
16568         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16569         In glibc, this was fixed for version 2.13:
16570         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16571
16572 2010-12-28  Bruno Haible  <bruno@clisp.org>
16573             Paul Eggert <eggert@cs.ucla.edu>
16574
16575         linkat: Make implementation robust against system behaviour variations.
16576         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16577         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16578         way, and to -2 if it needs a generic runtime test.
16579         * lib/linkat.c (solaris_optimized_link_immediate,
16580         solaris_optimized_link_follow): New functions.
16581         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16582         (check_same_link): Use it.
16583
16584 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16585
16586         New module 'unigbrk/base'.
16587         * modules/unigbrk/base: New file.
16588         * lib/unigbrk.in.h: New file.
16589
16590         New module 'unigbrk/uc-gbrk-prop'.
16591         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16592         * modules/unigbrk/uc-gbrk-prop: New file.
16593         * lib/unigbrk/gbrkprop.h: New file.
16594         * lib/unigbrk/uc-gbrk-prop.c: New file.
16595
16596         New module 'unigbrk/uc-is-grapheme-break'.
16597         * modules/unigbrk/uc-is-grapheme-break: New file.
16598         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16599         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16600         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16601         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16602         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16603
16604         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16605
16606 2010-12-27  Bruno Haible  <bruno@clisp.org>
16607
16608         linkat test: Avoid failure on Solaris 11 2010-11.
16609         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16610
16611 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16612
16613         utimens: work around glibc rounding bug on more platforms
16614         * lib/utimens.c (fdutimens): Work around rounding bug even if
16615         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16617
16618 2010-12-27  Bruno Haible  <bruno@clisp.org>
16619
16620         select tests: Improve comments.
16621         * tests/test-select.c (do_select): Add comments.
16622
16623 2010-12-27  Bruno Haible  <bruno@clisp.org>
16624
16625         select tests: Safer way of handling timeout.
16626         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16627         at every invocation.
16628
16629 2010-12-27  Bruno Haible  <bruno@clisp.org>
16630
16631         select tests: Use 'bool' where appropriate.
16632         * tests/test-select.c (connect_to_socket): Change argument type to
16633         'bool'.
16634
16635 2010-12-27  Bruno Haible  <bruno@clisp.org>
16636
16637         select tests: Use existing modules.
16638         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16639         (configure.ac): Don't test for unistd.h.
16640         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16641         declared in <unistd.h>.
16642
16643 2010-12-27  Bruno Haible  <bruno@clisp.org>
16644
16645         mbrtowc: Work around a Solaris 7 bug.
16646         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16647         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16648         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16649         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16650         MBRTOWC_NULL_ARG1_BUG.
16651         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16652         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16653         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16654         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16655
16656 2010-12-27  Jim Meyering  <meyering@redhat.com>
16657
16658         read-file.c: tweak syntax
16659         * lib/read-file.c (fread_file): Remove space after "*" in function
16660         definitions.
16661
16662 2010-12-27  Bruno Haible  <bruno@clisp.org>
16663
16664         times test: Avoid gcc warnings on OSF/1.
16665         * tests/test-times.c (main): Cast printf arguments from clock_t to
16666         'long int'.
16667
16668 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         utimens: work around glibc rounding bug on older Linux kernels
16671         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16672         on Linux with a glibc whose utimes might not work, then work
16673         around a longstanding glibc bug involving rounding rather than
16674         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16675         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16676
16677 2010-12-26  Bruno Haible  <bruno@clisp.org>
16678
16679         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16680         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16681         _GL_CXXALIAS_SYS.
16682         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16683
16684 2010-12-26  Bruno Haible  <bruno@clisp.org>
16685
16686         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16687         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16688         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16689         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16690         looking for the declaration.
16691         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16692         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16693         problem.
16694         * doc/posix-functions/inet_pton.texi: Likewise.
16695
16696 2010-12-26  Bruno Haible  <bruno@clisp.org>
16697
16698         arpa_inet: Use the common idioms with C++ support.
16699         * lib/arpa_inet.in.h: Include c++defs.h.
16700         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16701         support.
16702         * modules/arpa_inet (Depends-on): Add c++defs.
16703         (Makefile.am): Substitute the contents of c++defs.h.
16704         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16705         * modules/arpa_inet-c++-tests: New file.
16706         * tests/test-arpa_inet-c++.cc: New file.
16707
16708 2010-12-25  Bruno Haible  <bruno@clisp.org>
16709
16710         Fix more C++ link errors on Solaris 8.
16711         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16712         $(LIB_EACCESS).
16713         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16714         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16715         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16716         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16717         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16718
16719 2010-12-25  Bruno Haible  <bruno@clisp.org>
16720
16721         printf-posix: Fix link error when a non-GCC compiler is used.
16722         * lib/stdio.in.h (printf): When not using GCC, override printf
16723         correctly.
16724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16725
16726 2010-12-25  Bruno Haible  <bruno@clisp.org>
16727
16728         strerror_r-posix: Update doc.
16729         * doc/posix-functions/strerror_r.texi: Update doc about the return
16730         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16731
16732 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         utimens: simplify the logic of the previous change
16735         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16736         This should not affect whether the test succeeds or fails.
16737
16738         utimens: configure better on hosts with NFS clock skew
16739         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16740         uses the clock of the local host.  It might use the clock of the
16741         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16742         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16743
16744 2010-12-25  Bruno Haible  <bruno@clisp.org>
16745
16746         ptsname test: Avoid failure on Solaris.
16747         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16748         open a pseudo-terminal; don't use BSD-style ptys.
16749         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16750
16751 2010-12-25  Bruno Haible  <bruno@clisp.org>
16752
16753         ptsname: Avoid ERANGE failure on some systems.
16754         * lib/ptsname.c (buffer): Increase size.
16755
16756 2010-12-25  Bruno Haible  <bruno@clisp.org>
16757
16758         rename, renameat: Avoid test failures at NFS mounted locations.
16759         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16760         so that subsequent mkdir calls succeed.
16761
16762 2010-12-25  Bruno Haible  <bruno@clisp.org>
16763
16764         iswblank: Fix C++ link error on Solaris 8.
16765         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16766         _GL_FUNCDECL_SYS.
16767
16768 2010-12-25  Bruno Haible  <bruno@clisp.org>
16769
16770         unistd: Fix C++ link error on Solaris 8.
16771         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16772
16773 2010-12-25  Bruno Haible  <bruno@clisp.org>
16774
16775         readlink doc: Mention an old glibc bug.
16776         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16777
16778 2010-12-25  Bruno Haible  <bruno@clisp.org>
16779
16780         fcntl-h: Fix for use of C++ on glibc systems.
16781         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16782         also on glibc systems in C++ mode.
16783         Reported by Gary V. Vaughan <gary@gnu.org>.
16784
16785 2010-12-25  Bruno Haible  <bruno@clisp.org>
16786
16787         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16788         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16789
16790 2010-12-25  Bruno Haible  <bruno@clisp.org>
16791
16792         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16793         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16794         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16795         test whether truncl works according to ISO C 99 with IEC 60559.
16796         * m4/truncl-ieee.m4: New file.
16797         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16798         m4/signbit.m4.
16799         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16800
16801 2010-12-25  Bruno Haible  <bruno@clisp.org>
16802
16803         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16804         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16805         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16806         test whether ceill works according to ISO C 99 with IEC 60559.
16807         * m4/ceill-ieee.m4: New file.
16808         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16809         m4/signbit.m4.
16810         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16811
16812 2010-12-25  Bruno Haible  <bruno@clisp.org>
16813
16814         Ensure all prerequisites of <wchar.h> are included.
16815         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16816         before <wchar.h>.
16817         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16818         gl_MBRLEN_NUL_RETVAL): Likewise.
16819         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16820         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16821         AC_FUNC_MBRTOWC): Likewise.
16822         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16823         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16824         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16825         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16826         Likewise.
16827         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16828         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16829         (gl_WCHAR_H): Improve comments.
16830         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16831
16832 2010-12-25  Bruno Haible  <bruno@clisp.org>
16833
16834         strtok_r: Fix C syntax error in autoconf macro.
16835         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16836         characters in test program.
16837
16838 2010-12-24  Bruno Haible  <bruno@clisp.org>
16839
16840         ceil, trunc, round: Fix gcc warnings.
16841         * lib/ceil.c (MIN): Undefine before redefining.
16842         * lib/trunc.c (MIN): Likewise.
16843         * lib/round.c (MIN): Likewise.
16844         Include <math.h> first.
16845
16846 2010-12-24  Bruno Haible  <bruno@clisp.org>
16847
16848         select tests: Avoid failures on OSF/1 5.1.
16849         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16850         failure of closing the last socket; it may fail with ECONNRESET.
16851
16852 2010-12-24  Eric Blake  <eblake@redhat.com>
16853
16854         stdint: avoid HP-UX 10.20 preprocessor bug
16855         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16856         than #if.
16857         * tests/test-floor2.c (main): Likewise.
16858         Reported by Peter O'Gorman.
16859
16860         pipe: make obsoletion transition easier
16861         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16862         * modules/pipe (Files): Include revived file.
16863         (Include): Drop reference, to mirror getdate's behavior.
16864
16865 2010-12-24  Bruno Haible  <bruno@clisp.org>
16866
16867         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16868         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16869         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16870         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16871
16872 2010-12-24  Bruno Haible  <bruno@clisp.org>
16873
16874         gethostname: Ensure declaration on NonStop Kernel.
16875         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16876         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16877
16878 2010-12-24  Bruno Haible  <bruno@clisp.org>
16879
16880         sys_select: Ensure all necessary types on NonStop Kernel.
16881         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16882         include <sys/time.h>.
16883         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16884         NonStop Kernel.
16885         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16886
16887 2010-12-24  Bruno Haible  <bruno@clisp.org>
16888
16889         sys_select: Remove unneeded include.
16890         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16891         have <sys/select.h>.
16892
16893 2010-12-24  Bruno Haible  <bruno@clisp.org>
16894
16895         gethostname: Provide a fallback for HOST_NAME_MAX.
16896         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16897         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16898         instead.
16899         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16900
16901 2010-12-24  Bruno Haible  <bruno@clisp.org>
16902
16903         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16904         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16905         (SA_RESTART): Likewise.
16906         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16907
16908 2010-12-24  Bruno Haible  <bruno@clisp.org>
16909
16910         signal: Define NSIG.
16911         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16912         * tests/test-signal.c (nsig): New variable.
16913         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16914
16915 2010-12-24  Bruno Haible  <bruno@clisp.org>
16916
16917         rename, renameat: Avoid test failures on OSF/1 5.1.
16918         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16919         alternative error codes.
16920         * tests/test-renameat.c (main): Likewise.
16921
16922 2010-12-24  Bruno Haible  <bruno@clisp.org>
16923
16924         *printf: Detect large precisions bug on Solaris 10/SPARC.
16925         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16926         by Paul Eggert.
16927         * tests/test-snprintf-posix.h (test_function): Add this test code here
16928         too.
16929         * tests/test-sprintf-posix.h (test_function): Likewise.
16930         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16931         * tests/test-vasprintf-posix.c (test_function): Likewise.
16932         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16933         around by gnulib.
16934         * doc/posix-functions/printf.texi: Likewise.
16935         * doc/posix-functions/snprintf.texi: Likewise.
16936         * doc/posix-functions/sprintf.texi: Likewise.
16937         * doc/posix-functions/vfprintf.texi: Likewise.
16938         * doc/posix-functions/vprintf.texi: Likewise.
16939         * doc/posix-functions/vsnprintf.texi: Likewise.
16940         * doc/posix-functions/vsprintf.texi: Likewise.
16941         * doc/posix-functions/dprintf.texi: Undo last commit.
16942         * doc/posix-functions/vdprintf.texi: Likewise.
16943
16944 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16945
16946         tests: port test-fdutimensat.c to Solaris 8
16947         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16948         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16949         On Solaris 8, it fails with errno == ENOSYS, because there is no
16950         futimens (so it can't use the fd), and there is no lutimens (so it
16951         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16952
16953         vsnprintf: make more consistent with snprintf; doc fixes
16954
16955         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16956         the byte count return problem was promoted from the snprintf-posix
16957         to the snprintf module.
16958         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16959         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16960         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16961         * tests/test-snprintf.c (main): Check the byte count returned.
16962         * tests/test-vsnprintf.c (main): Likewise.
16963
16964 2010-12-23  Eric Blake  <eblake@redhat.com>
16965
16966         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16967         * modules/sigpipe (License): Relax license.
16968
16969 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16970
16971         doc: document Solaris printf bug with large float precisions
16972         * doc/posix-functions/dprintf.texi (dprintf):
16973         * doc/posix-functions/fprintf.texi (fprintf):
16974         * doc/posix-functions/printf.texi (printf):
16975         * doc/posix-functions/snprintf.texi (snprintf):
16976         * doc/posix-functions/sprintf.texi (sprintf):
16977         * doc/posix-functions/vdprintf.texi (vdprintf):
16978         * doc/posix-functions/vfprintf.texi (vfprintf):
16979         * doc/posix-functions/vprintf.texi (vprintf):
16980         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16981         * doc/posix-functions/vsprintf.texi (vsprintf):
16982         Mention that these functions mishandle large floating point
16983         precisions on Solaris 10.  The same bug is also present in Solaris
16984         8, and I assume earlier.  This causes "cd gnulib-tests; make
16985         check" to fail on Solaris 8 (and I assume, later) when building
16986         the latest coreutils, in test-vasprintf-posix's call to
16987         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16988         the wide flavors (e.g., wprintf) so this patch just updates the
16989         documentation for the narrow ones.
16990
16991         test-posixtm.c: add two tests
16992         * tests/test-posixtm.c: Add two tests, to highlight the
16993         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16994         around this bug; this is merely to document it.
16995
16996 2010-12-22  Bruno Haible  <bruno@clisp.org>
16997
16998         getlogin_r: Work around portability problem on OSF/1.
16999         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17000         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17001         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17002         test for a truncated result.
17003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17004         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17005         * modules/getlogin_r (Depends-on): Add memchr.
17006         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17007
17008 2010-12-22  Bruno Haible  <bruno@clisp.org>
17009
17010         ptsname: Avoid test failure on OSF/1 5.1.
17011         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17012         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17013         (same_slave): New function.
17014         (main): Use it to compare ptsname's result with the expected file name.
17015
17016 2010-12-22  Bruno Haible  <bruno@clisp.org>
17017
17018         Port extended stdio modules to HP NonStop Kernel.
17019         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17020         macros.
17021         * lib/fbufmode.c: Update comments.
17022         * lib/fflush.c: Likewise.
17023         * lib/fpurge.c: Likewise.
17024         * lib/freadable.c: Likewise.
17025         * lib/freadahead.c: Likewise.
17026         * lib/freading.c: Likewise.
17027         * lib/freadptr.c: Likewise.
17028         * lib/freadseek.c: Likewise.
17029         * lib/fseeko.c: Likewise.
17030         * lib/fseterr.c: Likewise.
17031         * lib/fwritable.c: Likewise.
17032         * lib/fwriting.c: Likewise.
17033         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17034
17035 2010-12-22  Bruno Haible  <bruno@clisp.org>
17036
17037         ttyname_r: Work around bug on OSF/1 5.1.
17038         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17039         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17040         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17041         present.
17042         * lib/ttyname_r.c (ttyname_r): Update comments.
17043
17044 2010-12-22  Bruno Haible  <bruno@clisp.org>
17045
17046         round: Implement result sign according to IEEE 754.
17047         * lib/round.c (MIN, MINUS_ZERO): New macros.
17048         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17049         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17050         * tests/test-round-ieee.c (main): Likewise.
17051         * tests/test-roundl-ieee.c (main): Likewise.
17052
17053         trunc: Implement result sign according to IEEE 754.
17054         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17055         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17056         * tests/test-trunc2.c: Include minus-zero.h.
17057         (MINUS_ZERO): New macro.
17058         (trunc_reference): Keep in sync with lib/trunc.c.
17059         * tests/test-truncf2.c: Include minus-zero.h.
17060         (MINUS_ZERO): New macro.
17061         (truncf_reference): Keep in sync with lib/trunc.c.
17062         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17063         * tests/test-trunc-ieee.c (main): Likewise.
17064         * tests/test-truncl-ieee.c (main): Likewise.
17065
17066         ceil: Implement result sign according to IEEE 754.
17067         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17068         (FUNC): Return -0.0 for -1 < x < 0.
17069         * tests/test-ceil2.c: Include minus-zero.h.
17070         (MINUS_ZERO): New macro.
17071         (ceil_reference): Keep in sync with lib/ceil.c.
17072         * tests/test-ceilf2.c: Include minus-zero.h.
17073         (MINUS_ZERO): New macro.
17074         (ceilf_reference): Keep in sync with lib/ceil.c.
17075         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17076         * tests/test-ceil-ieee.c (main): Likewise.
17077         * tests/test-ceill-ieee.c (main): Likewise.
17078
17079         floor: Implement result sign according to IEEE 754.
17080         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17081         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17082         * tests/test-floorf2.c (floorf_reference): Likewise.
17083         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17084         * tests/test-floor-ieee.c (main): Likewise.
17085         * tests/test-floorl-ieee.c (main): Likewise.
17086
17087 2010-12-22  Bruno Haible  <bruno@clisp.org>
17088
17089         getaddrinfo: Update doc.
17090         * doc/posix-functions/gai_strerror.texi: Return type is also different
17091         on AIX and HP-UX.
17092
17093 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17094
17095         getaddrinfo, inet_ntop: Update doc for Solaris.
17096         * doc/posix-functions/gai_strerror.texi: Return type is also an
17097         issue on Solaris 9 and earlier.
17098         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17099         on Solaris 10 and earlier.
17100
17101 2010-12-21  Bruno Haible  <bruno@clisp.org>
17102
17103         New module 'roundl-ieee'.
17104         * modules/roundl-ieee: New file.
17105         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17106         test whether roundl works according to ISO C 99 with IEC 60559.
17107         * m4/roundl-ieee.m4: New file.
17108         * modules/roundl-ieee-tests: New file.
17109         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17110         * tests/test-roundl.c (main): Remove signbit tests.
17111         * modules/roundl-tests (Depends-on): Remove signbit.
17112         * doc/posix-functions/roundl.texi: Mention the new module.
17113
17114 2010-12-21  Bruno Haible  <bruno@clisp.org>
17115
17116         New module 'truncl-ieee'.
17117         * modules/truncl-ieee: New file.
17118         * modules/truncl-ieee-tests: New file.
17119         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17120         * tests/test-truncl.c (main): Remove signbit tests.
17121         * modules/truncl-tests (Depends-on): Remove signbit.
17122         * doc/posix-functions/truncl.texi: Mention the new module.
17123
17124 2010-12-21  Bruno Haible  <bruno@clisp.org>
17125
17126         New module 'ceill-ieee'.
17127         * modules/ceill-ieee: New file.
17128         * modules/ceill-ieee-tests: New file.
17129         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17130         * tests/test-ceill.c (main): Remove signbit tests.
17131         * modules/ceill-tests (Depends-on): Remove signbit.
17132         * doc/posix-functions/ceill.texi: Mention the new module.
17133
17134 2010-12-21  Bruno Haible  <bruno@clisp.org>
17135
17136         New module 'floorl-ieee'.
17137         * modules/floorl-ieee: New file.
17138         * modules/floorl-ieee-tests: New file.
17139         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17140         * tests/test-floorl.c (main): Remove signbit tests.
17141         * modules/floorl-tests (Depends-on): Remove signbit.
17142         * doc/posix-functions/floorl.texi: Mention the new module.
17143
17144 2010-12-21  Bruno Haible  <bruno@clisp.org>
17145
17146         New module 'round-ieee'.
17147         * modules/round-ieee: New file.
17148         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17149         whether round works according to ISO C 99 with IEC 60559.
17150         * m4/round-ieee.m4: New file.
17151         * modules/round-ieee-tests: New file.
17152         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17153         * tests/test-round1.c (main): Remove signbit tests.
17154         * modules/round-tests (Depends-on): Remove 'signbit'.
17155         * doc/posix-functions/round.texi: Mention the new module.
17156
17157 2010-12-21  Bruno Haible  <bruno@clisp.org>
17158
17159         New module 'trunc-ieee'.
17160         * modules/trunc-ieee: New file.
17161         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17162         whether trunc works according to ISO C 99 with IEC 60559.
17163         * m4/trunc-ieee.m4: New file.
17164         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17166         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17167         * modules/trunc-ieee-tests: New file.
17168         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17169         * tests/test-trunc1.c (main): Remove signbit tests.
17170         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17171         * doc/posix-functions/trunc.texi: Mention the new module.
17172
17173 2010-12-21  Bruno Haible  <bruno@clisp.org>
17174
17175         New module 'ceil-ieee'.
17176         * modules/ceil-ieee: New file.
17177         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17178         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17179         ISO C 99 with IEC 60559.
17180         * m4/ceil-ieee.m4: New file.
17181         * modules/ceil (Files): Add lib/ceil.c.
17182         (Depends-on): Add 'float'.
17183         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17184         * lib/math.in.h (ceil): New declaration.
17185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17186         REPLACE_CEIL.
17187         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17188         * modules/ceil-ieee-tests: New file.
17189         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17190         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17191         * doc/posix-functions/ceil.texi: Mention the new module.
17192
17193 2010-12-21  Bruno Haible  <bruno@clisp.org>
17194
17195         New module 'floor-ieee'.
17196         * modules/floor-ieee: New file.
17197         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17198         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17199         ISO C 99 with IEC 60559.
17200         * m4/floor-ieee.m4: New file.
17201         * modules/floor (Files): Add lib/floor.c.
17202         (Depends-on): Add 'float'.
17203         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17204         * lib/math.in.h (floor): New declaration.
17205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17206         REPLACE_FLOOR.
17207         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17208         * modules/floor-ieee-tests: New file.
17209         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17210         * tests/test-math-c++.cc: Check the signature of 'floor'.
17211         * doc/posix-functions/floor.texi: Mention the new module.
17212
17213 2010-12-21  Bruno Haible  <bruno@clisp.org>
17214
17215         New module 'roundf-ieee'.
17216         * modules/roundf-ieee: New file.
17217         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17218         test whether roundf works according to ISO C 99 with IEC 60559.
17219         * m4/roundf-ieee.m4: New file.
17220         * modules/roundf-ieee-tests: New file.
17221         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17222         * tests/test-roundf1.c (main): Remove signbit tests.
17223         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17224         * doc/posix-functions/roundf.texi: Mention the new module.
17225
17226 2010-12-21  Bruno Haible  <bruno@clisp.org>
17227
17228         New module 'truncf-ieee'.
17229         * modules/truncf-ieee: New file.
17230         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17231         test whether truncf works according to ISO C 99 with IEC 60559.
17232         * m4/truncf-ieee.m4: New file.
17233         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17234         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17235         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17236         * modules/truncf-ieee-tests: New file.
17237         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17238         * tests/test-truncf1.c (main): Remove signbit tests.
17239         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17240         * doc/posix-functions/truncf.texi: Mention the new module.
17241
17242 2010-12-21  Bruno Haible  <bruno@clisp.org>
17243
17244         New module 'ceilf-ieee'.
17245         * modules/ceilf-ieee: New file.
17246         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17247         test whether ceilf works according to ISO C 99 with IEC 60559.
17248         * m4/ceilf-ieee.m4: New file.
17249         * modules/ceilf-ieee-tests: New file.
17250         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17251         * tests/test-ceilf1.c (main): Remove signbit tests.
17252         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17253         * doc/posix-functions/ceilf.texi: Mention the new module.
17254
17255 2010-12-21  Bruno Haible  <bruno@clisp.org>
17256
17257         New module 'floorf-ieee'.
17258         * modules/floorf-ieee: New file.
17259         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17260         test whether floorf works according to ISO C 99 with IEC 60559.
17261         * m4/floorf-ieee.m4: New file.
17262         * modules/floorf-ieee-tests: New file.
17263         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17264         * tests/test-floorf1.c (main): Remove signbit tests.
17265         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17266         * doc/posix-functions/floorf.texi: Mention the new module.
17267
17268 2010-12-21  Bruno Haible  <bruno@clisp.org>
17269
17270         Support for minus zero in autoconf macros.
17271         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17272         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17273         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17274         * tests/minus-zero.h: Update comments.
17275
17276 2010-12-21  Bruno Haible  <bruno@clisp.org>
17277
17278         Tests for module 'ceil'.
17279         * modules/ceil-tests: New file.
17280         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17281         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17282
17283 2010-12-21  Bruno Haible  <bruno@clisp.org>
17284
17285         Tests for module 'floor'.
17286         * modules/floor-tests: New file.
17287         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17288         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17289
17290 2010-12-21  Bruno Haible  <bruno@clisp.org>
17291
17292         math: Fix indentation.
17293         * lib/math.in.h (floorf): Fix indentation.
17294
17295 2010-12-21  Bruno Haible  <bruno@clisp.org>
17296
17297         Fix cross-compilation guesses on Solaris.
17298         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17299         not match "solaris2.10".
17300         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17301         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17302         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17303
17304 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17305
17306         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17307         This fixes a problem observed with the latest coreutils snapshot
17308         that caused a test to fail on Solaris 8.  src/csplit.c's call
17309         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17310         earlier, instead of returning the number of bytes that would have
17311         been generated; this causes csplit to incorrectly report memory
17312         exhaustion.
17313         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17314         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17315         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17316         comments to match.
17317         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17318         Fix typo in matching older versions of Solaris: "solaris2.10"
17319         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17320         only for guessing while cross-compiling.
17321         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17322
17323 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17324
17325         ftoastr: fix comment again
17326         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17327         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17328         Also, simplify example a bit by using flags = 0.
17329
17330 2010-12-20  Bruno Haible  <bruno@clisp.org>
17331
17332         round*, trunc*: Update documentation regarding glibc.
17333         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17334         * doc/posix-functions/round.texi: Likewise.
17335         * doc/posix-functions/roundl.texi: Likewise.
17336         * doc/posix-functions/truncf.texi: Likewise.
17337         * doc/posix-functions/trunc.texi: Likewise.
17338         * doc/posix-functions/truncl.texi: Likewise.
17339
17340 2010-12-20  Bruno Haible  <bruno@clisp.org>
17341
17342         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17343         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17344         * doc/posix-functions/round.texi: Likewise.
17345         * doc/posix-functions/roundl.texi: Likewise.
17346
17347 2010-12-20  Bruno Haible  <bruno@clisp.org>
17348
17349         ttyname_r: Add missing declaration on HP-UX 11.
17350         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17351         HAVE_TTYNAME_R.
17352         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17353         declared. Set HAVE_TTYNAME_R always.
17354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17355         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17356         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17357         HAVE_TTYNAME_R.
17358         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17359
17360 2010-12-20  Bruno Haible  <bruno@clisp.org>
17361
17362         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17363         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17364         * doc/posix-functions/getlogin_r.texi: Likewise.
17365         * tests/test-getlogin.c: Include <errno.h>.
17366         (main): Avoid test failure on HP-UX 11.11.
17367         * tests/test-getlogin_r.c (main): Likewise.
17368
17369 2010-12-20  Bruno Haible  <bruno@clisp.org>
17370
17371         getlogin_r: Add missing declaration on HP-UX 11.
17372         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17373         declared also when it exists as a function.
17374         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17375
17376 2010-12-20  Bruno Haible  <bruno@clisp.org>
17377
17378         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17379         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17380         through wcrtomb.
17381
17382 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17383
17384         ftoastr: fix comment
17385         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17386         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17387
17388 2010-12-19  Bruno Haible  <bruno@clisp.org>
17389
17390         isnan: Ensure it is a macro.
17391         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17392         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17393         Solaris.
17394
17395 2010-12-19  Bruno Haible  <bruno@clisp.org>
17396
17397         ldexpl test: Fix link error on OSF/1 5.1.
17398         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17399
17400 2010-12-19  Bruno Haible  <bruno@clisp.org>
17401
17402         wctype: Make it work in C++ mode on OSF/1 5.1.
17403         * lib/wctype.in.h (iswblank): Declare but not define here.
17404         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17405         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17406         * modules/wctype (Files): Add lib/iswblank.c.
17407
17408 2010-12-19  Bruno Haible  <bruno@clisp.org>
17409
17410         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17411         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17412         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17413
17414 2010-12-19  Bruno Haible  <bruno@clisp.org>
17415
17416         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17418         _POSIX_PII_SOCKET.
17419         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17420         * doc/posix-functions/recvfrom.texi: Likewise.
17421         * doc/posix-functions/send.texi: Likewise.
17422         * doc/posix-functions/sendto.texi: Likewise.
17423
17424 2010-12-19  Bruno Haible  <bruno@clisp.org>
17425
17426         tcgetsid: Add missing declaration on OSF/1 5.1.
17427         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17428         HAVE_TCGETSID.
17429         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17430         Don't set HAVE_TCGETSID.
17431         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17432         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17433         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17434         HAVE_TCGETSID.
17435         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17436
17437 2010-12-19  Bruno Haible  <bruno@clisp.org>
17438
17439         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17440         * lib/stdio.in.h: During the include_next statement, let recursive
17441         includes of this file include only the system header file.
17442
17443 2010-12-19  Bruno Haible  <bruno@clisp.org>
17444
17445         iconv_open: Fix regression from 2010-12-04.
17446         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17447         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17448
17449 2010-12-19  Bruno Haible  <bruno@clisp.org>
17450
17451         stdbool test: Avoid a gcc warning.
17452         * tests/test-stdbool.c (main): Fail if e1 is false.
17453         Reported by Jim Meyering.
17454
17455 2010-12-19  Jim Meyering  <meyering@redhat.com>
17456
17457         setenv: restore to working order
17458         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17459         mistakenly removed.
17460         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17461         HAVE_SETENV.
17462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17463         HAVE_SETENV.
17464
17465 2010-12-19  Bruno Haible  <bruno@clisp.org>
17466
17467         Document some different function declarations on OSF/1 5.1.
17468         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17469         * doc/posix-functions/inet_ntop.texi: Likewise.
17470         * doc/posix-functions/gethostname.texi: Likewise.
17471         * lib/unistd.in.h (gethostname): Update comment.
17472
17473 2010-12-19  Bruno Haible  <bruno@clisp.org>
17474
17475         doc: Mention vasprintf-posix module.
17476         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17477         the 'vasprintf-posix' module.
17478         * doc/glibc-functions/vasprintf.texi: Likewise.
17479
17480 2010-12-19  Bruno Haible  <bruno@clisp.org>
17481
17482         unsetenv: Add missing declaration on OSF/1 5.1.
17483         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17484         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17485         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17487         not HAVE_UNSETENV.
17488         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17489         HAVE_UNSETENV.
17490         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17491
17492 2010-12-19  Bruno Haible  <bruno@clisp.org>
17493
17494         setenv: Add missing declaration on OSF/1 5.1.
17495         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17496         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17497         declared. Don't set HAVE_SETENV.
17498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17499         not HAVE_SETENV.
17500         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17501         HAVE_SETENV.
17502         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17503
17504 2010-12-19  Bruno Haible  <bruno@clisp.org>
17505
17506         nl_langinfo tests: Avoid gcc warning.
17507         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17508
17509 2010-12-19  Bruno Haible  <bruno@clisp.org>
17510
17511         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17512         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17513         _GL_CXXALIAS_SYS.
17514
17515 2010-12-19  Bruno Haible  <bruno@clisp.org>
17516
17517         stdbool: Relax test.
17518         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17519         address to 'bool' work in static initializer, for compilers other than
17520         GCC.
17521
17522 2010-12-19  Bruno Haible  <bruno@clisp.org>
17523
17524         ftello: Add missing declaration on OSF/1 5.1.
17525         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17526         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17528         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17529         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17530
17531 2010-12-19  Bruno Haible  <bruno@clisp.org>
17532
17533         fseeko: Add missing declaration on OSF/1 5.1.
17534         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17535         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17537         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17538         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17539
17540 2010-12-19  Bruno Haible  <bruno@clisp.org>
17541
17542         fchdir: Add missing declaration on OSF/1 5.1.
17543         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17546         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17547         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17548
17549 2010-12-19  Bruno Haible  <bruno@clisp.org>
17550
17551         relocatable-prog-wrapper: Separate from relocatable-prog.
17552         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17553         uninstall-relocwrapper rule here.
17554         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17555         Reported by Ian Beckwith <ianb@erislabs.net>.
17556
17557 2010-12-19  Bruno Haible  <bruno@clisp.org>
17558
17559         unistr/u8-mbsnlen: Add missing dependency.
17560         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17561         Reported by Ian Beckwith <ianb@erislabs.net>.
17562
17563 2010-12-19  Bruno Haible  <bruno@clisp.org>
17564
17565         iconv: Make it possible again to use this module without 'iconv-h'.
17566         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17567         if it is not defined.
17568         Reported by Ian Beckwith <ianb@erislabs.net>.
17569
17570 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17571
17572         acl: port to Solaris 8 when copying from tmpfs to ufs
17573         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17574         error number.  Problem observed on Solaris 8 with latest
17575         coreutils, with "mv A B", where A is on a tmpfs file system and B
17576         is on a ufs file system.  This caused coreutils' mv/part-symlink
17577         test to fail.
17578
17579         tests: set fail=0 at start
17580         * tests/init.sh (setup_): Move fail=0 initialization here ...
17581         (mktempd_): ... from here, so that tests can rely on fail being
17582         set to 0 initially.  This fixes a problem in coreutils; see:
17583         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17584
17585 2010-12-18  Bruno Haible  <bruno@clisp.org>
17586
17587         memmem-simple: Stylistic changes.
17588         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17589         Fix preprocessor directive indentation.
17590
17591 2010-12-15  Pádraig Brady <P@draigBrady.com>
17592
17593         memmem, memmem-simple: reorganize and expand empty needle check
17594         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17595         functional checks to memmem-simple so that one has a fully functional
17596         memmem by using just this module.
17597         Restrict the performance only check to the memmem module.
17598         Also expand the empty needle check to ensure the correct
17599         pointer is returned, not just a non NULL pointer.
17600         * doc/glibc-functions/memmem.texi: Rearrange the portability
17601         documentation to correlate with the rearranged checks.
17602         Clarify exactly how the memmem and memmem-simple modules
17603         relate to each other.
17604
17605 2010-12-15  Pádraig Brady <P@draigBrady.com>
17606             Bruno Haible  <bruno@clisp.org>
17607
17608         Improve cross-compilation guesses for uClibc.
17609         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17610         that uClibc does not have the glibc bug.
17611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17612         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17613
17614 2010-12-14  Eric Blake  <eblake@redhat.com>
17615
17616         configmake: provide fallbacks for oldest supported autotools
17617         * m4/configmake.m4: New file.
17618         * modules/configmake (Files): Ship it.
17619         (configure.ac): Use it to guarantee fallbacks.
17620
17621 2010-12-13  Pádraig Brady <P@draigBrady.com>
17622
17623         read-file: Improve handling of large files
17624         * lib/read-file.c (fread_file): Minimize realloc()s
17625         for regular files, and better manage sizes around SIZE_MAX.
17626
17627 2010-12-13  Eric Blake  <eblake@redhat.com>
17628
17629         cloexec, fcntl: relax license
17630         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17631         consent from all contributors.
17632         * modules/fcntl (License): Likewise.
17633
17634 2010-12-10  Bruno Haible  <bruno@clisp.org>
17635
17636         Tests for module 'pipe-posix'.
17637         * modules/pipe-posix-tests: New file.
17638         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17639
17640 2010-12-10  Bruno Haible  <bruno@clisp.org>
17641
17642         pipe-posix: Make it work in C++ mode.
17643         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17644         (pipe): Use common idiom, not a macro definition.
17645         * lib/pipe.c: New file.
17646         * m4/pipe.m4: New file.
17647         * modules/pipe-posix (Description): Enhance.
17648         (Files): Add lib/pipe.c, m4/pipe.m4.
17649         (configure.ac): Invoke gl_FUNC_PIPE.
17650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17651         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17652         * tests/test-unistd-c++.cc: Check the signature of pipe.
17653
17654 2010-12-10  Bruno Haible  <bruno@clisp.org>
17655
17656         Rename module 'pipe' to 'spawn-pipe'.
17657         * modules/spawn-pipe: New file, renamed from modules/pipe.
17658         (Files, configure.ac, Makefile.am): Update.
17659         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17660         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17661         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17662         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17663         "spawn-pipe.h" instead of "pipe.h".
17664         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17665         to gl_SPAWN_PIPE.
17666         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17667         (Files, Makefile.am): Update.
17668         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17669         Update.
17670         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17671         Include "spawn-pipe.h" instead of "pipe.h".
17672         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17673         * lib/javacomp.c: Likewise.
17674         * lib/javaversion.c: Likewise.
17675         * lib/pipe-filter-gi.c: Likewise.
17676         * lib/pipe-filter-ii.c: Likewise.
17677         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17678         * modules/javacomp (Depends-on): Likewise.
17679         * modules/javaversion (Depends-on): Likewise.
17680         * modules/pipe-filter-gi (Depends-on): Likewise.
17681         * modules/pipe-filter-ii (Depends-on): Likewise.
17682         * MODULES.html.sh (Executing programs): Update.
17683         * NEWS: Mention the change.
17684
17685 2010-12-10  Eric Blake  <eblake@redhat.com>
17686
17687         pipe-posix: new module
17688         * modules/pipe-posix: New file.
17689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17690         (gl_UNISTD_H): Check for declaration.
17691         * modules/unistd (Makefile.am): Substitute it.
17692         * lib/unistd.in.h (pipe): Provide it for mingw.
17693         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17694         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17695
17696 2010-12-07  Bruno Haible  <bruno@clisp.org>
17697
17698         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17699         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17700         u8_strcmp_gnu.
17701         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17702
17703 2010-12-06  Bruno Haible  <bruno@clisp.org>
17704
17705         Update internal documentation.
17706         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17707
17708 2010-12-04  Bruno Haible  <bruno@clisp.org>
17709
17710         Put more information about failed tests into the test return codes.
17711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17712         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17713         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17714         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17715         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17716         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17717         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17718         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17719         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17721         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17722         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17723         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17724         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17725         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17726         returns a bit mask.
17727         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17728         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17729         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17730         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17731         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17732         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17733         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17735         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17736         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17737         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17738         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17739         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17740         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17741         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17742         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17743         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17744         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17745         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17746         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17747         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17748         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17750         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17751         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17752         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17753         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17754         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17755         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17756         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17757         gl_PRINTF_PRECISION): Likewise.
17758         * m4/regex.m4 (gl_REGEX): Likewise.
17759         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17760         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17761         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17762         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17764         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17766         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17767         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17768         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17769         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17770         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17771         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17772         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17773         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17774         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17775         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17776         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17778         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17779         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17780         enumerated value.
17781         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17782
17783 2010-12-04  Bruno Haible  <bruno@clisp.org>
17784
17785         Update for Solaris 11 2010-11.
17786         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17787         Express, released in November 2010.
17788
17789 2010-12-04  Bruno Haible  <bruno@clisp.org>
17790
17791         nproc: Relax license.
17792         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17793         and Paul Eggert.
17794         Requested by Ludovic Courtès <ludo@gnu.org>.
17795
17796 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17797
17798         utimecmp: fine-grained src to nearby coarse-grained dest
17799
17800         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17801         and the source is on a file system with higher-resolution time
17802         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17803         not work, and the time stamps are close together, the algorithm to
17804         determine the exact resolution from the read-back mtime was buggy:
17805         it had a "!=" where it should have had an "==".  This bug has been
17806         in the code ever since it was introduced to gnulib.
17807         Problem reported by Dan Jacobson in
17808         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17809
17810 2010-11-30  Bruno Haible  <bruno@clisp.org>
17811
17812         strerror_r-posix: Fix autoconf test.
17813         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17814
17815 2010-11-28  Bruno Haible  <bruno@clisp.org>
17816             Paul Eggert  <eggert@cs.ucla.edu>
17817
17818         Tests for module 'getdomainname'.
17819         * modules/getdomainname-tests: New file.
17820         * tests/test-getdomainname.c: New file, based on
17821         tests/test-gethostname.c.
17822
17823 2010-11-28  Bruno Haible  <bruno@clisp.org>
17824             Paul Eggert  <eggert@cs.ucla.edu>
17825
17826         getdomainname: Use the system function when possible.
17827         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17828         (getdomainname): Replace if needed. Provide the declaration if it is
17829         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17830         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17831         (getdomainname): When the system has getdomainname, call the system
17832         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17833         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17834         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17835         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17836         the function if its second argument is of type 'int' or if it is found
17837         in libnsl.
17838         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17839         <sys/systeminfo.h> and sysinfo().
17840         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17842         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17843         HAVE_GETDOMAINNAME.
17844         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17845         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17846         * doc/glibc-functions/getdomainname.texi: Document the problems with
17847         the getdomainname declaration.
17848
17849 2010-11-28  Bruno Haible  <bruno@clisp.org>
17850
17851         sys_socket: Ensure ss_family field on AIX.
17852         * lib/sys_socket.in.h (ss_family): New macro definition.
17853         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17854         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17855         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17856         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17857         * modules/sys_socket (Makefile.am): Substitute
17858         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17859         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17860
17861 2010-11-27  Bruno Haible  <bruno@clisp.org>
17862
17863         readline: Improve configure output.
17864         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17865         "checking for readline..." result understandable.
17866
17867 2010-11-27  Bruno Haible  <bruno@clisp.org>
17868
17869         *printf-posix: Detect a bug on Solaris 10/x86.
17870         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17871         for floating-point output.
17872         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17873         directive.
17874         * tests/test-snprintf-posix.h (test_function): Likewise.
17875         * tests/test-sprintf-posix.h (test_function): Likewise.
17876         * tests/test-vasprintf-posix.c (test_function): Likewise.
17877         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17878         * doc/posix-functions/printf.texi: Likewise.
17879         * doc/posix-functions/snprintf.texi: Likewise.
17880         * doc/posix-functions/sprintf.texi: Likewise.
17881         * doc/posix-functions/vfprintf.texi: Likewise.
17882         * doc/posix-functions/vprintf.texi: Likewise.
17883         * doc/posix-functions/vsnprintf.texi: Likewise.
17884         * doc/posix-functions/vsprintf.texi: Likewise.
17885         * doc/glibc-functions/obstack_printf.texi: Likewise.
17886         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17887
17888 2010-11-27  Bruno Haible  <bruno@clisp.org>
17889
17890         Fix link error when module libunistring-optional is in use.
17891         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17892         * modules/striconveha-tests (Makefile.am): Likewise.
17893
17894 2010-11-27  Bruno Haible  <bruno@clisp.org>
17895
17896         regex: Mention link dependencies.
17897         * modules/regex (Link): New section.
17898         * modules/rpmatch (Link): Likewise.
17899         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17900
17901 2010-11-27  Bruno Haible  <bruno@clisp.org>
17902
17903         ftoastr: Fix compilation error on Solaris.
17904         * lib/ftoastr.c: Include <config.h>.
17905
17906 2010-11-27  Bruno Haible  <bruno@clisp.org>
17907
17908         getloadavg: Update documentation.
17909         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17910
17911 2010-11-27  Bruno Haible  <bruno@clisp.org>
17912
17913         sys_socket: Fix test whether the functions are declared.
17914         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17915         not <sys/select.h>.
17916
17917 2010-11-27  Bruno Haible  <bruno@clisp.org>
17918
17919         getpass: Make sure to get system declaration on some platforms.
17920         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17921         gl_USE_SYSTEM_EXTENSIONS.
17922         * modules/getpass (Depends-on): Add extensions.
17923
17924 2010-11-26  Bruno Haible  <bruno@clisp.org>
17925
17926         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17927         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17928         'iconv' module is present.
17929         (ICONV_CONST): New macro.
17930         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17931         ICONV_CONST.
17932         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17933         set ICONV_CONST.
17934         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17935         here.
17936         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17937         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17938         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17939         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17940         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17941         present.
17942
17943 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17944
17945         ftoastr: comment fix
17946         * lib/ftoastr.c: "little" -> "little or no" in comment
17947
17948 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17949
17950         stdint: port to GCC 4.3 + OSX + Octave
17951         On this platform, stdint.h is buggy and defines int64_t to long
17952         long int.  The replacement defined it to long int, causing
17953         problems with C++ style name mangling.  Instead, trust the system
17954         definition if INT64_MAX is defined, and likewise for the unsigned
17955         variant.   Problem reported by Jarno Rajahalme in
17956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17957         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17958         and don't mess with int64_t and INT64_MAX in this case.
17959         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17960
17961 2010-11-24  Bruno Haible  <bruno@clisp.org>
17962
17963         doc: Corrections regarding MacOS X 10.4 and 10.5.
17964         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17965         MacOS X.
17966         Reported by Simon Josefsson.
17967
17968 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17969
17970         Uninstall ".bin" files installed by relocwrapper.
17971         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17972         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17973         unless it is already there.
17974
17975 2010-11-21  Bruno Haible  <bruno@clisp.org>
17976
17977         Update for NetBSD 5.0.
17978         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17979         NetBSD; the test fails on NetBSD 5.0.
17980         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17981         about NetBSD.
17982
17983 2010-11-21  Bruno Haible  <bruno@clisp.org>
17984
17985         Update for HP-UX 11.23 and HP-UX 11.31.
17986         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17987         HP-UX.
17988
17989 2010-11-21  Bruno Haible  <bruno@clisp.org>
17990
17991         Update for MacOS X 10.5.
17992         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17993         MacOS X; the test fails on MacOS X 10.5.8.
17994         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17995         about MacOS X.
17996
17997 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17998
17999         bootstrap: add bootstrap_sync option.
18000         See discussion at
18001         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18003         * build-aux/bootstrap: Accept --bootstrap-sync to update
18004         bootstrap if it is not identical to the local gnulib's
18005         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18006         enable this by default.  Accept --no-bootstrap-sync to disable
18007         it.
18008
18009 2010-11-20  Bruno Haible  <bruno@clisp.org>
18010
18011         Ensure that <features.h> is included before __GLIBC__ is tested.
18012         * lib/printf-parse.h: Include <features.h>.
18013         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18014         Reported by Mike Frysinger <vapier@gentoo.org>.
18015
18016         Ensure that <features.h> is included before __GLIBC__ is tested.
18017         * lib/wchar.in.h: Include <features.h>.
18018         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18019         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18020         Reported by Mike Frysinger <vapier@gentoo.org>.
18021
18022         Ensure that <features.h> is included before __GLIBC__ is tested.
18023         * lib/arpa_inet.in.h: Include <features.h>.
18024         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18025         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18026         Reported by Mike Frysinger <vapier@gentoo.org>.
18027
18028         Ensure that <features.h> is included before __GLIBC__ is tested.
18029         * build-aux/link-warning.h: Include <features.h>.
18030         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18031         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18032         Reported by Mike Frysinger <vapier@gentoo.org>.
18033
18034         Ensure that <features.h> is included before __GLIBC__ is tested.
18035         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18036         Reported by Mike Frysinger <vapier@gentoo.org>.
18037
18038 2010-11-20  Bruno Haible  <bruno@clisp.org>
18039
18040         memmem: Fix autoconf test.
18041         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18042
18043 2010-11-20  Bruno Haible  <bruno@clisp.org>
18044
18045         Port to uClibc.
18046         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18047         * lib/fcntl.in.h: Likewise.
18048         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18049         * lib/mbrtowc.c (mbrtowc): Likewise.
18050         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18051         * lib/strerror_r.c: Likewise.
18052         * lib/unistr/u8-strnlen.c: Likewise.
18053         * lib/vasnprintf.c (decimal_point_char): Likewise.
18054         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18055         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18056         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18057         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18058         * tests/test-sigaction.c (handler, main): Likewise.
18059         * lib/freading.h: Treat uClibc like a non-glibc platform.
18060         * lib/freading.c: Likewise.
18061         * lib/gettext.h: Likewise.
18062         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18063         Likewise.
18064         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18065         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18066         * lib/propername.c (proper_name_utf8): Likewise.
18067         * lib/spawn.in.h: Likewise.
18068         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18069         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18070         mem_cd_iconveh_internal): Likewise.
18071         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18072         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18073         strstr, strcasestr): Likewise.
18074         * lib/unicodeio.c (unicode_to_mb): Likewise.
18075         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18076         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18077         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18078         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18079         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18080         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18081         * lib/unistr/u8-stpncpy.c: Likewise.
18082         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18083         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18085         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18086         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18087         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18088         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18091         Likewise.
18092         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18093         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18094         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18096         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18097         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18098         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18099         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18100         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18101         * tests/test-striconveha.c (main): Likewise.
18102         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18103         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18104         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18105         * doc/posix-functions/getline.texi: Likewise.
18106         Reported by Mike Frysinger <vapier@gentoo.org>.
18107
18108 2010-11-20  Bruno Haible  <bruno@clisp.org>
18109
18110         nproc: Fix condition.
18111         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18112         HAVE_PTHREAD_AFFINITY_NP.
18113
18114 2010-11-20  Bruno Haible  <bruno@clisp.org>
18115
18116         Fix a comment.
18117         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18118
18119 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18120
18121         ftoastr: don't assume snprintf
18122         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18123         Implement a subset of snprintf here, by using sprintf safely.
18124         * modules/ftoastr (Depends-on): Remove snprintf.
18125
18126 2010-11-19  Jim Meyering  <meyering@redhat.com>
18127
18128         test-rename.h: fix compilation failure
18129         * tests/test-rename.h (test_rename): Add omitted "}".
18130
18131 2010-11-17  Jim Meyering  <meyering@redhat.com>
18132
18133         maint.mk: add a URL discussing the no-@acronym policy
18134         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18135
18136 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18137
18138         ftoastr: depend on snprintf, improve comments
18139         * lib/ftoastr.c: Also mention Loitsch's draft.
18140         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18141         needed in the current implementation, but it might simplify
18142         speeding up the code later.
18143         * modules/ftoastr: Depend on snprintf; this improves portability.
18144         Suggested by Bruno Haible in the same email.
18145
18146         ftoastr: port to hosts lacking strtof and strtold
18147         Problem reported by Bruno Haible in
18148         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18149         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18150         environment and strtold (and presumably strtof) are not available.
18151         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18152         (configure.ac): Require gl_C99_STRTOLD.
18153
18154 2010-11-18  Bruno Haible  <bruno@clisp.org>
18155
18156         c-strtold: Avoid link error on AIX 7.
18157         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18158         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18159         (gl_C_STRTOLD): Test whether strtold_l exists.
18160         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18161
18162 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18163
18164         intprops: new macro INT_BITS_STRLEN_BOUND
18165         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18166         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18167         not exposed.  Also, it uses a slightly tighter bound than before;
18168         though this makes no practical difference, we might as well be as
18169         tight as we easily can.
18170
18171         ftoastr: new module, for lossless conversion of floats to short strings
18172         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18173         * modules/ftoastr: New files.
18174
18175 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18176
18177         bootstrap: port to Solaris sed
18178         * build-aux/bootstrap (get_version): Port to Solaris sed.
18179         See Ralf Wildenhues's note in
18180         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18181
18182 2010-11-14  Jim Meyering  <meyering@redhat.com>
18183
18184         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18185         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18186         and move definition closer to sole use.
18187
18188 2010-11-13  Jim Meyering  <meyering@redhat.com>
18189
18190         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18191         Now we require at least autoconf-2.59, which means the work-around
18192         is no longer needed.
18193         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18194         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18195         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18196         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18197         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18198
18199 2010-11-13  Bruno Haible  <bruno@clisp.org>
18200
18201         rename, renameat: Avoid test failures at NFS mounted locations.
18202         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18203         functions.
18204         (test_rename): Use assert_nonexistent.
18205         * tests/test-rename.c: Include <dirent.h>.
18206         * tests/test-renameat.c: Likewise.
18207         Reported by Gary V. Vaughan <gary@gnu.org>.
18208
18209         rename, renameat: Document Linux bug with NFS
18210         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18211         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18212         * doc/posix-functions/renameat.texi: Likewise.
18213         Suggested by Eric Blake.
18214
18215 2010-11-13  Bruno Haible  <bruno@clisp.org>
18216
18217         rename test: Add comments.
18218         * tests/test-rename.h (test_rename): Add structure and comments.
18219
18220 2010-11-13  Eric Blake  <eblake@redhat.com>
18221
18222         maintainer-makefile: cover a few more files
18223         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18224         scripts generated within C files, for libvirt.
18225
18226 2010-11-13  Bruno Haible  <bruno@clisp.org>
18227
18228         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18229         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18230         character, return the number of bytes that belong together, not always
18231         1.
18232         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18233         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18234         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18235         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18236         number of bytes of an invalid character.
18237         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18238         (main): Invoke it.
18239         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18240         results.
18241         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18242         malformed byte sequences.
18243         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18244         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18245         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18246         Reported by Ben Pfaff and Paolo Bonzini.
18247
18248 2010-11-13  Bruno Haible  <bruno@clisp.org>
18249
18250         openat: Work around glibc bug with fchownat() and empty file names.
18251         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18252         (gl_FUNC_FCHOWNAT): Invoke it.
18253         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18254         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18255         Reported by Gary V. Vaughan <gary@gnu.org>.
18256
18257 2010-11-13  Bruno Haible  <bruno@clisp.org>
18258
18259         openat: Ensure autoconf macro ordering.
18260         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18261         gl_USE_SYSTEM_EXTENSIONS.
18262         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18263
18264 2010-11-13  Bruno Haible  <bruno@clisp.org>
18265
18266         Update comments.
18267         * lib/unistr/u8-check.c: Update file name in comments.
18268         * lib/unistr/u8-mblen.c: Likewise.
18269         * lib/unistr/u8-prev.c: Likewise.
18270         * lib/unistr/u8-strmblen.c: Likewise.
18271         * lib/unistr/u8-strmbtouc.c: Likewise.
18272
18273 2010-11-13  Jim Meyering  <meyering@redhat.com>
18274
18275         tests: avoid test failure on Solaris 10 due to lack of PATH export
18276         * tests/test-update-copyright.sh: Don't forget to export PATH.
18277
18278         init.sh: ensure that IFS is defined, just in case...
18279         * tests/init.sh (setup_): Ensure that IFS is defined,
18280         so that saving and restoring it works as expected.  This
18281         appears to be useful at least for an old version of dash
18282         from a long time ago (RH 6).  See here for details:
18283         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18284
18285         maint.mk: tighten "test a == b" check
18286         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18287         test to files that contain something like #!/bin/sh.
18288         Without this, coreutils would get two false positives in
18289         the comments of C source files.
18290
18291 2010-11-12  Eric Blake  <eblake@redhat.com>
18292
18293         bootstrap: fix typo in previous attempt
18294         * build-aux/bootstrap (buildreq): Correct the grouping.
18295         Reported by Paul Eggert.
18296
18297         maintainer-makefile: prohibit test x == x
18298         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18299         Based on a report by Matthias Bolte.
18300
18301         bootstrap: allow FreeBSD gzip
18302         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18303         which has no '.' and goes to stderr.
18304         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18305         Reported by Matthias Bolte.
18306
18307         maintainer-makefile: check for i18n setup
18308         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18309         will likely work.
18310
18311 2010-11-12  Bruno Haible  <bruno@clisp.org>
18312
18313         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18314         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18315         * lib/nanosleep.c (nanosleep): Likewise.
18316
18317 2010-11-11  Bruno Haible  <bruno@clisp.org>
18318
18319         fcntl-h: Fix for use of C++ on glibc systems.
18320         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18321         also on glibc systems in C++ mode.
18322         Reported by Gary V. Vaughan <gary@gnu.org>.
18323
18324 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18325
18326         mknod: avoid false failure with dash
18327         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18328
18329 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18330
18331         unlink: Fix "is it should" typo in diagnostic.
18332         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18334
18335 2010-11-11  Bruno Haible  <bruno@clisp.org>
18336
18337         Tests for module 'strerror_r-posix'.
18338         * modules/strerror_r-posix-tests: New file.
18339         * tests/test-strerror_r.c: New file.
18340         * tests/test-string-c++.cc: Check the signature of strerror_r.
18341
18342         New module 'strerror_r-posix'.
18343         * lib/string.in.h (strerror_r): New declaration.
18344         * lib/strerror_r.c: New file.
18345         * m4/strerror_r.m4: New file.
18346         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18347         of strerror_r.
18348         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18349         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18350         * modules/strerror_r-posix: New file.
18351         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18352         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18353         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18354         portability problems.
18355
18356 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18357
18358         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18359         line is also considered for output. Quoted function name in shell
18360         command, so temporary files for functions like MyClass::operator()
18361         are removed correctly without errors.
18362
18363 2010-11-09  Bruno Haible  <bruno@clisp.org>
18364
18365         * doc/posix-functions/strerror.texi: List more failing platforms.
18366
18367         * doc/posix-functions/strerror.texi: Add a comment.
18368
18369 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18370
18371         fdopendir: fix bug on MacOS X when low on file descriptors
18372
18373         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18374         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18375         All callers changed.
18376         (fdopendir): Invoke save_cwd at the top level, not after using
18377         multiple dup() calls to use up file descriptors.  Then retry
18378         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18379         less than the maximum number of open file descriptors, because
18380         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18381         on Mac OS X 10.6.4 for tar 1.24
18382         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18383         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18384         and for tar 1.25
18385         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18386
18387 2010-11-07  Bruno Haible  <bruno@clisp.org>
18388
18389         vasnprintf: Support I flag on glibc systems.
18390         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18391         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18392         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18393         snprintf function.
18394         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18395         glibc systems.
18396         * tests/test-vasnprintf-posix3.c: New file.
18397         * modules/vasnprintf-posix-tests (Files): Add it.
18398         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18399
18400 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18401
18402         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18403         * MODULES.html.sh: For compiler warnings, use name
18404         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18405
18406 2010-11-05  Eric Blake  <eblake@redhat.com>
18407
18408         ceil, floor: avoid spurious failure with icc
18409         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18410         [denormals-as-zero] when optimizing without -mieee-fp option.
18411         * tests/test-floorf2.c (floorf_reference): Likewise.
18412         * tests/test-ceilf1.c (dummy): New function.
18413         (main): Use it to outsmart icc's optimization.
18414         * tests/test-floorf1.c (dummy, main): Likewise.
18415
18416         tests: require working signbit
18417         * modules/ceilf-tests (Depends-on): Add signbit.
18418         * modules/ceill-tests (Depends-on): Likewise.
18419         * modules/floorf-tests (Depends-on): Likewise.
18420         * modules/floorl-tests (Depends-on): Likewise.
18421         * modules/round-tests (Depends-on): Likewise.
18422         * modules/roundf-tests (Depends-on): Likewise.
18423         * modules/roundl-tests (Depends-on): Likewise.
18424         * modules/trunc-tests (Depends-on): Likewise.
18425         * modules/truncf-tests (Depends-on): Likewise.
18426         * modules/truncl-tests (Depends-on): Likewise.
18427
18428         strtod: work around icc bug
18429         * lib/strtod.c (minus_zero): Define to working value.
18430         (strtod): Use it to avoid icc bug.
18431
18432         copysign: enhance tests
18433         * modules/copysign-tests (Files): Add minus-zero.h.
18434         * tests/test-copysign.c (main): Also test zeros.
18435
18436 2010-11-04  Eric Blake  <eblake@redhat.com>
18437
18438         ceil, floor, round, trunc: enhance tests of -0
18439         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18440         * tests/test-ceill.c (main): Likewise.
18441         * tests/test-floorf1.c (main): Likewise.
18442         * tests/test-floorl.c (main): Likewise.
18443         * tests/test-round1.c (main): Likewise.
18444         * tests/test-roundf1.c (main): Likewise.
18445         * tests/test-roundl.c (main): Likewise.
18446         * tests/test-trunc1.c (main): Likewise.
18447         * tests/test-truncf1.c (main): Likewise.
18448         * tests/test-truncl.c (main): Likewise.
18449
18450 2010-11-04  Eric Blake  <eblake@redhat.com>
18451
18452         frexp, tests: work around ICC bug with -zero
18453         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18454         works with more compilers.
18455         * tests/minus-zero.h: New file.
18456         * modules/ceilf-tests (Files): Include it.
18457         * modules/ceill-tests (Files): Likewise.
18458         * modules/floorf-tests (Files): Likewise.
18459         * modules/floorl-tests (Files): Likewise.
18460         * modules/frexp-nolibm-tests (Files): Likewise.
18461         * modules/frexp-tests (Files): Likewise.
18462         * modules/frexpl-nolibm-tests (Files): Likewise.
18463         * modules/frexpl-tests (Files): Likewise.
18464         * modules/isnan-tests (Files): Likewise.
18465         * modules/isnand-nolibm-tests (Files): Likewise.
18466         * modules/isnand-tests (Files): Likewise.
18467         * modules/isnanf-nolibm-tests (Files): Likewise.
18468         * modules/isnanf-tests (Files): Likewise.
18469         * modules/isnanl-nolibm-tests (Files): Likewise.
18470         * modules/isnanl-tests (Files): Likewise.
18471         * modules/round-tests (Files): Likewise.
18472         * modules/roundf-tests (Files): Likewise.
18473         * modules/roundl-tests (Files): Likewise.
18474         * modules/ldexpl-tests (Files): Likewise.
18475         * modules/signbit-tests (Files): Likewise.
18476         * modules/snprintf-posix-tests (Files): Likewise.
18477         * modules/sprintf-posix-tests (Files): Likewise.
18478         * modules/strtod-tests (Files): Likewise.
18479         * modules/trunc-tests (Files): Likewise.
18480         * modules/truncf-tests (Files): Likewise.
18481         * modules/truncl-tests (Files): Likewise.
18482         * modules/vsnprintf-posix-tests (Files): Likewise.
18483         * modules/vsprintf-posix-tests (Files): Likewise.
18484         * modules/vasnprintf-posix-tests (Files): Likewise.
18485         * modules/vasprintf-posix-tests (Files): Likewise.
18486         * tests/test-ceilf1.c (main): Use it.
18487         * tests/test-ceill.c (main): Likewise.
18488         * tests/test-floorf1.c (main): Likewise.
18489         * tests/test-floorl.c (main): Likewise.
18490         * tests/test-frexp.c (main): Likewise.
18491         * tests/test-frexpl.c (main): Likewise.
18492         * tests/test-isnan.c (main): Likewise.
18493         * tests/test-isnand.h (main): Likewise.
18494         * tests/test-isnanf.h (main): Likewise.
18495         * tests/test-isnanl.h (main): Likewise.
18496         * tests/test-ldexpl.c (main): Likewise.
18497         * tests/test-round.c (main): Likewise.
18498         * tests/test-roundf.c (main): Likewise.
18499         * tests/test-roundl.c (main): Likewise.
18500         * tests/test-signbit.c (test_signbitf, test_signbitd)
18501         (test_signbitl): Likewise.
18502         * tests/test-snprintf-posix.h (test_function): Likewise.
18503         * tests/test-sprintf-posix.h (test_function): Likewise.
18504         * tests/test-strtod.c (main): Likewise.
18505         * tests/test-trunc1.c (main): Likewise.
18506         * tests/test-truncf1.c (main): Likewise.
18507         * tests/test-truncl.c (main): Likewise.
18508
18509         isnanl: work around icc bug
18510         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18511
18512 2010-11-03  Eric Blake  <eblake@redhat.com>
18513
18514         tests: fix compiler warnings
18515         * tests/test-getopt.h (test_getopt): Fix condition.
18516         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18517         * tests/test-pipe2.c (main): Likewise.
18518         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18519
18520         utimens: fix broken m4 test
18521         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18522
18523 2010-10-28  Bruno Haible  <bruno@clisp.org>
18524
18525         posix_spawn*, getdtablesize: Relax license.
18526         * modules/posix_spawn (License): Change to LGPLv2+.
18527         * modules/posix_spawnp (License): Likewise.
18528         * modules/posix_spawn-internal (License): Likewise.
18529         * modules/posix_spawnattr_init (License): Likewise.
18530         * modules/posix_spawnattr_getflags (License): Likewise.
18531         * modules/posix_spawnattr_setflags (License): Likewise.
18532         * modules/posix_spawnattr_getpgroup (License): Likewise.
18533         * modules/posix_spawnattr_setpgroup (License): Likewise.
18534         * modules/posix_spawnattr_getschedparam (License): Likewise.
18535         * modules/posix_spawnattr_setschedparam (License): Likewise.
18536         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18537         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18538         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18539         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18540         * modules/posix_spawnattr_getsigmask (License): Likewise.
18541         * modules/posix_spawnattr_setsigmask (License): Likewise.
18542         * modules/posix_spawnattr_destroy (License): Likewise.
18543         * modules/posix_spawn_file_actions_init (License): Likewise.
18544         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18545         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18546         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18547         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18548         * modules/getdtablesize (License): Likewise.
18549         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18550
18551 2010-10-26  Bruno Haible  <bruno@clisp.org>
18552
18553         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18554         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18555         Cygwin and mingw.
18556         Suggested by Eric Blake.
18557
18558 2010-10-26  Bruno Haible  <bruno@clisp.org>
18559
18560         stdio: Work around compilation error due to renameat() on Solaris 10.
18561         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18562         * lib/renameat.c: Don't include <unistd.h> here.
18563         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18564         Reported by Paul Eggert and Eric Blake.
18565
18566 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18567
18568         renameat: port to Solaris 10, which declares renameat in unistd.h
18569
18570         * lib/renameat.c: Include unistd.h before stdio.h, because
18571         Solaris 10 declares renameat in unistd.h.  Problem encountered
18572         when building GNU tar 1.24 on Solaris 10.
18573
18574 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18575
18576         fdopendir: fix C89 compilation
18577         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18578         compilers.
18579
18580 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18581
18582         inttostr: simplify by removing unnecessary redundancy
18583         * lib/anytostr.c: Don't include verify.h.
18584         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18585         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18586         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18587         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18588         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18589         Likewise.
18590         * modules/inttostr (Depends-on): Remove 'verify'.
18591
18592 2010-10-23  Bruno Haible  <bruno@clisp.org>
18593
18594         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18595         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18596         Reported by Eric Blake.
18597
18598 2010-10-23  Bruno Haible  <bruno@clisp.org>
18599
18600         Tests: Fix LOCALE_JA on MirBSD 10.
18601         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18602         to an UTF-8 locale.
18603         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18604         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18605         Reported by Eric Blake.
18606
18607 2010-10-21  Bruno Haible  <bruno@clisp.org>
18608
18609         nl_langinfo test: Avoid test failure on NetBSD 5.
18610         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18611         Reported by Eric Blake.
18612
18613 2010-10-21  Eric Blake  <eblake@redhat.com>
18614
18615         c-stack: work around libsigsegv 2.8 bug
18616         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18617         overflow on at least PowerPC64.
18618
18619 2010-10-17  Bruno Haible  <bruno@clisp.org>
18620
18621         userspec: Drop redundant file.
18622         * modules/userspec (Files): Remove lib/inttostr.h.
18623
18624 2010-10-17  Bruno Haible  <bruno@clisp.org>
18625
18626         nl_langinfo tests: Silence some warnings.
18627         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18628         Reported by Jim Meyering.
18629
18630 2010-10-17  Bruno Haible  <bruno@clisp.org>
18631
18632         Make use of GCC's attribute __alloc_size__.
18633         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18634         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18635         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18636         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18637         __alloc_size__.
18638         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18639         Suggested by Jim Meyering.
18640
18641 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18642
18643         bootstrap: anchor .gitignore entries.
18644         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18645         with...
18646         (insert_vc_ignore): ... this new function, which prepends `/' to
18647         all .gitignore entries before passing them to
18648         insert_sorted_if_absent.
18649
18650 2010-10-16  Bruno Haible  <bruno@clisp.org>
18651
18652         nextafter: Fix configure check.
18653         * modules/nextafter (configure.ac): Correct expected prototype.
18654
18655 2010-10-16  Bruno Haible  <bruno@clisp.org>
18656
18657         termios: Update documentation.
18658         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18659
18660 2010-10-16  Bruno Haible  <bruno@clisp.org>
18661
18662         tests: Make them compile with TinyCC.
18663         * tests/test-strstr.c (main): Remove parentheses around array
18664         initializer.
18665
18666 2010-10-15  Eric Blake  <eblake@redhat.com>
18667
18668         ignore-value: make header idempotent
18669         * lib/ignore-value.h: Add double-inclusion guards.
18670         Reported by Stefan Berger.
18671
18672 2010-10-15  Jim Meyering  <meyering@redhat.com>
18673
18674         GNUmakefile: handle "stable" target, not "major"
18675         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18676         lists in maint.mk and announce-gen.  Without this, "make stable"
18677         would fail to ensure that $(VERSION) is up to date.
18678
18679 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18680
18681         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18682         & co.
18683
18684 2010-10-14  Bruno Haible  <bruno@clisp.org>
18685
18686         vasnprintf: Don't set errno to 0.
18687         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18688         block that sets it to 0.
18689         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18690
18691 2010-10-14  Bruno Haible  <bruno@clisp.org>
18692
18693         socketlib: Fix.
18694         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18695         gl_PREREQ_SYS_H_WINSOCK2.
18696         Reported by Ian Beckwith <ianb@erislabs.net>.
18697
18698 2010-10-13  Jim Meyering  <meyering@redhat.com>
18699
18700         test-select-stdin.c: avoid warn_unused_result warnings
18701         * tests/test-select-stdin.c: Include "macros.h".
18702         ASSERT that read and fflush succeed.
18703
18704 2010-10-13  Jim Meyering  <meyering@redhat.com>
18705
18706         git-version-gen: do require git-VC'd files in cwd
18707         * build-aux/git-version-gen: Reject a git version string
18708         if there are no commits associated with the current directory.
18709         This avoids an unlikely false-positive (unrelated dir whose parent
18710         repository also contains a tag matching v*), as pointed out
18711         by Giuseppe Scrivano in
18712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18713
18714 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18715
18716         argv-iter: omit nonconforming declaration
18717         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18718         enum arg_iter_err declaration, which doesn't conform to C99.
18719         Solaris 10 cc warns about this.
18720
18721 2010-10-13  Eric Blake  <eblake@redhat.com>
18722
18723         termios: fix compilation on mingw
18724         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18725         (gl_TERMIOS_H): Adjust it on mingw.
18726         * modules/termios (Makefile.am): Substitute new key.
18727         * lib/termios.in.h (includes): Make include_next conditional.
18728         * doc/posix-headers/termios.texi (termios.h): Update
18729         documentation.
18730         Reported by Daniel P. Berrange.
18731
18732 2010-10-13  Jim Meyering  <meyering@redhat.com>
18733
18734         git-version-gen: don't require that .git/ be in the current dir
18735         * build-aux/git-version-gen: Adjust this script so that it works
18736         when run from any working directory beneath the top-level .git/-
18737         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18738         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18739
18740         test-select: avoid warn_unused_result warnings
18741         * tests/test-select.c: Include "macros.h".
18742         ASSERT that each call to read, write, and pipe succeeds.
18743         While not technically required, also check each "close".
18744         * modules/select-tests (Files): Add tests/macros.h.
18745
18746         test-symlinkat: remove declaration of unused local
18747         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18748
18749         test-inttostr: avoid shadowing warnings
18750         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18751         and use malloc rather than the stack for the same reason as
18752         mentioned in the comment justifying the other allocation.
18753
18754 2010-10-11  Bruno Haible  <bruno@clisp.org>
18755
18756         stdlib: Allow multiple gnulib generated replacements to coexist.
18757         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18758         Reported by Sam Steingold <sds@gnu.org>.
18759
18760 2010-10-11  Jim Meyering  <meyering@redhat.com>
18761
18762         fix a documentation typo
18763         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18764
18765 2010-10-11  Eric Blake  <eblake@redhat.com>
18766
18767         futimens: work around Solaris 11 bug
18768         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18769         * tests/test-futimens.h (test_futimens): Enhance, rather than
18770         weaken test.
18771         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18772
18773 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18774
18775         Indentation.
18776         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18777         higher-level operators more to the left.
18778
18779 2010-10-11  Jim Meyering  <meyering@redhat.com>
18780
18781         test-futimens: avoid unwarranted test failure on Solaris 5.11
18782         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18783         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18784         because it tries to dereference the NULL name argument.
18785
18786 2010-10-11  Bruno Haible  <bruno@clisp.org>
18787
18788         Indentation.
18789         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18790         indentation.
18791
18792 2010-10-11  Jim Meyering  <meyering@redhat.com>
18793
18794         spawn.in.h: make indentation consistent with parentheses
18795         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18796         Make indentation consistent with parentheses.
18797
18798 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18799
18800         Fix mismatched parens in previous commit
18801         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18802         parens.
18803
18804 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18805
18806         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18807
18808         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18809         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18810         * lib/malloca.c: Include "verify.h".
18811         (verify1): Remove, replacing with a verify call.
18812         * lib/relocwrapper.c (verify1): Likewise.
18813         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18814         Likewise.
18815         * modules/malloca (Depends-on): Add 'verify'.
18816         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18817         * modules/vasnprintf (Depends-on): Add 'verify'.
18818         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18819         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18820         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18821         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18822         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18823         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18824         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18825
18826         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18827
18828         Formerly the style was sometimes 2*X - 1, because the C standard
18829         was wrongly thought to disallow ?: in integral constant expressions.
18830         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18831         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18832         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18833         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18834         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18835         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18836         verify that time_t cannot be floating.
18837
18838 2010-10-08  Eric Blake  <eblake@redhat.com>
18839
18840         time: enforce recent POSIX ruling that time_t is integral
18841         * lib/time.in.h (__time_t_must_be_integral): Detect any
18842         problematic systems, allowing the rest of gnulib to assume POSIX.
18843
18844 2010-10-08  Jim Meyering  <meyering@redhat.com>
18845
18846         fdopendir: fix a bug on systems lacking openat and /proc support
18847         OpenBSD 4.7 is one such system.  The most noticeable effect was
18848         failure of any application making nontrivial use of fts: rm, du,
18849         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18850           ./rm: traversal failed: `a': Bad file descriptor
18851         Debugging that, you see that even though FD 6 was closed just
18852         prior to the opendir call in fd_clone_opendir, its resulting
18853         dir->dd_fd was 8, rather than the expected value of 6:
18854
18855         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18856         93                close (fd);
18857         (gdb) n
18858         94                dir = fd_clone_opendir (dupfd);
18859         (gdb) n
18860         95                saved_errno = errno;
18861         (gdb) p dir->dd_fd
18862         $11 = 8
18863
18864         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18865         The problem is that on OpenBSD, fd_clone_opendir has to resort
18866         to using the old-style save/restore CWD mechanism, due to its
18867         lack of openat/proc support, and *that* would steal the FD (6)
18868         that opendir was supposed to use.
18869
18870         The fix is to squirrel away the desired FD so that save_cwd uses a
18871         different one, and then free the dest FD right before calling opendir.
18872         That guarantees opendir will use the required file descriptor.
18873
18874         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18875
18876 2010-10-08  Bruno Haible  <bruno@clisp.org>
18877
18878         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18879         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18880
18881 2010-10-08  Bruno Haible  <bruno@clisp.org>
18882
18883         nanosleep: Make replacement POSIX compliant.
18884         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18885         is out of range.
18886         Reported by Jim Meyering.
18887
18888 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18889
18890         bootstrap: add hook for altering gnulib.mk, for Bison
18891         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18892         the Bison bootstrapping process can rewrite file names and variables
18893         in this file before later parts of 'bootstrap' use the file.
18894         Bison wants to include lib/gnulib.mk from the top-level makefile,
18895         so it needs the file names in this file to be relative to the top
18896         level, not relative to lib; plus it needs variable names to be
18897         rewritten.
18898         (slurp): Use the new function.
18899
18900         bootstrap: reformat for readability
18901         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18902
18903 2010-10-08  Eric Blake  <eblake@redhat.com>
18904
18905         docs: update cygwin progress
18906         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18907         1.7.7.
18908         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18909         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18910         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18911         * doc/posix-functions/carg.texi (carg): Likewise.
18912         * doc/posix-functions/cargf.texi (cargf): Likewise.
18913         * doc/posix-functions/casin.texi (casin): Likewise.
18914         * doc/posix-functions/casinf.texi (casinf): Likewise.
18915         * doc/posix-functions/casinh.texi (casinh): Likewise.
18916         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18917         * doc/posix-functions/catan.texi (catan): Likewise.
18918         * doc/posix-functions/catanf.texi (catanf): Likewise.
18919         * doc/posix-functions/catanh.texi (catanh): Likewise.
18920         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18921         * doc/posix-functions/ccos.texi (ccos): Likewise.
18922         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18923         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18924         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18925         * doc/posix-functions/cexp.texi (cexp): Likewise.
18926         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18927         * doc/posix-functions/cimag.texi (cimag): Likewise.
18928         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18929         * doc/posix-functions/clog.texi (clog): Likewise.
18930         * doc/posix-functions/clogf.texi (clogf): Likewise.
18931         * doc/posix-functions/conj.texi (conj): Likewise.
18932         * doc/posix-functions/conjf.texi (conjf): Likewise.
18933         * doc/posix-functions/cpow.texi (cpow): Likewise.
18934         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18935         * doc/posix-functions/cproj.texi (cproj): Likewise.
18936         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18937         * doc/posix-functions/creal.texi (creal): Likewise.
18938         * doc/posix-functions/crealf.texi (crealf): Likewise.
18939         * doc/posix-functions/csin.texi (csin): Likewise.
18940         * doc/posix-functions/csinf.texi (csinf): Likewise.
18941         * doc/posix-functions/csinh.texi (csinh): Likewise.
18942         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18943         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18944         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18945         * doc/posix-functions/ctan.texi (ctan): Likewise.
18946         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18947         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18948         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18949         * doc/posix-headers/complex.texi (complex.h): Likewise.
18950
18951 2010-10-07  Jim Meyering  <meyering@redhat.com>
18952
18953         parse-datetime: avoid compilation failure on OpenBSD 4.7
18954         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18955         This works around a compilation failure on OpenBSD 4.7:
18956         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18957
18958 2010-10-07  Eric Blake  <eblake@redhat.com>
18959
18960         docs: update cygwin progress
18961         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18962         1.7.6.
18963         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18964         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18965         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18966         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18967         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18968         Likewise.
18969         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18970         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18971         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18972         Likewise.
18973         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18974         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18975         Likewise.
18976         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18977         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18978         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18979         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18980         Likewise.
18981         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18982         Likewise.
18983         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18984
18985         docs: update parse-datetime history
18986         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18987         documentation of this function's history and alternatives.
18988
18989         cygwin: use more robust version check
18990         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18991         exclude an eventual cygwin 1.9.1.
18992         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18994         (gl_FUNC_STRCASESTR): Likewise.
18995         Reported by Bruno Haible.
18996
18997 2010-10-06  Bruno Haible  <bruno@clisp.org>
18998
18999         string, sys_select: Avoid #including large headers unless necessary.
19000         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19001         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19002         OSF/1, BeOS, Haiku.
19003         Reported by Jim Meyering.
19004
19005 2010-10-05  Eric Blake  <eblake@redhat.com>
19006
19007         memmem, strstr, strcasestr: fix bug with long periodic needle
19008         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19009         periodic needle having false positive.
19010         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19011         and cygwin 1.7.7.
19012         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19013         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19014         (gl_FUNC_STRCASESTR): Likewise.
19015         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19016         * tests/test-memmem.c (main): Expose the bug.
19017         * tests/test-strcasestr.c (main): Likewise.
19018         * tests/test-strstr.c (main): Likewise.
19019         * tests/test-c-strcasestr.c (main): Likewise.
19020         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19021         * doc/posix-functions/strstr.texi (strstr): Likewise.
19022         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19023         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19024
19025 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19026
19027         parse-datetime: do some more renaming
19028         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19029         parse_datetime, not get_date.  Mention the renaming.
19030         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19031         in comments.
19032         * m4/bison.m4: Likewise.
19033
19034 2010-10-05  Eric Blake  <eblake@redhat.com>
19035
19036         parse-datetime: better name than get_date
19037         * NEWS: Reword the deprecation notice.
19038         * modules/get_date: Rename to modules/parse-datetime.
19039         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19040         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19041         * lib/get_date.y: Rename to lib/parse-datetime.y.
19042         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19043         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19044         * doc/getdate.texi: Provide fallback wrapper.
19045         * lib/getdate.h: Move guts, and wrap...
19046         * lib/parse-datetime.h: ...new file.
19047         * lib/parse-datetime.y (get_date): Rename...
19048         (parse_datetime): ...to this.
19049         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19050         (gl_PARSE_DATETIME): ...to this.
19051         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19052         documentation.
19053         * modules/getdate (Files): Provide fallback docs and header.
19054         (Notice, Depends-on): Update references.
19055         * tests/test-parse-datetime.c: Likewise.
19056         * DEPENDENCIES: Likewise.
19057         * MODULES.html.sh (Date and time <time.h>): Likewise.
19058         * doc/parse-datetime.texi (Date input formats)
19059         (Authors of parse_datetime): Likewise.
19060         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19061         (Include): Likewise.
19062         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19063         * gnulib-tool: Likewise.
19064         * m4/bison.m4 (gl_BISON): Likewise.
19065         Suggested by Bruno Haible.
19066
19067 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19068
19069         more ports to Solaris tr, which needs [] around ranges
19070         * gnulib-tool: Solaris tr needs [] around ranges.
19071         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19072         * tests/test-pipe-filter-gi1.c (main): Likewise.
19073         * tests/test-pipe-filter-ii1.c (main): Likewise.
19074
19075 2010-10-05  Eric Blake  <eblake@redhat.com>
19076
19077         bootstrap: fix Solaris regression
19078         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19079         around ranges.
19080         Reported by Pádraig Brady.
19081
19082         bootstrap: work with pkg-config
19083         * build-aux/bootstrap (check_versions): Also transliterate - in
19084         prerequisite name.
19085         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19086         prerequisites that were already found, to avoid confusion.
19087         Reported by Justin Clift.
19088
19089         faccessat: remove unused wrappers
19090         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19091         presence of these wrappers dragged in -lgen on Solaris.
19092         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19093
19094 2010-10-05  Jim Meyering  <meyering@redhat.com>
19095
19096         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19097         * Makefile (sc_pragma_columns): New syntax-check rule.
19098
19099 2010-10-04  Bruno Haible  <bruno@clisp.org>
19100
19101         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19102         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19103         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19104         Reported by Bruce Korb and Eric Blake.
19105
19106 2010-10-04  Bruno Haible  <bruno@clisp.org>
19107
19108         threadlib: Make option --with-libpth-prefix work.
19109         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19110         use $LIBPTH, not just -lpth.
19111
19112 2010-10-04  Bruno Haible  <bruno@clisp.org>
19113
19114         Avoid line length limitation from HP NonStop system header files.
19115         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19116         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19117         * lib/ctype.in.h: Likewise.
19118         * lib/dirent.in.h: Likewise.
19119         * lib/errno.in.h: Likewise.
19120         * lib/fcntl.in.h: Likewise.
19121         * lib/float.in.h: Likewise.
19122         * lib/getopt.in.h: Likewise.
19123         * lib/iconv.in.h: Likewise.
19124         * lib/inttypes.in.h: Likewise.
19125         * lib/langinfo.in.h: Likewise.
19126         * lib/locale.in.h: Likewise.
19127         * lib/math.in.h: Likewise.
19128         * lib/netdb.in.h: Likewise.
19129         * lib/netinet_in.in.h: Likewise.
19130         * lib/poll.in.h: Likewise.
19131         * lib/pthread.in.h: Likewise.
19132         * lib/pty.in.h: Likewise.
19133         * lib/sched.in.h: Likewise.
19134         * lib/se-selinux.in.h: Likewise.
19135         * lib/search.in.h: Likewise.
19136         * lib/signal.in.h: Likewise.
19137         * lib/spawn.in.h: Likewise.
19138         * lib/stdarg.in.h: Likewise.
19139         * lib/stddef.in.h: Likewise.
19140         * lib/stdint.in.h: Likewise.
19141         * lib/stdio.in.h: Likewise.
19142         * lib/stdlib.in.h: Likewise.
19143         * lib/string.in.h: Likewise.
19144         * lib/strings.in.h: Likewise.
19145         * lib/sys_file.in.h: Likewise.
19146         * lib/sys_ioctl.in.h: Likewise.
19147         * lib/sys_select.in.h: Likewise.
19148         * lib/sys_socket.in.h: Likewise.
19149         * lib/sys_stat.in.h: Likewise.
19150         * lib/sys_time.in.h: Likewise.
19151         * lib/sys_times.in.h: Likewise.
19152         * lib/sys_utsname.in.h: Likewise.
19153         * lib/sys_wait.in.h: Likewise.
19154         * lib/sysexits.in.h: Likewise.
19155         * lib/termios.in.h: Likewise.
19156         * lib/time.in.h: Likewise.
19157         * lib/unistd.in.h: Likewise.
19158         * lib/wchar.in.h: Likewise.
19159         * lib/wctype.in.h: Likewise.
19160         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19161         * modules/ctype (Makefile.am): Likewise.
19162         * modules/dirent (Makefile.am): Likewise.
19163         * modules/errno (Makefile.am): Likewise.
19164         * modules/fcntl-h (Makefile.am): Likewise.
19165         * modules/float (Makefile.am): Likewise.
19166         * modules/getopt-posix (Makefile.am): Likewise.
19167         * modules/iconv-h (Makefile.am): Likewise.
19168         * modules/inttypes (Makefile.am): Likewise.
19169         * modules/langinfo (Makefile.am): Likewise.
19170         * modules/locale (Makefile.am): Likewise.
19171         * modules/math (Makefile.am): Likewise.
19172         * modules/netdb (Makefile.am): Likewise.
19173         * modules/netinet_in (Makefile.am): Likewise.
19174         * modules/poll-h (Makefile.am): Likewise.
19175         * modules/pthread (Makefile.am): Likewise.
19176         * modules/pty (Makefile.am): Likewise.
19177         * modules/sched (Makefile.am): Likewise.
19178         * modules/search (Makefile.am): Likewise.
19179         * modules/selinux-h (Makefile.am): Likewise.
19180         * modules/signal (Makefile.am): Likewise.
19181         * modules/spawn (Makefile.am): Likewise.
19182         * modules/stdarg (Makefile.am): Likewise.
19183         * modules/stddef (Makefile.am): Likewise.
19184         * modules/stdint (Makefile.am): Likewise.
19185         * modules/stdio (Makefile.am): Likewise.
19186         * modules/stdlib (Makefile.am): Likewise.
19187         * modules/string (Makefile.am): Likewise.
19188         * modules/strings (Makefile.am): Likewise.
19189         * modules/sys_file (Makefile.am): Likewise.
19190         * modules/sys_ioctl (Makefile.am): Likewise.
19191         * modules/sys_select (Makefile.am): Likewise.
19192         * modules/sys_socket (Makefile.am): Likewise.
19193         * modules/sys_stat (Makefile.am): Likewise.
19194         * modules/sys_time (Makefile.am): Likewise.
19195         * modules/sys_times (Makefile.am): Likewise.
19196         * modules/sys_utsname (Makefile.am): Likewise.
19197         * modules/sys_wait (Makefile.am): Likewise.
19198         * modules/sysexits (Makefile.am): Likewise.
19199         * modules/termios (Makefile.am): Likewise.
19200         * modules/time (Makefile.am): Likewise.
19201         * modules/unistd (Makefile.am): Likewise.
19202         * modules/wchar (Makefile.am): Likewise.
19203         * modules/wctype (Makefile.am): Likewise.
19204
19205 2010-10-04  Bruno Haible  <bruno@clisp.org>
19206
19207         read-file tests: Avoid a test failure on NonStop Kernel.
19208         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19209         a regular file.
19210         Reported by Joachim Schmitz <schmitz@hp.com>.
19211
19212 2010-10-03  Bruno Haible  <bruno@clisp.org>
19213
19214         gnulib-tool: Fixes for --create-testdir with --libtool.
19215         * gnulib-tool (func_get_automake_snippet): Don't augment
19216         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19217         an executable.
19218         (func_create_testdir): Handle module 'alloca' like func_import.
19219         Reported by Bruce Korb <bruce.korb@gmail.com>.
19220
19221 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19222
19223         Avoid some lines longer than 80 characters.
19224         * lib/stdint.in.h: Break long comment lines.
19225         * lib/math.in.h: Likewise.
19226         (_GL_NUM_UINT_WORDS): New macro, for readability.
19227         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19228         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19229         * lib/stdlib.in.h: Likewise.
19230         * lib/spawn.in.h: Likewise.
19231         * lib/sys_socket.in.h: Update an URL.
19232         * lib/sys_stat.in.h: Break long line.
19233
19234 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19235
19236         Improve pmccabe2html.
19237         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19238         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19239         when the sources change. Remove the line in the HTML about "Used
19240         ranges" (which implied that there might be other unused ranges),
19241         rename "Resume" to "Summary" (easier to understand for more users).
19242         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19243         styles, and some unnecessary blank lines.
19244
19245 2010-10-03  Bruno Haible  <bruno@clisp.org>
19246             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19247
19248         acl: Add support for ACLs on NonStop Kernel.
19249         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19250         Check whether the function aclsort() exists.
19251         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19252         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19253         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19254         (acl_nontrivial [HAVE_ACLSORT]: New function.
19255         (file_has_acl): Implement for NonStop Kernel.
19256         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19257         (qset_acl): Implement for NonStop Kernel.
19258         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19259         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19260         (main): Implement for NonStop Kernel.
19261         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19262         Kernel. Handle this flavor.
19263         * tests/test-set-mode-acl.sh: Likewise.
19264         * tests/test-copy-acl.sh: Likewise.
19265         * tests/test-copy-file.sh: Likewise.
19266
19267 2010-10-03  Bruno Haible  <bruno@clisp.org>
19268
19269         Info about ACLs on NonStop Kernel.
19270         * doc/acl-resources.txt: Add info about NonStop Kernel.
19271         References by Joachim Schmitz <schmitz@hp.com>.
19272
19273 2010-10-02  Bruno Haible  <bruno@clisp.org>
19274
19275         Define missing EDQUOT on NonStop Kernel.
19276         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19277         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19278         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19279         missing.
19280         * doc/posix-headers/errno.texi: Mention the NSK bug.
19281         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19282         Reported by Joachim Schmitz <schmitz@hp.com>.
19283
19284 2010-10-02  Bruno Haible  <bruno@clisp.org>
19285
19286         Update doc for POSIX:2008.
19287         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19288         Update URL of POSIX specification.
19289
19290 2010-10-02  Bruno Haible  <bruno@clisp.org>
19291
19292         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19293         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19294         from gnulib, not from Automake.
19295
19296 2010-10-02  Bruno Haible  <bruno@clisp.org>
19297
19298         New module 'system-posix'.
19299         * modules/system-posix: New file.
19300         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19301         module is present.
19302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19303         GNULIB_SYSTEM_POSIX.
19304         * modules/stdlib (Depends-on): Remove sys_wait.
19305         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19306         * doc/posix-functions/system.texi: Mention the new module.
19307         * doc/posix-headers/stdlib.texi: Likewise.
19308         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19309         define test_sys_wait_macros to a no-op.
19310         Reported by Sam Steingold <sds@gnu.org>.
19311
19312 2010-09-30  Bruno Haible  <bruno@clisp.org>
19313
19314         More renaming from 'getdate' to 'get_date'.
19315         * doc/get_date.texi: Renamed from doc/getdate.texi.
19316         * modules/get_date (Files): Update.
19317         * MODULES.html.sh (Date and time <time.h>): Update.
19318         * DEPENDENCIES: Update.
19319         * gnulib-tool: Update comment.
19320         * m4/bison.m4 (gl_BISON): Likewise.
19321         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19322
19323 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19324
19325         bootstrap: support ACLOCAL_FLAGS during aclocal
19326         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19327         can add additional -I dir for third-party .m4 files.
19328
19329 2010-09-30  Eric Blake  <eblake@redhat.com>
19330
19331         bootstrap: use glibtoolize on MacOS
19332         * build-aux/bootstrap (check_versions): Convert libtool into
19333         libtoolize.
19334         (tool search): Move libtool check earlier, and look for
19335         glibtoolize for MacOS.
19336         (gnulib_tool_options): Auto-add --libtool when appropriate.
19337         Reported by Justin Clift.
19338
19339         poll: fix typo that broke test on MacOS
19340         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19341         Reported by Justin Clift.
19342
19343         getdate: rename to get_date
19344         Note: getdate.h is not renamed, to minimize client impact.
19345         * modules/getdate: Mark obsolete.  Move old contents...
19346         * modules/get_date: ...to new module name.
19347         * modules/getdate-tests: Move...
19348         * modules/get_date-tests: ...here.
19349         * m4/getdate.m4: Move...
19350         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19351         * lib/getdate.y: Move...
19352         * lib/get_date.y: ...here.
19353         * tests/test-getdate.c: Move...
19354         * tests/test-get_date.c: ...here.
19355         * doc/posix-functions/getdate.texi (getdate): Update name.
19356         * NEWS: Mention the change.
19357
19358 2010-09-29  Bruno Haible  <bruno@clisp.org>
19359
19360         Separate the module 'waitpid' from the module 'sys_wait'.
19361         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19362         present.
19363         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19364         gl_MODULE_INDICATOR_FOR_TESTS.
19365         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19366         * modules/sys_wait (Depends-on): Remove waitpid.
19367         (Makefile.am): Substitute GNULIB_WAITPID.
19368         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19369         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19370         signature only if the 'waitpid' module is present.
19371         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19372         * NEWS: Mention the change.
19373         * modules/grantpt (Depends-on): Add waitpid.
19374         * modules/wait-process (Depends-on): Likewise.
19375
19376 2010-09-29  Bruno Haible  <bruno@clisp.org>
19377
19378         More tests for module 'sys_wait'.
19379         * modules/sys_wait-c++-tests: New file.
19380         * tests/test-sys_wait-c++.cc: New file.
19381         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19382         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19383
19384 2010-09-29  Bruno Haible  <bruno@clisp.org>
19385
19386         New module 'waitpid'.
19387         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19388         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19389         Don't include <process.h>.
19390         (waitpid): Declare only, using modern idiom.
19391         * m4/waitpid.m4: New file.
19392         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19393         * modules/waitpid: New file.
19394         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19395         (Makefile.am): Update.
19396         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19397
19398 2010-09-28  Bruno Haible  <bruno@clisp.org>
19399
19400         poll: Assume ANSI C.
19401         * lib/poll.c (poll): Use an ANSI C declaration.
19402
19403 2010-09-28  Bruno Haible  <bruno@clisp.org>
19404
19405         poll-h: Create poll.h on all platforms.
19406         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19407         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19408         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19409         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19410         (gl_REPLACE_POLL_H): Don't set POLL_H.
19411         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19412         * modules/poll-h (Depends-on): Add include_next.
19413         (Makefile.am): Create poll.h unconditionally. Substitute also
19414         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19415
19416 2010-09-28  Bruno Haible  <bruno@clisp.org>
19417
19418         Tests for module 'poll-h'.
19419         * modules/poll-h-c++-tests: New file.
19420         * tests/test-poll-h-c++.cc: New file.
19421
19422         Tests for module 'poll-h'.
19423         * modules/poll-h-tests: New file.
19424         * tests/test-poll-h.c: New file.
19425
19426 2010-09-28  Bruno Haible  <bruno@clisp.org>
19427
19428         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19429         * modules/poll-h (Depends-on): Add 'extensions'.
19430
19431 2010-09-28  Bruno Haible  <bruno@clisp.org>
19432
19433         New module 'poll-h'.
19434         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19435         (poll): Use modern idiom.
19436         * modules/poll-h: New file.
19437         * modules/poll (Files): Remove lib/poll.in.h.
19438         (Depends-on): Add poll-h.
19439         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19440         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19441         * m4/poll_h.m4: New file.
19442         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19443         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19444         and invoke gl_REPLACE_POLL_H.
19445         * lib/poll.c: Use common idiom.
19446         * tests/test-poll.c: Likewise.
19447         * doc/posix-headers/poll.texi: Mention the poll-h module.
19448         Suggested by Eric Blake.
19449
19450 2010-09-26  Bruno Haible  <bruno@clisp.org>
19451
19452         sys_wait: Implement WSTOPSIG.
19453         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19454         Reported by Simon Josefsson.
19455
19456 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19457
19458         stdlib, sys_wait: Avoid compilation error on mingw.
19459         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19460
19461 2010-09-26  Bruno Haible  <bruno@clisp.org>
19462
19463         stdlib tests: Avoid code duplication.
19464         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19465         * modules/sys_wait-tests (Files): Likewise.
19466         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19467         * tests/test-stdlib.c: Include test-sys_wait.h.
19468         (main): Invoke test_sys_wait_macros.
19469         * tests/test-sys_wait.c: Include test-sys_wait.h.
19470         (main): Invoke test_sys_wait_macros.
19471
19472 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19473
19474         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19475         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19476         sure Windows sockets are working before calling getaddrinfo.
19477         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19478         * doc/gnulib.texi (Windows sockets): Fix typo.
19479
19480 2010-09-25  Bruno Haible  <bruno@clisp.org>
19481
19482         Tests for module 'regex-quote'.
19483         * modules/regex-quote-tests: New file.
19484         * tests/test-regex-quote.c: New file.
19485
19486         New module 'regex-quote'.
19487         * lib/regex-quote.h: New file.
19488         * lib/regex-quote.c: New file.
19489         * modules/regex-quote: New file.
19490         Suggested by Reuben Thomas <rrt@sc3d.org>.
19491
19492 2010-09-24  Bruno Haible  <bruno@clisp.org>
19493
19494         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19495         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19496
19497 2010-09-23  Bruno Haible  <bruno@clisp.org>
19498
19499         setenv: Relax license.
19500         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19501         Blake.
19502         Requested by Eric Blake.
19503
19504 2010-09-22  Bruno Haible  <bruno@clisp.org>
19505
19506         termios: Relax license.
19507         * modules/termios (License): Change to LGPLv2+.
19508         Requested by Eric Blake.
19509
19510 2010-09-22  Bruno Haible  <bruno@clisp.org>
19511
19512         threadlib: Allow the package to change the default to 'no'.
19513         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19514         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19515         Reported by Paul Eggert.
19516
19517 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19518             Bruno Haible  <bruno@clisp.org>
19519
19520         Fix endless loop in mbmemcasecoll.
19521         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19522         byte.
19523         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19524
19525 2010-09-22  Bruno Haible  <bruno@clisp.org>
19526
19527         Tests for module 'memcoll'.
19528         * modules/memcoll-tests: New file.
19529         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19530
19531         memcoll, xmemcoll: Clarify size vs. length.
19532         * modules/memcoll.c (memcoll0): Clarify specification.
19533         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19534         passed to collate_error.
19535
19536 2010-09-22  Bruno Haible  <bruno@clisp.org>
19537
19538         Tests for module 'memcasecmp'.
19539         * modules/memcasecmp-tests: New file.
19540         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19541
19542 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19543
19544         * lib/pthread.in.h: Add split double-inclusion guard, and include
19545         system <pthread.h> if there is one.  Use @@-style as in other
19546         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19547         pthread.h doesn't.
19548         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19549         (pthread_mutexattr_settype, pthread_mutex_trylock):
19550         New static inline functions, if there's no system <pthread.h>.
19551         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19552         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19553         Approximate with mutexes if the system lacks spinlocks, as in
19554         MacOS.
19555         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19556         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19557         @@-style.  Check for spinlocks separately.
19558         (gl_PTHREAD_DEFAULTS): New macro.
19559         * modules/pthread: Redo to use a more typical style for in.h files.
19560
19561 2010-09-21  Eric Blake  <eblake@redhat.com>
19562
19563         net_if: enhance tests
19564         * tests/test-net_if.c (main): Move signature checks earlier.
19565         Print failures to stderr.
19566         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19567         Document the bug that we do not yet fix.
19568
19569 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19570
19571         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19572         about gnulib, not GSS.
19573
19574 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19575
19576         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19577         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19578         for Emacs.
19579         * build-aux/pmccabe2html: Make Makefile.am example code more
19580         cut-and-paste friendly.
19581
19582 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19583
19584         * tests/test-net_if.c: New file.
19585         * modules/net_if-tests: New file.
19586
19587 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19588
19589         pthread: add pthread_spin_destroy
19590         * lib/pthread.in.h (pthread_spin_destroy): New function.
19591
19592 2010-09-19  Bruno Haible  <bruno@clisp.org>
19593
19594         gnulib-tool: Fix --help output.
19595         * gnulib-tool (func_usage): Fix help message.
19596         Reported by Reuben Thomas <rrt@sc3d.org>.
19597
19598 2010-09-18  Jim Meyering  <meyering@redhat.com>
19599
19600         maint.mk: avoid unexpanded \n in two diagnostics
19601         * top/maint.mk (sc_prohibit_always_true_header_tests):
19602         Don't use a literal \n in a halt=... assignment.  It would not be
19603         expanded, and the two \n bytes would appear in the diagnostic output
19604         rather than the desired newline.  Use halt=$$(printf ... instead.
19605         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19606
19607 2010-09-18  Bruno Haible  <bruno@clisp.org>
19608
19609         netinet_in: Doc tweak.
19610         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19611         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19612
19613 2010-09-18  Jim Meyering  <meyering@redhat.com>
19614
19615         init.sh: correct an outdated comment
19616         * tests/init.sh (create_exe_shims_):  s/function/alias/
19617
19618         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19619         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19620         a file named "*.exe" is removed between the glob expansion and the
19621         processing of that oddly named file.
19622
19623 2010-09-17  Eric Blake  <eblake@redhat.com>
19624
19625         mirbsd: add some more support
19626         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19627         in BSD family.
19628         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19629         devices as OpenBSD.
19630         * m4/host-os.m4 (mirbsd): Add MirBSD.
19631
19632         tests: fix unportable assumption on sys/wait.h
19633         * tests/test-sys_wait.c (main): Relax test.
19634         * tests/test-stdlib.c (main): Likewise.
19635
19636         init.sh: accomodate directory with no .exes
19637         * tests/init.sh: Accomodate directory containing only scripts.
19638
19639         tests: avoid compiler warning
19640         * tests/test-stdlib.c (main): Use the variable.
19641
19642         fdutimens, fdutimensat: update signature, again
19643         * lib/utimens.h (gl_futimens): Delete, and move signature...
19644         (fdutimens): ...here.
19645         (fdutimensat): Rearrange signature.
19646         (lutimensat): Rename variable for clarity.
19647         * lib/fdutimensat.c (fdutimensat): Update signature.
19648         * lib/utimens.c (fdutimens): Likewise.
19649         (gl_futimens): Delete.
19650         (utimens, lutimens): Update callers.
19651         * lib/futimens.c (futimens): Likewise.
19652         * tests/test-fdutimensat.c: Likewise.
19653         * tests/test-utimens.c: Likewise.
19654         * tests/test-futimens.h: Update comment.
19655         * NEWS: Mention this.
19656         Suggested by Paul Eggert.
19657
19658 2010-09-17  Bruno Haible  <bruno@clisp.org>
19659
19660         Take over the maintenance of some older macros from Autoconf.
19661         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19662         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19663         GNU Autoconf.
19664         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19665         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19666
19667 2010-09-17  Eric Blake  <eblake@redhat.com>
19668
19669         fdutimensat: drop atflag validation
19670         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19671         with valid fd, to close a race scenario where futimens is
19672         unsupported and FILE was replaced by a symlink.
19673         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19674         accordingly.
19675         Suggested by Paul Eggert.
19676
19677 2010-09-16  Bruno Haible  <bruno@clisp.org>
19678
19679         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19680         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19681
19682 2010-09-16  Bruno Haible  <bruno@clisp.org>
19683
19684         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19685         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19686         login_tty exists.
19687         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19688
19689 2010-09-16  Bruno Haible  <bruno@clisp.org>
19690
19691         login_tty: Make the replacement code work on BSD systems.
19692         * lib/login_tty.c: Include <sys/ioctl.h>.
19693         (login_tty): Use ioctl TIOCSCTTY when available.
19694         * modules/login_tty (Depends-on): Add sys_ioctl.
19695         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19696
19697 2010-09-16  Bruno Haible  <bruno@clisp.org>
19698
19699         login_tty: Stricter unit test.
19700         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19701         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19702         and tcgetsid() after login_tty.
19703         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19704
19705 2010-09-16  Bruno Haible  <bruno@clisp.org>
19706
19707         New module 'tcgetsid'.
19708         * lib/tcgetsid.c: New file.
19709         * m4/tcgetsid.m4: New file.
19710         * modules/tcgetsid: New file.
19711         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19712         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19713         GNULIB_TCGETSID, HAVE_TCGETSID.
19714         * lib/termios.in.h: Include <sys/types.h>.
19715         (tcgetsid): New declaration.
19716         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19717         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19718         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19719         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19720
19721 2010-09-16  Bruno Haible  <bruno@clisp.org>
19722
19723         Tests for module 'termios'.
19724         * modules/termios-c++-tests: New file.
19725         * modules/termios-tests: New file.
19726         * tests/test-termios-c++.cc: New file.
19727         * tests/test-termios.c: New file.
19728
19729         New module 'termios'.
19730         * modules/termios: New file.
19731         * lib/termios.in.h: New file.
19732         * m4/termios_h.m4: New file.
19733         * doc/posix-headers/termios.texi: Mention the new module.
19734
19735 2010-09-16  Eric Blake  <eblake@redhat.com>
19736
19737         fdutimensat: add an atflag parameter
19738         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19739         * lib/utimens.h (fdutimensat): Update prototype.
19740         * tests/test-fdutimensat.c: Adjust test to match.
19741         * NEWS: Document the change.
19742         Suggested by Paul Eggert.
19743
19744 2010-09-16  Bruno Haible  <bruno@clisp.org>
19745
19746         Fix typos in comments.
19747         * lib/striconveh.h: Fix typo in comment.
19748         * lib/login_tty.c (login_tty): Likewise.
19749
19750 2010-09-15  Bruno Haible  <bruno@clisp.org>
19751
19752         stdlib: clarify MirBSD WEXITSTATUS bug
19753         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19754         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19755
19756 2010-09-15  Eric Blake  <eblake@redhat.com>
19757
19758         stdlib: work around MirBSD WEXITSTATUS bug
19759         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19760         * modules/stdlib (Depends-on): Add sys_wait.
19761         * tests/test-sys_wait.c (main): Enhance test.
19762         * tests/test-stdlib.c (main): Likewise.
19763         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19764
19765         docs: mention MacOS issue with WEXITSTATUS(constant)
19766         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19767         issue.
19768         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19769
19770         strnlen: add tests
19771         * modules/strnlen-tests: New file.
19772         * tests/test-strnlen.c: Likewise.
19773
19774 2010-09-14  Bruno Haible  <bruno@clisp.org>
19775
19776         unistr/base: Avoid link errors when module 'libunistring' is also used.
19777         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19778         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19779         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19780         Declare also when HAVE_LIBUNISTRING is set.
19781         Reported by Pádraig Brady <P@draigbrady.com>.
19782
19783 2010-09-14  Eric Blake  <eblake@redhat.com>
19784
19785         test-rawmemchr: make more robust
19786         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19787         (Depends-on, configure.ac): Add needed prerequisites to use it.
19788         * modules/memchr-tests (Files, Depends-on, configure.ac):
19789         Likewise, to avoid implicit reliance on memchr module prereqs.
19790         * tests/test-memchr.c (main): Ensure proper masking.
19791         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19792         reads.
19793
19794         memchr: detect glibc Alpha bug
19795         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19796         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19797         Alpha.
19798         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19799         * tests/test-memchr.c (main): Enhance test.
19800         Reported by Nelson H. F. Beebe.
19801
19802 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19803
19804         fts, getcwd, glob: audit for dirfd returning -1
19805         * lib/fts.c (opendir): Remove #define; no longer used.
19806         (opendirat): New arg PDIR_FD.  All callers changed.
19807         (fts_build, _opendir2): Use new opendirat to avoid the need for
19808         dirfd, or for checking whether dirfd returns a negative value.
19809         Don't use opendir; always use openat followed by fdopendir.
19810         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19811         it.
19812         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19813         returns -1 here.
19814         * modules/fts (Depends-on): Remove dirfd.
19815         * modules/getcwd (Depends-on): Likewise.
19816
19817 2010-09-13  Eric Blake  <eblake@redhat.com>
19818
19819         float: fix broken MirBSD header
19820         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19821         * doc/posix-headers/float.texi (float.h): Document it.
19822
19823 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19824
19825         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19826         * lib/fts.c (opendirat): New arg extra_flags.
19827         (__opendir2): Use it to avoid following symlinks when opening
19828         a directory, if symlinks are not supposed to be followed.  See
19829         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19830
19831         fdopendir: preserve argument fd before returning
19832         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19833         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19834         (fdopendir): Use them, arranging for FD to be open to the same
19835         directory that it was when it started.  (It might be temporarily
19836         closed while fdopendir is running, so this not thread- or
19837         signal-safe.)  Be careful to do the right thing even when file
19838         descriptors are scarce and dup fails with errno == EMFILE.  See
19839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19840
19841 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19842
19843         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19844         * NEWS: Document change.
19845         * m4/regex.m4: Disable test for regoff_t size.
19846
19847 2010-09-13  Jim Meyering  <meyering@redhat.com>
19848
19849         fts: don't operate on an invalid file descriptor after failed dup
19850         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19851         negative file descriptor.
19852
19853 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19854
19855         savedir: add streamsavedir, deprecate fdsavedir
19856         * NEWS: Mention deprecation of fdsavedir.
19857         * lib/savedir.c (streamsavedir): New extern function, whose name
19858         ends in "savedir" to be consistent with the others.  This differs
19859         from savedirstream in that it doesn't close its argument.  The
19860         next version of GNU tar will use this instead of fdsavedir, to
19861         avoid some race conditions and conserve file descriptors.
19862         (savedirstream): Reimplement as a wrapper around streamsavedir.
19863         (fdsavedir): Add a comment deprecating this function.  As far as
19864         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19865         * lib/savedir.h (streamsavedir): New decl.
19866         (fdsavedir): Add a comment deprecating this.
19867
19868 2010-09-10  Bruno Haible  <bruno@clisp.org>
19869
19870         langinfo: Fix last commit.
19871         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19872         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19874
19875 2010-09-10  Bruno Haible  <bruno@clisp.org>
19876
19877         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19878         * lib/progreloc.c (O_EXEC): Define fallback.
19879
19880 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19881
19882         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19883         * NEWS: Document recent changes to fcntl-h.
19884         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19885         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19886         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19887         Similarly for O_SEARCH; this last was already true, but not documented.
19888         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19889         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19890         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19891         Likewise.
19892         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19893         is zero, not whether it is defined.
19894         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19895         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19896         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19897
19898 2010-09-10  Bruno Haible  <bruno@clisp.org>
19899
19900         langinfo, nl_langinfo: Fix for IRIX 5.3.
19901         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19902         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19903         HAVE_LANGINFO_YESEXPR.
19904         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19905         HAVE_LANGINFO_YESEXPR.
19906         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19907         HAVE_LANGINFO_T_FMT_AMPM is 0.
19908         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19909         HAVE_LANGINFO_YESEXPR is 0.
19910         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19911         NOEXPR.
19912         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19913         * doc/posix-functions/nl_langinfo.texi: Likewise.
19914         Reported by Eric Blake.
19915
19916 2010-09-10  Bruno Haible  <bruno@clisp.org>
19917
19918         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19919         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19920         on FreeBSD 8.0 and OpenBSD 4.6.
19921         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19922         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19923         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19924         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19925         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19926         ac_includes_default.
19927         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19928
19929 2010-09-09  Eric Blake  <eblake@redhat.com>
19930
19931         strsignal: work around NetBSD bug
19932         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19933         * lib/string.in.h (includes): Likewise.
19934         * doc/posix-functions/strsignal.texi (strsignal): Document the
19935         bug.
19936         Reported by Nelson H. F. Beebe.
19937
19938         gnulib-tool: work with NetBSD /bin/sh
19939         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19940         (func_get_description, func_get_comment, func_get_status)
19941         (func_get_notice, func_get_applicability, func_get_filelist)
19942         (func_get_dependencies, func_get_autoconf_early_snippet)
19943         (func_get_autoconf_snippet, func_get_automake_snippet)
19944         (func_get_include_directive, func_get_link_directive)
19945         (func_get_license, func_get_maintainer, func_import): Avoid
19946         shell syntax errors from parsing syntax extensions.
19947
19948 2010-09-09  Bruno Haible  <bruno@clisp.org>
19949
19950         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19951         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19952         a reliable way to determine whether the 'alias' command works.
19953
19954 2010-09-08  Jim Meyering  <meyering@redhat.com>
19955
19956         init.sh: penalize a set-x-impaired shell; don't disqualify it
19957         * tests/init.sh: Too many shells corrupt application stderr when
19958         you set -x, so we can't afford to disqualify them, since at least
19959         on Irix-6.5, that would disqualify all bourne shells.
19960         Instead, use a two-pass approach.
19961         On the first pass, try to find a shell that meets the stricter
19962         condition that set -x does not corrupt stderr.
19963         If no shell meets the stricter condition, retest each candidate
19964         shell, but without that extra condition.  Finally, when
19965         VERBOSE=yes is requested and set -x might cause trouble, simply
19966         issue a warning and refrain from enabling debug output.
19967
19968 2010-09-08  Eric Blake  <eblake@redhat.com>
19969
19970         unsetenv: fix OpenBSD bug
19971         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19972         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19973         documentation.
19974         Reported by Jim Meyering.
19975
19976         strtod: work around IRIX 6.5 bug
19977         * lib/strtod.c (strtod): Reparse number on shorter string if
19978         exponent parse was invalid.
19979         * tests/test-strtod.c (main): Add check for "0x1p 2".
19980         Reported by Tom G. Christensen.
19981
19982         getopt: optimize previous patch
19983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19984         empty variable.  Speed up awk script.
19985         Reported by Paolo Bonzini.
19986
19987 2010-09-08  Jim Meyering  <meyering@redhat.com>
19988
19989         test.sh: disqualify shells for which set -x corrupts stderr
19990         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19991         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19992         appear in stderr output.  For example, this command:
19993             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19994         prints "P=1" on those two systems:
19995
19996 2010-09-08  Bruno Haible  <bruno@clisp.org>
19997
19998         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19999         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20000         commands, because some shells ignore redirections when there is an
20001         error in the command lookup.
20002         Reported by Eric Blake.
20003
20004 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20005
20006         * lib/regex.h: Fix a mention of `regex_compile' (should be
20007         `re_compile_pattern').
20008         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20009         (re_set_registers): Correct name of parameter in comment.
20010
20011         * doc/regex.texi: Add documentation for missing syntax flags.
20012         Remove commented-out documentation of defunct syntax option
20013         RE_NO_EMPTY_ALTS.
20014         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20015         Add documentation of re_set_registers.
20016         Document trick to re-use a pattern buffer by setting fastmap manually.
20017         Update documentation of struct re_pattern_buffer per public members.
20018         Uncomment documentation of equivalence class operators and
20019         collating symbol operators, since they are now implemented,
20020         Explain leftmost-longest matching in relation to alternatives.
20021         Tidy documentation of substring matching.
20022         Remove POSIX documentation, which is done better in
20023         glibc, and refer the reader there. Keep BSD API documentation, as
20024         that is not readily available elsewhere.
20025
20026 2010-09-07  Eric Blake  <eblake@redhat.com>
20027
20028         getopt: handle POSIXLY_CORRECT set but not exported
20029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20030         export state of POSIXLY_CORRECT, due to bash set -o posix.
20031         Reported by Dustin J. Mitchell.
20032
20033 2010-09-05  Bruno Haible  <bruno@clisp.org>
20034
20035         gnulib-tool: Highlight the changed options.
20036         * gnulib-tool (func_usage): Display the --import, --add-import,
20037         --remove-import explanations in bold font.
20038
20039 2010-09-06  Karl Berry  <karl@gnu.org>
20040
20041         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20042
20043 2010-09-05  Bruno Haible  <bruno@clisp.org>
20044
20045         uniwidth/width: Update comment.
20046         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20047         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20048
20049 2010-09-05  Bruno Haible  <bruno@clisp.org>
20050
20051         isinf, isnan: Relax license.
20052         * modules/isinf (License): Change from GPL to LGPL, with consent from
20053         Ben Pfaff.
20054         * modules/isnan (License): Likewise.
20055         Requested by Ludovic Courtès.
20056
20057 2010-09-04  Bruno Haible  <bruno@clisp.org>
20058
20059         gnulib-tool: Help migration from --import to --add-import or --update.
20060         * gnulib-tool: Emit a verbose error message when --import is used
20061         without any module name.
20062
20063 2010-09-04  Bruno Haible  <bruno@clisp.org>
20064
20065         Update doc about gnulib-tool.
20066         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20067         'gnulib-tool --update' in more detail.
20068         Reported by Eric Blake.
20069
20070 2010-09-04  Bruno Haible  <bruno@clisp.org>
20071
20072         gnulib-tool: Change --import. New options --add/remove-import.
20073         * gnulib-tool: New options --add-import, --remove-import.
20074         (func_usage): Document them.
20075         (have_associative): Define always.
20076         (func_import): In import mode, don't merge the specified settings with
20077         the cached settings. Implement remove-import mode.
20078         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20079         Explain when to use them versus --import.
20080         (Simple update): Use --add-import instead of --import.
20081         * NEWS: Mention the change.
20082
20083 2010-09-04  Bruno Haible  <bruno@clisp.org>
20084
20085         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20086         separate gnulib.mk.
20087
20088 2010-09-04  Bruno Haible  <bruno@clisp.org>
20089
20090         gnulib-tool: Don't talk about CVS any more.
20091         * gnulib-tool (func_usage, func_import): Write "version control"
20092         instead of CVS.
20093
20094 2010-09-04  Jim Meyering  <meyering@redhat.com>
20095
20096         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20097         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20098         false positives (whose names may be ill-chosen) when searching
20099         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20100         would cause a false-positive.
20101
20102         avoid coreutils "make distcheck" failure
20103         Coreutils tests with an absolute build directory name that contains
20104         a space.  Not quoting this directory name caused a failure.
20105         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20106         * tests/test-vc-list-files-cvs.sh: Likewise.
20107
20108 2010-09-04  Bruno Haible  <bruno@clisp.org>
20109
20110         gnulib-tool: Avoid error when run in a package without Makefile.am.
20111         * gnulib-tool: When collecting the m4dirs in a package that does not
20112         have a Makefile.am, eliminate those directories that contain no
20113         gnulib-cache.m4. Fix expression that counts these directories.
20114
20115 2010-09-04  Bruno Haible  <bruno@clisp.org>
20116
20117         update-copyright test: Improve output when perl is missing or too old.
20118         * tests/test-update-copyright.sh: Move test of Perl version down after
20119         the test whether Perl exists. Provide an explanation relating Perl's
20120         error message to Automake's SKIP: message.
20121
20122 2010-09-04  Bruno Haible  <bruno@clisp.org>
20123
20124         Don't augment PATH in TESTS_ENVIRONMENT.
20125         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20126         set abs_aux_dir instead of augmenting PATH.
20127         * modules/vc-list-files-tests (Makefile.am): Likewise.
20128         * tests/test-update-copyright.sh: Augment PATH here.
20129         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20130         path_prepend_.
20131         * tests/test-vc-list-files-git.sh: Likewise.
20132
20133 2010-09-04  Jim Meyering  <meyering@redhat.com>
20134
20135         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20136         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20137
20138 2010-09-04  Bruno Haible  <bruno@clisp.org>
20139
20140         strdup: Fix compilation error in C++ mode.
20141         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20142         the macro.
20143
20144 2010-09-04  Bruno Haible  <bruno@clisp.org>
20145
20146         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20147         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20148         macro into a function.
20149         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20150
20151 2010-09-04  Bruno Haible  <bruno@clisp.org>
20152
20153         Set PATH_SEPARATOR the same way autoconf does.
20154         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20155         the value of PATH_SEPARATOR the same way autoconf-generated configure
20156         scripts do.
20157         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20158         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20159
20160 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20161
20162         Set PATH_SEPARATOR the same way autoconf does.
20163         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20164         the same way autoconf-generated configure scripts do.
20165         * posix-modules: Likewise.
20166
20167 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20168
20169         hash: fix safe_hasher const typo
20170         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20171         const; otherwise, there is a type error later.
20172
20173 2010-09-02  Jim Meyering  <meyering@redhat.com>
20174
20175         test-update-copyright.sh: require perl 5.8.0
20176         * tests/test-update-copyright.sh: Require 5.8.0,
20177         which Tom G. Christensen has confirmed is adequate,
20178         while 5.6.1 is not.
20179
20180 2010-09-02  Eric Blake  <eblake@redhat.com>
20181
20182         tests: init.sh improvements for re-exec'ing with zsh
20183         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20184         -vx through shell re-exec.
20185         Reported by Tom G. Christensen.
20186
20187         wctype: fix typo in previous commit
20188         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20189         Reported by Ludovic Courtès.
20190
20191 2010-09-02  Jim Meyering  <meyering@redhat.com>
20192
20193         test-update-copyright.sh: skip test if Perl is too old
20194         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20195         Reported by Tom G. Christensen.
20196
20197 2010-09-02  Bruno Haible  <bruno@clisp.org>
20198
20199         wctype: Avoid compilation error on IRIX 6.5.30.
20200         * lib/wctype.in.h (iswblank): Declare with a replacement if
20201         REPLACE_ISWBLANK is set.
20202         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20203         declared. Set REPLACE_ISWBLANK.
20204         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20205         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20206         * doc/posix-headers/wctype.texi: Likewise.
20207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20208
20209 2010-09-01  Bruno Haible  <bruno@clisp.org>
20210
20211         New module 'socketlib'.
20212         * modules/socketlib: New file.
20213         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20214         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20215         * modules/sockets (Depends-on): Add socketlib.
20216         Suggested by Sam Steingold <sds@gnu.org>.
20217
20218 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20219
20220         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20221
20222         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20223         when one needs search access to a directory but not read access.
20224         On systems where it is available, it works in some cases where
20225         O_RDONLY does not, namely on directories that are searchable but
20226         not readable, and which need only to be searchable.  If O_SEARCH
20227         is not available, fall back to the traditional method of using
20228         O_RDONLY.
20229
20230         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20231         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20232         when opening a directory that needs only to be searchable.
20233         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20234         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20235         * lib/openat-proc.c (openat_proc_name): Likewise.
20236         * lib/openat.c (openat_needs_fchdir): Likewise.
20237         * lib/save-cwd.c (save_cwd): Likewise.
20238         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20239
20240 2010-08-28  Bruno Haible  <bruno@clisp.org>
20241
20242         New module 'host-cpu-c-abi'.
20243         * modules/host-cpu-c-abi: New file.
20244         * m4/host-cpu-c-abi.m4: New file, based on part of
20245         clisp/src/m4/general.m4.
20246         Requested by Sam Steingold <sds@gnu.org>.
20247
20248 2010-08-31  Eric Blake  <eblake@redhat.com>
20249         and Jim Meyering  <meyering@redhat.com>
20250
20251         hash: factor, and guard against misbehaving hasher function
20252         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20253         of table->hasher's return value.  Also protect against a hash value
20254         so large that adding it to table->bucket results in a NULL pointer.
20255         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20256         Use it in place of open-coded check-and-abort.
20257
20258 2010-08-30  Bruno Haible  <bruno@clisp.org>
20259
20260         hash: silence spurious clang warning
20261         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20262         Reported by Eric Blake.
20263
20264 2010-08-30  Eric Blake  <eblake@redhat.com>
20265
20266         strstr, memmem, strcasestr: avoid leaked shell message
20267         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20268         FreeBSD.
20269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20270         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20271
20272         tests: silence clang warning
20273         * tests/test-malloca.c (do_allocation): Avoid dead store.
20274
20275 2010-08-29  Bruno Haible  <bruno@clisp.org>
20276
20277         gettext: Fix recent mistake.
20278         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20279
20280 2010-08-29  Bruno Haible  <bruno@clisp.org>
20281
20282         selinux-h: Offer a --without-selinux option.
20283         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20284         --without-selinux was specified, skip all tests and define
20285         HAVE_SELINUX_SELINUX_H to 0.
20286         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20287         set LIB_SELINUX to empty.
20288         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20289         gl_LIBSELINUX. If --without-selinux was specified, replace
20290         selinux/context.h.
20291         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20292
20293 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20294             Bruno Haible  <bruno@clisp.org>
20295
20296         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20297         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20298         of HAVE_REALLOC.
20299         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20300         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20301         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20302         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20303
20304 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20305             Bruno Haible  <bruno@clisp.org>
20306
20307         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20308         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20309         HAVE_CALLOC.
20310         * lib/xmalloc.c: Update accordingly.
20311         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20312         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20313         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20314
20315 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20316             Bruno Haible  <bruno@clisp.org>
20317
20318         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20319         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20320         HAVE_MALLOC.
20321         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20322         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20323         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20324
20325 2010-08-29  Bruno Haible  <bruno@clisp.org>
20326
20327         Update modules list.
20328         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20329         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20330         (String handling <string.h>): Add astrxfrm.
20331         (File system functions): Add readlinkat.
20332
20333 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20334
20335         Tests for module 'realloc-gnu'.
20336         * modules/realloc-gnu-tests: New file.
20337         * tests/test-realloc-gnu.c: New file.
20338
20339         Tests for module 'calloc-gnu'.
20340         * modules/calloc-gnu-tests: New file.
20341         * tests/test-calloc-gnu.c: New file.
20342
20343         Tests for module 'malloc-gnu'.
20344         * modules/malloc-gnu-tests: New file.
20345         * tests/test-malloc-gnu.c: New file.
20346
20347 2010-08-28  Bruno Haible  <bruno@clisp.org>
20348
20349         Rename module 'realloc' -> 'realloc-gnu'.
20350         * modules/realloc-gnu: New file, copied from modules/realloc.
20351         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20352         obsolete.
20353         * modules/mgetgroups (Depends-on): Update.
20354         * doc/posix-functions/realloc.texi: Update.
20355         * NEWS: Mention the change.
20356
20357         Rename module 'calloc' -> 'calloc-gnu'.
20358         * modules/calloc-gnu: New file, copied from modules/calloc.
20359         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20360         obsolete.
20361         * doc/posix-functions/calloc.texi: Update.
20362         * NEWS: Mention the change.
20363
20364         Rename module 'malloc' -> 'malloc-gnu'.
20365         * modules/malloc-gnu: New file, copied from modules/malloc.
20366         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20367         obsolete.
20368         * modules/argp (Depends-on): Update.
20369         * modules/regex (Depends-on): Update.
20370         * doc/posix-functions/malloc.texi: Update.
20371         * NEWS: Mention the change.
20372
20373 2010-08-28  Eric Blake  <eblake@redhat.com>
20374
20375         pread, pwrite: add missing dependency
20376         * modules/pread (Depends-on): Add extensions.
20377         * modules/pwrite (Depends-on): Likewise.
20378
20379 2010-08-28  Bruno Haible  <bruno@clisp.org>
20380
20381         unistr/u*-strchr: Fix tests dependencies.
20382         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20383         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20384         Reported by Ian Beckwith <ianb@erislabs.net>.
20385
20386 2010-08-28  Bruno Haible  <bruno@clisp.org>
20387
20388         read-file: Don't occupy too much unused memory.
20389         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20390
20391 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20392             Eric Blake  <eblake@redhat.com>
20393             Bruno Haible  <bruno@clisp.org>
20394
20395         read-file: Avoid memory reallocations with regular files.
20396         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20397         (fread_file): With regular files, use the remaining length as the
20398         initial buffer size.  Check against overflow.
20399         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20400         sys_stat.
20401
20402 2010-08-28  Bruno Haible  <bruno@clisp.org>
20403
20404         ftello: Relax license.
20405         * modules/ftello (License): Relax to LGPLv2+.
20406         Reported by Eric Blake.
20407
20408 2010-08-28  Bruno Haible  <bruno@clisp.org>
20409
20410         Avoid relocwrapper link errors due to gnulib replacement functions.
20411         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20412         function.
20413         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20414
20415 2010-08-28  Bruno Haible  <bruno@clisp.org>
20416
20417         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20418         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20419         defined.
20420         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20421         Suggested by Eric Blake.
20422
20423 2010-08-28  Bruno Haible  <bruno@clisp.org>
20424
20425         sys_socket, netdb: Ensure socklen_t gets defined.
20426         * modules/sys_socket (Depends-on): Add socklen.
20427         * modules/netdb (Depends-on): Likewise.
20428         * modules/getaddrinfo (Depends-on): Remove socklen.
20429         * modules/getsockopt (Depends-on): Likewise.
20430         * modules/setsockopt (Depends-on): Likewise.
20431         * tests/test-sys_socket.c: Check that socklen_t is defined.
20432         * tests/test-netdb.c: Likewise.
20433         * m4/socklen.m4: Update comments.
20434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20435
20436 2010-08-27  Eric Blake  <eblake@redhat.com>
20437
20438         login_tty: add missing dependency
20439         * modules/login_tty (Depends-on): Add pty.
20440
20441 2010-08-26  Eric Blake  <eblake@redhat.com>
20442
20443         lib-symbol-versions: fix m4 quoting
20444         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20445         format for AC_LINK_IFELSE.
20446
20447         glob: fix compile test
20448         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20449
20450         btowc: fix missing file
20451         * modules/btowc (Files): Also ship locale-fr.m4.
20452
20453         lseek: fix link test
20454         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20455         AC_LINK_IFELSE.
20456
20457         include_next: silence autoconf 2.68 warning
20458         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20459         AC_COMPILE_IFELSE as special.
20460         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20461         autoconf < 2.68.
20462
20463         acl: fix compilation test
20464         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20465         AC_COMPILE_IFELSE.
20466
20467 2010-08-26  Bruno Haible  <bruno@clisp.org>
20468
20469         Modernize AC_TRY_RUN invocations.
20470         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20471         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20472         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20473         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20474         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20475         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20476         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20478         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20479         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20480         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20481         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20482         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20483         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20484         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20485         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20486         gl_MBRLEN_NUL_RETVAL): Likewise.
20487         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20488         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20489         Likewise.
20490         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20491         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20492         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20493         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20494         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20495         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20496         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20497         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20498         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20499         Likewise.
20500         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20501         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20502         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20503         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20504         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20505         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20506         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20507         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20508         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20510
20511 2010-08-26  Bruno Haible  <bruno@clisp.org>
20512
20513         Modernize AC_TRY_LINK invocations.
20514         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20515         AC_TRY_LINK.
20516         * m4/argp.m4 (gl_ARGP): Likewise.
20517         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20518         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20519         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20520         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20521         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20522         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20523         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20524         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20525         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20526         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20527         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20528         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20529         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20530         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20531         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20532         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20533         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20534         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20535         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20536         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20537         Likewise.
20538         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20539         Likewise.
20540         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20541         Likewise.
20542         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20543         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20544         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20545         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20546         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20547         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20548         * m4/servent.m4 (gl_SERVENT): Likewise.
20549         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20550         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20551         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20552         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20553         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20554         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20555         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20556         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20557         * modules/tsearch-tests (configure.ac): Likewise.
20558
20559 2010-08-26  Bruno Haible  <bruno@clisp.org>
20560
20561         Modernize AC_TRY_COMPILE invocations.
20562         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20563         AC_TRY_COMPILE.
20564         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20565         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20566         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20567         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20568         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20569         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20570         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20571         * m4/lock.m4 (gl_LOCK): Likewise.
20572         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20573         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20574         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20575         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20576         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20577         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20578         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20579         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20580         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20581         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20582         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20583         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20584         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20585         extraneous semicolon.
20586
20587 2010-08-26  Jim Meyering  <meyering@redhat.com>
20588
20589         stat-time: relax license LGPL
20590         * modules/stat-time (License): Change from GPL to LGPL,
20591         with consent from all contributors, for use in libguile.
20592         Requested by Ludovic Courtès.
20593
20594 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20595
20596         poll: return immediately on POLLHUP.
20597         * lib/poll.c (poll): Always set timeout before wait_timeout is
20598         computed.
20599
20600 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20601
20602         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20603         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20604         rmdir ("dir/.//"), unlinkat.
20605
20606 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20607
20608         stdbool: avoid spurious failure with modern xlc
20609         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20610
20611 2010-08-24  Bruno Haible  <bruno@clisp.org>
20612
20613         getloadavg: simplify code
20614         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20615         gl_have_func. Update comments.
20616
20617 2010-08-24  Eric Blake  <eblake@redhat.com>
20618
20619         getloadavg: don't define SVR4 on cygwin
20620         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20621         only define SVR4 when -lkvm is required.
20622         Reported by Yaakov Selkowitz.
20623
20624 2010-08-24  Bruno Haible  <bruno@clisp.org>
20625
20626         priv-set: fix comment
20627         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20628
20629 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20630
20631         priv-set: fix comments
20632         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20633         to match code, as suggested by David Bartley in:
20634         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20635
20636 2010-08-23  Eric Blake  <eblake@redhat.com>
20637
20638         stdbool: avoid rejecting clang
20639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20640         * tests/test-stdbool.c: Enable more tests if using the system
20641         <stdbool.h> instead of the gnulib replacement.
20642         (main): Move xlc bug test to a runtime test for all compilers.
20643         Reported by Anders Kaseorg.
20644
20645         argz: fix shell quoting issue
20646         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20647         Reported by Charles Wilson.
20648
20649 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20650             Erik Faye-Lund <kusmabite@gmail.com>
20651
20652         poll, select: handle ERROR_BROKEN_PIPE.
20653         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20654         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20655         * lib/select.c (win32_compute_revents): Do not mark a pipe
20656         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20657
20658 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20659
20660         fts: allow compilation with C++
20661         * lib/fts_.h: Specify extern "C" linkage with C++.
20662
20663 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20664
20665         Fix gnulib-tool sed script de-commentation for AIX sed.
20666         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20667         sed.
20668
20669 2010-08-17  Eric Blake  <eblake@redhat.com>
20670
20671         test-stddef: test for (some) offsetof bugs
20672         * tests/test-stddef.c: Enhance test to ensure correct type of
20673         offsetof.
20674         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20675         that we are not fixing at this time.
20676
20677 2010-08-15  Bruno Haible  <bruno@clisp.org>
20678
20679         stpncpy: Allow stpncpy to be defined as a macro.
20680         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20681         if it's already correctly declared.
20682         * lib/string.in.h (stpncpy): Undefine before redefining.
20683         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20684
20685 2010-08-14  Bruno Haible  <bruno@clisp.org>
20686
20687         Rename module 'memxfrm' to 'amemxfrm'.
20688         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20689         (amemxfrm): Renamed from memxfrm.
20690         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20691         (amemxfrm): Renamed from memxfrm.
20692         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20693         * NEWS: Mention the change.
20694         * MODULES.html.sh (String handling <string.h>): Update.
20695         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20696         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20697         * lib/unicase/u16-casexfrm.c: Likewise.
20698         * lib/unicase/u32-casexfrm.c: Likewise.
20699         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20700         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20701         * lib/uninorm/u16-normxfrm.c: Likewise.
20702         * lib/uninorm/u32-normxfrm.c: Likewise.
20703         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20704         memxfrm.
20705         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20706         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20707         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20708         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20709         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20710         Suggested by Paul Eggert.
20711
20712 2010-08-14  Bruno Haible  <bruno@clisp.org>
20713
20714         Tests for module 'astrxfrm'.
20715         * modules/astrxfrm-tests: New file.
20716         * tests/test-astrxfrm.c: New file.
20717
20718         New module 'astrxfrm'.
20719         * lib/astrxfrm.h: New file.
20720         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20721         * modules/astrxfrm: New file.
20722
20723 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20724
20725         regex: Tweak doc.
20726         * doc/regex.texi (Overview): Don't mention regex.c.
20727         (GNU Regular Expression Compiling): Likewise.
20728         (Match-end-of-line Operator): Mention 'not_eol'.
20729
20730 2010-08-14  Brian Gough  <bjg@gnu.org>
20731             Bruno Haible  <bruno@clisp.org>
20732
20733         git-merge-changelog: add doc relating to use with bzr and hg.
20734         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20735
20736 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20737
20738         pthread: fix pthread.h creation for srcdir != builddir
20739         * modules/pthread (Makefile.am): Fix the rule to work also in a
20740         non-srcdir build.
20741
20742 2010-08-13  Karl Berry  <karl@gnu.org>
20743
20744         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20745         * doc/posix-*/*: force line break before @url of POSIX
20746         specifications.
20747         Suggested by Werner Lemberg.
20748
20749 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20750
20751         strtod: fix const diagnostic
20752         * lib/strtod.c (strtod): Don't assign const char * to char *,
20753         as this elicits a warning from GCC when warnings are enabled.
20754
20755 2010-08-10  Pádraig Brady <P@draigbrady.com>
20756         and Eric Blake  <eblake@redhat.com>
20757
20758         copy-acl: ignore ENOTSUP on HP-UX
20759         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20760         so that it is available for HP-UX.
20761         * lib/copy-acl.c (qcopy_acl): Use it.
20762         Reported by Patrick M. Callahan.
20763
20764 2010-08-10  Eric Blake  <eblake@redhat.com>
20765
20766         open, chown: relax license
20767         * modules/open (License): Change to LGPLv2+, with consent by all
20768         authors, for use in augeas.
20769         * modules/chown (License): Likewise.
20770         * modules/lchown (Likewise): Likewise.
20771         Requested by Adam Stokes.
20772
20773 2010-08-09  Karl Berry  <karl@gnu.org>
20774
20775         * build-aux/ar-lib: new file, import from Automake.
20776         * config/srclist.txt: autocheck for updates.
20777
20778 2010-08-09  Eric Blake  <eblake@redhat.com>
20779
20780         readlinkat: adjust client modules
20781         * modules/areadlinkat (Depends-on): Use readlinkat, not
20782         symlinkat.
20783         * modules/areadlinkat-with-size (Depends-on): Likewise.
20784
20785         mknod: be more vocal about danger of running tests as root
20786         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20787         root, since that is just asking for problems.
20788         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20789
20790         readlinkat: split into its own module
20791         * modules/symlinkat: Split readlinkat...
20792         * modules/readlinkat: ...into separate module.
20793         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20794         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20795         * lib/symlinkat.c (readlinkat): Move...
20796         * lib/readlinkat.c: ...into new file.
20797         * modules/symlinkat-tests: Split readlinkat test...
20798         * modules/readlinkat-tests: ...into separate module.
20799         * tests/test-symlinkat.c: Split...
20800         * tests/test-readlinkat.c: ...into new file.
20801         * NEWS: Document the split.
20802         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20803         * lib/unistd.in.h (readlinkat): Likewise.
20804         Suggested by Bruno Haible.
20805
20806 2010-08-08  Bruno Haible  <bruno@clisp.org>
20807
20808         memxfrm: Speed up.
20809         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20810         that usually only one call to strxfrm is necessary for each string
20811         part.
20812         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20813
20814 2010-08-07  Karl Berry  <karl@gnu.org>
20815
20816         * doc/posix-headers/limits.texi,
20817         * doc/posix-functions/malloc.texi,
20818         * doc/posix-functions/strsignal.texi: missing @item.
20819         * doc/ld-version-script.texi: spurious leading i.
20820         * doc/regex.texi (Interval Operators): no commas inside @var.
20821
20822 2010-08-01  Bruno Haible  <bruno@clisp.org>
20823
20824         Integrate the regex documentation.
20825         * doc/gnulib.texi: Define 'cn' index.
20826         (Regular expressions): New a chapter that includes regex.texi and
20827         regexprops-generic.texi.
20828         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20829         syntax.
20830
20831         Whitespace cleanup.
20832         * doc/regex.texi: Remove trailing spaces.
20833
20834         Add regex documentation.
20835         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20836         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20837         Written by Kathy A. Hargreaves and Karl Berry.
20838
20839 2010-08-01  Bruno Haible  <bruno@clisp.org>
20840
20841         link: Update documentation.
20842         * doc/posix-functions/link.texi: Update regarding Solaris.
20843
20844 2010-07-31  Bruno Haible  <bruno@clisp.org>
20845
20846         Update modules list.
20847         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20848         (String handling <string.h>): Add memcmp2, memxfrm.
20849         (Container data structures): Add xlist, xsublist, xoset.
20850         (Core language properties): Add alignof, unused-parameter.
20851         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20852         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20853         (Unibyte characters <ctype.h>): New section.
20854         (String handling <string.h>): New section.
20855         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20856         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20857         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20858         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20859         tan, tanh, tanl, y0, y1, yn.
20860         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20861         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20862         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20863         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20864         unlockpt, vdprintf, vdprintf-posix.
20865         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20866         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20867         xconcat-filename.
20868         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20869         getdtablesize, pipe2, pipe2-safer.
20870         (Security): New section.
20871         (Networking functions): Add accept4.
20872         (Signal handling): Add sigpipe.
20873         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20874         mbmemcasecoll.
20875         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20876         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20877         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20878         pipe-filter-ii.
20879         (Misc): Add argp-version-etc, login_tty, parse-duration.
20880
20881 2010-07-31  Bruno Haible  <bruno@clisp.org>
20882
20883         Improve doc in MODULES.html.
20884         * modules/linkat (Description): Add the word "function".
20885         * modules/mkfifo (Description): Likewise.
20886         * modules/mknod (Description): Likewise.
20887         * modules/remove (Description): Likewise.
20888         * modules/renameat (Description): Likewise.
20889         * modules/stat (Description): Likewise.
20890         * modules/symlink (Description): Likewise.
20891         * modules/unlink (Description): Likewise.
20892
20893 2010-07-31  Bruno Haible  <bruno@clisp.org>
20894
20895         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20896         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20897         option --enable/disable-c++ instead of --enable/disable-cxx.
20898         * NEWS: Mention the change.
20899
20900 2010-07-31  Bruno Haible  <bruno@clisp.org>
20901
20902         readlink, areadlink: Relax test a bit.
20903         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20904         alternative to ENOTDIR.
20905         * tests/test-areadlink.h (test_areadlink): Likewise.
20906         Reported by Rainer Tammer.
20907
20908 2010-07-31  Bruno Haible  <bruno@clisp.org>
20909
20910         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20911         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20912         character, perform the search using U_STRCHR.
20913         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20914         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20915         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20916         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20917         Suggested by Paolo Bonzini.
20918
20919 2010-07-31  Bruno Haible  <bruno@clisp.org>
20920
20921         unistr/u*-strstr: Fix dependencies.
20922         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20923         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20924         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20925
20926 2010-07-31  Bruno Haible  <bruno@clisp.org>
20927
20928         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20929         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20930         the beginning of the loop.
20931         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20932         cases in 'switch' statement.
20933
20934         unistr/u8-strchr: Fix several bugs.
20935         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20936         the string. When not found, return NULL, not a pointer near the end.
20937
20938         More tests for unistr/u8-strchr.
20939         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20940         that the function does not read past the first occurrence of the byte
20941         being searched.
20942         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20943         * tests/unistr/test-u16-strchr.c (main): New function.
20944         * tests/unistr/test-u32-strchr.c (main): New function.
20945
20946 2010-07-31  Bruno Haible  <bruno@clisp.org>
20947
20948         posix-modules: Ignore backup files of documentation files.
20949         * posix-modules: grep only through files named *.texi.
20950
20951 2010-07-31  Bruno Haible  <bruno@clisp.org>
20952
20953         symlinkat: Fix documentation.
20954         * doc/posix-functions/readlinkat.texi: Fix module name.
20955
20956 2010-07-31  Bruno Haible  <bruno@clisp.org>
20957
20958         fchownat: Replace also when chown has the trailing slash bug.
20959         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20960         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20961         introduced on 2010-04-10.
20962         Reported by Rainer Tammer.
20963
20964 2010-07-31  Bruno Haible  <bruno@clisp.org>
20965
20966         linkat: Work around AIX 7.1 bug.
20967         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20968         whether linkat handles trailing slash correctly. If not, replace linkat
20969         and define LINKAT_TRAILING_SLASH_BUG.
20970         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20971         check whether (fd1,file1) points to a directory if file1 or file2 ends
20972         in a slash. Code taken from lib/link.c.
20973         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20974         Reported by Rainer Tammer.
20975
20976 2010-07-31  Bruno Haible  <bruno@clisp.org>
20977
20978         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20979         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20980         This disables an xlc optimization that was causing wrong test results.
20981         Reported by Rainer Tammer.
20982
20983 2010-07-31  Bruno Haible  <bruno@clisp.org>
20984
20985         iconv: Work around AIX 6.1..7.1 bug.
20986         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20987         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20988         cross-compiling, guess no on all versions of AIX.
20989         Reported by Rainer Tammer.
20990
20991 2010-07-31  Bruno Haible  <bruno@clisp.org>
20992
20993         readlink: Relax test a bit.
20994         * tests/test-readlink.h (test_readlink): Allow different errno value
20995         when readlink is called with a file name that ends in / and refers to
20996         a file.
20997         Suggested by Eric Blake.
20998         Reported by Rainer Tammer.
20999
21000 2010-07-31  Bruno Haible  <bruno@clisp.org>
21001
21002         copysign: Does not require -lm on glibc systems.
21003         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21004         gl_COMMON_DOUBLE_MATHFUNC.
21005         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21006
21007 2010-07-31  Bruno Haible  <bruno@clisp.org>
21008
21009         duplocale: Work around AIX 7.1 bug.
21010         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21011         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21012         * lib/duplocale.c (rpl_duplocale): Update comment.
21013         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21014         Reported by Rainer Tammer.
21015
21016 2010-07-30  Bruno Haible  <bruno@clisp.org>
21017
21018         dirfd: Avoid link error on AIX 7.1.
21019         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21020         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21021         exist, set REPLACE_DIRFD.
21022         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21023         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21024         * doc/posix-functions/dirfd.texi: Update.
21025         Reported by Rainer Tammer.
21026
21027 2010-07-30  Eric Blake  <eblake@redhat.com>
21028
21029         strtod: next round of AIX fixes
21030         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21031         exponent.
21032         * tests/test-strtod.c (main): Enhance tests.
21033         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21034         Reported by Rainer Tammer.
21035
21036         futimens: fix configure check
21037         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21038         Reported by Bruno Haible.
21039
21040 2010-07-30  Bruno Haible  <bruno@clisp.org>
21041
21042         getline: Update regarding AIX.
21043         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21044         Reported by Rainer Tammer.
21045
21046 2010-07-30  Bruno Haible  <bruno@clisp.org>
21047
21048         wcwidth: Drop replacement on AIX 7.
21049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21050         AIX 7.
21051         Reported by Rainer Tammer.
21052
21053 2010-07-30  Bruno Haible  <bruno@clisp.org>
21054
21055         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21056         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21057         a 'char *'.
21058         Reported by Rainer Tammer.
21059
21060 2010-07-30  Bruno Haible  <bruno@clisp.org>
21061
21062         unlink: Update regarding AIX.
21063         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21064         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21065         Reported by Rainer Tammer.
21066
21067 2010-07-30  Bruno Haible  <bruno@clisp.org>
21068
21069         symlink: Update regarding AIX.
21070         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21071         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21072         Reported by Rainer Tammer.
21073
21074 2010-07-30  Bruno Haible  <bruno@clisp.org>
21075
21076         strndup: Update regarding AIX.
21077         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21078         AIX 7.
21079         Reported by Rainer Tammer.
21080
21081 2010-07-30  Bruno Haible  <bruno@clisp.org>
21082
21083         stat: Update regarding AIX.
21084         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21085         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21086         Reported by Rainer Tammer.
21087
21088 2010-07-30  Bruno Haible  <bruno@clisp.org>
21089
21090         truncl: Fix autoconf test.
21091         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21092         whether truncl works.
21093         Reported by Rainer Tammer.
21094
21095 2010-07-30  Bruno Haible  <bruno@clisp.org>
21096
21097         round: Update regarding AIX.
21098         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21099         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21100         Reported by Rainer Tammer.
21101
21102 2010-07-30  Bruno Haible  <bruno@clisp.org>
21103
21104         rename: Update regarding AIX.
21105         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21106         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21107         Reported by Rainer Tammer.
21108
21109 2010-07-30  Bruno Haible  <bruno@clisp.org>
21110
21111         printf.m4: Update regarding AIX.
21112         * m4/printf.m4: Update comments regarding AIX.
21113         Reported by Rainer Tammer.
21114
21115 2010-07-30  Bruno Haible  <bruno@clisp.org>
21116
21117         iconv: Update regarding AIX.
21118         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21119         AIX 7.
21120         Reported by Rainer Tammer.
21121
21122 2010-07-30  Bruno Haible  <bruno@clisp.org>
21123
21124         getopt: Update regarding AIX.
21125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21126         no on AIX.
21127         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21128         Reported by Rainer Tammer.
21129
21130 2010-07-30  Bruno Haible  <bruno@clisp.org>
21131
21132         ldexpl; Update regarding AIX.
21133         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21134         on AIX 7.
21135         Reported by Rainer Tammer.
21136
21137 2010-07-30  Bruno Haible  <bruno@clisp.org>
21138
21139         frexpl: Update regarding AIX.
21140         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21141         on AIX 7.
21142         Reported by Rainer Tammer.
21143
21144 2010-07-30  Bruno Haible  <bruno@clisp.org>
21145
21146         open, fopen: Update regarding AIX.
21147         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21148         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21149         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21150         * doc/posix-functions/fopen.texi: Likewise.
21151         Reported by Rainer Tammer.
21152
21153 2010-07-30  Bruno Haible  <bruno@clisp.org>
21154
21155         chown: Update doc regarding AIX.
21156         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21157         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21158         Reported by Rainer Tammer.
21159
21160 2010-07-30  Eric Blake  <eblake@redhat.com>
21161
21162         strtod: fix bug in replacement function on AIX
21163         * lib/strtod.c (strtod): Special case broken "0x" parse in
21164         underlying strtod.
21165         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21166         * doc/posix-functions/strtod.texi (strtod): Likewise.
21167         Reported by Rainer Tammer.
21168
21169 2010-07-30  Bruno Haible  <bruno@clisp.org>
21170
21171         mbrlen: Fix cross-compilation guess for AIX.
21172         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21173         guess. Leftover from 2008-12-22.
21174
21175 2010-07-30  Bruno Haible  <bruno@clisp.org>
21176
21177         mbrtowc: Fix cross-compilation guess for AIX.
21178         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21179         guess. Leftover from 2008-12-21.
21180
21181 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21182
21183         init.sh: work around trap limitation of some shells
21184         * tests/init.sh (setup_): Move exit trap outside of shell function.
21185
21186 2010-07-29  Eric Blake  <eblake@redhat.com>
21187
21188         strtod: aid debugging
21189         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21190         understanding why strtod is rejected.
21191
21192 2010-07-28  Bruno Haible  <bruno@clisp.org>
21193
21194         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21195         * lib/unistr/u8-chr.c: Include <string.h>.
21196         * tests/unistr/test-u8-chr.c: Likewise.
21197         * tests/unistr/test-u16-chr.c: Likewise.
21198         * tests/unistr/test-u32-chr.c: Likewise.
21199         * tests/unistr/test-u8-strchr.c: Likewise.
21200         * tests/unistr/test-u16-strchr.c: Likewise.
21201         * tests/unistr/test-u32-strchr.c: Likewise.
21202         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21203         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21204         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21205         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21206
21207 2010-07-28  Bruno Haible  <bruno@clisp.org>
21208
21209         Use spaces for indentation, not tabs.
21210         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21211
21212 2010-07-27  Bruno Haible  <bruno@clisp.org>
21213
21214         mbspcasecmp: Fix function specification.
21215         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21216         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21217         Reported by Eric Blake <eblake@redhat.com>.
21218
21219 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21220
21221         timespec: use cast and not conditional, as truncation isn't possible
21222         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21223         instead of a conditional.  Comment about the situation in more detail.
21224         This undoes most of the 2009-10-29 patch.
21225
21226 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21227
21228         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21229         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21230         * lib/unistr/u8-strchr.c: Likewise.
21231         * modules/unistr/u8-chr: Depend on memchr.
21232
21233         unistr/u*-strchr: add tests
21234         * modules/unistr/u8-strchr-tests: New file.
21235         * modules/unistr/u16-strchr-tests: New file.
21236         * modules/unistr/u32-strchr-tests: New file.
21237         * tests/unistr/test-strchr.h: New file.
21238         * tests/unistr/test-u8-strchr.c: New file.
21239         * tests/unistr/test-u16-strchr.c: New file.
21240         * tests/unistr/test-u32-strchr.c: New file.
21241
21242         unistr/u*-chr: test multibyte sequences more
21243         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21244         test vector.
21245         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21246         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21247         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21248
21249         unistr/u*-chr: test multibyte sequences
21250         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21251
21252         unistr/u*-chr: prepare for multibyte tests
21253         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21254         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21255         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21256         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21257         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21258         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21259
21260 2010-07-18  Bruno Haible  <bruno@clisp.org>
21261
21262         unistr/u8-strchr: Optimize non-ASCII argument case.
21263         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21264         because the first byte often matches anyway.
21265         Reported by Pádraig Brady <P@draigbrady.com>.
21266
21267 2010-07-15  Karl Berry  <karl@gnu.org>
21268
21269         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21270
21271 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21272
21273         getcwd: on Solaris, work better if ancestors are inaccessible
21274         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21275         buffer and size, try again with a large buffer.  This works better
21276         on Solaris, since its getcwd succeeds even if the path to the root
21277         is inaccessible, and this is helpful in common cases such as .zfs
21278         hidden directories.  Problem reported by J Chapman Flack in
21279         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21280         Use system getcwd if it's declared, not merely if it's partly
21281         working; use the partly-working test only to avoid needless effort
21282         if the system getcwd fails.
21283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21284         comment that was already obsolete and is now even more obsolete.
21285         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21286         now might call strdup.
21287
21288 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21289
21290         pthread: Add enough so that coreutils/src/sort.c compiles.
21291         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21292         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21293         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21294         Include <sys/types.h>, in case it defines pthread_t.
21295         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21296         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21297         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21298         (pthread_rwlockattr_t, pthread_spinlock_t):
21299         New typedefs, if HAVE_PTHREAD_T is not defined.
21300         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21301         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21302         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21303         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21304         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21305         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21306         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21307         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21308         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21309         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21310         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21311         New macros.
21312         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21313         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21314         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21315         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21316         (pthread_spin_unlock): New dummy functions.
21317         (pthread_create): Return EAGAIN; don't set errno.
21318         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21319         require AC_C_INLINE.
21320         * modules/pthread (Depends-on): Add sched, time.
21321         (pthread.h): Use AM_V_GEN.
21322
21323 2010-07-13  Bruno Haible  <bruno@clisp.org>
21324
21325         striconveh: Don't malloc memory if the result buffer is sufficient.
21326         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21327         buffer if its size is sufficient.
21328         Reported by Ludovic Courtès <ludo@gnu.org>.
21329
21330 2010-07-13  Bruno Haible  <bruno@clisp.org>
21331
21332         strtod: Add safety check.
21333         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21334
21335 2010-07-12  Bruno Haible  <bruno@clisp.org>
21336
21337         Unify tests that set gl_cv_func_ldexpl_no_libm.
21338         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21339         gl_FUNC_LDEXPL.
21340         (gl_FUNC_LDEXPL): Invoke it.
21341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21342
21343 2010-07-12  Bruno Haible  <bruno@clisp.org>
21344
21345         Unify tests that set gl_cv_func_ldexp_no_libm.
21346         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21347         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21348         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21349         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21350         * modules/strtod (Files): Add m4/ldexp.m4.
21351
21352 2010-07-12  Bruno Haible  <bruno@clisp.org>
21353
21354         Unify tests that set gl_cv_func_frexpl_no_libm.
21355         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21356         gl_FUNC_FREXPL_NO_LIBM.
21357         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21358         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21359
21360 2010-07-12  Bruno Haible  <bruno@clisp.org>
21361
21362         Unify tests that set gl_cv_func_frexp_no_libm.
21363         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21364         gl_FUNC_FREXP_NO_LIBM.
21365         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21366         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21367
21368 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21369
21370         memcoll: clarify sizes versus lengths, document better, and tweak perf
21371         * lib/memcoll.c (strcoll_loop, memcoll0):
21372         Improve quality of descriptive comments.  Name variables
21373         consistently as to whether they are lengths (which do not include
21374         terminating null) versus sizes (which do).
21375         * lib/xmemcoll.c (xmemcoll0): Likewise.
21376         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21377         returned when s1size == 0; this is easier to compile and saves
21378         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21379
21380 2010-07-12  Bruno Haible  <bruno@clisp.org>
21381
21382         Tests for module '_Exit'.
21383         * modules/_Exit-tests: New file.
21384         * tests/test-_Exit.sh: New file.
21385         * tests/test-_Exit.c: New file.
21386
21387         New module '_Exit'.
21388         * lib/stdlib.in.h (__attribute__): New macro.
21389         (_Exit): New declaration.
21390         * lib/_Exit.c: New file.
21391         * m4/_Exit.m4: New file.
21392         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21393         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21394         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21395         * modules/_Exit: New file.
21396         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21397         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21398
21399 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21400
21401         strtod: make it more-accurate typically, and don't require libm
21402         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21403         Include limits.h.  Don't include string.h.
21404         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21405         (locale_isspace): New function, so that no casts are needed to
21406         check whether *s is a space.
21407         (ldexp): Provide an unused dummy if not available.
21408         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21409         (strtod): Use them.  This implementation prefers to use the
21410         underlying strtod if available, falling back on our own code
21411         only to fix known bugs.  This is more likely to produce an
21412         accurate result.  Also, it avoids the use of libm functions.
21413         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21414         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21415         was absent, but it caused a test failure with coreutils.
21416         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21417         with libm.
21418         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21419         * modules/strtod-tests (Makefile.am): Likewise.
21420
21421 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21422             Bruno Haible  <bruno@clisp.org>
21423
21424         unistr/u8-strchr: Optimize ASCII argument case.
21425         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21426
21427 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21428
21429         (x)memcoll: minor tweaks
21430         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21431         is after the type that it qualifies.
21432         (memcoll0): Likewise.
21433         * lib/memcoll.h (memcoll0): Likewise.
21434         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21435         * lib/xmemcoll.h (xmemcoll0): Likewise.
21436         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21437         differs from memcoll in that the NUL byte is part of the argument.
21438         Omit the abort-checks, as performance is a real issue here.  Plus,
21439         the checks were wrong anyway (an off-by-one error).  Omit local
21440         variable 'diff', as it's a bit clearer that way.
21441         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21442         no longer needed.
21443
21444 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21445
21446         (x)memcoll: speedup when input is known to be NUL delimited
21447         * lib/memcoll.c: Include stdlib.
21448         (memcoll0): New function.
21449         (strcoll_loop): New function, refactored for use in both memcoll
21450         and memcoll0.
21451         * lib/memcoll.h (memcoll0): Add prototype.
21452         * lib/xmemcoll.c (xmemcoll0): New function.
21453         (collate_error): New function, refactored for use in both xmemcoll
21454         and xmemcoll0.
21455         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21456         * m4/memcoll.m4: add inline invocation.
21457
21458 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21459
21460         * build-aux/bootstrap: Remove any local translations
21461         from the translation project synchronization directory,
21462         so that local only translations are not distributed.
21463
21464 2010-07-04  Bruno Haible  <bruno@clisp.org>
21465
21466         fsusage: Clarify which code applies to which platforms.
21467         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21468         platform.
21469         * lib/fsusage.c (get_fs_usage): Likewise.
21470
21471 2010-07-04  Bruno Haible  <bruno@clisp.org>
21472
21473         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21474         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21475         Reported by Martin Lambers <marlam@marlam.de>.
21476
21477 2010-07-04  Jim Meyering  <meyering@redhat.com>
21478
21479         hash: once again explicitly disallow insertion of NULL
21480         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21481         inserting a NULL pointer cannot work with these functions.
21482         Add a comment with details.
21483         This reverts part of the 2010-07-01 commit, 5bef1a35
21484         "hash: extend module to deal with non-pointer keys".
21485
21486 2010-07-01  Bruno Haible  <bruno@clisp.org>
21487
21488         stdbool: Update doc.
21489         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21490         Info from Christian Weisgerber <naddy@mips.inka.de>.
21491
21492 2010-07-01  Jim Meyering  <meyering@redhat.com>
21493
21494         hash: extend module to deal with non-pointer keys
21495         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21496         but that allows insertion of non-pointer entries.
21497         Do not disallow an ENTRY value of NULL.
21498         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21499         * lib/hash.h (hash_insert0): Declare.
21500
21501 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21502
21503         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21504         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21505         not present (i.e. with autoconf 2.59 and when using gettextize, not
21506         gnulib), require AC_GNU_SOURCE instead.
21507
21508 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21509
21510         idpriv-drop: Fix tests.
21511         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21512         not to the test-idpriv-droptemp program.
21513
21514 2010-06-29  Bruno Haible  <bruno@clisp.org>
21515
21516         string: Fix syntax error with g++ 2.96.
21517         * lib/string.in.h (__pure__): Remove definition.
21518         (_GL_ATTRIBUTE_PURE): New macro.
21519         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21520         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21521         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21522
21523 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21524
21525         unitypes: Fix bug introduced on 2010-05-18.
21526         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21527
21528 2010-06-22  Eric Blake  <eblake@redhat.com>
21529
21530         memmem: slight optimization
21531         * lib/str-two-way.h (critical_factorization): Update comments.
21532         Reduce work during factorization phase.
21533         Reported by Carlos Bueno <carlos@bueno.org>.
21534
21535 2010-06-21  Bruno Haible  <bruno@clisp.org>
21536
21537         Fix HAVE_CALLOC_POSIX misnomer.
21538         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21539         !HAVE_CALLOC_POSIX.
21540         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21541         HAVE_CALLOC_POSIX.
21542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21543         instead of HAVE_CALLOC_POSIX.
21544         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21545         HAVE_CALLOC_POSIX.
21546
21547         Use modern idiom for calloc() replacement.
21548         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21549         AC_FUNC_CALLOC.
21550         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21551         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21552         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21553         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21554         (gl_REPLACE_CALLOC): New macro.
21555
21556 2010-06-21  Bruno Haible  <bruno@clisp.org>
21557
21558         Fix HAVE_REALLOC_POSIX misnomer.
21559         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21560         !HAVE_REALLOC_POSIX.
21561         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21562         HAVE_REALLOC_POSIX.
21563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21564         instead of HAVE_REALLOC_POSIX.
21565         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21566         HAVE_REALLOC_POSIX.
21567
21568         Use modern idiom for realloc() replacement.
21569         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21570         AC_FUNC_REALLOC.
21571         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21572         Autoconf's AC_FUNC_REALLOC.
21573         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21574         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21575         (gl_REPLACE_REALLOC): New macro.
21576         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21577
21578 2010-06-21  Bruno Haible  <bruno@clisp.org>
21579
21580         Fix HAVE_MALLOC_POSIX misnomer.
21581         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21582         !HAVE_MALLOC_POSIX.
21583         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21584         HAVE_MALLOC_POSIX.
21585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21586         instead of HAVE_MALLOC_POSIX.
21587         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21588         HAVE_MALLOC_POSIX.
21589
21590         Use modern idiom for malloc() replacement.
21591         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21592         AC_FUNC_MALLOC.
21593         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21594         Autoconf's AC_FUNC_MALLOC.
21595         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21596         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21597         (gl_REPLACE_MALLOC): New macro.
21598         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21599
21600 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21601
21602         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21603         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21604         This macro takes 3 arguments, not 4.
21605
21606 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21607
21608         ipv6: fix detection under mingw
21609         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21610         in6_addr.
21611
21612 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21613
21614         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21615         that strtod() works when cross-compiling to a glibc version known
21616         to work.
21617
21618 2010-06-15  Bruno Haible  <bruno@clisp.org>
21619
21620         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21621
21622 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21623
21624         select: Correct timeout.
21625         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21626
21627 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21628
21629         git-version-gen: init shell var to avoid env var influence
21630         * build-aux/git-version-gen (v): Init shell var to empty.
21631
21632 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21633
21634         priv-set: Don't assume that priv.h exists merely because getppriv does.
21635         See Jan Andersen's bug report about AIX 5L in
21636         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21637         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21638         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21639         * lib/priv-set.h: Likewise.
21640         * tests/test-priv-set.c: Likewise.
21641
21642 2010-06-13  Bruno Haible  <bruno@clisp.org>
21643
21644         relocatable: Make it easier to test whether to install wrappers.
21645         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21646         RELOCATABLE_VIA_WRAPPER.
21647
21648 2010-06-13  Bruno Haible  <bruno@clisp.org>
21649
21650         gnulib-tool: Display specified modules and dependencies differently.
21651         * gnulib-tool (func_show_module_list): New function.
21652         (func_import, func_create_testdir): Invoke it.
21653         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21654
21655 2010-06-13  Bruno Haible  <bruno@clisp.org>
21656
21657         gnulib-tool: Align code of func_import and func_create_testdir.
21658         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21659         specified_modules.
21660
21661 2010-06-12  Jim Meyering  <meyering@redhat.com>
21662
21663         test-inttostr: avoid spurious failure on Solaris 9
21664         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21665         to accept "%ju".  Reported by Bruno Haible.
21666
21667 2010-06-11  Jim Meyering  <meyering@redhat.com>
21668
21669         test-sys_socket: mark variables as used more readably
21670         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21671         as "used" explicitly via (void) statement casts.  This is more
21672         readable than using them in an artificial return expression.
21673         Suggestion from Bruno Haible.
21674
21675 2010-06-11  Bruno Haible  <bruno@clisp.org>
21676
21677         Avoid some more warnings from "gcc -Wwrite-strings".
21678         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21679         to 'const char *'.
21680         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21681         * tests/test-c-strcasestr.c (main): Likewise.
21682         * tests/test-mbscasestr1.c (main): Likewise.
21683         * tests/test-mbscasestr2.c (main): Likewise.
21684         * tests/test-memmem.c (main): Likewise.
21685         * tests/test-strstr.c (main): Likewise.
21686         * tests/test-strcasestr.c (main): Likewise.
21687
21688 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21689
21690         init.sh: change framework_failure_ to fail with status 99, not 1
21691         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21692         automake's parallel-tests rule that this is an unexpected failure,
21693         even if the test is listed in XFAIL_TESTS.
21694
21695 2010-06-11  Jim Meyering  <meyering@redhat.com>
21696
21697         test-inttostr: avoid warnings about 4-6KB literal strings
21698         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21699         Include "macros.h", for its definition of ASSERT.
21700         (CK): s/assert/ASSERT/
21701         * modules/inttostr-tests (Files): Add macros.h.
21702
21703         init.sh: don't use $ME_ or skip_ before they are defined
21704         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21705         their first uses.  Also hoist their companions: warn_, fail_,
21706         framework_failure_, $stderr_fileno.  Prompted by a patch from
21707         Stefano Lattarini.
21708
21709         test-sys_socket: avoid set-but-not-used warnings from gcc
21710         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21711         avoid warning about set-but-not-used variables.
21712
21713         test-xvasprintf: avoid 'const' discard warnings
21714         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21715         "const" when assigning from literal strings.
21716         (test_xasprintf): Add "void" in function argument list to placate
21717         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21718
21719         tests: avoid compilation warnings in argmatch and exclude tests...
21720         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21721         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21722         Since it always exits, declare with the "noreturn" attribute.
21723         * tests/test-argmatch.c: Likewise.
21724
21725         tests: avoid 'const' discard warnings in mbsstr tests
21726         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21727         * tests/test-mbsstr2.c (main): Likewise.
21728
21729         test-verify: avoid warning from gcc's -Wmissing-declarations
21730         * tests/test-verify.c (function): Declare to be static.
21731
21732         test-inttostr.c: include <string.h> for use of strcmp
21733         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21734
21735         test-linkat: avoid failed assertion on "other" architectures
21736         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21737         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21738         sparc: https://bugs.launchpad.net/bugs/591968
21739
21740 2010-06-11  Jim Meyering  <meyering@redhat.com>
21741
21742         printf.m4: avoid autoconf's "Expanded Before Required" warning
21743         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21744         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21745         autoconf warning.
21746
21747 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21748
21749         Replacement header templates are now named with ".in", not "_".
21750         * doc/gnulib-intro.texi: Correct.
21751
21752 2010-06-10  Jim Meyering  <meyering@redhat.com>
21753
21754         inttostr-tests: depend on snprintf, not snprintf-posix
21755         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21756         snprintf-posix, to avoid this aclocal failure:
21757           missing file gnulib-tests/vasnprintf.c
21758           configure.ac:45: error: expected source file, required through \
21759           AC_LIBSOURCES, not found
21760
21761 2010-06-10  Jim Meyering  <meyering@redhat.com>
21762
21763         inttostr: add a new function, inttostr, and tests
21764         The namesake function was not available.  The existence of the
21765         template file, inttostr.c makes its addition nontrivial.
21766         * lib/anytostr.c: Rename from inttostr.c.
21767         (anytostr): Rename from inttostr.
21768         * lib/inttostr.c: New file.
21769         * modules/inttostr (Files): Add anytostr.c.
21770         (Makefile.am): Set lib_SOURCES instead of ...
21771         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21772         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21773         * lib/offtostr.c: Likewise.
21774         * lib/uinttostr.c: Likewise.
21775         * lib/umaxtostr.c: Likewise.
21776         * modules/inttostr-tests: New file.
21777         * tests/test-inttostr.c: New file.  Test these functions.
21778
21779 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21780             Bruno Haible  <bruno@clisp.org>
21781
21782         Add "Extending Gnulib" chapter to manual.
21783         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21784         chapter.
21785         (Extending Gnulib): New chapter.
21786         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21787         chapter.
21788
21789 2010-06-09  Bruno Haible  <bruno@clisp.org>
21790
21791         Avoid relocwrapper link errors due to gnulib replacement functions.
21792         * lib/areadlink.c: Use the system's malloc, realloc functions.
21793         (areadlink): Set errno to ENOMEM explicitly.
21794         * modules/areadlink (Depends-on): Remove malloc-posix.
21795         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21796
21797 2010-06-09  Bruno Haible  <bruno@clisp.org>
21798
21799         Avoid relocwrapper link errors due to gnulib replacement functions.
21800         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21801         * lib/malloca.c: Likewise.
21802         * lib/relocatable.c: Likewise.
21803         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21804         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21805         * lib/setenv.c: Use the system's malloc, realloc functions.
21806         * lib/strerror.c: Use the system's sprintf function.
21807         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21808
21809 2010-06-04  Bruno Haible  <bruno@clisp.org>
21810
21811         Prefer documented low-level autoconf macro names.
21812         * m4/lib-link.m4: Use m4_translit instead of translit.
21813         * m4/environ.m4: Likewise.
21814         * m4/mathfunc.m4: Likewise.
21815         * m4/onceonly.m4: Likewise.
21816         * m4/stdint.m4: Likewise.
21817         Suggested by Eric Blake.
21818
21819 2010-06-04  Martin Lambers  <marlam@marlam.de>
21820             Bruno Haible  <bruno@clisp.org>
21821
21822         havelib: Allow library names with '+' characters.
21823         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21824         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21825
21826 2010-06-09  Bruno Haible  <bruno@clisp.org>
21827
21828         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21829         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21830         realloc failed.
21831
21832 2010-06-08  Peter Simons  <simons@cryp.to>
21833
21834         maint.mk: make the news-check rule more configurable
21835         * top/maint.mk (news-check-lines-spec): New variable.
21836         (news-check): Use "sed -n 1,10p" in place of "head".
21837
21838 2010-06-07  Jim Meyering  <meyering@redhat.com>
21839
21840         do-release-commit-and-tag: fix typo in --help
21841         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21842
21843         regex: avoid new dead-code warning with gcc-4.6.0
21844         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21845         if-block containing a while-loop.  It's been unused for at least
21846         5 years.
21847
21848 2010-06-05  Bruno Haible  <bruno@clisp.org>
21849
21850         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21851         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21852
21853 2010-06-04  Bruno Haible  <bruno@clisp.org>
21854
21855         Update to GNU gettext 0.18.1.
21856         * modules/gettext (configure.ac): Require gettext infrastructure from
21857         version 0.18.1.
21858
21859 2010-06-03  Bruno Haible  <bruno@clisp.org>
21860
21861         Don't use AC_LIBOBJ with file names in subdirectories.
21862         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21863         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21864         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21865         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21866         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21867         gl_LIBUNISTRING_LIBSOURCE.
21868         (Makefile.am): Augment lib_SOURCES here, conditionally.
21869         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21870
21871 2010-06-03  Bruno Haible  <bruno@clisp.org>
21872
21873         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21874         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21875         expansion does not end with a newline.
21876         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21877         unnecessary newline.
21878
21879 2010-06-03  Bruno Haible  <bruno@clisp.org>
21880
21881         Reduce dependencies.
21882         * tests/test-quotearg.h: New file, extracted from
21883         tests/test-quotearg.c.
21884         * tests/test-quotearg-simple.c: New file, extracted from
21885         tests/test-quotearg.c.
21886         * tests/test-quotearg.c: Don't include <ctype.h>.
21887         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21888         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21889         use_quote_double_quotes, use_quotearg_colon): Moved to
21890         tests/test-quotearg.h.
21891         (results_g, flag_results, custom_quotes, custom_results): Moved
21892         to tests/test-quotearg-simple.c.
21893         (main): Moved the part that does not depend on gettext to
21894         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21895         performed.
21896         * modules/quotearg-simple: New file.
21897         * modules/quotearg-simple-tests: New file.
21898         * modules/quotearg (Depends-on): Add quotearg-simple.
21899         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21900         (Files): Add tests/test-quotearg.h.
21901         Reported by Paolo Bonzini.
21902
21903 2010-06-03  Bruno Haible  <bruno@clisp.org>
21904
21905         Reduce dependencies.
21906         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21907
21908 2010-06-03  Bruno Haible  <bruno@clisp.org>
21909
21910         time: Undefine more broken macros.
21911         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21912         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21913         Reported by Eric Blake.
21914
21915 2010-06-03  Bruno Haible  <bruno@clisp.org>
21916
21917         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21918         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21919         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21920         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21921         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21922         Reported by Ludovic Courtès <ludo@gnu.org>.
21923
21924 2010-06-02  Eric Blake  <eblake@redhat.com>
21925
21926         time: work with mingw + pthreads-win32 library
21927         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21928         if timespec is defined only in pthread.h.
21929         * modules/time (Makefile.am): Substitute it.
21930         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21931         <pthread.h>, when needed.
21932         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21933         from the library.
21934
21935 2010-05-31  Bruno Haible  <bruno@clisp.org>
21936
21937         Avoid expanding two macros in the wrong order.
21938         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21939         gl_LIBUNISTRING if it is defined.
21940         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21941         autoconf >= 2.64.
21942         Reported by Ludovic Courtès <ludo@gnu.org>.
21943
21944 2010-05-27  Jim Meyering  <meyering@redhat.com>
21945
21946         maint.mk: also prohibit "#undef" of always-defined symbols
21947         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21948         Allow more than one space before the symbol name.
21949         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21950         the regexp uses alternation.
21951
21952 2010-05-26  Eric Blake  <eblake@redhat.com>
21953
21954         maint.mk: avoid echo -e
21955         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21956         Convert all uses of echo -* to printf.
21957         Reported by Matthias Bolte.
21958
21959 2010-05-25  Bruno Haible  <bruno@clisp.org>
21960
21961         Update to GNU gettext 0.18, part 2.
21962         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21963         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21964
21965 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21966
21967         Add missing include in test-pwrite.c.
21968         * tests/test-pwrite.c: Include string.h, for strcmp.
21969
21970 2010-05-24  Bruno Haible  <bruno@clisp.org>
21971
21972         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21973
21974 2010-05-24  Bruno Haible  <bruno@clisp.org>
21975
21976         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21977         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21978         iconveh_error argument.
21979         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21980         U_STRCONV_TO_LOCALE.
21981         * lib/unistr/u16-strcoll.c: Likewise.
21982         * lib/unistr/u32-strcoll.c: Likewise.
21983         * modules/unistr/u8-strcoll (Depends-on): Add
21984         uniconv/u8-strconv-to-enc, localcharset. Remove
21985         uniconv/u8-strconv-to-locale.
21986         (configure.ac): Bump version number.
21987         * modules/unistr/u16-strcoll (Depends-on): Add
21988         uniconv/u16-strconv-to-enc, localcharset. Remove
21989         uniconv/u16-strconv-to-locale.
21990         (configure.ac): Bump version number.
21991         * modules/unistr/u32-strcoll (Depends-on): Add
21992         uniconv/u32-strconv-to-enc, localcharset. Remove
21993         uniconv/u32-strconv-to-locale.
21994         (configure.ac): Bump version number.
21995
21996 2010-05-24  Bruno Haible  <bruno@clisp.org>
21997
21998         Avoid a test failure on NetBSD 5.0.
21999         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22000         an iconv() bug.
22001
22002 2010-05-24  Bruno Haible  <bruno@clisp.org>
22003
22004         Adjust #include directive style.
22005         * modules/regex (Includes): Recommend to write <regex.h>.
22006
22007 2010-05-24  Bruno Haible  <bruno@clisp.org>
22008
22009         regex: Don't require alloca.
22010         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22011         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22012         only inside if (0).
22013
22014 2010-05-23  Jim Meyering  <meyering@redhat.com>
22015
22016         test-renameat.c: include <sys/stat.h>
22017         * tests/test-renameat.c: Include <sys/stat.h>; required for
22018         definition of S_IS* macros.
22019
22020 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22021
22022         Update maintainer documentation for 'relocatable-prog' module.
22023         * doc/relocatable-maint.texi: Update.
22024         Comments by Bruno Haible.
22025
22026 2010-05-23  Bruno Haible  <bruno@clisp.org>
22027
22028         git-merge-changelog: Enable --split-merged-entry by default.
22029         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22030         (usage): Don't mention this option any more.
22031         Reported by Ralf Wildenhues.
22032
22033 2010-05-23  Jim Meyering  <meyering@redhat.com>
22034
22035         test-pwrite: do not leave behind a test file named "out"
22036         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22037         The trivial-looking use of init.sh is really necessary.
22038         It ensures that the temporary file, "out", is created in
22039         a temporary directory, and removed upon termination.
22040         * tests/test-pwrite.sh: Re-add file.
22041         * modules/pwrite-tests: Reference it.
22042
22043 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22044
22045         Fix output redirection buglet in init.sh.
22046         * tests/init.sh: Fix redirection of stderr.
22047
22048 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22049
22050         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22051
22052 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22053
22054         * modules/valgrind-tests: New file.
22055         * m4/valgrind-tests.m4: New file.
22056         * doc/valgrind-tests.texi: New file.
22057         * doc/gnulib.texi (Running self-tests under valgrind): New
22058         section.
22059
22060 2010-05-19  Bruno Haible  <bruno@clisp.org>
22061
22062         Clean up dead code in recent commit.
22063         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22064         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22065         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22066         Suggested by Paolo Bonzini.
22067
22068 2010-05-19  Bruno Haible  <bruno@clisp.org>
22069
22070         Avoid valgrind error reports from libunistring.
22071         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22072         * modules/libunistring (Files): Add it.
22073         * modules/libunistring-optional (Files): Likewise.
22074
22075 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22076             Bruno Haible  <bruno@clisp.org>
22077
22078         New module 'libunistring-optional'.
22079         * modules/libunistring-optional: New file.
22080         * m4/libunistring-base.m4: New file.
22081         * m4/libunistring-optional.m4: New file.
22082         * lib/unicase.in.h: Renamed from lib/unicase.h.
22083         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22084         * lib/unictype.in.h: Renamed from lib/unictype.h.
22085         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22086         * lib/uniname.in.h: Renamed from lib/uniname.h.
22087         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22088         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22089         * lib/unistr.in.h: Renamed from lib/unistr.h.
22090         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22091         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22092         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22093         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22094         gl_LIBUNISTRING. If the library was found, determine the installed
22095         version and set LIBUNISTRING_VERSION.
22096         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22097         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22098         handle a configuration option --with-included-libunistring.
22099         * modules/libunistring (Files): Add m4/absolute-header.m4.
22100         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22101         Add m4/libunistring-base.m4.
22102         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22103         (Makefile.am): Build unicase.h from unicase.in.h.
22104         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22105         Add m4/libunistring-base.m4.
22106         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22107         (Makefile.am): Build uniconv.h from uniconv.in.h.
22108         * modules/unictype/base (Files): Use unictype.in.h instead of
22109         unictype.h. Add m4/libunistring-base.m4.
22110         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22111         (Makefile.am): Build unictype.h from unictype.in.h.
22112         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22113         Add m4/libunistring-base.m4.
22114         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22115         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22116         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22117         Add m4/libunistring-base.m4.
22118         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22119         (Makefile.am): Build uniname.h from uniname.in.h.
22120         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22121         Add m4/libunistring-base.m4.
22122         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22123         (Makefile.am): Build uninorm.h from uninorm.in.h.
22124         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22125         unistdio.h. Add m4/libunistring-base.m4.
22126         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22127         (Makefile.am): Build unistdio.h from unistdio.in.h.
22128         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22129         Add m4/libunistring-base.m4.
22130         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22131         (Makefile.am): Build unistr.h from unistr.in.h.
22132         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22133         Add m4/libunistring-base.m4.
22134         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22135         (Makefile.am): Build unitypes.h from unitypes.in.h.
22136         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22137         Add m4/libunistring-base.m4.
22138         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22139         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22140         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22141         uniwidth.h. Add m4/libunistring-base.m4.
22142         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22143         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22144         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22145         instead of augmenting lib_SOURCES.
22146         * modules/unicase/empty-suffix-context: Likewise.
22147         * modules/unicase/locale-language: Likewise.
22148         * modules/unicase/tolower: Likewise.
22149         * modules/unicase/totitle: Likewise.
22150         * modules/unicase/toupper: Likewise.
22151         * modules/unicase/u8-casecmp: Likewise.
22152         * modules/unicase/u8-casecoll: Likewise.
22153         * modules/unicase/u8-casefold: Likewise.
22154         * modules/unicase/u8-casexfrm: Likewise.
22155         * modules/unicase/u8-ct-casefold: Likewise.
22156         * modules/unicase/u8-ct-tolower: Likewise.
22157         * modules/unicase/u8-ct-totitle: Likewise.
22158         * modules/unicase/u8-ct-toupper: Likewise.
22159         * modules/unicase/u8-is-cased: Likewise.
22160         * modules/unicase/u8-is-casefolded: Likewise.
22161         * modules/unicase/u8-is-lowercase: Likewise.
22162         * modules/unicase/u8-is-titlecase: Likewise.
22163         * modules/unicase/u8-is-uppercase: Likewise.
22164         * modules/unicase/u8-prefix-context: Likewise.
22165         * modules/unicase/u8-suffix-context: Likewise.
22166         * modules/unicase/u8-tolower: Likewise.
22167         * modules/unicase/u8-totitle: Likewise.
22168         * modules/unicase/u8-toupper: Likewise.
22169         * modules/unicase/u16-casecmp: Likewise.
22170         * modules/unicase/u16-casecoll: Likewise.
22171         * modules/unicase/u16-casefold: Likewise.
22172         * modules/unicase/u16-casexfrm: Likewise.
22173         * modules/unicase/u16-ct-casefold: Likewise.
22174         * modules/unicase/u16-ct-tolower: Likewise.
22175         * modules/unicase/u16-ct-totitle: Likewise.
22176         * modules/unicase/u16-ct-toupper: Likewise.
22177         * modules/unicase/u16-is-cased: Likewise.
22178         * modules/unicase/u16-is-casefolded: Likewise.
22179         * modules/unicase/u16-is-lowercase: Likewise.
22180         * modules/unicase/u16-is-titlecase: Likewise.
22181         * modules/unicase/u16-is-uppercase: Likewise.
22182         * modules/unicase/u16-prefix-context: Likewise.
22183         * modules/unicase/u16-suffix-context: Likewise.
22184         * modules/unicase/u16-tolower: Likewise.
22185         * modules/unicase/u16-totitle: Likewise.
22186         * modules/unicase/u16-toupper: Likewise.
22187         * modules/unicase/u32-casecmp: Likewise.
22188         * modules/unicase/u32-casecoll: Likewise.
22189         * modules/unicase/u32-casefold: Likewise.
22190         * modules/unicase/u32-casexfrm: Likewise.
22191         * modules/unicase/u32-ct-casefold: Likewise.
22192         * modules/unicase/u32-ct-tolower: Likewise.
22193         * modules/unicase/u32-ct-totitle: Likewise.
22194         * modules/unicase/u32-ct-toupper: Likewise.
22195         * modules/unicase/u32-is-cased: Likewise.
22196         * modules/unicase/u32-is-casefolded: Likewise.
22197         * modules/unicase/u32-is-lowercase: Likewise.
22198         * modules/unicase/u32-is-titlecase: Likewise.
22199         * modules/unicase/u32-is-uppercase: Likewise.
22200         * modules/unicase/u32-prefix-context: Likewise.
22201         * modules/unicase/u32-suffix-context: Likewise.
22202         * modules/unicase/u32-tolower: Likewise.
22203         * modules/unicase/u32-totitle: Likewise.
22204         * modules/unicase/u32-toupper: Likewise.
22205         * modules/unicase/ulc-casecmp: Likewise.
22206         * modules/unicase/ulc-casecoll: Likewise.
22207         * modules/unicase/ulc-casexfrm: Likewise.
22208         * modules/uniconv/u8-conv-from-enc: Likewise.
22209         * modules/uniconv/u8-conv-to-enc: Likewise.
22210         * modules/uniconv/u8-strconv-from-enc: Likewise.
22211         * modules/uniconv/u8-strconv-from-locale: Likewise.
22212         * modules/uniconv/u8-strconv-to-enc: Likewise.
22213         * modules/uniconv/u8-strconv-to-locale: Likewise.
22214         * modules/uniconv/u16-conv-from-enc: Likewise.
22215         * modules/uniconv/u16-conv-to-enc: Likewise.
22216         * modules/uniconv/u16-strconv-from-enc: Likewise.
22217         * modules/uniconv/u16-strconv-from-locale: Likewise.
22218         * modules/uniconv/u16-strconv-to-enc: Likewise.
22219         * modules/uniconv/u16-strconv-to-locale: Likewise.
22220         * modules/uniconv/u32-conv-from-enc: Likewise.
22221         * modules/uniconv/u32-conv-to-enc: Likewise.
22222         * modules/uniconv/u32-strconv-from-enc: Likewise.
22223         * modules/uniconv/u32-strconv-from-locale: Likewise.
22224         * modules/uniconv/u32-strconv-to-enc: Likewise.
22225         * modules/uniconv/u32-strconv-to-locale: Likewise.
22226         * modules/unictype/bidicategory-byname: Likewise.
22227         * modules/unictype/bidicategory-name: Likewise.
22228         * modules/unictype/bidicategory-of: Likewise.
22229         * modules/unictype/bidicategory-test: Likewise.
22230         * modules/unictype/block-list: Likewise.
22231         * modules/unictype/block-test: Likewise.
22232         * modules/unictype/category-C: Likewise.
22233         * modules/unictype/category-Cc: Likewise.
22234         * modules/unictype/category-Cf: Likewise.
22235         * modules/unictype/category-Cn: Likewise.
22236         * modules/unictype/category-Co: Likewise.
22237         * modules/unictype/category-Cs: Likewise.
22238         * modules/unictype/category-L: Likewise.
22239         * modules/unictype/category-Ll: Likewise.
22240         * modules/unictype/category-Lm: Likewise.
22241         * modules/unictype/category-Lo: Likewise.
22242         * modules/unictype/category-Lt: Likewise.
22243         * modules/unictype/category-Lu: Likewise.
22244         * modules/unictype/category-M: Likewise.
22245         * modules/unictype/category-Mc: Likewise.
22246         * modules/unictype/category-Me: Likewise.
22247         * modules/unictype/category-Mn: Likewise.
22248         * modules/unictype/category-N: Likewise.
22249         * modules/unictype/category-Nd: Likewise.
22250         * modules/unictype/category-Nl: Likewise.
22251         * modules/unictype/category-No: Likewise.
22252         * modules/unictype/category-P: Likewise.
22253         * modules/unictype/category-Pc: Likewise.
22254         * modules/unictype/category-Pd: Likewise.
22255         * modules/unictype/category-Pe: Likewise.
22256         * modules/unictype/category-Pf: Likewise.
22257         * modules/unictype/category-Pi: Likewise.
22258         * modules/unictype/category-Po: Likewise.
22259         * modules/unictype/category-Ps: Likewise.
22260         * modules/unictype/category-S: Likewise.
22261         * modules/unictype/category-Sc: Likewise.
22262         * modules/unictype/category-Sk: Likewise.
22263         * modules/unictype/category-Sm: Likewise.
22264         * modules/unictype/category-So: Likewise.
22265         * modules/unictype/category-Z: Likewise.
22266         * modules/unictype/category-Zl: Likewise.
22267         * modules/unictype/category-Zp: Likewise.
22268         * modules/unictype/category-Zs: Likewise.
22269         * modules/unictype/category-and: Likewise.
22270         * modules/unictype/category-and-not: Likewise.
22271         * modules/unictype/category-byname: Likewise.
22272         * modules/unictype/category-name: Likewise.
22273         * modules/unictype/category-none: Likewise.
22274         * modules/unictype/category-of: Likewise.
22275         * modules/unictype/category-or: Likewise.
22276         * modules/unictype/category-test: Likewise.
22277         * modules/unictype/combining-class: Likewise.
22278         * modules/unictype/ctype-alnum: Likewise.
22279         * modules/unictype/ctype-alpha: Likewise.
22280         * modules/unictype/ctype-blank: Likewise.
22281         * modules/unictype/ctype-cntrl: Likewise.
22282         * modules/unictype/ctype-digit: Likewise.
22283         * modules/unictype/ctype-graph: Likewise.
22284         * modules/unictype/ctype-lower: Likewise.
22285         * modules/unictype/ctype-print: Likewise.
22286         * modules/unictype/ctype-punct: Likewise.
22287         * modules/unictype/ctype-space: Likewise.
22288         * modules/unictype/ctype-upper: Likewise.
22289         * modules/unictype/ctype-xdigit: Likewise.
22290         * modules/unictype/decimal-digit: Likewise.
22291         * modules/unictype/digit: Likewise.
22292         * modules/unictype/mirror: Likewise.
22293         * modules/unictype/numeric: Likewise.
22294         * modules/unictype/property-alphabetic: Likewise.
22295         * modules/unictype/property-ascii-hex-digit: Likewise.
22296         * modules/unictype/property-bidi-arabic-digit: Likewise.
22297         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22298         * modules/unictype/property-bidi-block-separator: Likewise.
22299         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22300         * modules/unictype/property-bidi-common-separator: Likewise.
22301         * modules/unictype/property-bidi-control: Likewise.
22302         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22303         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22304         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22305         * modules/unictype/property-bidi-european-digit: Likewise.
22306         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22307         * modules/unictype/property-bidi-left-to-right: Likewise.
22308         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22309         * modules/unictype/property-bidi-other-neutral: Likewise.
22310         * modules/unictype/property-bidi-pdf: Likewise.
22311         * modules/unictype/property-bidi-segment-separator: Likewise.
22312         * modules/unictype/property-bidi-whitespace: Likewise.
22313         * modules/unictype/property-byname: Likewise.
22314         * modules/unictype/property-combining: Likewise.
22315         * modules/unictype/property-composite: Likewise.
22316         * modules/unictype/property-currency-symbol: Likewise.
22317         * modules/unictype/property-dash: Likewise.
22318         * modules/unictype/property-decimal-digit: Likewise.
22319         * modules/unictype/property-default-ignorable-code-point: Likewise.
22320         * modules/unictype/property-deprecated: Likewise.
22321         * modules/unictype/property-diacritic: Likewise.
22322         * modules/unictype/property-extender: Likewise.
22323         * modules/unictype/property-format-control: Likewise.
22324         * modules/unictype/property-grapheme-base: Likewise.
22325         * modules/unictype/property-grapheme-extend: Likewise.
22326         * modules/unictype/property-grapheme-link: Likewise.
22327         * modules/unictype/property-hex-digit: Likewise.
22328         * modules/unictype/property-hyphen: Likewise.
22329         * modules/unictype/property-id-continue: Likewise.
22330         * modules/unictype/property-id-start: Likewise.
22331         * modules/unictype/property-ideographic: Likewise.
22332         * modules/unictype/property-ids-binary-operator: Likewise.
22333         * modules/unictype/property-ids-trinary-operator: Likewise.
22334         * modules/unictype/property-ignorable-control: Likewise.
22335         * modules/unictype/property-iso-control: Likewise.
22336         * modules/unictype/property-join-control: Likewise.
22337         * modules/unictype/property-left-of-pair: Likewise.
22338         * modules/unictype/property-line-separator: Likewise.
22339         * modules/unictype/property-logical-order-exception: Likewise.
22340         * modules/unictype/property-lowercase: Likewise.
22341         * modules/unictype/property-math: Likewise.
22342         * modules/unictype/property-non-break: Likewise.
22343         * modules/unictype/property-not-a-character: Likewise.
22344         * modules/unictype/property-numeric: Likewise.
22345         * modules/unictype/property-other-alphabetic: Likewise.
22346         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22347         * modules/unictype/property-other-grapheme-extend: Likewise.
22348         * modules/unictype/property-other-id-continue: Likewise.
22349         * modules/unictype/property-other-id-start: Likewise.
22350         * modules/unictype/property-other-lowercase: Likewise.
22351         * modules/unictype/property-other-math: Likewise.
22352         * modules/unictype/property-other-uppercase: Likewise.
22353         * modules/unictype/property-paired-punctuation: Likewise.
22354         * modules/unictype/property-paragraph-separator: Likewise.
22355         * modules/unictype/property-pattern-syntax: Likewise.
22356         * modules/unictype/property-pattern-white-space: Likewise.
22357         * modules/unictype/property-private-use: Likewise.
22358         * modules/unictype/property-punctuation: Likewise.
22359         * modules/unictype/property-quotation-mark: Likewise.
22360         * modules/unictype/property-radical: Likewise.
22361         * modules/unictype/property-sentence-terminal: Likewise.
22362         * modules/unictype/property-soft-dotted: Likewise.
22363         * modules/unictype/property-space: Likewise.
22364         * modules/unictype/property-terminal-punctuation: Likewise.
22365         * modules/unictype/property-test: Likewise.
22366         * modules/unictype/property-titlecase: Likewise.
22367         * modules/unictype/property-unassigned-code-value: Likewise.
22368         * modules/unictype/property-unified-ideograph: Likewise.
22369         * modules/unictype/property-uppercase: Likewise.
22370         * modules/unictype/property-variation-selector: Likewise.
22371         * modules/unictype/property-white-space: Likewise.
22372         * modules/unictype/property-xid-continue: Likewise.
22373         * modules/unictype/property-xid-start: Likewise.
22374         * modules/unictype/property-zero-width: Likewise.
22375         * modules/unictype/scripts: Likewise.
22376         * modules/unictype/syntax-c-ident: Likewise.
22377         * modules/unictype/syntax-c-whitespace: Likewise.
22378         * modules/unictype/syntax-java-ident: Likewise.
22379         * modules/unictype/syntax-java-whitespace: Likewise.
22380         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22381         * modules/unilbrk/u8-width-linebreaks: Likewise.
22382         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22383         * modules/unilbrk/u16-width-linebreaks: Likewise.
22384         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22385         * modules/unilbrk/u32-width-linebreaks: Likewise.
22386         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22387         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22388         * modules/uniname/uniname: Likewise.
22389         * modules/uninorm/canonical-decomposition: Likewise.
22390         * modules/uninorm/composition: Likewise.
22391         * modules/uninorm/decomposing-form: Likewise.
22392         * modules/uninorm/decomposition: Likewise.
22393         * modules/uninorm/filter: Likewise.
22394         * modules/uninorm/nfc: Likewise.
22395         * modules/uninorm/nfd: Likewise.
22396         * modules/uninorm/nfkc: Likewise.
22397         * modules/uninorm/nfkd: Likewise.
22398         * modules/uninorm/u8-normalize: Likewise.
22399         * modules/uninorm/u8-normcmp: Likewise.
22400         * modules/uninorm/u8-normcoll: Likewise.
22401         * modules/uninorm/u8-normxfrm: Likewise.
22402         * modules/uninorm/u16-normalize: Likewise.
22403         * modules/uninorm/u16-normcmp: Likewise.
22404         * modules/uninorm/u16-normcoll: Likewise.
22405         * modules/uninorm/u16-normxfrm: Likewise.
22406         * modules/uninorm/u32-normalize: Likewise.
22407         * modules/uninorm/u32-normcmp: Likewise.
22408         * modules/uninorm/u32-normcoll: Likewise.
22409         * modules/uninorm/u32-normxfrm: Likewise.
22410         * modules/unistdio/u8-asnprintf: Likewise.
22411         * modules/unistdio/u8-asprintf: Likewise.
22412         * modules/unistdio/u8-snprintf: Likewise.
22413         * modules/unistdio/u8-sprintf: Likewise.
22414         * modules/unistdio/u8-u8-asnprintf: Likewise.
22415         * modules/unistdio/u8-u8-asprintf: Likewise.
22416         * modules/unistdio/u8-u8-snprintf: Likewise.
22417         * modules/unistdio/u8-u8-sprintf: Likewise.
22418         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22419         * modules/unistdio/u8-u8-vasprintf: Likewise.
22420         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22421         * modules/unistdio/u8-u8-vsprintf: Likewise.
22422         * modules/unistdio/u8-vasnprintf: Likewise.
22423         * modules/unistdio/u8-vasprintf: Likewise.
22424         * modules/unistdio/u8-vsnprintf: Likewise.
22425         * modules/unistdio/u8-vsprintf: Likewise.
22426         * modules/unistdio/u16-asnprintf: Likewise.
22427         * modules/unistdio/u16-asprintf: Likewise.
22428         * modules/unistdio/u16-snprintf: Likewise.
22429         * modules/unistdio/u16-sprintf: Likewise.
22430         * modules/unistdio/u16-u16-asnprintf: Likewise.
22431         * modules/unistdio/u16-u16-asprintf: Likewise.
22432         * modules/unistdio/u16-u16-snprintf: Likewise.
22433         * modules/unistdio/u16-u16-sprintf: Likewise.
22434         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22435         * modules/unistdio/u16-u16-vasprintf: Likewise.
22436         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22437         * modules/unistdio/u16-u16-vsprintf: Likewise.
22438         * modules/unistdio/u16-vasnprintf: Likewise.
22439         * modules/unistdio/u16-vasprintf: Likewise.
22440         * modules/unistdio/u16-vsnprintf: Likewise.
22441         * modules/unistdio/u16-vsprintf: Likewise.
22442         * modules/unistdio/u32-asnprintf: Likewise.
22443         * modules/unistdio/u32-asprintf: Likewise.
22444         * modules/unistdio/u32-snprintf: Likewise.
22445         * modules/unistdio/u32-sprintf: Likewise.
22446         * modules/unistdio/u32-u32-asnprintf: Likewise.
22447         * modules/unistdio/u32-u32-asprintf: Likewise.
22448         * modules/unistdio/u32-u32-snprintf: Likewise.
22449         * modules/unistdio/u32-u32-sprintf: Likewise.
22450         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22451         * modules/unistdio/u32-u32-vasprintf: Likewise.
22452         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22453         * modules/unistdio/u32-u32-vsprintf: Likewise.
22454         * modules/unistdio/u32-vasnprintf: Likewise.
22455         * modules/unistdio/u32-vasprintf: Likewise.
22456         * modules/unistdio/u32-vsnprintf: Likewise.
22457         * modules/unistdio/u32-vsprintf: Likewise.
22458         * modules/unistdio/ulc-asnprintf: Likewise.
22459         * modules/unistdio/ulc-asprintf: Likewise.
22460         * modules/unistdio/ulc-fprintf: Likewise.
22461         * modules/unistdio/ulc-snprintf: Likewise.
22462         * modules/unistdio/ulc-sprintf: Likewise.
22463         * modules/unistdio/ulc-vasnprintf: Likewise.
22464         * modules/unistdio/ulc-vasprintf: Likewise.
22465         * modules/unistdio/ulc-vfprintf: Likewise.
22466         * modules/unistdio/ulc-vsnprintf: Likewise.
22467         * modules/unistdio/ulc-vsprintf: Likewise.
22468         * modules/unistr/u8-check: Likewise.
22469         * modules/unistr/u8-chr: Likewise.
22470         * modules/unistr/u8-cmp: Likewise.
22471         * modules/unistr/u8-cmp2: Likewise.
22472         * modules/unistr/u8-cpy: Likewise.
22473         * modules/unistr/u8-cpy-alloc: Likewise.
22474         * modules/unistr/u8-endswith: Likewise.
22475         * modules/unistr/u8-mblen: Likewise.
22476         * modules/unistr/u8-mbsnlen: Likewise.
22477         * modules/unistr/u8-mbtouc: Likewise.
22478         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22479         * modules/unistr/u8-mbtoucr: Likewise.
22480         * modules/unistr/u8-move: Likewise.
22481         * modules/unistr/u8-next: Likewise.
22482         * modules/unistr/u8-prev: Likewise.
22483         * modules/unistr/u8-set: Likewise.
22484         * modules/unistr/u8-startswith: Likewise.
22485         * modules/unistr/u8-stpcpy: Likewise.
22486         * modules/unistr/u8-stpncpy: Likewise.
22487         * modules/unistr/u8-strcat: Likewise.
22488         * modules/unistr/u8-strchr: Likewise.
22489         * modules/unistr/u8-strcmp: Likewise.
22490         * modules/unistr/u8-strcoll: Likewise.
22491         * modules/unistr/u8-strcpy: Likewise.
22492         * modules/unistr/u8-strcspn: Likewise.
22493         * modules/unistr/u8-strdup: Likewise.
22494         * modules/unistr/u8-strlen: Likewise.
22495         * modules/unistr/u8-strmblen: Likewise.
22496         * modules/unistr/u8-strmbtouc: Likewise.
22497         * modules/unistr/u8-strncat: Likewise.
22498         * modules/unistr/u8-strncmp: Likewise.
22499         * modules/unistr/u8-strncpy: Likewise.
22500         * modules/unistr/u8-strnlen: Likewise.
22501         * modules/unistr/u8-strpbrk: Likewise.
22502         * modules/unistr/u8-strrchr: Likewise.
22503         * modules/unistr/u8-strspn: Likewise.
22504         * modules/unistr/u8-strstr: Likewise.
22505         * modules/unistr/u8-strtok: Likewise.
22506         * modules/unistr/u8-to-u16: Likewise.
22507         * modules/unistr/u8-to-u32: Likewise.
22508         * modules/unistr/u8-uctomb: Likewise.
22509         * modules/unistr/u16-check: Likewise.
22510         * modules/unistr/u16-chr: Likewise.
22511         * modules/unistr/u16-cmp: Likewise.
22512         * modules/unistr/u16-cmp2: Likewise.
22513         * modules/unistr/u16-cpy: Likewise.
22514         * modules/unistr/u16-cpy-alloc: Likewise.
22515         * modules/unistr/u16-endswith: Likewise.
22516         * modules/unistr/u16-mblen: Likewise.
22517         * modules/unistr/u16-mbsnlen: Likewise.
22518         * modules/unistr/u16-mbtouc: Likewise.
22519         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22520         * modules/unistr/u16-mbtoucr: Likewise.
22521         * modules/unistr/u16-move: Likewise.
22522         * modules/unistr/u16-next: Likewise.
22523         * modules/unistr/u16-prev: Likewise.
22524         * modules/unistr/u16-set: Likewise.
22525         * modules/unistr/u16-startswith: Likewise.
22526         * modules/unistr/u16-stpcpy: Likewise.
22527         * modules/unistr/u16-stpncpy: Likewise.
22528         * modules/unistr/u16-strcat: Likewise.
22529         * modules/unistr/u16-strchr: Likewise.
22530         * modules/unistr/u16-strcmp: Likewise.
22531         * modules/unistr/u16-strcoll: Likewise.
22532         * modules/unistr/u16-strcpy: Likewise.
22533         * modules/unistr/u16-strcspn: Likewise.
22534         * modules/unistr/u16-strdup: Likewise.
22535         * modules/unistr/u16-strlen: Likewise.
22536         * modules/unistr/u16-strmblen: Likewise.
22537         * modules/unistr/u16-strmbtouc: Likewise.
22538         * modules/unistr/u16-strncat: Likewise.
22539         * modules/unistr/u16-strncmp: Likewise.
22540         * modules/unistr/u16-strncpy: Likewise.
22541         * modules/unistr/u16-strnlen: Likewise.
22542         * modules/unistr/u16-strpbrk: Likewise.
22543         * modules/unistr/u16-strrchr: Likewise.
22544         * modules/unistr/u16-strspn: Likewise.
22545         * modules/unistr/u16-strstr: Likewise.
22546         * modules/unistr/u16-strtok: Likewise.
22547         * modules/unistr/u16-to-u32: Likewise.
22548         * modules/unistr/u16-to-u8: Likewise.
22549         * modules/unistr/u16-uctomb: Likewise.
22550         * modules/unistr/u32-check: Likewise.
22551         * modules/unistr/u32-chr: Likewise.
22552         * modules/unistr/u32-cmp: Likewise.
22553         * modules/unistr/u32-cmp2: Likewise.
22554         * modules/unistr/u32-cpy: Likewise.
22555         * modules/unistr/u32-cpy-alloc: Likewise.
22556         * modules/unistr/u32-endswith: Likewise.
22557         * modules/unistr/u32-mblen: Likewise.
22558         * modules/unistr/u32-mbsnlen: Likewise.
22559         * modules/unistr/u32-mbtouc: Likewise.
22560         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22561         * modules/unistr/u32-mbtoucr: Likewise.
22562         * modules/unistr/u32-move: Likewise.
22563         * modules/unistr/u32-next: Likewise.
22564         * modules/unistr/u32-prev: Likewise.
22565         * modules/unistr/u32-set: Likewise.
22566         * modules/unistr/u32-startswith: Likewise.
22567         * modules/unistr/u32-stpcpy: Likewise.
22568         * modules/unistr/u32-stpncpy: Likewise.
22569         * modules/unistr/u32-strcat: Likewise.
22570         * modules/unistr/u32-strchr: Likewise.
22571         * modules/unistr/u32-strcmp: Likewise.
22572         * modules/unistr/u32-strcoll: Likewise.
22573         * modules/unistr/u32-strcpy: Likewise.
22574         * modules/unistr/u32-strcspn: Likewise.
22575         * modules/unistr/u32-strdup: Likewise.
22576         * modules/unistr/u32-strlen: Likewise.
22577         * modules/unistr/u32-strmblen: Likewise.
22578         * modules/unistr/u32-strmbtouc: Likewise.
22579         * modules/unistr/u32-strncat: Likewise.
22580         * modules/unistr/u32-strncmp: Likewise.
22581         * modules/unistr/u32-strncpy: Likewise.
22582         * modules/unistr/u32-strnlen: Likewise.
22583         * modules/unistr/u32-strpbrk: Likewise.
22584         * modules/unistr/u32-strrchr: Likewise.
22585         * modules/unistr/u32-strspn: Likewise.
22586         * modules/unistr/u32-strstr: Likewise.
22587         * modules/unistr/u32-strtok: Likewise.
22588         * modules/unistr/u32-to-u16: Likewise.
22589         * modules/unistr/u32-to-u8: Likewise.
22590         * modules/unistr/u32-uctomb: Likewise.
22591         * modules/uniwbrk/u8-wordbreaks: Likewise.
22592         * modules/uniwbrk/u16-wordbreaks: Likewise.
22593         * modules/uniwbrk/u32-wordbreaks: Likewise.
22594         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22595         * modules/uniwbrk/wordbreak-property: Likewise.
22596         * modules/uniwidth/u8-strwidth: Likewise.
22597         * modules/uniwidth/u8-width: Likewise.
22598         * modules/uniwidth/u16-strwidth: Likewise.
22599         * modules/uniwidth/u16-width: Likewise.
22600         * modules/uniwidth/u32-strwidth: Likewise.
22601         * modules/uniwidth/u32-width: Likewise.
22602         * modules/uniwidth/width: Likewise.
22603         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22604         with $(LIBUNISTRING).
22605         * modules/unicase/ignorable-tests: Likewise.
22606         * modules/unicase/locale-language-tests: Likewise.
22607         * modules/unicase/tolower-tests: Likewise.
22608         * modules/unicase/totitle-tests: Likewise.
22609         * modules/unicase/toupper-tests: Likewise.
22610         * modules/unicase/u8-casecmp-tests: Likewise.
22611         * modules/unicase/u8-casecoll-tests: Likewise.
22612         * modules/unicase/u8-casefold-tests: Likewise.
22613         * modules/unicase/u8-is-cased-tests: Likewise.
22614         * modules/unicase/u8-is-casefolded-tests: Likewise.
22615         * modules/unicase/u8-is-lowercase-tests: Likewise.
22616         * modules/unicase/u8-is-titlecase-tests: Likewise.
22617         * modules/unicase/u8-is-uppercase-tests: Likewise.
22618         * modules/unicase/u8-tolower-tests: Likewise.
22619         * modules/unicase/u8-totitle-tests: Likewise.
22620         * modules/unicase/u8-toupper-tests: Likewise.
22621         * modules/unicase/u16-casecmp-tests: Likewise.
22622         * modules/unicase/u16-casecoll-tests: Likewise.
22623         * modules/unicase/u16-casefold-tests: Likewise.
22624         * modules/unicase/u16-is-cased-tests: Likewise.
22625         * modules/unicase/u16-is-casefolded-tests: Likewise.
22626         * modules/unicase/u16-is-lowercase-tests: Likewise.
22627         * modules/unicase/u16-is-titlecase-tests: Likewise.
22628         * modules/unicase/u16-is-uppercase-tests: Likewise.
22629         * modules/unicase/u16-tolower-tests: Likewise.
22630         * modules/unicase/u16-totitle-tests: Likewise.
22631         * modules/unicase/u16-toupper-tests: Likewise.
22632         * modules/unicase/u32-casecmp-tests: Likewise.
22633         * modules/unicase/u32-casecoll-tests: Likewise.
22634         * modules/unicase/u32-casefold-tests: Likewise.
22635         * modules/unicase/u32-is-cased-tests: Likewise.
22636         * modules/unicase/u32-is-casefolded-tests: Likewise.
22637         * modules/unicase/u32-is-lowercase-tests: Likewise.
22638         * modules/unicase/u32-is-titlecase-tests: Likewise.
22639         * modules/unicase/u32-is-uppercase-tests: Likewise.
22640         * modules/unicase/u32-tolower-tests: Likewise.
22641         * modules/unicase/u32-totitle-tests: Likewise.
22642         * modules/unicase/u32-toupper-tests: Likewise.
22643         * modules/unicase/ulc-casecmp-tests: Likewise.
22644         * modules/unicase/ulc-casecoll-tests: Likewise.
22645         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22646         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22647         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22648         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22649         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22650         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22651         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22652         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22653         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22654         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22655         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22656         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22657         * modules/unictype/bidicategory-byname-tests: Likewise.
22658         * modules/unictype/bidicategory-name-tests: Likewise.
22659         * modules/unictype/bidicategory-of-tests: Likewise.
22660         * modules/unictype/bidicategory-test-tests: Likewise.
22661         * modules/unictype/block-list-tests: Likewise.
22662         * modules/unictype/block-of-tests: Likewise.
22663         * modules/unictype/block-test-tests: Likewise.
22664         * modules/unictype/category-C-tests: Likewise.
22665         * modules/unictype/category-Cc-tests: Likewise.
22666         * modules/unictype/category-Cf-tests: Likewise.
22667         * modules/unictype/category-Cn-tests: Likewise.
22668         * modules/unictype/category-Co-tests: Likewise.
22669         * modules/unictype/category-Cs-tests: Likewise.
22670         * modules/unictype/category-L-tests: Likewise.
22671         * modules/unictype/category-Ll-tests: Likewise.
22672         * modules/unictype/category-Lm-tests: Likewise.
22673         * modules/unictype/category-Lo-tests: Likewise.
22674         * modules/unictype/category-Lt-tests: Likewise.
22675         * modules/unictype/category-Lu-tests: Likewise.
22676         * modules/unictype/category-M-tests: Likewise.
22677         * modules/unictype/category-Mc-tests: Likewise.
22678         * modules/unictype/category-Me-tests: Likewise.
22679         * modules/unictype/category-Mn-tests: Likewise.
22680         * modules/unictype/category-N-tests: Likewise.
22681         * modules/unictype/category-Nd-tests: Likewise.
22682         * modules/unictype/category-Nl-tests: Likewise.
22683         * modules/unictype/category-No-tests: Likewise.
22684         * modules/unictype/category-P-tests: Likewise.
22685         * modules/unictype/category-Pc-tests: Likewise.
22686         * modules/unictype/category-Pd-tests: Likewise.
22687         * modules/unictype/category-Pe-tests: Likewise.
22688         * modules/unictype/category-Pf-tests: Likewise.
22689         * modules/unictype/category-Pi-tests: Likewise.
22690         * modules/unictype/category-Po-tests: Likewise.
22691         * modules/unictype/category-Ps-tests: Likewise.
22692         * modules/unictype/category-S-tests: Likewise.
22693         * modules/unictype/category-Sc-tests: Likewise.
22694         * modules/unictype/category-Sk-tests: Likewise.
22695         * modules/unictype/category-Sm-tests: Likewise.
22696         * modules/unictype/category-So-tests: Likewise.
22697         * modules/unictype/category-Z-tests: Likewise.
22698         * modules/unictype/category-Zl-tests: Likewise.
22699         * modules/unictype/category-Zp-tests: Likewise.
22700         * modules/unictype/category-Zs-tests: Likewise.
22701         * modules/unictype/category-and-not-tests: Likewise.
22702         * modules/unictype/category-and-tests: Likewise.
22703         * modules/unictype/category-byname-tests: Likewise.
22704         * modules/unictype/category-name-tests: Likewise.
22705         * modules/unictype/category-none-tests: Likewise.
22706         * modules/unictype/category-of-tests: Likewise.
22707         * modules/unictype/category-or-tests: Likewise.
22708         * modules/unictype/category-test-withtable-tests: Likewise.
22709         * modules/unictype/combining-class-tests: Likewise.
22710         * modules/unictype/ctype-alnum-tests: Likewise.
22711         * modules/unictype/ctype-alpha-tests: Likewise.
22712         * modules/unictype/ctype-blank-tests: Likewise.
22713         * modules/unictype/ctype-cntrl-tests: Likewise.
22714         * modules/unictype/ctype-digit-tests: Likewise.
22715         * modules/unictype/ctype-graph-tests: Likewise.
22716         * modules/unictype/ctype-lower-tests: Likewise.
22717         * modules/unictype/ctype-print-tests: Likewise.
22718         * modules/unictype/ctype-punct-tests: Likewise.
22719         * modules/unictype/ctype-space-tests: Likewise.
22720         * modules/unictype/ctype-upper-tests: Likewise.
22721         * modules/unictype/ctype-xdigit-tests: Likewise.
22722         * modules/unictype/decimal-digit-tests: Likewise.
22723         * modules/unictype/digit-tests: Likewise.
22724         * modules/unictype/mirror-tests: Likewise.
22725         * modules/unictype/numeric-tests: Likewise.
22726         * modules/unictype/property-alphabetic-tests: Likewise.
22727         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22728         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22729         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22730         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22731         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22732         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22733         * modules/unictype/property-bidi-control-tests: Likewise.
22734         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22735         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22736         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22737         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22738         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22739         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22740         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22741         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22742         * modules/unictype/property-bidi-pdf-tests: Likewise.
22743         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22744         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22745         * modules/unictype/property-byname-tests: Likewise.
22746         * modules/unictype/property-combining-tests: Likewise.
22747         * modules/unictype/property-composite-tests: Likewise.
22748         * modules/unictype/property-currency-symbol-tests: Likewise.
22749         * modules/unictype/property-dash-tests: Likewise.
22750         * modules/unictype/property-decimal-digit-tests: Likewise.
22751         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22752         * modules/unictype/property-deprecated-tests: Likewise.
22753         * modules/unictype/property-diacritic-tests: Likewise.
22754         * modules/unictype/property-extender-tests: Likewise.
22755         * modules/unictype/property-format-control-tests: Likewise.
22756         * modules/unictype/property-grapheme-base-tests: Likewise.
22757         * modules/unictype/property-grapheme-extend-tests: Likewise.
22758         * modules/unictype/property-grapheme-link-tests: Likewise.
22759         * modules/unictype/property-hex-digit-tests: Likewise.
22760         * modules/unictype/property-hyphen-tests: Likewise.
22761         * modules/unictype/property-id-continue-tests: Likewise.
22762         * modules/unictype/property-id-start-tests: Likewise.
22763         * modules/unictype/property-ideographic-tests: Likewise.
22764         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22765         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22766         * modules/unictype/property-ignorable-control-tests: Likewise.
22767         * modules/unictype/property-iso-control-tests: Likewise.
22768         * modules/unictype/property-join-control-tests: Likewise.
22769         * modules/unictype/property-left-of-pair-tests: Likewise.
22770         * modules/unictype/property-line-separator-tests: Likewise.
22771         * modules/unictype/property-logical-order-exception-tests: Likewise.
22772         * modules/unictype/property-lowercase-tests: Likewise.
22773         * modules/unictype/property-math-tests: Likewise.
22774         * modules/unictype/property-non-break-tests: Likewise.
22775         * modules/unictype/property-not-a-character-tests: Likewise.
22776         * modules/unictype/property-numeric-tests: Likewise.
22777         * modules/unictype/property-other-alphabetic-tests: Likewise.
22778         * modules/unictype/property-other-default-ignorable-code-point-tests:
22779         Likewise.
22780         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22781         * modules/unictype/property-other-id-continue-tests: Likewise.
22782         * modules/unictype/property-other-id-start-tests: Likewise.
22783         * modules/unictype/property-other-lowercase-tests: Likewise.
22784         * modules/unictype/property-other-math-tests: Likewise.
22785         * modules/unictype/property-other-uppercase-tests: Likewise.
22786         * modules/unictype/property-paired-punctuation-tests: Likewise.
22787         * modules/unictype/property-paragraph-separator-tests: Likewise.
22788         * modules/unictype/property-pattern-syntax-tests: Likewise.
22789         * modules/unictype/property-pattern-white-space-tests: Likewise.
22790         * modules/unictype/property-private-use-tests: Likewise.
22791         * modules/unictype/property-punctuation-tests: Likewise.
22792         * modules/unictype/property-quotation-mark-tests: Likewise.
22793         * modules/unictype/property-radical-tests: Likewise.
22794         * modules/unictype/property-sentence-terminal-tests: Likewise.
22795         * modules/unictype/property-soft-dotted-tests: Likewise.
22796         * modules/unictype/property-space-tests: Likewise.
22797         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22798         * modules/unictype/property-test-tests: Likewise.
22799         * modules/unictype/property-titlecase-tests: Likewise.
22800         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22801         * modules/unictype/property-unified-ideograph-tests: Likewise.
22802         * modules/unictype/property-uppercase-tests: Likewise.
22803         * modules/unictype/property-variation-selector-tests: Likewise.
22804         * modules/unictype/property-white-space-tests: Likewise.
22805         * modules/unictype/property-xid-continue-tests: Likewise.
22806         * modules/unictype/property-xid-start-tests: Likewise.
22807         * modules/unictype/property-zero-width-tests: Likewise.
22808         * modules/unictype/scripts-tests: Likewise.
22809         * modules/unictype/syntax-c-ident-tests: Likewise.
22810         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22811         * modules/unictype/syntax-java-ident-tests: Likewise.
22812         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22813         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22814         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22815         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22816         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22817         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22818         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22819         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22820         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22821         * modules/uniname/uniname-tests: Likewise.
22822         * modules/uninorm/canonical-decomposition-tests: Likewise.
22823         * modules/uninorm/compat-decomposition-tests: Likewise.
22824         * modules/uninorm/composition-tests: Likewise.
22825         * modules/uninorm/decomposing-form-tests: Likewise.
22826         * modules/uninorm/decomposition-tests: Likewise.
22827         * modules/uninorm/filter-tests: Likewise.
22828         * modules/uninorm/nfc-tests: Likewise.
22829         * modules/uninorm/nfd-tests: Likewise.
22830         * modules/uninorm/nfkc-tests: Likewise.
22831         * modules/uninorm/nfkd-tests: Likewise.
22832         * modules/uninorm/u8-normcmp-tests: Likewise.
22833         * modules/uninorm/u8-normcoll-tests: Likewise.
22834         * modules/uninorm/u16-normcmp-tests: Likewise.
22835         * modules/uninorm/u16-normcoll-tests: Likewise.
22836         * modules/uninorm/u32-normcmp-tests: Likewise.
22837         * modules/uninorm/u32-normcoll-tests: Likewise.
22838         * modules/unistdio/u8-asnprintf-tests: Likewise.
22839         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22840         * modules/unistdio/u8-vasprintf-tests: Likewise.
22841         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22842         * modules/unistdio/u8-vsprintf-tests: Likewise.
22843         * modules/unistdio/u16-asnprintf-tests: Likewise.
22844         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22845         * modules/unistdio/u16-vasprintf-tests: Likewise.
22846         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22847         * modules/unistdio/u16-vsprintf-tests: Likewise.
22848         * modules/unistdio/u32-asnprintf-tests: Likewise.
22849         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22850         * modules/unistdio/u32-vasprintf-tests: Likewise.
22851         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22852         * modules/unistdio/u32-vsprintf-tests: Likewise.
22853         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22854         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22855         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22856         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22857         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22858         * modules/unistr/u8-check-tests: Likewise.
22859         * modules/unistr/u8-chr-tests: Likewise.
22860         * modules/unistr/u8-cmp-tests: Likewise.
22861         * modules/unistr/u8-cmp2-tests: Likewise.
22862         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22863         * modules/unistr/u8-cpy-tests: Likewise.
22864         * modules/unistr/u8-mblen-tests: Likewise.
22865         * modules/unistr/u8-mbsnlen-tests: Likewise.
22866         * modules/unistr/u8-mbtouc-tests: Likewise.
22867         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22868         * modules/unistr/u8-mbtoucr-tests: Likewise.
22869         * modules/unistr/u8-move-tests: Likewise.
22870         * modules/unistr/u8-next-tests: Likewise.
22871         * modules/unistr/u8-prev-tests: Likewise.
22872         * modules/unistr/u8-set-tests: Likewise.
22873         * modules/unistr/u8-stpcpy-tests: Likewise.
22874         * modules/unistr/u8-stpncpy-tests: Likewise.
22875         * modules/unistr/u8-strcat-tests: Likewise.
22876         * modules/unistr/u8-strcmp-tests: Likewise.
22877         * modules/unistr/u8-strcoll-tests: Likewise.
22878         * modules/unistr/u8-strcpy-tests: Likewise.
22879         * modules/unistr/u8-strdup-tests: Likewise.
22880         * modules/unistr/u8-strlen-tests: Likewise.
22881         * modules/unistr/u8-strmblen-tests: Likewise.
22882         * modules/unistr/u8-strmbtouc-tests: Likewise.
22883         * modules/unistr/u8-strncat-tests: Likewise.
22884         * modules/unistr/u8-strncmp-tests: Likewise.
22885         * modules/unistr/u8-strncpy-tests: Likewise.
22886         * modules/unistr/u8-strnlen-tests: Likewise.
22887         * modules/unistr/u8-to-u16-tests: Likewise.
22888         * modules/unistr/u8-to-u32-tests: Likewise.
22889         * modules/unistr/u8-uctomb-tests: Likewise.
22890         * modules/unistr/u16-check-tests: Likewise.
22891         * modules/unistr/u16-chr-tests: Likewise.
22892         * modules/unistr/u16-cmp-tests: Likewise.
22893         * modules/unistr/u16-cmp2-tests: Likewise.
22894         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22895         * modules/unistr/u16-cpy-tests: Likewise.
22896         * modules/unistr/u16-mblen-tests: Likewise.
22897         * modules/unistr/u16-mbsnlen-tests: Likewise.
22898         * modules/unistr/u16-mbtouc-tests: Likewise.
22899         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22900         * modules/unistr/u16-mbtoucr-tests: Likewise.
22901         * modules/unistr/u16-move-tests: Likewise.
22902         * modules/unistr/u16-next-tests: Likewise.
22903         * modules/unistr/u16-prev-tests: Likewise.
22904         * modules/unistr/u16-set-tests: Likewise.
22905         * modules/unistr/u16-stpcpy-tests: Likewise.
22906         * modules/unistr/u16-stpncpy-tests: Likewise.
22907         * modules/unistr/u16-strcat-tests: Likewise.
22908         * modules/unistr/u16-strcmp-tests: Likewise.
22909         * modules/unistr/u16-strcoll-tests: Likewise.
22910         * modules/unistr/u16-strcpy-tests: Likewise.
22911         * modules/unistr/u16-strdup-tests: Likewise.
22912         * modules/unistr/u16-strlen-tests: Likewise.
22913         * modules/unistr/u16-strmblen-tests: Likewise.
22914         * modules/unistr/u16-strmbtouc-tests: Likewise.
22915         * modules/unistr/u16-strncat-tests: Likewise.
22916         * modules/unistr/u16-strncmp-tests: Likewise.
22917         * modules/unistr/u16-strncpy-tests: Likewise.
22918         * modules/unistr/u16-strnlen-tests: Likewise.
22919         * modules/unistr/u16-to-u32-tests: Likewise.
22920         * modules/unistr/u16-to-u8-tests: Likewise.
22921         * modules/unistr/u16-uctomb-tests: Likewise.
22922         * modules/unistr/u32-check-tests: Likewise.
22923         * modules/unistr/u32-chr-tests: Likewise.
22924         * modules/unistr/u32-cmp-tests: Likewise.
22925         * modules/unistr/u32-cmp2-tests: Likewise.
22926         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22927         * modules/unistr/u32-cpy-tests: Likewise.
22928         * modules/unistr/u32-mblen-tests: Likewise.
22929         * modules/unistr/u32-mbsnlen-tests: Likewise.
22930         * modules/unistr/u32-mbtouc-tests: Likewise.
22931         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22932         * modules/unistr/u32-mbtoucr-tests: Likewise.
22933         * modules/unistr/u32-move-tests: Likewise.
22934         * modules/unistr/u32-next-tests: Likewise.
22935         * modules/unistr/u32-prev-tests: Likewise.
22936         * modules/unistr/u32-set-tests: Likewise.
22937         * modules/unistr/u32-stpcpy-tests: Likewise.
22938         * modules/unistr/u32-stpncpy-tests: Likewise.
22939         * modules/unistr/u32-strcat-tests: Likewise.
22940         * modules/unistr/u32-strcmp-tests: Likewise.
22941         * modules/unistr/u32-strcoll-tests: Likewise.
22942         * modules/unistr/u32-strcpy-tests: Likewise.
22943         * modules/unistr/u32-strdup-tests: Likewise.
22944         * modules/unistr/u32-strlen-tests: Likewise.
22945         * modules/unistr/u32-strmblen-tests: Likewise.
22946         * modules/unistr/u32-strmbtouc-tests: Likewise.
22947         * modules/unistr/u32-strncat-tests: Likewise.
22948         * modules/unistr/u32-strncmp-tests: Likewise.
22949         * modules/unistr/u32-strncpy-tests: Likewise.
22950         * modules/unistr/u32-strnlen-tests: Likewise.
22951         * modules/unistr/u32-to-u16-tests: Likewise.
22952         * modules/unistr/u32-to-u8-tests: Likewise.
22953         * modules/unistr/u32-uctomb-tests: Likewise.
22954         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22955         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22956         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22957         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22958         * modules/uniwidth/u8-strwidth-tests: Likewise.
22959         * modules/uniwidth/u8-width-tests: Likewise.
22960         * modules/uniwidth/u16-strwidth-tests: Likewise.
22961         * modules/uniwidth/u16-width-tests: Likewise.
22962         * modules/uniwidth/u32-strwidth-tests: Likewise.
22963         * modules/uniwidth/u32-width-tests: Likewise.
22964         * modules/uniwidth/width-tests: Likewise.
22965
22966 2010-05-18  Richard Jones  <rjones@redhat.com>
22967
22968         doc: users.txt: list hivex
22969         * users.txt: Add hivex.
22970
22971 2010-05-18  Richard Jones  <rjones@redhat.com>
22972
22973         doc: users.txt: list febootstrap
22974         * users.txt: Add febootstrap.
22975
22976 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22977
22978         bootstrap: fix an error when gnulib is not used as a git submodule
22979         * build-aux/bootstrap (gnulib_path): If its length is zero then
22980         assign "gnulib" to it.
22981         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22982
22983 2010-05-16  Bruno Haible  <bruno@clisp.org>
22984
22985         Avoid autoconf warnings about AM_ICONV.
22986         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22987         2.64.
22988
22989 2010-05-16  Bruno Haible  <bruno@clisp.org>
22990
22991         absolute-header: Make the macro usable in more situations.
22992         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22993         from gl_ABSOLUTE_HEADER.
22994         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22995
22996 2010-05-16  James Youngman  <jay@gnu.org>
22997
22998         doc: update users.txt
22999         * users.txt: Add CSSC.
23000
23001 2010-05-16  Jim Meyering  <meyering@redhat.com>
23002
23003         init.sh: fix an error in the previous change; add more comments
23004         * tests/init.sh: Compare exit code in loop against 9, not 2.
23005         Patch by Bruno Haible.
23006         Make the two tests more similar by adding an empty "then" clause.
23007         Add comments.
23008
23009         init.sh: avoid unnecessary shell re-exec
23010         * tests/init.sh: Improve the re-exec-required check to first test the
23011         current shell.  If it passes the test, do not search for a shell that
23012         does pass, and do not re-exec.  This test is particularly contorted to
23013         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23014         of $(...) evokes a syntax error and causes immediate shell exit with
23015         status 2.  Bruno Haible reported that the re-exec made it impossible
23016         to single-step through any init.sh-using script.
23017
23018 2010-05-16  Bruno Haible  <bruno@clisp.org>
23019
23020         Fix collision between gnulib's and libintl's printf replacements.
23021         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23022         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23023         (printf): When using GNU C, map the __printf__ function to rpl_printf
23024         via __asm__. When not using GNU C, define rpl_printf instead of
23025         __printf__.
23026         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23027         commit.
23028         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23029         commit.
23030         * m4/asm-underscore.m4: New file.
23031         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23032         * modules/stdio (Files): Add m4/asm-underscore.m4.
23033         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23034         Reported by Ben Pfaff.
23035
23036 2010-05-16  Bruno Haible  <bruno@clisp.org>
23037
23038         verify: Avoid skipping the test on openSUSE 11.0.
23039         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23040
23041 2010-05-13  Bruno Haible  <bruno@clisp.org>
23042
23043         Avoid useless warnings from G++.
23044         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23045         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23046         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23047
23048 2010-05-11  Jim Meyering  <meyering@redhat.com>
23049
23050         maint.mk: tweak preceding change
23051         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23052         regexps tighter by anchoring at EOL, and make the new group "shy"
23053         for slightly decreased overhead.
23054
23055 2010-05-11  Eric Blake  <eblake@redhat.com>
23056
23057         maint.mk: gnulib doesn't guarantee NSIG
23058         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23059
23060 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23061
23062         test-pwrite.c: Remove unused variable declaration.
23063         * tests/test-pwrite.c (main): Remove read_buf declaration.
23064
23065         Remove useless test-pwrite.sh file.
23066         * tests/test-pwrite.sh: Delete file.
23067         * modules/pwrite-tests: Remove references.
23068         Reported by Bruno Haible.
23069
23070 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23071
23072         init.sh: fix a typo
23073         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23074
23075 2010-05-10  Jim Meyering  <meyering@redhat.com>
23076
23077         maint.mk: avoid using a temporary file in the always-defined-macros check
23078         * top/maint.mk (.re-defmac): Remove rule.
23079         (gl_trap_): Remove definition.
23080         (sc_prohibit_always-defined_macros): Rewrite not to create and
23081         depend on a temporary file.  Instead, depend on GNU grep's ability
23082         to read a list of regular expressions from stdin when given "-f -".
23083
23084 2010-05-09  Bruno Haible  <bruno@clisp.org>
23085
23086         Update to GNU gettext 0.18, part 1.
23087         * m4/gettext.m4: Update to GNU gettext 0.18.
23088         * m4/intl.m4: Likewise.
23089         * m4/po.m4: Likewise.
23090         * modules/gettext (Files): Add m4/fcntl-o.m4.
23091         (configure.ac): Require gettext infrastructure from version 0.18.
23092
23093 2010-05-09  Jim Meyering  <meyering@redhat.com>
23094
23095         init.sh: enable MALLOC_PERTURB_
23096         * tests/init.sh: Enable glibc's malloc-perturbing option.
23097
23098         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23099         With my recent change in init.sh from the two-line form:
23100             -#   : ${srcdir=.}
23101             -#   . "$srcdir/init.sh"; path_prepend_ .
23102             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23103         I noticed that using the one-line form would cause this test
23104         to fail with a false-positive, or to stop working altogether,
23105         depending on whether help-version changed or all the tests did.
23106         * top/maint.mk (_hv_regex): Remove this definition.
23107         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23108         (_hv_regex_strong): Use a stronger regex to check for conformance.
23109         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23110         Give a separate diagnostic for lack of conforming use.
23111
23112         maint.mk: prohibit definition of symbols defined by gnulib
23113         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23114         definition of symbols defined by gnulib.
23115
23116 2010-05-09  Bruno Haible  <bruno@clisp.org>
23117
23118         acl: Avoid test failure on Cygwin-hosted mingw.
23119         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23120
23121 2010-05-09  Bruno Haible  <bruno@clisp.org>
23122
23123         error: Use system's fcntl function.
23124         * lib/error.c (fcntl): Undefine.
23125
23126 2010-05-09  Jim Meyering  <meyering@redhat.com>
23127
23128         verify: adjust formatting to be more consistent
23129         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23130         argument-list '('s, and after one comma.
23131
23132 2010-05-09  Bruno Haible  <bruno@clisp.org>
23133
23134         error: More reliable output on mingw.
23135         * lib/error.c: Include <windows.h>.
23136         (is_open): New function.
23137         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23138         defined.
23139
23140 2010-05-09  Bruno Haible  <bruno@clisp.org>
23141
23142         vasnprintf: Fix syntax errors in libintl build on mingw.
23143         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23144         pad_ourselves and prec_ourselves after use.
23145
23146 2010-05-08  Bruno Haible  <bruno@clisp.org>
23147
23148         * lib/config.charset: Update comments for Cygwin 1.7.
23149         * lib/localcharset.c: Likewise.
23150
23151 2010-05-07  Jim Meyering  <meyering@redhat.com>
23152
23153         init.sh: improve comments
23154         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23155         . "${srcdir=.}/init.sh"; path_prepend_ .
23156         Add a note about path_prepend_ and the alternative of using
23157         TESTS_ENVIRONMENT.
23158
23159 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23160
23161         exclude: Unescape hashed patterns in wildcard mode.
23162         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23163         to the hash list.
23164         * tests/test-exclude8.sh: New test case.
23165         * modules/exclude-tests: Add new test.
23166
23167 2010-05-05  Eric Blake  <eblake@redhat.com>
23168
23169         verify: automate tests
23170         * modules/verify-tests: New module.
23171         * tests/test-verify.sh: New file.
23172         * tests/test-verify.c: Guard each negative test with a unique id.
23173         Also avoid warning about unused left hand of comma expressions.
23174
23175 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23176
23177         Further improvements to verify.h, suggested by Eric Blake.
23178         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23179         the GL_* versions, to avoid collision with OpenGL.
23180         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23181         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23182         than testing merely whether it's defined.
23183
23184         Modify verify.h to pacify gcc -Wredundant_decls.
23185         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23186         These use the prefix "GL_" since they're likely to be useful elsewhere.
23187         We may need to break them out into a different .h file.
23188         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23189         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23190         of verify_function__.
23191
23192 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23193
23194         Tests for module pwrite.
23195         * modules/pwrite-tests: New file.
23196         * tests/test-pwrite.sh: New file.
23197         * tests/test-pwrite.c: New file.
23198
23199         New module pwrite.
23200         * lib/unistd.in.h (pwrite): New declaration.
23201         * lib/pwrite.c: New file, from glibc with modifications.
23202         * m4/pwrite.m4: New file.
23203         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23204         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23205         REPLACE_PWRITE.
23206         * modules/pwrite: New file.
23207         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23208         REPLACE_PWRITE.
23209         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23210         * doc/posix-functions/pwrite.texi: Mention the new module.
23211
23212 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23213
23214         pread: Update documentation.
23215         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23216
23217 2010-05-04  Eric Blake  <eblake@redhat.com>
23218
23219         docs: update cygwin progress
23220         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23221         this bug.
23222         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23223         Added in cygwin 1.7.2.
23224         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23225         Likewise.
23226         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23227         Likewise.
23228         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23229         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23230         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23231         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23232         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23233         Mention nproc module.
23234         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23235         bug in cygwin 1.7.5 addition.
23236         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23237         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23238         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23239         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23240         1.7.5.
23241         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23242         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23243         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23244         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23245         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23246         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23247         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23248         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23249         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23250         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23251         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23252         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23253         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23254         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23255         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23256         Likewise.
23257         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23258         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23259         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23260         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23261         Likewise.
23262         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23263         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23264         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23265         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23266         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23267         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23268         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23269         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23270         Likewise.
23271         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23272         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23273         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23274         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23275         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23276         Likewise.
23277         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23278         Likewise.
23279         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23280         Likewise.
23281         * doc/glibc-functions/xdrrec_endofrecord.texi
23282         (xdrrec_endofrecord): Likewise.
23283         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23284         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23285         Likewise.
23286         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23287         Likewise.
23288
23289 2010-05-04  Jim Meyering  <meyering@redhat.com>
23290
23291         gendocs.sh: make its "-s FILE" option more useful
23292         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23293         $PACKAGE to reflect the probably-different basename of "FILE".
23294
23295 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23296
23297         bootstrap: don't ignore download_po_files failure
23298         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23299         failure.
23300
23301 2010-05-03  Jim Meyering  <meyering@redhat.com>
23302
23303         maint.mk: allow to pass options to gendocs.sh
23304         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23305         (gendocs_options_): New overridable variable.
23306
23307         gnu-web-doc-update: don't ignore configure or build failure
23308         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23309
23310         announce-gen: backslash-escape '@'s in --help output
23311         * build-aux/announce-gen: Fix syntax errors.
23312
23313         maint.mk, announce-gen: allow project-specific announcement mail headers
23314         * top/maint.mk (translation_project_): Define default.
23315         (announcement_Cc_, announcement_mail_headers_): Likewise.
23316         (announcement): Invoke announce-gen with new --mail-headers option.
23317         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23318
23319         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23320         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23321         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23322         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23323         line in the "err2" output file when running "make check" in verbose
23324         mode (i.e., with set -x enabled).
23325
23326 2010-05-03  Bruno Haible  <bruno@clisp.org>
23327
23328         wctob: Fix for weird platforms.
23329         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23330         argument value.
23331
23332 2010-05-03  Jim Meyering  <meyering@redhat.com>
23333
23334         maint.mk: prohibit unwarranted use of <strings.h>
23335         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23336         strings.h in a file that does not also use strcasecmp, strncasecmp,
23337         ffs or ffsll.
23338
23339         maint.mk: remove obsolete comments
23340         * top/maint.mk: Remove stale, commented-out rules.
23341
23342 2010-05-02  Bruno Haible  <bruno@clisp.org>
23343
23344         wcwidth: Declare also when it's aliased.
23345         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23346         macro.
23347
23348 2010-05-02  Bruno Haible  <bruno@clisp.org>
23349
23350         Fix regression from 2010-04-25.
23351         * gnulib-tool (func_modules_transitive_closure): Check the status of
23352         all modules, not only of the tests that are of the form foo-tests where
23353         foo is a module.
23354
23355 2010-05-02  Bruno Haible  <bruno@clisp.org>
23356
23357         wctob: Work around nasty Cygwin 1.7.2 bug.
23358         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23359         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23360
23361 2010-05-01  Bruno Haible  <bruno@clisp.org>
23362
23363         fpurge: Sharper test.
23364         * tests/test-fpurge.c (main): Add one more ftell check.
23365         * modules/fpurge-tests (Depends-on): Add ftell.
23366         Suggested by Eric Blake.
23367
23368 2010-05-01  Bruno Haible  <bruno@clisp.org>
23369
23370         ftello: Another test.
23371         * tests/test-ftello3.c: New file.
23372         * modules/ftello-tests (Files): Add it.
23373         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23374         MOSTLYCLEANFILES.
23375
23376         ftell: Another test.
23377         * tests/test-ftell3.c: New file.
23378         * modules/ftell-tests (Files): Add it.
23379         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23380         MOSTLYCLEANFILES.
23381
23382 2010-05-01  Bruno Haible  <bruno@clisp.org>
23383
23384         ftell, ftello: Work around Solaris bug.
23385         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23386         * lib/ftello.c: Include stdio-impl.h.
23387         (ftello): On Solaris, when _IOWRT is set, compute the result without
23388         looking at _IOREAD.
23389         * modules/ftello (Files): Add lib/stdio-impl.h.
23390         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23391         * doc/posix-functions/ftello.texi: Likewise.
23392         Reported by Eric Blake.
23393
23394 2010-05-01  Bruno Haible  <bruno@clisp.org>
23395
23396         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23397         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23398         the _IOWRT flag is also set.
23399
23400 2010-05-01  Bruno Haible  <bruno@clisp.org>
23401
23402         Fix doc about a HP-UX stdio bug.
23403         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23404         * doc/posix-functions/ftello.texi: Likewise.
23405
23406 2010-05-01  Bruno Haible  <bruno@clisp.org>
23407
23408         lseek test: Fix failure on Solaris.
23409         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23410         output.
23411
23412 2010-04-30  Jim Meyering  <meyering@redhat.com>
23413
23414         bootstrap: don't ignore failure to generate po*/Makevars
23415         * build-aux/bootstrap (with_gettext): Don't ignore failure
23416         to create po/Makevars or runtime-po/Makevars.
23417
23418 2010-04-29  Eric Blake  <eblake@redhat.com>
23419
23420         headers: relax license to LGPLv2+
23421         * modules/fcntl-h (License): Relax license.
23422         * modules/getopt-posix (License): Likewise.
23423         * modules/locale (License): Likewise.
23424         * modules/math (License): Likewise.
23425         * modules/pty (License): Likewise.
23426         * modules/sched (License): Likewise.
23427         * modules/search (License): Likewise.
23428         * modules/spawn (License): Likewise.
23429         * modules/stdarg (License): Likewise.
23430         * modules/sysexits (License): Likewise.
23431
23432 2010-04-29  Jim Meyering  <meyering@redhat.com>
23433
23434         inttypes: relax license to LGPLv2+
23435         * modules/inttypes (License): Relax license.
23436
23437 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23438
23439         * top/maint.mk (indent): Run twice to produce idempotent results.
23440
23441 2010-04-28  Bruno Haible  <bruno@clisp.org>
23442
23443         getdate: Generate getdate.c in the source directory.
23444         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23445         MOSTLYCLEANFILES.
23446         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23447
23448 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23449
23450         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23451         is not declared as a const *; avoid warnings in that case.
23452
23453 2010-04-28  Eric Blake  <eblake@redhat.com>
23454
23455         canonicalize-lgpl: avoid compiler warning
23456         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23457         declaration' / 'extraneous semicolon' warning with some compilers.
23458         Reported by Andreas Gruenbacher.
23459
23460 2010-04-28  Jim Meyering  <meyering@redhat.com>
23461
23462         init.sh: ensure a more reliable exit status when exiting via trap
23463         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23464         Inspired by patches from Dmitry V. Levin.
23465         Also trap on signal 3 (SIGQUIT).
23466
23467 2010-04-27  Bruno Haible  <bruno@clisp.org>
23468
23469         Update doc about utimes().
23470         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23471         'utimens' module.
23472         Reported by Andreas Gruenbacher <agruen@suse.de>.
23473
23474 2010-04-27  Eric Blake  <eblake@redhat.com>
23475
23476         full-read, full-write: relax license
23477         * modules/full-read (License): Drop to LGPLv2+.
23478         * modules/full-write (License): Likewise.
23479         * modules/safe-read (License): Likewise.
23480         * modules/safe-write (License): Likewise.
23481
23482         pthread: mention library for linking
23483         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23484
23485 2010-04-27  Jim Meyering  <meyering@redhat.com>
23486
23487         maint.mk: fix a bug introduced in last change
23488         * top/maint.mk (gl_assured_headers_): Now that all names are on
23489         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23490         is not anchored to end of word, it should be adequate.
23491
23492         maint.mk: avoid side-effect in latest syntax-check
23493         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23494         to run commands via $(shell...), and hence to incur cost only when
23495         the new rule is actually run.
23496
23497         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23498         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23499         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23500         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23501         (gl_assured_headers_, az_, AZ_): Define.
23502         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23503
23504 2010-04-26  Jim Meyering  <jim@meyering.net>
23505             Bruno Haible  <bruno@clisp.org>
23506
23507         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23508         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23509         Prompted by an exchange with Gilles Espinasse.
23510
23511 2010-04-26  Jim Meyering  <meyering@redhat.com>
23512
23513         git-version-gen: aesthetic tweak
23514         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23515         so that the command remains on a single line.
23516
23517 2010-04-26  Eric Blake  <eblake@redhat.com>
23518
23519         git-version-gen: allow use on EBCDIC hosts
23520         * build-aux/git-version-gen (dirty): Use literal rather than tying
23521         ourselves to ascii.
23522         Reported by Steve Goetze.
23523
23524 2010-04-25  Bruno Haible  <bruno@clisp.org>
23525
23526         netdb: Add support for GNULIB_POSIXCHECK.
23527         * lib/netdb.in.h: Include warn-on-use.h.
23528         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23529         functions are used when GNULIB_POSIXCHECK is defined and the
23530         getaddrinfo module is not in use.
23531         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23532         freeaddrinfo, gai_strerror, getnameinfo are declared.
23533         * modules/netdb (Depends-on): Add warn-on-use.
23534         (Makefile.am): Include warn-on-use.h in netdb.h.
23535
23536 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23537
23538         build: avoid "make check" failure without .git/ directory
23539         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23540         there is no .git/ directory.
23541
23542 2010-04-25  Bruno Haible  <bruno@clisp.org>
23543
23544         ptsname: Fix misuse of ttyname_r.
23545         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23546         of errno.
23547
23548 2010-04-25  Bruno Haible  <bruno@clisp.org>
23549
23550         ttyname_r: Make it work on Solaris 10.
23551         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23552         if the system function has the POSIX declaration. Test whether the
23553         function fails if the buffer is less than 128 bytes large.
23554         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23555         system's ttyname_r function. Provide a reasonably large buffer.
23556         * modules/ttyname_r (Depends-on): Add extensions.
23557         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23558
23559 2010-04-25  Bruno Haible  <bruno@clisp.org>
23560
23561         Use the 'extensions' module for some more functions on Solaris.
23562         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23563         module.
23564         * doc/posix-functions/ctime_r.texi: Likewise.
23565         * doc/posix-functions/getgrgid_r.texi: Likewise.
23566         * doc/posix-functions/getgrnam_r.texi: Likewise.
23567         * doc/posix-functions/getpwnam_r.texi: Likewise.
23568         * doc/posix-functions/getpwuid_r.texi: Likewise.
23569         * doc/posix-functions/readdir_r.texi: Likewise.
23570         * doc/posix-functions/sigwait.texi: Likewise.
23571         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23572         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23573
23574 2010-04-25  Bruno Haible  <bruno@clisp.org>
23575
23576         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23577         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23578         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23579         * lib/ttyname_r.c: Include <limits.h>.
23580         (ttyname_r): Define using the system's ttyname_r function, if it exists
23581         and not on Solaris.
23582         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23583         set.
23584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23585         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23586         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23587         Reported by Simon Josefsson.
23588
23589 2010-04-25  Bruno Haible  <bruno@clisp.org>
23590
23591         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23592         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23593         * doc/posix-functions/ctime_r.texi: Likewise.
23594         * doc/posix-functions/getgrgid_r.texi: Likewise.
23595         * doc/posix-functions/getgrnam_r.texi: Likewise.
23596         * doc/posix-functions/getlogin_r.texi: Likewise.
23597         * doc/posix-functions/getpwnam_r.texi: Likewise.
23598         * doc/posix-functions/getpwuid_r.texi: Likewise.
23599         * doc/posix-functions/readdir_r.texi: Likewise.
23600         * doc/posix-functions/sigwait.texi: Likewise.
23601         * doc/posix-functions/ttyname_r.texi: Likewise.
23602         Reported by Simon Josefsson.
23603
23604 2010-04-25  Bruno Haible  <bruno@clisp.org>
23605
23606         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23607         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23608         also to --create-testdir.
23609         (func_acceptable): Don't consider the status of *-tests modules here.
23610         (func_modules_transitive_closure): Consider it here, before including a
23611         test module.
23612         (func_import, func_create_testdir): Set inc_all_direct_tests,
23613         inc_all_indirect_tests.
23614         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23615         --create-testdir and --create-megatestdir.
23616
23617 2010-04-25  Bruno Haible  <bruno@clisp.org>
23618
23619         gnulib-tool: Add --without-*-tests options.
23620         * gnulib-tool (func_usage): Document the --without-*-tests options.
23621         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23622         excl_unportable_tests): New variables.
23623         Fail if they are specified with --import or --update.
23624         (func_acceptable): Respect the excl_*_tests variables.
23625         (func_import): Set the excl_*_tests variables to empty.
23626
23627 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23628             Bruno Haible  <bruno@clisp.org>
23629
23630         Work around a MacOS X 10.4 bug with openpty.
23631         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23632         * tests/test-openpty.c (main): Close the master side explicitly.
23633
23634 2010-04-25  Bruno Haible  <bruno@clisp.org>
23635
23636         strnlen: Fix a C++ test error on MacOS X and Solaris.
23637         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23638         the function is not declared.
23639         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23640         Simon Josefsson.
23641
23642 2010-04-24  Bruno Haible  <bruno@clisp.org>
23643
23644         Avoid a gcc warning.
23645         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23646         of correct type for %08lx directive.
23647         Reported by Eric Blake.
23648
23649 2010-04-24  Bruno Haible  <bruno@clisp.org>
23650
23651         vasnprintf: Correct errno value in case of out-of-memory.
23652         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23653         or sprintf. Use the errno value from SNPRINTF or sprintf.
23654         Reported by Ian Beckwith <ianb@erislabs.net>.
23655
23656 2010-04-24  Bruno Haible  <bruno@clisp.org>
23657
23658         ansi-c++-opt: Find correct compiler when cross-compiling.
23659         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23660         AC_CHECK_PROGS.
23661         Reported by Simon Josefsson.
23662
23663 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23664
23665         vc-list-files: Add support for subversion
23666         * build-aux/vc-list-files: Use "svn list" to generate the list of
23667         files controlled by subversion.
23668
23669 2010-04-23  Jim Meyering  <meyering@redhat.com>
23670
23671         vc-list-files tests: convert to use init.sh
23672         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23673         path_prepend_.
23674         Use Exit, not exit.
23675         Use skip_ rather than open coding it.
23676         Remove trap set-up and compare definitions.
23677         * tests/test-vc-list-files-git.sh: Likewise.
23678         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23679
23680 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23681
23682         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23683         backup files.
23684
23685 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23686
23687         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23688
23689 2010-04-20  Eric Blake  <eblake@redhat.com>
23690
23691         tests: be robust to ignored SIGPIPE
23692         * tests/test-select-in.sh: Consume all output.
23693         * tests/test-lseek.sh: Check correct exit status, while avoiding
23694         EPIPE.
23695
23696 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23697             Bruno Haible  <bruno@clisp.org>
23698
23699         visibility: Don't use -fvisibility if it leads to a warning.
23700         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23701         yes, don't pretend that visibility works if it leads to a warning.
23702         Reported by Mike Gran <spk121@yahoo.com>.
23703
23704 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23705
23706         * build-aux/bootstrap: Use "git -h" for testing for supported options
23707         instead of "git --help".  The short-form option only shows a summary,
23708         and doesn't layout the full man page.  Grep for the full option name
23709         in the summary, too.
23710
23711 2010-04-19  Bruno Haible  <bruno@clisp.org>
23712
23713         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23714         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23715         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23716         mention of RELOCATABLE_STRIP.
23717         Reported by Sylvain Beucler <beuc@beuc.net>.
23718
23719 2010-04-19  Bruno Haible  <bruno@clisp.org>
23720
23721         * lib/diffseq.h: Fix typo in comment.
23722         Reported by Eric Blake.
23723
23724 2010-04-19  Bruno Haible  <bruno@clisp.org>
23725
23726         ioctl: Move autoconf macro to a .m4 file.
23727         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23728         * modules/ioctl (Files): Add it.
23729         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23730         Reported by Ian Beckwith <ianb@erislabs.net>.
23731
23732 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23733             Bruno Haible  <bruno@clisp.org>
23734
23735         diffseq: Accommodate use-case with abstract arrays.
23736         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23737         is not defined.
23738         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23739         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23740
23741 2010-04-18  Bruno Haible  <bruno@clisp.org>
23742
23743         * doc/posix-headers/stdbool.texi: More precise wording.
23744
23745 2010-04-17  Jim Meyering  <meyering@redhat.com>
23746
23747         maint.mk: use gnu-style indentation in an embedded perl script
23748         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23749         Rename variable: s/two/last_two_bytes/
23750
23751 2010-04-16  Eric Blake  <eblake@redhat.com>
23752
23753         test-stdbool: skip test that fails with Solaris CC
23754         * tests/test-stdbool.c (f): Skip test that causes compilation
23755         error under buggy C++ compiler.
23756         * lib/stdbool.in.h: Document the limitation.
23757         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23758
23759         setenv: allow compilation with C++
23760         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23761         register keyword.
23762
23763         stdint: allow test to pass with C++
23764         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23765
23766         getopt: allow compilation with C++
23767         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23768         struct.
23769         * lib/getopt.c (_getopt_internal_r): Use correct type.
23770         Reported by Dagobert Michelson, via Joel E. Denny.
23771
23772 2010-04-16  Bruno Haible  <bruno@clisp.org>
23773
23774         Override netdb.h always.
23775         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23776         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23777         Reported by Ludovic Courtès <ludo@gnu.org>.
23778
23779 2010-04-15  Bruno Haible  <bruno@clisp.org>
23780
23781         openpty: Fix mistake from 2010-03-21.
23782         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23783         Reported by Simon Josefsson.
23784
23785 2010-04-15  Eric Blake  <eblake@redhat.com>
23786
23787         test-forkpty: fix expected signature
23788         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23789         Reported by Simon Josefsson.
23790
23791 2010-04-15  Jim Meyering  <meyering@redhat.com>
23792
23793         maint.mk: texinfo_suffix_re_: correct the default regexp
23794         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23795
23796         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23797         make it configurable via texinfo_suffix_re_.
23798
23799 2010-04-14  Eric Blake  <eblake@redhat.com>
23800
23801         strtok_r: relax license to LGPLv2+
23802         * modules/strtok_r (License): Relax license.
23803         Reported by Matthias Bolte.
23804
23805 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23806
23807         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23808         version 1.4.4 by default instead of requiring the libgcrypt
23809         version used during build.  This makes it possible to use the
23810         application with older but still binary compatible libgcrypt
23811         versions.
23812
23813 2010-04-13  Eric Blake  <eblake@redhat.com>
23814
23815         getopt-gnu: match recent glibc fixes and posix ruling
23816         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23817         '+' handling, when requesting extensions.
23818         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23819         'W;' handling.
23820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23821         * doc/posix-functions/getopt.texi (getopt): Document this.
23822         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23823         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23824         Likewise.
23825
23826         getopt: merge bug fixes from glibc
23827         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23828         diagnostics.  Honor '+:' correctly.  Reject ';'.
23829
23830         getopt-posix: detect MacOS bug
23831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23832         optind when missing a required argument.
23833         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23834         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23835         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23836         Likewise.
23837
23838         getopt-posix: avoid spurious failure on Solaris
23839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23840         an indicator that setting optind=1 is sufficient for reset.
23841
23842         getopt-posix: avoid spurious failure on FreeBSD
23843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23844         in POSIX mode, since the m4 test uses it.
23845
23846         gnulib-tool: silence warning on BSD sh
23847         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23848
23849 2010-04-13  Jim Meyering  <meyering@redhat.com>
23850
23851         doc: users.txt: GNU patch now uses gnulib
23852         * users.txt: Add patch.
23853
23854 2010-04-12  Jim Meyering  <meyering@redhat.com>
23855
23856         maint.mk: generate more concise timing data for syntax-check rules
23857         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23858         " done" from each line that reports a syntax-check test duration.
23859
23860 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23861
23862         git-version-gen: use "git update-index..." rather than "git status"
23863         * build-aux/git-version-gen: Use git update-index --refresh, not
23864         "git status".  With some versions of git, "git status" would fail
23865         to update the index and result in an unwarranted "-dirty" suffix.
23866
23867 2010-04-11  Jim Meyering  <meyering@redhat.com>
23868
23869         openat: correct formatting (no semantic change)
23870         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23871         Suggested by Bruno Haible.
23872
23873 2010-04-11  Bruno Haible  <bruno@clisp.org>
23874
23875         Stricter declaration checking in testdirs.
23876         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23877         If for_tests is true, augment AM_CPPFLAGS to define
23878         GNULIB_STRICT_CHECKING.
23879         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23880         GNULIB_STRICT_CHECKING is defined, verify that the function is
23881         declared.
23882
23883 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23884             Bruno Haible  <bruno@clisp.org>
23885
23886         libunistring: Improve configure output.
23887         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23888         Don't say "consider installing GNU libunistring" when checking again
23889         with libiconv.
23890
23891 2010-04-11  Bruno Haible  <bruno@clisp.org>
23892
23893         libunistring: Correct value of $LTLIBUNISTRING.
23894         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23895         correct the value of $LTLIBUNISTRING.
23896
23897 2010-04-11  Bruno Haible  <bruno@clisp.org>
23898
23899         havelib: Add static libraries to LIBS in the right order.
23900         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23901         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23902
23903 2010-04-11  Bruno Haible  <bruno@clisp.org>
23904
23905         libunistring: Detect libunistring also when it depends on libiconv.
23906         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23907         the second AC_LIB_HAVE_LINKFLAGS invocation.
23908
23909 2010-04-11  James Youngman  <jay@gnu.org>
23910
23911         close-stream: declare local scalars to be "const"
23912         * lib/close-stream.c (close_stream): Make boolean variables const
23913         to document the fact that we set but do not change them.
23914
23915 2010-04-11  Bruno Haible  <bruno@clisp.org>
23916
23917         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23918
23919 2010-04-11  Jim Meyering  <meyering@redhat.com>
23920
23921         maint.mk: don't include dist-check.mk
23922         * top/maint.mk: Remove bogus include directive.
23923
23924         maint.mk: improve empty-line-at-EOF check
23925         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23926         solution, rather than tail+Perl-based one.  The latter would read
23927         a few kilobytes from the end of each file, and did not handle empty
23928         files properly.
23929
23930         maint.mk: print the elapsed time for each syntax-check rule
23931         * top/maint.mk (sc_m_rules_): Save start time in a file.
23932         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23933         (local-check): Interpose the .z rules
23934
23935 2010-04-11  Jim Meyering  <meyering@redhat.com>
23936
23937         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23938         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23939         empty file with one that ends in an empty line.
23940
23941 2010-04-10  Bruno Haible  <bruno@clisp.org>
23942
23943         mkdir: Make it work on mingw64.
23944         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23945         * lib/mkdir.c: Update comment.
23946         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
23947
23948 2010-04-10  Bruno Haible  <bruno@clisp.org>
23949
23950         Don't override improved macro from newer autoconf.
23951         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23952         autoconf >= 2.62.
23953         Reported by Joel E. Denny <jdenny@clemson.edu>.
23954
23955 2010-04-10  Jim Meyering  <meyering@redhat.com>
23956
23957         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23958         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23959
23960         maint.mk: correct a diagnostic
23961         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23962         in diagnostic; now use $prohibit.
23963
23964 2010-04-10  Bruno Haible  <address@hidden>
23965
23966         fchownat: Fix a C++ test error on Solaris 8.
23967         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23968         the function does not exist.
23969
23970 2010-04-10  Bruno Haible  <bruno@clisp.org>
23971
23972         vasnprintf: Add more tests.
23973         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23974         (test_function): Test converting an invalid wide string.
23975
23976         vasnprintf: Correct handling of unconvertible wide string arguments.
23977         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23978         VASNPRINTF.
23979         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23980         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23981         smaller than the expected maximum need for the directive. Set errno to
23982         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23983         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23985         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23986         * modules/vasnprintf (Files): Add m4/printf.m4.
23987         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23988
23989 2010-04-10  Bruno Haible  <bruno@clisp.org>
23990
23991         vasnprintf: Fix crash in %ls directive.
23992         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23993         string is passed as argument to %ls, with no precision and no width.
23994         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23995
23996 2010-04-10  Bruno Haible  <bruno@clisp.org>
23997
23998         vasnprintf: Fix multiple test failures on mingw.
23999         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24000         _snprintf, or snwprintf, not _snwprintf.
24001
24002 2010-04-10  Bruno Haible  <bruno@clisp.org>
24003
24004         write: Fix a C++ test error on mingw.
24005         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24006
24007 2010-04-10  Bruno Haible  <bruno@clisp.org>
24008
24009         vasnprintf test: Reduce code duplication.
24010         * tests/test-vasnprintf.c (test_function): New function, extracted from
24011         test_vasnprintf.
24012         (test_vasnprintf, test_asnprintf): Invoke it.
24013
24014 2010-04-10  Bruno Haible  <bruno@clisp.org>
24015
24016         strnlen: Fix warning in C++ mode on MacOS X.
24017         * lib/string.in.h (strnlen): Use the modern idiom.
24018         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24019         defining strnlen as a macro already in <config.h>.
24020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24021         REPLACE_STRNLEN.
24022         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24023         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24024
24025 2010-04-08  James Youngman  <jay@gnu.org>
24026
24027         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24028         the example.
24029
24030 2010-04-09  Jim Meyering  <meyering@redhat.com>
24031
24032         maint.mk: print better diagnostic when there is no $(_hv_file)
24033         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24034         announce that when $(_hv_file) (aka help-version) does not exist.
24035
24036         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24037         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24038         not try to interpret its random input bytes.  Jarno Rajahalme reported
24039         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24040         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24041         (mktempd_): Likewise, just in case.
24042
24043         ftruncate: add two years to projected module removal date: 2012
24044         * m4/ftruncate.m4: Adjust comments.
24045
24046         ftruncate: mark module as obsolete; even MinGW provides it, now
24047         * modules/ftruncate (Status): Obsolete.
24048         (Notice): Say that.
24049         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24050         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24051
24052 2010-04-08  Bruno Haible  <bruno@clisp.org>
24053
24054         Fix side effects from tests-related modules.
24055         * modules/dprintf-posix (Comment): New section.
24056         * modules/fprintf-posix (Comment): Likewise.
24057         * modules/obstack-printf-posix (Comment): Likewise.
24058         * modules/printf-posix (Comment): Likewise.
24059         * modules/snprintf-posix (Comment): Likewise.
24060         * modules/sprintf-posix (Comment): Likewise.
24061         * modules/vasnprintf-posix (Comment): Likewise.
24062         * modules/vasprintf-posix (Comment): Likewise.
24063         * modules/vdprintf-posix (Comment): Likewise.
24064         * modules/vfprintf-posix (Comment): Likewise.
24065         * modules/vprintf-posix (Comment): Likewise.
24066         * modules/vsnprintf-posix (Comment): Likewise.
24067         * modules/vsprintf-posix (Comment): Likewise.
24068         * modules/xprintf-posix (Comment): Likewise.
24069         * modules/xvasprintf-posix (Comment): Likewise.
24070         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24071         * modules/floorf-tests (Depends-on): Likewise.
24072         * modules/round-tests (Depends-on): Likewise.
24073         * modules/roundf-tests (Depends-on): Likewise.
24074         * modules/trunc-tests (Depends-on): Likewise.
24075         * modules/truncf-tests (Depends-on): Likewise.
24076         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24077         'fprintf-posix' module is not present.
24078         * tests/test-floorf2.c (check): Likewise.
24079         * tests/test-trunc2.c (check): Likewise.
24080         * tests/test-truncf2.c (check): Likewise.
24081         * tests/test-round2.c (equal): Likewise.
24082         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24083
24084 2010-04-07  Karl Berry  <karl@gnu.org>
24085
24086         * config/srclist.txt,
24087         * config/srclistvars.sh,
24088         * config/srclist-update: doc fixes.
24089
24090 2010-04-07  Jim Meyering  <meyering@redhat.com>
24091
24092         maint.mk: add a PATH crosschecking syntax-check rule
24093         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24094         Useful if you use a test like the one in help-version (coreutils,
24095         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24096         printed by prog --version.
24097
24098 2010-04-06  Bruno Haible  <bruno@clisp.org>
24099
24100         Fix link error on mingw.
24101         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24102         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24103
24104 2010-04-06  Bruno Haible  <bruno@clisp.org>
24105
24106         Assume rmdir exists.
24107         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24108
24109 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24110
24111         doc: update users.txt
24112         * users.txt: Add gcal.
24113
24114 2010-04-06  Jim Meyering  <meyering@redhat.com>
24115
24116         init.sh: simply unset TMPDIR rather than risking env -i
24117         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24118         although it probably works fine on all Unix-based systems, some
24119         systems (Cygwin?) cannot tolerate a totally cleared environment.
24120         Suggestion from Eric Blake.
24121
24122 2010-04-06  Jim Meyering  <meyering@redhat.com>
24123
24124         init.sh: portability fix: use env's POSIX-specified -i option not -u
24125         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24126         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24127
24128 2010-04-05  Bruno Haible  <bruno@clisp.org>
24129
24130         btowc: Work around Cygwin 1.7.2 bug.
24131         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24132         does not map NUL to 0.
24133         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24134
24135 2010-04-05  Bruno Haible  <bruno@clisp.org>
24136
24137         Make the multithread modules work on Cygwin 1.7.2.
24138         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24139         imported symbols can be declared weak, so that it returns "no" on
24140         Cygwin 1.7.2.
24141
24142 2010-04-05  Bruno Haible  <bruno@clisp.org>
24143
24144         Use the module 'strncat'.
24145         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24146
24147         Tests for module 'strncat'.
24148         * modules/strncat-tests: New file.
24149         * tests/test-strncat.c: New file.
24150
24151         New module 'strncat'.
24152         * lib/string.in.h (strncat): New declaration.
24153         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24154         * m4/strncat.m4: New file, based on m4/memchr.m4.
24155         * modules/strncat: New file.
24156         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24157         is declared.
24158         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24159         REPLACE_STRNCAT.
24160         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24161         REPLACE_STRNCAT.
24162         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24163         module.
24164         * tests/test-string-c++.cc: Check signature of strncat.
24165
24166 2010-04-05  Jim Meyering  <meyering@redhat.com>
24167
24168         xstrtoumax-tests: convert to use init.sh
24169         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24170         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24171         Use Exit, not exit.
24172         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24173
24174         xstrtoimax-tests: convert to use init.sh
24175         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24176         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24177         Use Exit, not exit.
24178         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24179
24180 2010-04-05  Bruno Haible  <bruno@clisp.org>
24181
24182         sys_socket: Avoid #define replacements in C++ mode.
24183         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24184         warning to the function if possible, rather than #defining the symbol
24185         to a dysfunctional alias.
24186
24187 2010-04-05  Bruno Haible  <bruno@clisp.org>
24188
24189         fseeko: Fix C++ test error on mingw.
24190         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24191         gl_FUNC_FSEEKO.
24192         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24193         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24194         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24195         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24196
24197 2010-04-05  Bruno Haible  <bruno@clisp.org>
24198
24199         duplocale: Improve test output.
24200         * tests/test-duplocale.c (main): Print reason for skipped test.
24201
24202 2010-04-05  Bruno Haible  <bruno@clisp.org>
24203
24204         Assume rmdir exists.
24205         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24206         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24207
24208 2010-04-05  Bruno Haible  <bruno@clisp.org>
24209
24210         Fix link error on Solaris 8 with cc.
24211         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24212
24213 2010-04-05  Bruno Haible  <bruno@clisp.org>
24214
24215         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24216         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24217
24218 2010-04-05  Bruno Haible  <bruno@clisp.org>
24219
24220         vasprintf: Update documentation.
24221         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24222
24223 2010-04-05  Bruno Haible  <bruno@clisp.org>
24224
24225         ptsname: Improve test.
24226         * tests/test-ptsname.c (main): Also try the various master names of BSD
24227         systems.
24228
24229 2010-04-05  Bruno Haible  <bruno@clisp.org>
24230
24231         memchr: Avoid a possible C++ test error.
24232         * lib/string.in.h (memchr): Provide declaration if function is missing.
24233         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24234         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24236         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24237
24238 2010-04-05  Bruno Haible  <bruno@clisp.org>
24239
24240         strtok_r: Improve idiom.
24241         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24242         AC_LIBOBJ is used.
24243
24244 2010-04-05  Bruno Haible  <bruno@clisp.org>
24245
24246         strdup: Improve idiom.
24247         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24248         AC_LIBOBJ is used.
24249         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24250         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24251         when AC_LIBOBJ is used.
24252
24253 2010-04-05  Bruno Haible  <bruno@clisp.org>
24254
24255         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24256         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24257         don't set REPLACE_MBSINIT to 1.
24258         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24259         don't set REPLACE_MBRTOWC to 1.
24260         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24261         exist, don't set REPLACE_MBSRTOWCS to 1.
24262         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24263         exist, don't set REPLACE_MBSNRTOWCS to 1.
24264         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24265         don't set REPLACE_WCRTOMB to 1.
24266         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24267         exist, don't set REPLACE_WCSRTOMBS to 1.
24268         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24269         exist, don't set REPLACE_WCSNRTOMBS to 1.
24270
24271 2010-04-05  Bruno Haible  <bruno@clisp.org>
24272
24273         ldexpl: Improve idiom.
24274         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24275         make sure to set HAVE_DECL_LDEXPL to 0.
24276
24277 2010-04-05  Jim Meyering  <meyering@redhat.com>
24278
24279         xstrtol-tests: convert to use init.sh
24280         * modules/xstrtol-tests (Files): Add tests/init.sh.
24281         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24282         Use Exit, not exit.
24283         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24284
24285         atexit-tests: convert to use init.sh
24286         * modules/atexit-tests (Files): Add tests/init.sh.
24287         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24288         Use Exit, not exit.
24289         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24290
24291         init.sh: fix typo
24292         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24293
24294         init.sh: make it easier for a test script to write to the tty, ...
24295         when using automake's parallel-tests mode.
24296         * tests/init.sh (stderr_fileno_): Define overridable variable.
24297         (warn_): New function, to use it.
24298         (fail_, skip_, framework_failure_): Use warn_.
24299
24300 2010-04-04  Bruno Haible  <bruno@clisp.org>
24301
24302         btowc: Avoid warning.
24303         * lib/btowc.c: Include <stdlib.h>.
24304         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24305
24306 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24307             Bruno Haible  <bruno@clisp.org>
24308
24309         wchar: Port to NetBSD 1.5.
24310         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24311         * lib/wctype.in.h (WEOF): Likewise.
24312
24313 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24314             Bruno Haible  <bruno@clisp.org>
24315
24316         Port extended stdio to NetBSD 1.5.
24317         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24318         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24319         older.
24320
24321 2010-04-04  Bruno Haible  <bruno@clisp.org>
24322
24323         string: Remove unused substitution.
24324         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24325         HAVE_DECL_STRERROR.
24326         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24327
24328 2010-04-04  Bruno Haible  <bruno@clisp.org>
24329
24330         strtod: Avoid a possible C++ test error.
24331         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24332         set REPLACE_STRTOD.
24333
24334 2010-04-04  Bruno Haible  <bruno@clisp.org>
24335
24336         strerror: Update documentation.
24337         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24338
24339 2010-04-04  Bruno Haible  <bruno@clisp.org>
24340
24341         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24342         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24343         _GL_CXXALIAS_SYS_CAST.
24344
24345 2010-04-04  Bruno Haible  <bruno@clisp.org>
24346
24347         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24348         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24349         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24350         REPLACE_FREXPL to 1.
24351         * doc/posix-functions/frexpl.texi: Update documentation.
24352
24353 2010-04-04  Bruno Haible  <bruno@clisp.org>
24354
24355         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24356         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24357
24358 2010-04-04  Bruno Haible  <bruno@clisp.org>
24359
24360         Implement nanosleep for native Windows.
24361         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24362
24363 2010-04-04  Bruno Haible  <bruno@clisp.org>
24364
24365         math: Fix some C++ test errors on Solaris 8.
24366         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24367
24368 2010-04-04  Bruno Haible  <bruno@clisp.org>
24369
24370         math: Fix some C++ test errors on Cygwin.
24371         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24372         truncl): Provide declaration if the system does not have it.
24373         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24374         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24375         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24376         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24377         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24378         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24379         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24380         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24381         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24382         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24383         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24384         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24385         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24386         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24387         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24388         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24390         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24391         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24392         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24393         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24394         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24395
24396 2010-04-04  Bruno Haible  <bruno@clisp.org>
24397
24398         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24399         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24400         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24401         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24402         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24403         * m4/isinf.m4 (gl_ISINF): Likewise.
24404         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24405
24406 2010-04-04  Bruno Haible  <bruno@clisp.org>
24407
24408         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24409         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24410
24411 2010-04-04  Bruno Haible  <bruno@clisp.org>
24412
24413         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24414         * modules/tmpfile (configure.ac): Update.
24415
24416         tmpfile: Fix C++ test error on mingw.
24417         * lib/stdio.in.h (tmpfile): New declaration.
24418         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24419         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24420         * modules/tmpfile (Depends-on): Add stdio.
24421         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24422         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24423         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24424         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24425         REPLACE_TMPFILE.
24426         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24427
24428 2010-04-04  Bruno Haible  <bruno@clisp.org>
24429
24430         ioctl: Fix C++ test error on mingw.
24431         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24432         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24433         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24434
24435 2010-04-03  Bruno Haible  <bruno@clisp.org>
24436
24437         wcwidth: Fix C++ test error on mingw.
24438         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24440         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24441
24442 2010-04-03  Bruno Haible  <bruno@clisp.org>
24443
24444         nanosleep: Fix C++ test error on mingw.
24445         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24446         * lib/time.in.h (nanosleep): Use modern idiom.
24447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24448         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24449         REPLACE_NANOSLEEP to 1.
24450         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24451         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24452
24453 2010-04-03  Bruno Haible  <bruno@clisp.org>
24454
24455         strptime: Fix C++ test error on mingw.
24456         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24457         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24458         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24459         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24460         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24461         not REPLACE_STRPTIME.
24462         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24463         REPLACE_STRPTIME.
24464
24465 2010-04-03  Bruno Haible  <bruno@clisp.org>
24466
24467         timegm: Fix C++ test error on mingw.
24468         * lib/time.in.h (timegm): Use modern idiom.
24469         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24470         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24471         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24472         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24473
24474 2010-04-03  Bruno Haible  <bruno@clisp.org>
24475
24476         timegm: Assume declaration if function exists.
24477         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24478         if it exists. Don't clobber ac_cv_func_timegm.
24479
24480 2010-04-03  Bruno Haible  <bruno@clisp.org>
24481
24482         time_r: Fix C++ test error on mingw.
24483         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24484         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24485         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24486         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24487         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24488
24489 2010-04-03  Bruno Haible  <bruno@clisp.org>
24490
24491         time_r: Minor updates.
24492         * modules/time_r (Description): Mention the provided functions.
24493         * lib/time_r.c: Don't include <string.h>.
24494         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24495         * doc/posix-functions/localtime_r.texi: Likewise.
24496
24497 2010-04-03  Bruno Haible  <bruno@clisp.org>
24498
24499         time: Fix regression introduced on 2010-03-08.
24500         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24501         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24502
24503 2010-04-03  Jim Meyering  <meyering@redhat.com>
24504
24505         maint.mk: don't silently disable project-specific syntax-check rules
24506         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24507         that they need to convert their project-specific syntax-check rules
24508         to use the new _sc_search_regexp.
24509
24510 2010-04-03  Bruno Haible  <bruno@clisp.org>
24511
24512         fchdir: Fix regression introduced on 2010-03-08.
24513         * lib/unistd.in.h (fchdir): Fix declaration.
24514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24516         REPLACE_FCHDIR.
24517         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24518         REPLACE_FCHDIR.
24519
24520 2010-04-03  Bruno Haible  <bruno@clisp.org>
24521
24522         getpagesize: Fix C++ test error on mingw.
24523         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24524         system does not declare the function.
24525         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24526         declared.
24527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24528         HAVE_DECL_GETPAGESIZE.
24529         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24530
24531 2010-04-03  Bruno Haible  <bruno@clisp.org>
24532
24533         stdio: Make C++ tests work on mingw.
24534         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24535         does not declare the function.
24536
24537 2010-04-03  Bruno Haible  <bruno@clisp.org>
24538
24539         ftello: Fix C++ test error on mingw.
24540         * lib/stdio.in.h (ftello): Use modern idiom.
24541         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24542         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24543         is missing and that it needs to be replaced.
24544         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24546         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24547
24548 2010-04-03  Bruno Haible  <bruno@clisp.org>
24549
24550         fseeko: Fix C++ test error on mingw.
24551         * lib/stdio.in.h (fseeko): Use modern idiom.
24552         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24553         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24554         is missing and that it needs to be replaced.
24555         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24557         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24558
24559 2010-04-03  Bruno Haible  <bruno@clisp.org>
24560
24561         mkstemp: Fix C++ test error on mingw.
24562         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24564         function is missing and that it needs to be replaced.
24565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24566         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24567
24568 2010-04-03  Bruno Haible  <bruno@clisp.org>
24569
24570         stpncpy: Fix C++ test error on mingw.
24571         * lib/string.in.h (stpncpy): Use modern idiom.
24572         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24573         function is missing and that it needs to be replaced.
24574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24575         REPLACE_STPNCPY.
24576         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24577
24578 2010-04-03  Bruno Haible  <bruno@clisp.org>
24579
24580         sys_stat: Fix C++ test error on mingw.
24581         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24582         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24583
24584 2010-04-03  Bruno Haible  <bruno@clisp.org>
24585
24586         pty: Update doc.
24587         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24588
24589 2010-04-03  Bruno Haible  <bruno@clisp.org>
24590
24591         unistd: Fix C++ test error on mingw.
24592         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24593
24594 2010-04-03  Bruno Haible  <bruno@clisp.org>
24595
24596         Update doc regarding mingw.
24597         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24598         * doc/glibc-functions/login_tty.texi: Likewise.
24599         * doc/glibc-functions/forkpty.texi: Likewise.
24600
24601 2010-04-03  Bruno Haible  <bruno@clisp.org>
24602
24603         stdlib: Avoid compilation failure of c-strtold on mingw.
24604         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24605
24606 2010-04-03  Bruno Haible  <bruno@clisp.org>
24607
24608         locale: Make C++ tests work on Cygwin and mingw.
24609         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24610         cannot provide the function.
24611         Reported by Simon Josefsson.
24612
24613 2010-04-03  Bruno Haible  <bruno@clisp.org>
24614
24615         localename: Port to MacOS X 10.6.
24616         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24617         memory layout of the locales in MacOS X 10.6 as well.
24618         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24619
24620 2010-04-02  Bruno Haible  <bruno@clisp.org>
24621
24622         gnulib-tool: Ensure that long-running tests are executed last.
24623         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24624         running tests after the one for the other tests.
24625
24626 2010-04-02  Bruno Haible  <bruno@clisp.org>
24627
24628         gnulib-tool: Ensure the tests in the main directory are executed first.
24629         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24630         start with the current directory.
24631
24632 2010-04-02  Bruno Haible  <bruno@clisp.org>
24633
24634         Tests for module 'havelib', moved here from GNU gettext.
24635         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24636         modifications.
24637         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24638         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24639         with modifications.
24640         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24641         modifications.
24642         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24643         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24644         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24645         with modifications.
24646         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24647         with modifications.
24648         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24649         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24650         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24651         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24652         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24653         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24654         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24655         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24656         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24657         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24658         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24659         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24660         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24661         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24662         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24663         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24664         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24665         with modifications.
24666         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24667         with modifications.
24668         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24669         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24670         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24671         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24672         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24673         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24674         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24675         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24676         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24677         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24678         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24679         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24680         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24681         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24682         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24683         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24684         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24685         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24686         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24687         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24688         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24689         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24690         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24691         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24692         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24693         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24694         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24695         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24696         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24697         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24698         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24699         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24700         * tests/havelib/rpathx/rpathx.c: New file, from
24701         gettext/autoconf-lib-link.
24702         * tests/havelib/rpathx/Makefile.am: New file, from
24703         gettext/autoconf-lib-link.
24704         * tests/havelib/rpathx/configure.ac: New file, from
24705         gettext/autoconf-lib-link with modifications.
24706         * tests/havelib/rpathy/rpathy.c: New file, from
24707         gettext/autoconf-lib-link.
24708         * tests/havelib/rpathy/Makefile.am: New file, from
24709         gettext/autoconf-lib-link.
24710         * tests/havelib/rpathy/configure.ac: New file, from
24711         gettext/autoconf-lib-link with modifications.
24712         * tests/havelib/rpathz/rpathz.c: New file, from
24713         gettext/autoconf-lib-link.
24714         * tests/havelib/rpathz/Makefile.am: New file, from
24715         gettext/autoconf-lib-link.
24716         * tests/havelib/rpathz/configure.ac: New file, from
24717         gettext/autoconf-lib-link with modifications.
24718         * tests/havelib/rpathlx/usex.c: New file, from
24719         gettext/autoconf-lib-link.
24720         * tests/havelib/rpathlx/Makefile.am: New file, from
24721         gettext/autoconf-lib-link.
24722         * tests/havelib/rpathlx/configure.ac: New file, from
24723         gettext/autoconf-lib-link with modifications.
24724         * tests/havelib/rpathly/usey.c: New file, from
24725         gettext/autoconf-lib-link.
24726         * tests/havelib/rpathly/Makefile.am: New file, from
24727         gettext/autoconf-lib-link.
24728         * tests/havelib/rpathly/configure.ac: New file, from
24729         gettext/autoconf-lib-link with modifications.
24730         * tests/havelib/rpathlz/usez.c: New file, from
24731         gettext/autoconf-lib-link.
24732         * tests/havelib/rpathlz/Makefile.am: New file, from
24733         gettext/autoconf-lib-link.
24734         * tests/havelib/rpathlz/configure.ac: New file, from
24735         gettext/autoconf-lib-link with modifications.
24736         * tests/havelib/rpathlyx/usey.c: New file, from
24737         gettext/autoconf-lib-link.
24738         * tests/havelib/rpathlyx/Makefile.am: New file, from
24739         gettext/autoconf-lib-link.
24740         * tests/havelib/rpathlyx/configure.ac: New file, from
24741         gettext/autoconf-lib-link with modifications.
24742         * tests/havelib/rpathlzyx/usez.c: New file, from
24743         gettext/autoconf-lib-link.
24744         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24745         gettext/autoconf-lib-link.
24746         * tests/havelib/rpathlzyx/configure.ac: New file, from
24747         gettext/autoconf-lib-link with modifications.
24748         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24749         with modifications.
24750
24751 2010-04-02  Bruno Haible  <bruno@clisp.org>
24752
24753         gnulib-tool: Create distributed built sources also for the tests.
24754         * gnulib-tool (func_create_testdir): Also generate distributed built
24755         sources in the tests directory.
24756
24757 2010-04-02  Bruno Haible  <bruno@clisp.org>
24758
24759         gnulib-tool: Obey user's environment variables.
24760         * gnulib-tool (func_create_testdir): When creating built sources,
24761         respect the environment variables for autoconf, automake, etc. given by
24762         the user.
24763
24764 2010-04-02  Bruno Haible  <bruno@clisp.org>
24765
24766         gnulib-tool: Provide the value of --m4-base to modules.
24767         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24768         of gl_m4_base.
24769
24770 2010-04-02  Eric Blake  <eblake@redhat.com>
24771
24772         maint.mk: fix some fallout
24773         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24774         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24775
24776 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24777
24778         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24779         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24780         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24781         (sc_cast_of_x_alloc_return_value): Likewise.
24782         (sc_cast_of_alloca_return_value): Likewise.
24783         (sc_space_tab): Likewise.
24784         (sc_prohibit_atoi_atof): Likewise.
24785         (sc_prohibit_magic_number_exit): Likewise.
24786         (sc_error_exit_success): Likewise.
24787         (sc_file_system): Likewise.
24788         (sc_prohibit_have_config_h): Likewise.
24789         (sc_require_config_h): Likewise.
24790         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24791         (sc_obsolete_symbols): Likewise.
24792         (sc_changelog): Likewise.
24793         (sc_program_name): Likewise.
24794         (sc_the_the): Likewise.
24795         (sc_trailing_blank): Likewise.
24796         (sc_two_space_separator_in_usage): Likewise.
24797         (sc_useless_cpp_parens): Likewise.
24798         (sc_GPL_version): Likewise.
24799         (sc_GFDL_version): Likewise.
24800         (sc_texinfo_acronym): Likewise.
24801         (sc_prohibit_cvs_keyword): Likewise.
24802         (sc_prohibit_stat_st_blocks): Likewise.
24803         (sc_prohibit_S_IS_definition): Likewise.
24804         (sc_redundant_const): Likewise.
24805         (sc_makefile_TAB_only_indentation): Likewise.
24806         (sc_m4_quote_check): Likewise.
24807         (sc_makefile_path_separator_check): Likewise.
24808         (sc_copyright_check): Likewise.
24809         (sc_Wundef_boolean): Likewise.
24810         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24811
24812         maint.mk: match 0 or more whitespace-before-function-call '('
24813         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24814         that have zero or two-and-more spaces between the function name
24815         and the open parenthesis.
24816         (sc_error_message_warn_fatal): Likewise.
24817         (sc_error_message_uppercase): Likewise.
24818         (sc_error_message_period): Likewise.
24819
24820 2010-03-31  Eric Blake  <eblake@redhat.com>
24821
24822         maint.mk: check for [ as well as test
24823         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24824         Based on a libvirt report by Matthias Bolte.
24825
24826         gnumakefile: don't squelch _version output
24827         * top/GNUmakefile (_version): Create one-shot dependency rather
24828         than using $(shell) when version must be regenerated.
24829         (_autoreconf): Run verbosely, by default.
24830
24831         sys_time: avoid compiler warnings
24832         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24833         unconditional, fixing regression from 2010-03-29.
24834         Reported by Simon Josefsson.
24835
24836 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24837
24838         maint.mk: s/_header_without_use/_sc_header_without_use/
24839         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24840         (sc_prohibit_assert_without_use): Use the new name.
24841         (sc_prohibit_close_stream_without_use): Likewise.
24842         (sc_prohibit_getopt_without_use): Likewise.
24843         (sc_prohibit_quotearg_without_use): Likewise.
24844         (sc_prohibit_quote_without_use): Likewise.
24845         (sc_prohibit_long_options_without_use): Likewise.
24846         (sc_prohibit_inttostr_without_use): Likewise.
24847         (sc_prohibit_ignore_value_without_use): Likewise.
24848         (sc_prohibit_error_without_use): Likewise.
24849         (sc_prohibit_xalloc_without_use): Likewise.
24850         (sc_prohibit_hash_without_use): Likewise.
24851         (sc_prohibit_hash_pjw_without_use): Likewise.
24852         (sc_prohibit_safe_read_without_use): Likewise.
24853         (sc_prohibit_argmatch_without_use): Likewise.
24854         (sc_prohibit_canonicalize_without_use): Likewise.
24855         (sc_prohibit_root_dev_ino_without_use): Likewise.
24856         (sc_prohibit_openat_without_use): Likewise.
24857         (sc_prohibit_c_ctype_without_use): Likewise.
24858         (sc_prohibit_signal_without_use): Likewise.
24859         (sc_prohibit_intprops_without_use): Likewise.
24860
24861 2010-03-30  Eric Blake  <eblake@redhat.com>
24862
24863         maint: improve module indicators
24864         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24865         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24866         columns, and avoid extra macro expansion.
24867
24868         fdopendir: work around FreeBSD bug
24869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24870         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24871         * modules/dirent (Makefile.am): Substitute it.
24872         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24873         declaration.
24874         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24875         fix.
24876         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24877
24878 2010-03-29  Bruno Haible  <bruno@clisp.org>
24879
24880         Emit #pragma system_header after the inclusion guard, not before.
24881         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24882         guard that spans the entire file, not before. This enables an
24883         optimization in GCC's preprocessor.
24884         * lib/ctype.in.h: Likewise.
24885         * lib/dirent.in.h: Likewise.
24886         * lib/errno.in.h: Likewise.
24887         * lib/float.in.h: Likewise.
24888         * lib/getopt.in.h: Likewise.
24889         * lib/iconv.in.h: Likewise.
24890         * lib/langinfo.in.h: Likewise.
24891         * lib/locale.in.h: Likewise.
24892         * lib/math.in.h: Likewise.
24893         * lib/netdb.in.h: Likewise.
24894         * lib/netinet_in.in.h: Likewise.
24895         * lib/pty.in.h: Likewise.
24896         * lib/sched.in.h: Likewise.
24897         * lib/se-selinux.in.h: Likewise.
24898         * lib/search.in.h: Likewise.
24899         * lib/spawn.in.h: Likewise.
24900         * lib/stdarg.in.h: Likewise.
24901         * lib/stdint.in.h: Likewise.
24902         * lib/string.in.h: Likewise.
24903         * lib/strings.in.h: Likewise.
24904         * lib/sys_file.in.h: Likewise.
24905         * lib/sys_ioctl.in.h: Likewise.
24906         * lib/sys_time.in.h: Likewise.
24907         * lib/sys_times.in.h: Likewise.
24908         * lib/sys_utsname.in.h: Likewise.
24909         * lib/sys_wait.in.h: Likewise.
24910         * lib/sysexits.in.h: Likewise.
24911         * lib/wctype.in.h: Likewise.
24912
24913 2010-03-28  James Youngman  <jay@gnu.org>
24914
24915         save-cwd: don't leak a file descriptor when the caller execs.
24916         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24917         saved file descriptor.
24918         * modules/save-cwd (Depends-on): Depend on cloexec.
24919
24920 2010-03-29  Bruno Haible  <bruno@clisp.org>
24921
24922         Remove vestiges of fts-lgpl module.
24923         * lib/fts_.h: Assume GNULIB_FTS is 1.
24924         * lib/fts.c: Likewise.
24925         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24926
24927 2010-03-28  Bruno Haible  <bruno@clisp.org>
24928
24929         Fix definition of tests witness macro.
24930         * gnulib-tool (func_import): Fix definition of witness macro.
24931
24932 2010-03-28  Bruno Haible  <bruno@clisp.org>
24933
24934         Fix ioctl's protoype on glibc systems.
24935         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24936         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24937         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24938         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24939         signature. If not, arrange to replace the ioctl function.
24940         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24941         REPLACE_IOCTL.
24942         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24943         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24944         Reported by Ludovic Courtès <ludo@gnu.org>.
24945
24946 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24947
24948         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24949         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24950         made it so grep -r --include=GLOB* ... did not work.
24951
24952 2010-03-26  Jim Meyering  <meyering@redhat.com>
24953             Eric Blake  <eblake@redhat.com>
24954
24955         maint.mk: prohibit use of test's -o and -a operators
24956         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24957
24958 2010-03-28  Bruno Haible  <bruno@clisp.org>
24959
24960         Remove unused GNULIB_XYZ macro definitions.
24961         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24962         invocation.
24963
24964 2010-03-28  Bruno Haible  <bruno@clisp.org>
24965
24966         Mark privileged tests modules.
24967         * modules/idpriv-drop-tests (Status): New section.
24968         * modules/idpriv-droptemp-tests (Status): New section.
24969
24970 2010-03-28  Bruno Haible  <bruno@clisp.org>
24971
24972         Split C++ tests into separate tests modules.
24973         * modules/dirent-c++-tests: New file, extracted from
24974         modules/dirent-tests.
24975         * modules/dirent-tests: Depend on it.
24976         * modules/fcntl-h-c++-tests: New file, extracted from
24977         modules/fcntl-h-tests.
24978         * modules/fcntl-h-tests: Depend on it.
24979         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24980         * modules/glob-tests: Depend on it.
24981         * modules/iconv-h-c++-tests: New file, extracted from
24982         modules/iconv-h-tests.
24983         * modules/iconv-h-tests: Depend on it.
24984         * modules/langinfo-c++-tests: New file, extracted from
24985         modules/langinfo-tests.
24986         * modules/langinfo-tests: Depend on it.
24987         * modules/locale-c++-tests: New file, extracted from
24988         modules/locale-tests.
24989         * modules/locale-tests: Depend on it.
24990         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24991         * modules/math-tests: Depend on it.
24992         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24993         * modules/pty-tests: Depend on it.
24994         * modules/search-c++-tests: New file, extracted from
24995         modules/search-tests.
24996         * modules/search-tests: Depend on it.
24997         * modules/signal-c++-tests: New file, extracted from
24998         modules/signal-tests.
24999         * modules/signal-tests: Depend on it.
25000         * modules/spawn-c++-tests: New file, extracted from
25001         modules/spawn-tests.
25002         * modules/spawn-tests: Depend on it.
25003         * modules/stdio-c++-tests: New file, extracted from
25004         modules/stdio-tests.
25005         * modules/stdio-tests: Depend on it.
25006         * modules/stdlib-c++-tests: New file, extracted from
25007         modules/stdlib-tests.
25008         * modules/stdlib-tests: Depend on it.
25009         * modules/string-c++-tests: New file, extracted from
25010         modules/string-tests.
25011         * modules/string-tests: Depend on it.
25012         * modules/sys_ioctl-c++-tests: New file, extracted from
25013         modules/sys_ioctl-tests.
25014         * modules/sys_ioctl-tests: Depend on it.
25015         * modules/sys_select-c++-tests: New file, extracted from
25016         modules/sys_select-tests.
25017         * modules/sys_select-tests: Depend on it.
25018         * modules/sys_socket-c++-tests: New file, extracted from
25019         modules/sys_socket-tests.
25020         * modules/sys_socket-tests: Depend on it.
25021         * modules/sys_stat-c++-tests: New file, extracted from
25022         modules/sys_stat-tests.
25023         * modules/sys_stat-tests: Depend on it.
25024         * modules/sys_time-c++-tests: New file, extracted from
25025         modules/sys_time-tests.
25026         * modules/sys_time-tests: Depend on it.
25027         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25028         * modules/time-tests: Depend on it.
25029         * modules/unistd-c++-tests: New file, extracted from
25030         modules/unistd-tests.
25031         * modules/unistd-tests: Depend on it.
25032         * modules/wchar-c++-tests: New file, extracted from
25033         modules/wchar-tests.
25034         * modules/wchar-tests: Depend on it.
25035         * modules/wctype-c++-tests: New file, extracted from
25036         modules/wctype-tests.
25037         * modules/wctype-tests: Depend on it.
25038         Reported by Simon Josefsson.
25039
25040 2010-03-28  Bruno Haible  <bruno@clisp.org>
25041
25042         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25043         * gnulib-tool (func_exists_module): New function, extracted from
25044         func_verify_module.
25045         (func_verify_module): Use it.
25046         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25047         'foo' only if 'foo' exists.
25048         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25049         module.
25050
25051 2010-03-28  Bruno Haible  <bruno@clisp.org>
25052
25053         gnulib-tool: Add support for special categories of tests.
25054         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25055         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25056         (func_usage): Document them.
25057         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25058         inc_unportable_tests, inc_all_tests): New variables.
25059         (func_acceptable): Consider these variables.
25060         (func_modules_transitive_closure): Make it work when the 'Status' field
25061         consists of multiple words.
25062         (func_import): Store and restore the values of inc_cxx_tests,
25063         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25064         inc_all_tests in gnulib-comp.m4.
25065         (func_create_testdir): Set inc_all_tests to true.
25066         * doc/gnulib.texi (Extra tests modules): New section.
25067         Suggested by Jim Meyering.
25068
25069 2010-03-28  Bruno Haible  <bruno@clisp.org>
25070
25071         ansi-c++-opt: Allow turning off the C++ build by default.
25072         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25073         gl_CXX_CHOICE_DEFAULT_NO is defined.
25074         Requested by Eric Blake.
25075
25076 2010-03-28  Bruno Haible  <bruno@clisp.org>
25077
25078         unistd: Avoid #define replacements in C++ mode.
25079         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25080         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25081         setsockopt, shutdown, select): In C++, attach a warning to the function
25082         if possible, rather than #defining the symbol to a dysfunctional alias.
25083         Reported by John W. Eaton <jwe@gnu.org>.
25084
25085 2010-03-28  Bruno Haible  <bruno@clisp.org>
25086
25087         Fix link errors on mingw.
25088         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25089         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25090         $(LIBSOCKET).
25091         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25092         $(LIBSOCKET).
25093
25094 2010-03-28  Bruno Haible  <bruno@clisp.org>
25095             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25096
25097         lib-ignore: Determine different options for different compilers.
25098         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25099         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25100         Add comments.
25101         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25102         * NEWS: Mention the change.
25103
25104 2010-03-27  Bruno Haible  <bruno@clisp.org>
25105
25106         Remove unused GNULIB_XYZ macro definitions.
25107         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25108         * modules/fseek (configure.ac): Likewise.
25109         * modules/ioctl (configure.ac): Likewise.
25110         * modules/open (configure.ac): Likewise.
25111         * modules/stdlib-safer (configure.ac): Likewise.
25112
25113 2010-03-27  Bruno Haible  <bruno@clisp.org>
25114
25115         Add a remark about certain modules.
25116         * modules/malloc (Comment): New section.
25117         * modules/realloc (Comment): Likewise.
25118         * modules/sigpipe (Comment): Likewise.
25119
25120 2010-03-27  Bruno Haible  <bruno@clisp.org>
25121
25122         Resolve conflict between the two kinds of module indicators.
25123         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25124         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25125         * modules/canonicalize (configure.ac): Invoke
25126         gl_MODULE_INDICATOR_FOR_TESTS.
25127         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25128         GNULIB_XYZ.
25129         * tests/test-dirent-c++.cc: Likewise.
25130         * tests/test-dirent-safer.c: Likewise.
25131         * tests/test-dup2.c: Likewise.
25132         * tests/test-fchdir.c: Likewise.
25133         * tests/test-fcntl-h-c++.cc: Likewise.
25134         * tests/test-getopt.c: Likewise.
25135         * tests/test-getopt.h: Likewise.
25136         * tests/test-langinfo-c++.cc: Likewise.
25137         * tests/test-locale-c++.cc: Likewise.
25138         * tests/test-math-c++.cc: Likewise.
25139         * tests/test-pty-c++.cc: Likewise.
25140         * tests/test-search-c++.cc: Likewise.
25141         * tests/test-signal-c++.cc: Likewise.
25142         * tests/test-spawn-c++.cc: Likewise.
25143         * tests/test-stdio-c++.cc: Likewise.
25144         * tests/test-stdlib-c++.cc: Likewise.
25145         * tests/test-string-c++.cc: Likewise.
25146         * tests/test-sys_ioctl-c++.cc: Likewise.
25147         * tests/test-sys_select-c++.cc: Likewise.
25148         * tests/test-sys_socket-c++.cc: Likewise.
25149         * tests/test-sys_stat-c++.cc: Likewise.
25150         * tests/test-sys_time-c++.cc: Likewise.
25151         * tests/test-time-c++.cc: Likewise.
25152         * tests/test-unistd-c++.cc: Likewise.
25153         * tests/test-wchar-c++.cc: Likewise.
25154         * tests/uninorm/test-u8-nfc.c: Likewise.
25155         * tests/uninorm/test-u8-nfd.c: Likewise.
25156         * tests/uninorm/test-u8-nfkc.c: Likewise.
25157         * tests/uninorm/test-u8-nfkd.c: Likewise.
25158         * tests/uninorm/test-u16-nfc.c: Likewise.
25159         * tests/uninorm/test-u16-nfd.c: Likewise.
25160         * tests/uninorm/test-u16-nfkc.c: Likewise.
25161         * tests/uninorm/test-u16-nfkd.c: Likewise.
25162         * tests/uninorm/test-u32-nfc.c: Likewise.
25163         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25164         * tests/uninorm/test-u32-nfd.c: Likewise.
25165         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25166         * tests/uninorm/test-u32-nfkc.c: Likewise.
25167         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25168         * tests/uninorm/test-u32-nfkd.c: Likewise.
25169         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25170         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25171
25172 2010-03-27  Bruno Haible  <bruno@clisp.org>
25173
25174         Distinguish two kinds of module indicators.
25175         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25176         gl_MODULE_INDICATOR.
25177         (gl_MODULE_INDICATOR): New macro.
25178         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25179         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25180         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25181         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25182         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25183         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25184         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25185         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25186         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25187         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25188         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25189         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25191         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25192         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25194         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25195         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25196         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25197         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25198         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25199         * modules/cloexec (configure.ac): Likewise.
25200         * modules/getopt-gnu (configure.ac): Likewise.
25201         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25202         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25203         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25204         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25205
25206 2010-03-27  Bruno Haible  <bruno@clisp.org>
25207
25208         New module description field 'Comment'.
25209         * gnulib-tool: New option --extract-comment.
25210         (func_usage): Document it.
25211         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25212         (func_get_comment): New function.
25213         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25214
25215 2010-03-27  Bruno Haible  <bruno@clisp.org>
25216
25217         Addendum to 2010-02-07 commit.
25218         * gnulib-tool (func_usage): Document --extract-applicability option.
25219
25220 2010-03-27  Bruno Haible  <bruno@clisp.org>
25221
25222         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25223         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25224         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25225         rather than link errors.
25226
25227 2010-03-27  Bruno Haible  <bruno@clisp.org>
25228
25229         Avoid side effects from tests-related modules on the compilation of lib.
25230         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25231         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25232         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25233         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25234         macro.
25235         (func_import): Define a witness macro. Assign it a value that depends
25236         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25237         tests-related modules.
25238         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25239         Reported by Jim Meyering.
25240
25241 2010-03-27  Bruno Haible  <bruno@clisp.org>
25242
25243         Factorize common .m4 code.
25244         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25245         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25246         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25247         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25248         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25249         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25250         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25251         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25252         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25253         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25254         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25255         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25256         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25257         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25258         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25259         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25260         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25261         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25263         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25264         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25265         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25266         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25267         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25268         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25269         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25270         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25271         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25272         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25273         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25274         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25275         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25276
25277 2010-03-27  Bruno Haible  <bruno@clisp.org>
25278
25279         Fix a compilation error on Cygwin with g++ >= 4.3.
25280         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25281         if it is undefined or if we alias it to chmod.
25282         (lstat): Don't warn about the use of this function if it is undefined
25283         or if we alias it to stat.
25284         Reported by Simon Josefsson.
25285
25286 2010-03-27  Bruno Haible  <bruno@clisp.org>
25287
25288         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25289         * modules/getlogin (configure.ac): Update.
25290
25291         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25292         * modules/getlogin_r (configure.ac): Update.
25293
25294         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25295         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25296         * modules/inet_ntop (configure.ac): Update.
25297
25298         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25299         * modules/inet_pton (configure.ac): Update.
25300
25301         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25302         * modules/mbslen (configure.ac): Update.
25303
25304         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25305         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25306         * modules/forkpty (configure.ac): Update.
25307         * modules/openpty (configure.ac): Update.
25308
25309 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25310
25311         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25312         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25313
25314 2010-03-25  Eric Blake  <eblake@redhat.com>
25315
25316         maint: use pragma consistently across replacement headers
25317         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25318         * lib/dirent.in.h (system_header): Likewise.
25319         * lib/errno.in.h (system_header): Likewise.
25320         * lib/float.in.h (system_header): Likewise.
25321         * lib/getopt.in.h (system_header): Likewise.
25322         * lib/iconv.in.h (system_header): Likewise.
25323         * lib/inttypes.in.h (system_header): Likewise.
25324         * lib/langinfo.in.h (system_header): Likewise.
25325         * lib/locale.in.h (system_header): Likewise.
25326         * lib/math.in.h (system_header): Likewise.
25327         * lib/netdb.in.h (system_header): Likewise.
25328         * lib/netinet_in.in.h (system_header): Likewise.
25329         * lib/pty.in.h (system_header): Likewise.
25330         * lib/sched.in.h (system_header): Likewise.
25331         * lib/se-selinux.in.h (system_header): Likewise.
25332         * lib/search.in.h (system_header): Likewise.
25333         * lib/spawn.in.h (system_header): Likewise.
25334         * lib/stdarg.in.h (system_header): Likewise.
25335         * lib/stdint.in.h (system_header): Likewise.
25336         * lib/string.in.h (system_header): Likewise.
25337         * lib/strings.in.h (system_header): Likewise.
25338         * lib/sys_file.in.h (system_header): Likewise.
25339         * lib/sys_ioctl.in.h (system_header): Likewise.
25340         * lib/sys_socket.in.h (system_header): Likewise.
25341         * lib/sys_times.in.h (system_header): Likewise.
25342         * lib/sys_utsname.in.h (system_header): Likewise.
25343         * lib/sys_wait.in.h (system_header): Likewise.
25344         * lib/sysexits.in.h (system_header): Likewise.
25345         * lib/unistd.in.h (system_header): Likewise.
25346         * lib/wctype.in.h (system_header): Likewise.
25347
25348         arpa/inet: fix mingw compilation warning
25349         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25350         Reported by Matthew Bolte.
25351
25352 2010-03-25  Bruno Haible  <bruno@clisp.org>
25353
25354         Avoid collision between gnulib wrapper and libintl wrapper.
25355         * lib/printf.c (printf): Don't define if a printf wrapper is already
25356         defined in intl/printf.c.
25357         Reported by Michel Boaventura <michel@michelboaventura.com>.
25358
25359 2010-03-25  Bruno Haible  <bruno@clisp.org>
25360
25361         Use ANSI C.
25362         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25363
25364 2010-03-25  Bruno Haible  <bruno@clisp.org>
25365
25366         Minor formatting changes.
25367         * lib/acosl.c: Insert space before function argument list.
25368         * lib/argz.c: Likewise.
25369         * lib/asinl.c: Likewise.
25370         * lib/expl.c: Likewise.
25371         * lib/gen-uni-tables.c: Likewise.
25372         * lib/gettext.h: Likewise.
25373         * lib/glthread/lock.h: Likewise.
25374         * lib/tanl.c: Likewise.
25375         * lib/uniname/uniname.c: Likewise.
25376         * tests/test-idpriv-drop.c: Likewise.
25377         * tests/test-idpriv-droptemp.c: Likewise.
25378         * tests/test-lock.c: Likewise.
25379         * tests/test-tls.c: Likewise.
25380         * lib/argp-help.c: Insert space before function-like macro argument
25381         list.
25382         * lib/memcmp.c: Likewise.
25383         * tests/test-base64.c: Likewise.
25384         * lib/localename.c: Insert space before sizeof's argument list.
25385         * lib/safe-alloc.h: Likewise.
25386         * lib/file-set.h: Insert space before macro argument list.
25387         * tests/test-argp.c: Likewise.
25388         * lib/argp-namefrob.h: Insert space before function parameter list.
25389         * lib/getaddrinfo.c: Likewise.
25390         * lib/netdb.in.h: Likewise.
25391         * lib/parse-duration.h: Likewise.
25392         * lib/parse-duration.c: Likewise.
25393         * lib/poll.c: Likewise.
25394         * lib/select.c: Likewise.
25395         * lib/trim.h: Likewise.
25396         * tests/test-usleep.c: Likewise.
25397         * lib/ldexpl.c: Insert space before function parameter list and before
25398         function argument list.
25399         * lib/logl.c: Likewise.
25400         * lib/sqrtl.c: Likewise.
25401         * lib/trim.c: Likewise.
25402         * lib/cosl.c: Use GNU style indentation. Insert space before function
25403         argument list.
25404         * lib/sinl.c: Likewise.
25405         * lib/tsearch.c: Insert space after 'for'.
25406         Reported by Jim Meyering.
25407
25408 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25409
25410         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25411         config header before grepping, as it's not present before
25412         autoreconf/configure are run.  Reported by Simon Josefsson.
25413
25414 2010-03-23  Bruno Haible  <bruno@clisp.org>
25415
25416         pt_chown: Make it work with automake < 1.11.
25417         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25418         Reported by Simon Josefsson.
25419
25420 2010-03-23  Bruno Haible  <bruno@clisp.org>
25421
25422         pt_chown: Don't depend on GPLed modules.
25423         * lib/pt_chown.c: Don't include idpriv.h.
25424         (main): Don't drop privileges.
25425         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25426         Reported by Simon Josefsson.
25427
25428 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25429
25430         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25431         suggestions from karl@freefriends.org (Karl Berry).
25432
25433 2010-03-22  Eric Blake  <eblake@redhat.com>
25434
25435         gethostname: further tweaks
25436         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25437         are overriding gethostname.
25438         Suggested by Bruno Haible.
25439
25440 2010-03-21  Bruno Haible  <bruno@clisp.org>
25441
25442         Fix comments.
25443         * lib/forkpty.c (rpl_forkpty): Fix comment.
25444         * lib/openpty.c (rpl_openpty): Likewise.
25445         Reported by Eric Blake.
25446
25447 2010-03-22  Eric Blake  <eblake@redhat.com>
25448
25449         gethostname: fix build on mingw
25450         * lib/unistd.in.h (includes): Work around fact that mingw
25451         <winsock2.h> re-includes <unistd.h>, by avoiding any
25452         redeclarations if we are being included by <winsock2.h>.
25453         Reported by Matthias Bolte.
25454
25455 2010-03-21  Bruno Haible  <bruno@clisp.org>
25456
25457         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25458         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25459         modifications.
25460         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25461         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25462         provide the replacement.
25463         * modules/forkpty (Depends-on): Add openpty, login_tty.
25464         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25465         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25466         * doc/glibc-functions/forkpty.texi: More supported platforms.
25467         * config/srclist.txt: Add forkpty.c (commented).
25468
25469 2010-03-21  Bruno Haible  <bruno@clisp.org>
25470
25471         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25472         (Makefile.am): Verify that PTY_LIB is defined.
25473
25474         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25475
25476 2010-03-21  Bruno Haible  <bruno@clisp.org>
25477
25478         Tests for module 'login_tty'.
25479         * modules/login_tty-tests: New file.
25480         * tests/test-login_tty.c: New file.
25481
25482         New module 'login_tty'.
25483         * lib/login_tty.c: New file.
25484         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25485         * modules/login_tty: New file.
25486         * doc/glibc-functions/login_tty.texi: Mention the new module.
25487
25488 2010-03-21  Bruno Haible  <bruno@clisp.org>
25489
25490         login_tty: Documentation.
25491         * doc/glibc-functions/login_tty.texi: New file.
25492         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25493
25494 2010-03-21  Bruno Haible  <bruno@clisp.org>
25495
25496         pty: Consistent macro naming.
25497         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25498         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25499         * modules/pty (configure.ac): Update.
25500
25501 2010-03-21  Bruno Haible  <bruno@clisp.org>
25502
25503         Tests for openpty: Make stricter.
25504         * tests/test-openpty.c (main): Add test of canonical processing and
25505         erase.
25506         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25507
25508         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25509         * lib/openpty.c (openpty): New replacement function.
25510         * lib/pty.in.h: Include <termios.h>.
25511         (openpty): Update declaration. Add comments.
25512         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25513         is not declared, arrange to provide the replacement. Check for _getpty
25514         and posix_openpt.
25515         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25516         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25517         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25518         * modules/pty-tests (test_pty_c___LDADD): New variable.
25519         * doc/glibc-functions/openpty.texi: More supported platforms.
25520
25521 2010-03-21  Bruno Haible  <bruno@clisp.org>
25522
25523         setenv: Tweaks.
25524         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25525         the test program.
25526         * doc/posix-functions/setenv.texi: Update platforms list.
25527
25528 2010-03-21  Bruno Haible  <bruno@clisp.org>
25529
25530         New module 'unlockpt'.
25531         * lib/unlockpt.c: New file, from glibc with modifications.
25532         * m4/unlockpt.m4: New file.
25533         * modules/unlockpt: New file.
25534         * lib/stdlib.in.h (unlockpt): New declaration.
25535         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25536         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25537         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25538         HAVE_UNLOCKPT.
25539         * doc/posix-functions/unlockpt.texi: Mention the new module.
25540         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25541         * config/srclist.txt: Add unlockpt.c (commented).
25542
25543 2010-03-21  Jim Meyering  <meyering@redhat.com>
25544
25545         maint.mk: prohibit inclusion of "intprops.h" without use
25546         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25547
25548 2010-03-21  Bruno Haible  <bruno@clisp.org>
25549
25550         New module 'grantpt'.
25551         * lib/grantpt.c: New file, from glibc with modifications.
25552         * m4/grantpt.m4: New file.
25553         * modules/grantpt: New file.
25554         * lib/stdlib.in.h (grantpt): New declaration.
25555         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25556         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25557         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25558         HAVE_GRANTPT.
25559         * doc/posix-functions/grantpt.texi: Mention the new module.
25560         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25561         * config/srclist.txt: Add grantpt.c (commented).
25562
25563 2010-03-21  Bruno Haible  <bruno@clisp.org>
25564
25565         New module 'pt_chown'.
25566         * lib/pt_chown.c: New file, from glibc with modifications.
25567         * lib/pty-private.h: New file, from glibc with modifications.
25568         * modules/pt_chown: New file.
25569         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25570
25571 2010-03-21  Bruno Haible  <bruno@clisp.org>
25572
25573         Tests for module 'ptsname'.
25574         * modules/ptsname-tests: New file.
25575         * tests/test-ptsname.c: New file.
25576
25577         New module 'ptsname'.
25578         * lib/ptsname.c: New file, from glibc with modifications.
25579         * m4/ptsname.m4: New file.
25580         * modules/ptsname: New file.
25581         * lib/stdlib.in.h (ptsname): New declaration.
25582         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25583         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25584         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25585         HAVE_PTSNAME.
25586         * doc/posix-functions/ptsname.texi: Mention the new module.
25587         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25588         * config/srclist.txt: Add ptsname.c (commented).
25589
25590 2010-03-21  Bruno Haible  <bruno@clisp.org>
25591
25592         Tests for module 'ttyname_r'.
25593         * modules/ttyname_r-tests: New file.
25594         * tests/test-ttyname_r.c: New file.
25595
25596         New module 'ttyname_r'.
25597         * lib/ttyname_r.c: New file.
25598         * m4/ttyname_r.m4: New file.
25599         * modules/ttyname_r: New file.
25600         * lib/unistd.in.h (ttyname_r): New declaration.
25601         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25602         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25603         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25604         HAVE_TTYNAME_R.
25605         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25606         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25607
25608 2010-03-20  Bruno Haible  <bruno@clisp.org>
25609
25610         signal: Undefine macro definitions in C++ mode.
25611         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25612         sigfillset): Undefine macro definitions from the system header in C++
25613         mode.
25614         Reported by John W. Eaton <jwe@gnu.org>.
25615
25616 2010-03-20  Bruno Haible  <bruno@clisp.org>
25617
25618         Ensure no #include statements inside extern "C" { ... }.
25619         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25620         contain #include statements.
25621         * lib/time.in.h: Likewise.
25622
25623 2010-03-20  Bruno Haible  <bruno@clisp.org>
25624
25625         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25626         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25627         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25628         Reported by John W. Eaton <jwe@gnu.org>.
25629
25630 2010-03-20  Bruno Haible  <bruno@clisp.org>
25631
25632         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25633         Reported by Jim Meyering.
25634
25635 2010-03-20  Bruno Haible  <bruno@clisp.org>
25636
25637         pipe: Set errno upon failure.
25638         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25639         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25640         errno value in error message.
25641
25642 2010-03-20  Bruno Haible  <bruno@clisp.org>
25643             Jim Meyering  <meyering@redhat.com>
25644
25645         lchown: Avoid "unused variable" warning.
25646         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25647
25648 2010-03-20  Bruno Haible  <bruno@clisp.org>
25649
25650         Work around unlink() bug on MacOS X 10.5.6.
25651         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25652         attempting to unlink a parent directory.
25653         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25654         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25655         activate for the replacement function.
25656         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25657
25658 2010-03-20  Bruno Haible  <bruno@clisp.org>
25659
25660         Fix link errors on Solaris 8.
25661         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25662         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25663
25664 2010-03-19  Jim Meyering  <meyering@redhat.com>
25665
25666         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25667         The _LIBC implementation of build_range_exp correctly honors the
25668         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25669         However, the non-_LIBC implementation would ignore that syntax-bit
25670         flag and return REG_ERANGE unconditionally.
25671         This change makes it honor that flag.
25672         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25673         Make two pointer parameters "const".
25674         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25675         (parse_bracket_exp): Update caller.
25676
25677         regex.m4: correct the reversed range endpoint ([b-a]) test
25678         * m4/regex.m4: When requiring that [b-a] evoke failure,
25679         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25680         test pass once again for x86-based systems.
25681
25682 2010-03-19  Bruno Haible  <bruno@clisp.org>
25683
25684         scandir: Fix link error on Solaris 8.
25685         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25686         macros.
25687
25688 2010-03-19  Bruno Haible  <bruno@clisp.org>
25689
25690         getusershell: Fix documentation.
25691         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25692         module.
25693         * doc/glibc-functions/setusershell.texi: Likewise.
25694
25695         getusershell: Provide declaration, missing on Solaris 9.
25696         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25697         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25698         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25699         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25701         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25702         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25703         HAVE_GETUSERSHELL.
25704         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25705
25706 2010-03-19  Bruno Haible  <bruno@clisp.org>
25707
25708         wctype: Provide iswblank function.
25709         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25710         exists and is fine.
25711         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25712         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25713         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25714         * doc/posix-functions/iswblank.texi: Update.
25715
25716 2010-03-19  Bruno Haible  <bruno@clisp.org>
25717
25718         Tests of module 'pty' in C++ mode.
25719         * modules/pty-tests: New file.
25720         * tests/test-pty-c++.cc: New file.
25721         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25722
25723 2010-03-19  Eric Blake  <eblake@redhat.com>
25724
25725         logb: fix documentation
25726         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25727         1.5 declaration bug.
25728
25729         forkpty, openpty: prefer glibc's const-safe prototype
25730         * lib/forkpty.c (rpl_forkpty): New file.
25731         * lib/openpty.c (rpl_openpty): Likewise.
25732         * modules/forkpty (Files): Distribute it.
25733         * modules/openpty (Files): Likewise.
25734         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25735         check...
25736         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25737         replacement for for non-const BSD signature.
25738         * modules/pty (Makefile.am): Substitute witnesses.
25739         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25740         * tests/test-forkpty.c: Update signature check.
25741         * tests/test-openpty.c: Likewise.
25742         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25743         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25744
25745         forkpty, openpty: split functions into new modules
25746         * modules/pty (Makefile.am): Substitute new witnesses.
25747         (Libraries): Move library detection...
25748         * modules/forkpty: ...into new module.
25749         * modules/openpty: Another new module.
25750         * modules/pty-tests: Rename and split...
25751         * modules/forkpty-tests: ...to this...
25752         * modules/openpty-tests: ...and this.
25753         * tests/test-pty.c: Rename and split...
25754         * tests/test-forkpty.c: ...to this...
25755         * tests/test-openpty.c: ...and this.
25756         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25757         (gl_PTY): Split library searching...
25758         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25759         (gl_FORKPTY, gl_OPENPTY): New macros.
25760         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25761         * NEWS: Mention the split.
25762         * MODULES.html.sh (Misc): Document the modules.
25763         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25764         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25765
25766         pty: improve replacement header
25767         * lib/pty.in.h: New file.
25768         * modules/pty (Files): Ship it.
25769         (Makefile.am): Always build replacement.
25770         * m4/pty.m4: Rename...
25771         * m4/pty_h.m4: ...to this.
25772         (gl_PTY): Modernize setting of witness macros; update check of
25773         forkpty to take proper advantage of cache.
25774         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25775
25776         getopt: avoid compiler warning
25777         * lib/getopt.c (attribute_hidden): Remove unused macro.
25778
25779 2010-03-18  Bruno Haible  <bruno@clisp.org>
25780
25781         Fix link errors on Solaris 8.
25782         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25783         * modules/search-tests (test_search_c___LDADD): Likewise.
25784         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25785         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25786         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25787         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25788         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25789         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25790         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25791
25792 2010-03-18  Bruno Haible  <bruno@clisp.org>
25793
25794         Fix bug introduced on 2010-03-14.
25795         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25796         (gl_SPAWN_H): Require it.
25797         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25798         Reported by Simon Josefsson.
25799
25800 2010-03-18  Bruno Haible  <bruno@clisp.org>
25801
25802         Fix typo introduced on 2009-12-31.
25803         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25804         posix_spawn_file_actions_adddup2.
25805
25806 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25807         and Eric Blake  <eblake@redhat.com>
25808
25809         test-vc-list-files-git: make more robust
25810         * tests/test-vc-list-files-git.sh: Unset problematic environment
25811         variables.  Chain commands together.
25812
25813 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25814
25815         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25816         `AC_CHECK_DECL' invocation.
25817
25818 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25819
25820         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25821         appears before executable statements. Suggested by Petr Sumbera
25822         <Petr.Sumbera@Sun.COM>.
25823
25824 2010-03-14  Bruno Haible  <bruno@clisp.org>
25825
25826         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25827         portability problems. Instead use a simpler test.
25828         (main): Check that invalid arguments are rejected only on Linux.
25829
25830 2010-03-14  Bruno Haible  <bruno@clisp.org>
25831
25832         Fix bug introduced on 2009-12-31.
25833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25834         gl_PREREQ_SYS_H_WINSOCK2 always.
25835         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25836         SYS_SOCKET_H variable.
25837         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25838         Update comments.
25839         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25840         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25841         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25842         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25843         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25844
25845 2010-03-14  Bruno Haible  <bruno@clisp.org>
25846
25847         Fix values returned by sinl, cosl.
25848         * lib/trigl.h: Add specification comments.
25849         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25850         that combines the values from the precomputed table with the values of
25851         the Chebyshev polynomials.
25852
25853 2010-03-14  Bruno Haible  <bruno@clisp.org>
25854
25855         Fix compilation error when modules 'posix_spawn[p]' are not used.
25856         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25858
25859 2010-03-14  Bruno Haible  <bruno@clisp.org>
25860
25861         Fix compilation error on mingw when module 'time_r' is not used.
25862         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25863         is 1.
25864         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25865         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25866         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25867         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25868
25869 2010-03-14  Bruno Haible  <bruno@clisp.org>
25870
25871         Fix compilation error with Sun C.
25872         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25873         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25874         instead of GCC specific ULONG_LONG_MAX.
25875         * lib/xstrtoll.c: Likewise.
25876         * lib/xstrtoull.c: Likewise.
25877
25878 2010-03-13  Bruno Haible  <bruno@clisp.org>
25879
25880         Allow the user to disable C++ code and tests.
25881         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25882         (gl_PROG_ANSI_CXX): Require it.
25883
25884 2010-03-13  Bruno Haible  <bruno@clisp.org>
25885
25886         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25887         cases.
25888
25889 2010-03-13  Bruno Haible  <bruno@clisp.org>
25890
25891         Test that gnulib does not break the standard C++ headers.
25892         * tests/test-locale-c++2.cc: New file.
25893         * modules/locale-tests (Files): Add it.
25894         (Makefile.am): Compile it for test-locale-c++.
25895         * tests/test-math-c++2.cc: New file.
25896         * modules/math-tests (Files): Add it.
25897         (Makefile.am): Compile it for test-math-c++.
25898         * tests/test-signal-c++2.cc: New file.
25899         * modules/signal-tests (Files): Add it.
25900         (Makefile.am): Compile it for test-signal-c++.
25901         * tests/test-stdio-c++2.cc: New file.
25902         * modules/stdio-tests (Files): Add it.
25903         (Makefile.am): Compile it for test-stdio-c++.
25904         * tests/test-stdlib-c++2.cc: New file.
25905         * modules/stdlib-tests (Files): Add it.
25906         (Makefile.am): Compile it for test-stdlib-c++.
25907         * tests/test-string-c++2.cc: New file.
25908         * modules/string-tests (Files): Add it.
25909         (Makefile.am): Compile it for test-string-c++.
25910         * tests/test-time-c++2.cc: New file.
25911         * modules/time-tests (Files): Add it.
25912         (Makefile.am): Compile it for test-time-c++.
25913         Reported by John W. Eaton <jwe@gnu.org>.
25914
25915 2010-03-13  Bruno Haible  <bruno@clisp.org>
25916
25917         * gnulib-tool (func_usage): Clarify which options are available for
25918         --create-testdir and --create-megatestdir.
25919
25920 2010-03-13  Bruno Haible  <bruno@clisp.org>
25921
25922         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25923         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25924         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25925         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25926         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25927         when appropriate.
25928         Reported by Jim Meyering.
25929
25930 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25931
25932         * gnulib-tool (func_import): Explain origin of code.
25933
25934 2010-03-12  Bruno Haible  <bruno@clisp.org>
25935
25936         Fix problem with automake's definition of CXXLINK.
25937         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25938         Reported by Simon Josefsson and Ludovic Courtès.
25939
25940 2010-03-12  Bruno Haible  <bruno@clisp.org>
25941
25942         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25943         stable releases.
25944
25945 2010-03-11  Bruno Haible  <bruno@clisp.org>
25946
25947         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25948         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25949         whether the system provides one variant or multiple variants of the
25950         function.
25951         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25952         C++ compilers.
25953         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25954         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25955         Reported by Jim Meyering.
25956
25957 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25958
25959         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25960
25961 2010-03-08  Bruno Haible  <bruno@clisp.org>
25962
25963         gnulib-tool: Add support for --libtool in --create-testdir.
25964         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25965         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25966
25967 2010-03-08  Eric Blake  <eblake@redhat.com>
25968
25969         gnulib-tool.texi: mention possibility of git submodule
25970         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25971         submodules.
25972         * doc/.gitignore: Ignore another generated file.
25973
25974 2010-03-08  Karl Berry  <karl@gnu.org>
25975
25976         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25977         of committing gnulib files while skipping others.
25978
25979 2010-03-07  Bruno Haible  <bruno@clisp.org>
25980
25981         Tests of module 'wctype' in C++ mode.
25982         * tests/test-wctype-c++.cc: New file.
25983         * modules/wctype-tests (Files): Add it and tests/signature.h.
25984         (Depends-on): Add ansi-c++-opt.
25985         (Makefile.am): Arrange to compile and run test-wctype-c++.
25986
25987         Tests of module 'wchar' in C++ mode.
25988         * tests/test-wchar-c++.cc: New file.
25989         * modules/wchar-tests (Files): Add it and tests/signature.h.
25990         (Depends-on): Add ansi-c++-opt.
25991         (Makefile.am): Arrange to compile and run test-wchar-c++.
25992         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25993         gl_MODULE_INDICATOR.
25994
25995         Tests of module 'unistd' in C++ mode.
25996         * tests/test-unistd-c++.cc: New file.
25997         * modules/unistd-tests (Files): Add it and tests/signature.h.
25998         (Depends-on): Add ansi-c++-opt.
25999         (Makefile.am): Arrange to compile and run test-unistd-c++.
26000         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26001         gl_MODULE_INDICATOR.
26002
26003         Tests of module 'time' in C++ mode.
26004         * tests/test-time-c++.cc: New file.
26005         * modules/time-tests (Files): Add it and tests/signature.h.
26006         (Depends-on): Add ansi-c++-opt.
26007         (Makefile.am): Arrange to compile and run test-time-c++.
26008         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26009
26010         Tests of module 'sys_time' in C++ mode.
26011         * tests/test-sys_time-c++.cc: New file.
26012         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26013         (Depends-on): Add ansi-c++-opt.
26014         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26015         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26016         gl_MODULE_INDICATOR.
26017
26018         Tests of module 'sys_stat' in C++ mode.
26019         * tests/test-sys_stat-c++.cc: New file.
26020         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26021         (Depends-on): Add ansi-c++-opt.
26022         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26023         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26024         gl_MODULE_INDICATOR.
26025
26026         Tests of module 'sys_socket' in C++ mode.
26027         * tests/test-sys_socket-c++.cc: New file.
26028         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26029         (Depends-on): Add ansi-c++-opt.
26030         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26031         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26032         gl_MODULE_INDICATOR.
26033
26034         Tests of module 'sys_select' in C++ mode.
26035         * tests/test-sys_select-c++.cc: New file.
26036         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26037         (Depends-on): Add ansi-c++-opt.
26038         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26039         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26040         gl_MODULE_INDICATOR.
26041
26042         Tests of module 'sys_ioctl' in C++ mode.
26043         * tests/test-sys_ioctl-c++.cc: New file.
26044         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26045         (Depends-on): Add ansi-c++-opt.
26046         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26048         gl_MODULE_INDICATOR.
26049
26050         Tests of module 'string' in C++ mode.
26051         * tests/test-string-c++.cc: New file.
26052         * modules/string-tests (Files): Add it and tests/signature.h.
26053         (Depends-on): Add ansi-c++-opt.
26054         (Makefile.am): Arrange to compile and run test-string-c++.
26055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26056         gl_MODULE_INDICATOR.
26057
26058         Tests of module 'stdlib' in C++ mode.
26059         * tests/test-stdlib-c++.cc: New file.
26060         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26061         (Depends-on): Add ansi-c++-opt.
26062         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26063         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26064         gl_MODULE_INDICATOR.
26065
26066         Tests of module 'stdio' in C++ mode.
26067         * tests/test-stdio-c++.cc: New file.
26068         * modules/stdio-tests (Files): Add it and tests/signature.h.
26069         (Depends-on): Add ansi-c++-opt.
26070         (Makefile.am): Arrange to compile and run test-stdio-c++.
26071         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26072         gl_MODULE_INDICATOR.
26073
26074         Tests of module 'spawn' in C++ mode.
26075         * tests/test-spawn-c++.cc: New file.
26076         * modules/spawn-tests (Files): Add it and tests/signature.h.
26077         (Depends-on): Add ansi-c++-opt.
26078         (Makefile.am): Arrange to compile and run test-spawn-c++.
26079         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26080         gl_MODULE_INDICATOR.
26081
26082         Tests of module 'signal' in C++ mode.
26083         * tests/test-signal-c++.cc: New file.
26084         * modules/signal-tests (Files): Add it and tests/signature.h.
26085         (Depends-on): Add ansi-c++-opt.
26086         (Makefile.am): Arrange to compile and run test-signal-c++.
26087         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26088         gl_MODULE_INDICATOR.
26089
26090         Tests of module 'search' in C++ mode.
26091         * tests/test-search-c++.cc: New file.
26092         * modules/search-tests (Files): Add it and tests/signature.h.
26093         (Depends-on): Add ansi-c++-opt.
26094         (Makefile.am): Arrange to compile and run test-search-c++.
26095         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26096         gl_MODULE_INDICATOR.
26097
26098         Tests of module 'math' in C++ mode.
26099         * tests/test-math-c++.cc: New file.
26100         * modules/math-tests (Files): Add it and tests/signature.h.
26101         (Depends-on): Add ansi-c++-opt.
26102         (Makefile.am): Arrange to compile and run test-math-c++.
26103         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26104
26105         Tests of module 'locale' in C++ mode.
26106         * tests/test-locale-c++.cc: New file.
26107         * modules/locale-tests (Files): Add it and tests/signature.h.
26108         (Depends-on): Add ansi-c++-opt.
26109         (Makefile.am): Arrange to compile and run test-locale-c++.
26110         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26111         gl_MODULE_INDICATOR.
26112
26113         Tests of module 'langinfo' in C++ mode.
26114         * tests/test-langinfo-c++.cc: New file.
26115         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26116         (Depends-on): Add ansi-c++-opt.
26117         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26118         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26119         gl_MODULE_INDICATOR.
26120
26121         Tests of module 'iconv-h' in C++ mode.
26122         * tests/test-iconv-h-c++.cc: New file.
26123         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26124         (Depends-on): Add ansi-c++-opt.
26125         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26126
26127         Tests of module 'glob' in C++ mode.
26128         * tests/test-glob-c++.cc: New file.
26129         * modules/glob-tests (Files): Add it.
26130         (Depends-on): Add ansi-c++-opt.
26131         (Makefile.am): Arrange to compile and run test-glob-c++.
26132
26133         Tests of module 'fcntl-h' in C++ mode.
26134         * tests/test-fcntl-h-c++.cc: New file.
26135         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26136         (Depends-on): Add ansi-c++-opt.
26137         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26138         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26139         gl_MODULE_INDICATOR.
26140
26141         Tests of module 'dirent' in C++ mode.
26142         * tests/test-dirent-c++.cc: New file.
26143         * modules/dirent-tests (Files): Add it and tests/signature.h.
26144         (Depends-on): Add ansi-c++-opt.
26145         (Makefile.am): Arrange to compile and run test-dirent-c++.
26146         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26147         gl_MODULE_INDICATOR.
26148
26149         New module 'ansi-c++-opt'.
26150         * modules/ansi-c++-opt: New file.
26151         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26152
26153         Document C++ namespace mode.
26154         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26155
26156         wctype: Avoid #define replacements in C++ mode.
26157         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26158         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26159         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26160         In C++, define a namespaced alias symbol.
26161         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26162         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26163         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26164         rule.
26165
26166         wchar: Avoid #define replacements in C++ mode.
26167         * lib/wchar.in.h: Include c++defs.h.
26168         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26169         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26170         symbol.
26171         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26172         * modules/wchar (Depends-on): Add c++defs.
26173         (Makefile.am): Update wchar.h rule.
26174
26175         unistd: Avoid #define replacements in C++ mode.
26176         * lib/unistd.in.h: Include c++defs.h.
26177         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26178         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26179         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26180         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26181         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26182         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26183         symbol.
26184         (environ): Update.
26185         * modules/unistd (Depends-on): Add c++defs.
26186         (Makefile.am): Update unistd.h rule.
26187
26188         time: Avoid #define replacements in C++ mode.
26189         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26190         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26191         define a namespaced alias symbol.
26192         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26193         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26194         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26195         * modules/time (Depends-on): Add c++defs, warn-on-use.
26196         (Makefile.am): Update time.h rule.
26197         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26198         * modules/nanosleep (configure.ac): Likewise.
26199         * modules/strptime (configure.ac): Likewise.
26200         * modules/timegm (configure.ac): Likewise.
26201
26202         sys_time: Avoid #define replacements in C++ mode.
26203         * lib/sys_time.in.h: Include c++defs.h.
26204         (gettimeofday): In C++, define a namespaced alias symbol.
26205         * modules/sys_time (Depends-on): Add c++defs.
26206         (Makefile.am): Update sys/time.h rule.
26207
26208         sys_stat: Avoid #define replacements in C++ mode.
26209         * lib/sys_stat.in.h: Include c++defs.h.
26210         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26211         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26212         namespaced alias symbol.
26213         In C++, define a namespaced alias symbol.
26214         * modules/sys_stat (Depends-on): Add c++defs.
26215         (Makefile.am): Update sys/stat.h rule.
26216
26217         sys_socket: Avoid #define replacements in C++ mode.
26218         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26219         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26220         definitions also when the system has a <sys/socket.h>.
26221         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26222         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26223         In C++, define a namespaced alias symbol.
26224         * modules/sys_socket (Depends-on): Add c++defs.
26225         (Makefile.am): Update sys/socket.h rule.
26226
26227         sys_select: Avoid #define replacements in C++ mode.
26228         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26229         definitions also when the system has a <sys/select.h>.
26230         (select): In C++, define a namespaced alias symbol.
26231         * modules/sys_select (Depends-on): Add c++defs.
26232         (Makefile.am): Update sys/select.h rule.
26233
26234         sys_ioctl: Avoid #define replacements in C++ mode.
26235         * lib/sys_ioctl.in.h: Include c++defs.h.
26236         (ioctl): In C++, define a namespaced alias symbol.
26237         * modules/sys_ioctl (Depends-on): Add c++defs.
26238         (Makefile.am): Update sys/ioctl.h rule.
26239
26240         string: Avoid #define replacements in C++ mode.
26241         * lib/string.in.h: Include c++defs.h.
26242         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26243         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26244         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26245         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26246         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26247         * modules/string (Depends-on): Add c++defs.
26248         (Makefile.am): Update string.h rule.
26249
26250         stdlib: Avoid #define replacements in C++ mode.
26251         * lib/stdlib.in.h: Include c++defs.h.
26252         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26253         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26254         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26255         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26256         symbol.
26257         * modules/stdlib (Depends-on): Add c++defs.
26258         (Makefile.am): Update stdlib.h rule.
26259
26260         stdio: Avoid #define replacements in C++ mode.
26261         * lib/stdio.in.h: Include c++defs.h.
26262         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26263         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26264         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26265         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26266         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26267         namespaced alias symbol.
26268         * modules/stdio (Depends-on): Add c++defs.
26269         (Makefile.am): Update stdio.h rule.
26270
26271         spawn: Avoid #define replacements in C++ mode.
26272         * lib/spawn.in.h: Include c++defs.h.
26273         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26274         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26275         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26276         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26277         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26278         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26279         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26280         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26281         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26282         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26283         In C++, define a namespaced alias symbol.
26284         * modules/spawn (Depends-on): Add c++defs.
26285         (Makefile.am): Update spawn.h rule.
26286
26287         signal: Avoid #define replacements in C++ mode.
26288         * lib/signal.in.h: Include c++defs.h.
26289         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26290         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26291         namespaced alias symbol.
26292         * modules/signal (Depends-on): Add c++defs.
26293         (Makefile.am): Update signal.h rule.
26294
26295         search: Avoid #define replacements in C++ mode.
26296         * lib/search.in.h: Include c++defs.h.
26297         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26298         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26299         symbol.
26300         * modules/search (Depends-on): Add c++defs.
26301         (Makefile.am): Update search.h rule.
26302
26303         math: Avoid #define replacements in C++ mode.
26304         * lib/math.in.h: Include c++defs.h.
26305         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26306         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26307         trunc, truncl): In C++, define a namespaced alias symbol.
26308         * modules/math (Depends-on): Add c++defs.
26309         (Makefile.am): Update math.h rule.
26310
26311         locale: Avoid #define replacements in C++ mode.
26312         * lib/locale.in.h: Include c++defs.h.
26313         (duplocale): In C++, define a namespaced alias symbol.
26314         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26315         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26316         * modules/locale (Depends-on): Add c++defs.
26317         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26318
26319         langinfo: Avoid #define replacements in C++ mode.
26320         * lib/langinfo.in.h: Include c++defs.h.
26321         (nl_langinfo): In C++, define a namespaced alias symbol.
26322         * modules/langinfo (Depends-on): Add c++defs.
26323         (Makefile.am): Update langinfo.h rule.
26324
26325         iconv-h: Avoid #define replacements in C++ mode.
26326         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26327         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26328         symbol.
26329         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26330         whenever iconv is present.
26331         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26332         (Makefile.am): Update iconv.h rule.
26333
26334         glob: Avoid #define replacements in C++ mode.
26335         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26336         (_gl_glob_errfunc_fn): New type.
26337         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26338         symbol.
26339         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26340         (Makefile.am): Update glob.h rule.
26341
26342         fcntl-h: Avoid #define replacements in C++ mode.
26343         * lib/fcntl.in.h: Include c++defs.h.
26344         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26345         * modules/fcntl-h (Depends-on): Add c++defs.
26346         (Makefile.am): Update fcntl.h rule.
26347
26348         dirent: Avoid #define replacements in C++ mode.
26349         * lib/dirent.in.h: Include c++defs.h.
26350         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26351         namespaced alias symbol.
26352         (dirfd): Update declaration.
26353         * modules/dirent (Depends-on): Add c++defs.
26354         (Makefile.am): Update dirent.h rule.
26355
26356         ctype: Make it usable in C++ code.
26357         * lib/ctype.in.h: Include c++defs.h.
26358         (isblank): Declare as extern "C".
26359         * modules/ctype (Depends-on): Add c++defs.
26360         (Makefile.am): Update ctype.h rule.
26361
26362         New module 'c++defs'.
26363         * modules/c++defs: New file.
26364         * build-aux/c++defs.h: New file.
26365         Reported by John W. Eaton <jwe@gnu.org>.
26366
26367 2010-03-07  Bruno Haible  <bruno@clisp.org>
26368
26369         logb: Provide missing declaration for Cygwin.
26370         * lib/math.in.h (logb): New declaration.
26371         * m4/logb.m4: New file.
26372         * modules/logb (Files): Add m4/logb.m4.
26373         (Depends-on): Add math.
26374         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26375         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26377         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26378         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26379
26380 2010-03-07  Bruno Haible  <bruno@clisp.org>
26381
26382         Fix test-cond link error.
26383         * tests/test-cond.c: Include <stdio.h>.
26384
26385 2010-03-07  Bruno Haible  <bruno@clisp.org>
26386
26387         Fix test-dirent-safer link error.
26388         * modules/dirent-safer-tests (Makefile.am): Define
26389         test_dirent_safer_LDADD.
26390
26391 2010-03-07  Bruno Haible  <bruno@clisp.org>
26392
26393         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26394         among default module list.
26395
26396 2010-03-07  Bruno Haible  <bruno@clisp.org>
26397
26398         Fix link error on platforms with GNU libiconv.
26399         * modules/unistr/u8-strcoll-tests (Makefile): Define
26400         test_u8_strcoll_LDADD.
26401         * modules/unistr/u16-strcoll-tests (Makefile): Define
26402         test_u16_strcoll_LDADD.
26403         * modules/unistr/u32-strcoll-tests (Makefile): Define
26404         test_u32_strcoll_LDADD.
26405
26406 2010-03-07  Bruno Haible  <bruno@clisp.org>
26407
26408         Use POSIX declarations for socket functions.
26409         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26410         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26411         rpl_sendto): Change declaration to match POSIX.
26412         * lib/connect.c (rpl_connect): Likewise.
26413         * lib/accept.c (rpl_accept): Likewise.
26414         * lib/bind.c (rpl_bind): Likewise.
26415         * lib/getpeername.c (rpl_getpeername): Likewise.
26416         * lib/getsockname.c (rpl_getsockname): Likewise.
26417         * lib/recv.c (rpl_recv): Likewise.
26418         * lib/send.c (rpl_send): Likewise.
26419         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26420         * lib/sendto.c (rpl_sendto): Likewise.
26421
26422 2010-03-06  Bruno Haible  <bruno@clisp.org>
26423
26424         Clarify access, euidaccess, faccessat.
26425         * doc/posix-functions/faccessat.texi: Mention security problem under
26426         "Other problems", not "Portability problems".
26427         * doc/posix-functions/access.texi: Likewise. Mention a related security
26428         problem.
26429         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26430         * lib/euidaccess.c: Add comments about platforms.
26431         * lib/unistd.in.h (access, euidaccess): Add warnings.
26432
26433 2010-03-07  Bruno Haible  <bruno@clisp.org>
26434
26435         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26436         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26437         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26438         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26439         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26440         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26441         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26442         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26443         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26444         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26445         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26446         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26447         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26448         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26449         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26450         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26451         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26452         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26453         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26454         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26455         Likewise.
26456         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26457         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26458         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26459         Likewise.
26460         * tests/test-spawn.c (main): Make it work when
26461         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26462
26463 2010-03-07  Bruno Haible  <bruno@clisp.org>
26464
26465         Fix incorrect Makefile.am generation in German locale.
26466         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26467         Execute sed command with character range in C locale.
26468
26469 2010-03-06  Bruno Haible  <bruno@clisp.org>
26470
26471         Tests for module 'iconv-h'.
26472         * modules/iconv-h-tests: New file.
26473         * tests/test-iconv-h.c: New file.
26474
26475         New module 'iconv-h'.
26476         * modules/iconv-h: New file.
26477         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26478         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26479         (configure.ac): Remove gl_ICONV_H.
26480         (Makefile.am): Remove rule for iconv.h.
26481
26482 2010-03-06  Bruno Haible  <bruno@clisp.org>
26483
26484         More consistent naming of *.m4 files.
26485         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26486         * modules/wctype (Files): Update.
26487
26488         More consistent naming of *.m4 files.
26489         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26490         * modules/wchar (Files): Update.
26491
26492 2010-03-06  Jim Meyering  <meyering@redhat.com>
26493
26494         euidaccess: relax license to LGPLv2+
26495         * modules/euidaccess (License): Relax to LGPLv2+.
26496
26497 2010-03-06  Bruno Haible  <bruno@clisp.org>
26498
26499         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26500         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26501         (Makefile.am): Augment lib_SOURCES instead.
26502
26503 2010-03-04  Jim Meyering  <meyering@redhat.com>
26504
26505         utime: remove obsolete module
26506         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26507         unnecessary for years, and has been marked as obsolete for 10 months.
26508         * modules/utime: Remove file.
26509         * lib/utime.c: Remove file.
26510         * m4/utime.m4: Remove file.
26511         * m4/utimes-null.m4: Remove file.
26512         * doc/posix-functions/utime.texi (utime): Remove reference to
26513         the module.  Move the sole "fixed by gnulib" item into the
26514         "problems not fixed by Gnulib" list.
26515         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26516
26517 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26518
26519         * modules/exit (License): Relax license to LGPLv2+.
26520         (Status): Mark as obsolete.
26521         * NEWS: Mention deprecated 'exit' module.
26522         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26523         of now obsolete 'exit'.
26524
26525 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26526
26527         fts-lgpl: remove unused module
26528         * modules/fts-lgpl: Remove.
26529         * MODULES.html.sh (func_all_modules): Adjust.
26530         * check-module (find_included_lib_files): Adjust.
26531         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26532
26533 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26534
26535         copy-acl: enhance Solaris ACL error handling
26536         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26537         * lib/set-mode-acl.c (qset_acl): Likewise.
26538
26539 2010-03-02  Bruno Haible  <bruno@clisp.org>
26540
26541         spawn: Don't override the system defined values on FreeBSD 8.
26542         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26543         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26544         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26545         if HAVE_POSIX_SPAWN is 1.
26546         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26547
26548 2010-03-01  Bruno Haible  <bruno@clisp.org>
26549
26550         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26551         regarding Automake.
26552
26553 2010-02-25  Bruno Haible  <bruno@clisp.org>
26554
26555         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26556         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26557         setting, not afterwards.
26558         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26559
26560 2010-02-24  Eric Blake  <eblake@redhat.com>
26561
26562         bootstrap, git-version-gen: use timestamp
26563         * build-aux/git-version-gen (scriptversion): Force UTC.
26564         * build-aux/bootstrap (scriptversion): New variable.
26565
26566         bootstrap: allow older git
26567         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26568         older than 1.6.4.  Requested by the libvirt project.
26569
26570 2010-02-23  Eric Blake  <eblake@redhat.com>
26571
26572         warn-on-use: work with old autoconf
26573         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26574         AS_VAR semantics of autoconf 2.60.
26575         Reported by Bruno Haible.
26576
26577         bootstrap: improve some comments
26578         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26579         clarification comments.
26580
26581         gettimeofday: provide correct function
26582         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26583         when replacement is declared, otherwise provide gettimeofday.
26584         Reported by Michael Goffioul.
26585
26586 2010-02-23  Jim Meyering  <meyering@redhat.com>
26587
26588         lib-ignore: relax license to "unlimited", not LGPLv2+
26589         * modules/lib-ignore (License): Relax to "unlimited".
26590
26591 2010-02-23  Jim Meyering  <meyering@redhat.com>
26592
26593         lib-ignore: relax license to LGPLv2+
26594         * modules/lib-ignore (License): Relax to LGPLv2+.
26595
26596 2010-02-22  Eric Blake  <eblake@redhat.com>
26597
26598         lseek: avoid bash 3.2 broken pipe bug
26599         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26600         warning from bash 3.2.
26601         Reported by Ben Pfaff, with analysis from Bruno Haible.
26602
26603         bootstrap: support non-FSF copyright holder
26604         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26605         bootstrap.conf override of COPYRIGHT_HOLDER.
26606         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26607
26608         bootstrap: interoperate with gettext 0.14.1
26609         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26610
26611         bootstrap: allow for alternate submodule location
26612         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26613         hardcoding submodule location.
26614         (gnulib_mk): Allow direct use of Makefile.am.
26615
26616         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26617         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26618         rather than reconfiguring where the submodule points.
26619
26620         gettimeofday: restore support for platforms that lack function
26621         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26622         replacement if function is missing.
26623         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26624         * modules/sys_time (Makefile.am): Substitute it.
26625         * lib/sys_time.in.h (gettimeofday): Check it.
26626         Reported by Michael Goffioul.
26627
26628 2010-02-21  Bruno Haible  <bruno@clisp.org>
26629
26630         * lib/stdio.in.h (obstack_printf): Fix typo.
26631
26632 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26633
26634         vc-list-files: use bzr ls's -R option
26635         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26636         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26637
26638 2010-02-21  Jim Meyering  <meyering@redhat.com>
26639
26640         init.sh: fix EXEEXT shims to work also for names like test-prog
26641         * tests/init.sh: Re-exec a better shell, when needed.
26642         If the current shell lacks support for posix $(...), an init.sh-using
26643         test will now try to find a shell that supports that.  If EXEEXT is
26644         nonempty, we also require support for hyphen-in-alias-name and shell
26645         substitutions like ${var#glob}.  Failure to find such a shell results
26646         in a skipped test.
26647
26648 2010-02-21  Bruno Haible  <bruno@clisp.org>
26649
26650         Really work around around "broken pipe" error message from bash 3.2.
26651         * gnulib-tool (func_reset_sigpipe): Remove function.
26652         (echo): In bash 3.2, define to a function that uses printf.
26653         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26654
26655 2010-02-20  Bruno Haible  <bruno@clisp.org>
26656
26657         Restore support for automake 1.9.6 with autoconf 2.61.
26658         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26659         Reported by James Youngman <jay@gnu.org>.
26660
26661 2010-02-20  Bruno Haible  <bruno@clisp.org>
26662
26663         Improve *printf warning condition.
26664         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26665         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26666         and the function is overridden due to SIGPIPE emulation.
26667
26668 2010-02-20  Bruno Haible  <bruno@clisp.org>
26669
26670         * lib/stdio.in.h: Tweak comments.
26671
26672 2010-02-19  Bruno Haible  <bruno@clisp.org>
26673
26674         Make it easier to find modules. New gnulib-tool option '--find'.
26675         * gnulib-tool: New option --find.
26676         (func_usage): Document it.
26677         (func_sanitize_modulelist): New function, extracted from
26678         func_all_modules.
26679         (func_all_modules): Invoke it.
26680         * doc/gnulib-tool.texi (Which modules?): New node.
26681
26682 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26683
26684         * lib/sys_select.in.h: Provide select replacement even if
26685         sys/select.h exists on a system, for Interix.
26686
26687 2010-02-18  Jim Meyering  <meyering@redhat.com>
26688
26689         init.sh: don't use $(...) just yet
26690         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26691         to accommodate e.g., Solaris' /bin/sh.
26692
26693 2010-02-17  Bruno Haible  <bruno@clisp.org>
26694
26695         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26696         Reported by Ludovic Courtès <ludo@gnu.org>.
26697
26698 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26699
26700         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26701         linking with -lintl.
26702
26703 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26704
26705         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26706         if not provided by the system's netdb.h.  Reported by
26707         ludo@gnu.org (Ludovic Courtès).
26708
26709 2010-02-15  Jim Meyering  <meyering@redhat.com>
26710
26711         init.sh: improve portability and efficiency
26712         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26713         "dummy" in a for loop.
26714         Use '!', not '^' to select the complement of a character set used
26715         in a "case" statement.
26716         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26717         Suggestions from Eric Blake.
26718
26719         init.sh: automatically accommodate programs with the .exe suffix
26720         Automatically arrange for an invocation of "prog" to execute the
26721         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26722         may use the simpler "prog", yet still work when built on a system
26723         that requires specifying the added suffix.
26724         Do this by constructing a function named "prog" that invokes
26725         "prog.exe" for each .exe file in selected directories.
26726         * tests/init.sh (find_exe_basenames_): New function.
26727         (create_exe_shim_functions_): New function.
26728         (path_prepend_): Use it.
26729
26730         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26731         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26732         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26733
26734 2010-02-14  Jim Meyering  <meyering@redhat.com>
26735
26736         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26737         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26738         (sc_prohibit_hash_pjw_without_use): New rule.
26739
26740         maint.mk: allow the default upload destination dir to be overridden
26741         * top/maint.mk (upload_dest_dir_): Define with a default that
26742         preserves the status quo.
26743         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26744         Reported by Peter Simons.
26745
26746         maint.mk: prohibit inclusion of "hash.h" without_use
26747         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26748
26749 2010-02-10  Jim Meyering  <meyering@redhat.com>
26750
26751         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26752         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26753
26754 2010-02-09  Eric Blake  <ebb9@byu.net>
26755         and Bruno Haible  <bruno@clisp.org>
26756
26757         obstack-printf-posix: ensure declaration
26758         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26759         extracted from gl_FUNC_OBSTACK_PRINTF.
26760         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26761         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26762         Likewise.
26763         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26764         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26765         0.
26766
26767 2010-02-08  Bruno Haible  <bruno@clisp.org>
26768
26769         gnulib-tool: Fix typo in 2010-02-07 commit.
26770         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26771         Reported by Eric Blake.
26772
26773 2010-02-07  Bruno Haible  <bruno@clisp.org>
26774
26775         gnulib-tool: Fix up caching patches.
26776         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26777         option --no-cache. Use associative arrays when supported by the shell.
26778         (sed_comments): New variable.
26779         (modcache): Renamed from do_cache.
26780         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26781         abbreviate unnecessarily.
26782         (have_associative): New variable.
26783         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26784         way also for ksh and zsh.
26785         (func_init_sed_convert_to_cache_statements): New function, extracted
26786         from func_cache_lookup_module. Add support for associative arrays.
26787         Don't set the c_MODULE_cached variable here. Ignore all lines before
26788         the first field header. Remove only the final newline, not all trailing
26789         newlines. Support empty fields correctly. Limit the use of 'eval' to
26790         assignments.
26791         (func_get_description, func_get_status, func_get_notice,
26792         func_get_applicability, func_get_filelist, func_get_dependencies,
26793         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26794         func_get_automake_snippet, func_get_include_directive,
26795         func_get_link_directive, func_get_license, func_get_maintainer):
26796         Update documentation. List the unoptimized code first. Add support for
26797         associative arrays. Limit the use of 'eval' to assignments.
26798         (func_get_applicability): Undo stylistic pessimisations.
26799         (func_get_automake_snippet, func_get_include_directive): Reduce code
26800         duplication.
26801         (func_modules_transitive_closure, func_modules_add_dummy,
26802         func_modules_notice, func_modules_to_filelist, func_add_file,
26803         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26804         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26805         func_create_testdir, func_create_megatestdir): Update documentation.
26806
26807 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26808
26809         * gnulib-tool (func_cache_lookup_module): Store the module name
26810         belonging to the cache variable; error out if two different
26811         module names map to the same cache variable name.
26812
26813 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26814
26815         gnulib-tool: Make caching optional.
26816         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26817         Update matching short versions of --no-changelog.
26818         (func_usage): Update.
26819         (sed_extract_cache_prog): Renamed from ...
26820         (sed_extract_prog): ... this; revert to old extraction script.
26821         (func_get_description, func_get_status)
26822         (func_get_notice, func_get_applicability, func_get_filelist)
26823         (func_get_dependencies, func_get_autoconf_early_snippet)
26824         (func_get_autoconf_snippet, func_get_automake_snippet)
26825         (func_get_include_directive, func_get_link_directive)
26826         (func_get_license, func_get_maintainer): If $do_cache is false,
26827         use old, non-caching extraction scripts.
26828         Suggestion by Bruno Haible.
26829
26830 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26831
26832         gnulib-tool: cache module metainformation.
26833         * gnulib-tool (sed_extract_prog): Match newline before each
26834         header, and rewrite header to a shell variable suffix.
26835         (func_cache_var, func_cache_lookup_module): New functions,
26836         to turn a module name into a cache variable prefix, and to
26837         look up and cache module metainformation.
26838         (func_get_description, func_get_status)
26839         (func_get_notice, func_get_applicability, func_get_filelist)
26840         (func_get_dependencies, func_get_autoconf_early_snippet)
26841         (func_get_autoconf_snippet, func_get_automake_snippet)
26842         (func_get_include_directive, func_get_link_directive)
26843         (func_get_license, func_get_maintainer): Use
26844         func_cache_lookup_module.
26845
26846 2010-02-07  Bruno Haible  <bruno@clisp.org>
26847
26848         fnctl: Fix missing dependency.
26849         * modules/fcntl (Depends-on): Add getdtablesize.
26850         Reported by John W. Eaton <jwe@gnu.org>.
26851
26852 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26853
26854         Argp: fix recognition of short alias options.
26855
26856         * lib/argp-parse.c (convert_options): Fix improper use of
26857         `|' between character values.
26858         * tests/test-argp.c (group1_option): New alias option
26859         --read (-r).
26860         (group1_parser): Special handling for 'r'.
26861         (test15): New test case.
26862         (test_fun): Add test15.
26863         * tests/test-argp-2.sh: Update expected --help and --usage
26864         outputs.
26865
26866 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26867
26868         * tests/test-argp.c: Fix indentation.
26869
26870 2010-02-04  Eric Blake  <ebb9@byu.net>
26871
26872         gettimeofday: expose type of second argument
26873         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26874         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26875         * tests/test-gettimeofday.c: Use it to silence warning.
26876         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26877         the issue.
26878
26879 2010-02-03  Jim Meyering  <meyering@redhat.com>
26880
26881         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26882         * lib/regcomp.c (TYPE_SIGNED): Define.
26883         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26884
26885         regcomp.c: avoid a new -Wshadow warning
26886         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26887
26888 2010-02-01  Jim Meyering  <meyering@redhat.com>
26889
26890         removing useless parentheses in cpp #define directives
26891         For motivation, see commit c0221df4, "define STREQ(a,b)
26892         consistently, removing useless parentheses"
26893         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26894         * lib/mountlist.c (MNT_IGNORE): Likewise.
26895         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26896
26897 2010-02-01  Eric Blake  <ebb9@byu.net>
26898
26899         sys_time: use link-warning
26900         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26901         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26902         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26903         * modules/sys_time (Depends-on): Add warn-on-use.
26904         (Makefile.am): Always build replacement.
26905         (configure.ac): Update substitutions.
26906         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26907         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26908         bother with SYS_TIME_H.
26909         * modules/gettimeofday (configure.ac): Declare indicator.
26910         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26911         in use.
26912
26913         closein-tests: silence compiler warning
26914         * tests/test-closein.c (main): Ignore fread result.
26915         * modules/closein-tests (Depends-on): Add ignore-value.
26916
26917         tests: silence warning about system return
26918         * tests/test-areadlink-with-size.c (main): Ignore system result.
26919         * tests/test-areadlink.c (main): Likewise.
26920         * tests/test-areadlinkat-with-size.c (main): Likewise.
26921         * tests/test-areadlinkat.c (main): Likewise.
26922         * tests/test-canonicalize-lgpl.c (main): Likewise.
26923         * tests/test-canonicalize.c (main): Likewise.
26924         * tests/test-chown.c (main): Likewise.
26925         * tests/test-fchownat.c (main): Likewise.
26926         * tests/test-fdutimensat.c (main): Likewise.
26927         * tests/test-fstatat.c (main): Likewise.
26928         * tests/test-futimens.c (main): Likewise.
26929         * tests/test-lchown.c (main): Likewise.
26930         * tests/test-link.c (main): Likewise.
26931         * tests/test-linkat.c (main): Likewise.
26932         * tests/test-lstat.c (main): Likewise.
26933         * tests/test-mkdir.c (main): Likewise.
26934         * tests/test-mkdirat.c (main): Likewise.
26935         * tests/test-mkfifo.c (main): Likewise.
26936         * tests/test-mkfifoat.c (main): Likewise.
26937         * tests/test-mknod.c (main): Likewise.
26938         * tests/test-readlink.c (main): Likewise.
26939         * tests/test-remove.c (main): Likewise.
26940         * tests/test-rename.c (main): Likewise.
26941         * tests/test-renameat.c (main): Likewise.
26942         * tests/test-rmdir.c (main): Likewise.
26943         * tests/test-symlink.c (main): Likewise.
26944         * tests/test-symlinkat.c (main): Likewise.
26945         * tests/test-unlink.c (main): Likewise.
26946         * tests/test-unlinkat.c (main): Likewise.
26947         * tests/test-utimens.c (main): Likewise.
26948         * tests/test-utimensat.c (main): Likewise.
26949         * modules/areadlink-tests (Depends-on): Add ignore-value.
26950         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26951         * modules/areadlinkat-tests (Depends-on): Likewise.
26952         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26953         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26954         * modules/canonicalize-tests (Depends-on): Likewise.
26955         * modules/chown-tests (Depends-on): Likewise.
26956         * modules/fdutimensat-tests (Depends-on): Likewise.
26957         * modules/futimens-tests (Depends-on): Likewise.
26958         * modules/lchown-tests (Depends-on): Likewise.
26959         * modules/link-tests (Depends-on): Likewise.
26960         * modules/linkat-tests (Depends-on): Likewise.
26961         * modules/lstat-tests (Depends-on): Likewise.
26962         * modules/mkdir-tests (Depends-on): Likewise.
26963         * modules/mkfifo-tests (Depends-on): Likewise.
26964         * modules/mkfifoat-tests (Depends-on): Likewise.
26965         * modules/mknod-tests (Depends-on): Likewise.
26966         * modules/openat-tests (Depends-on): Likewise.
26967         * modules/readlink-tests (Depends-on): Likewise.
26968         * modules/remove-tests (Depends-on): Likewise.
26969         * modules/rename-tests (Depends-on): Likewise.
26970         * modules/renameat-tests (Depends-on): Likewise.
26971         * modules/rmdir-tests (Depends-on): Likewise.
26972         * modules/symlink-tests (Depends-on): Likewise.
26973         * modules/symlinkat-tests (Depends-on): Likewise.
26974         * modules/unlink-tests (Depends-on): Likewise.
26975         * modules/utimens-tests (Depends-on): Likewise.
26976         * modules/utimensat-tests (Depends-on): Likewise.
26977
26978 2010-01-31  Bruno Haible  <bruno@clisp.org>
26979
26980         Perform the same test for many <math.h> functions.
26981         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26982         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26983         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26984         of gl_MATHFUNC.
26985         * modules/acos (configure.ac): Likewise.
26986         * modules/asin (configure.ac): Likewise.
26987         * modules/atan (configure.ac): Likewise.
26988         * modules/atan2 (configure.ac): Likewise.
26989         * modules/cbrt (configure.ac): Likewise.
26990         * modules/copysign (configure.ac): Likewise.
26991         * modules/cos (configure.ac): Likewise.
26992         * modules/cosh (configure.ac): Likewise.
26993         * modules/erf (configure.ac): Likewise.
26994         * modules/erfc (configure.ac): Likewise.
26995         * modules/exp (configure.ac): Likewise.
26996         * modules/fmod (configure.ac): Likewise.
26997         * modules/hypot (configure.ac): Likewise.
26998         * modules/j0 (configure.ac): Likewise.
26999         * modules/j1 (configure.ac): Likewise.
27000         * modules/jn (configure.ac): Likewise.
27001         * modules/lgamma (configure.ac): Likewise.
27002         * modules/log (configure.ac): Likewise.
27003         * modules/log10 (configure.ac): Likewise.
27004         * modules/log1p (configure.ac): Likewise.
27005         * modules/pow (configure.ac): Likewise.
27006         * modules/remainder (configure.ac): Likewise.
27007         * modules/sin (configure.ac): Likewise.
27008         * modules/sinh (configure.ac): Likewise.
27009         * modules/tan (configure.ac): Likewise.
27010         * modules/tanh (configure.ac): Likewise.
27011         * modules/y0 (configure.ac): Likewise.
27012         * modules/y1 (configure.ac): Likewise.
27013         * modules/yn (configure.ac): Likewise.
27014         Suggested by Paolo Bonzini.
27015
27016 2010-01-31  Bruno Haible  <bruno@clisp.org>
27017
27018         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27019
27020 2010-01-31  Bruno Haible  <bruno@clisp.org>
27021
27022         Work around getdelim() bug on FreeBSD 8.0.
27023         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27024         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27025         not work.
27026         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27027         is 1.
27028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27029         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27030         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27031         a non-zero size.
27032         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27033
27034 2010-01-31  Bruno Haible  <bruno@clisp.org>
27035
27036         Work around getline() bug on FreeBSD 8.0.
27037         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27038         and a non-zero size.
27039         * tests/test-getline.c (main): Likewise.
27040         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27041         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27042
27043 2010-01-28  Eric Blake  <ebb9@byu.net>
27044
27045         regex: fix build failure
27046         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27047         platforms.
27048
27049 2010-01-28  Jim Meyering  <meyering@redhat.com>
27050
27051         regex: do not ignore memory allocation failure
27052         * lib/regex_internal.c (create_cd_newstate): Detect
27053         re_node_set_init_copy failure.   Extracted from glibc commit
27054         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27055
27056         regex: sync more white-space changes from libc
27057         * lib/regex_internal.c: White-space only changes.
27058         * lib/regexec.c: Likewise.
27059
27060         regex: add many uses of __attribute_warn_unused_result__
27061         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27062         * lib/regexec.c: Likewise.
27063         Extracted from a messy glibc commit.
27064
27065         regcomp.c: spelling and merge-artifact from glibc
27066         * lib/regcomp.c: Merge remainder of glibc's
27067         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27068
27069         regcomp.c: sync white-space changes from glibc
27070         * lib/regcomp.c: Merge to accommodate white space
27071         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27072
27073         regcomp.c: do not ignore internal return values
27074         * lib/regcomp.c: Do not ignore internal return values.
27075         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27076         but without its white-space changes and spelling fixes.
27077
27078         regex_internal.h: define __attribute_warn_unused_result__
27079         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27080
27081         maint: add a syntax-check rule to check for vulnerable Makefile.in
27082         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27083
27084 2010-01-27  Jim Meyering  <meyering@redhat.com>
27085
27086         ncftpput-ftp: clean up spaces
27087         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27088         Remove trailing blanks.
27089
27090 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27091
27092         * build-aux/git-version-gen: Fix copyright statement.
27093         * build-aux/gnupload: Likewise.
27094         * tests/test-arcfour.c: Likewise.
27095         * tests/test-arctwo.c: Likewise.
27096         * tests/test-count-one-bits.c: Likewise.
27097         * tests/test-crc.c: Likewise.
27098         * tests/test-des.c: Likewise.
27099         * tests/test-gc-arcfour.c: Likewise.
27100         * tests/test-gc-arctwo.c: Likewise.
27101         * tests/test-gc-des.c: Likewise.
27102         * tests/test-gc-hmac-md5.c: Likewise.
27103         * tests/test-gc-hmac-sha1.c: Likewise.
27104         * tests/test-gc-md2.c: Likewise.
27105         * tests/test-gc-md4.c: Likewise.
27106         * tests/test-gc-md5.c: Likewise.
27107         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27108         * tests/test-gc-rijndael.c: Likewise.
27109         * tests/test-gc-sha1.c: Likewise.
27110         * tests/test-gc.c: Likewise.
27111         * tests/test-gethostname.c: Likewise.
27112         * tests/test-gettimeofday.c: Likewise.
27113         * tests/test-hash.c: Likewise.
27114         * tests/test-hmac-md5.c: Likewise.
27115         * tests/test-hmac-sha1.c: Likewise.
27116         * tests/test-md2.c: Likewise.
27117         * tests/test-md4.c: Likewise.
27118         * tests/test-md5.c: Likewise.
27119         * tests/test-memchr.c: Likewise.
27120         * tests/test-memchr2.c: Likewise.
27121         * tests/test-memcmp.c: Likewise.
27122         * tests/test-memmem.c: Likewise.
27123         * tests/test-memrchr.c: Likewise.
27124         * tests/test-rawmemchr.c: Likewise.
27125         * tests/test-read-file.c: Likewise.
27126         * tests/test-rijndael.c: Likewise.
27127         * tests/test-sockets.c: Likewise.
27128         * tests/test-strchrnul.c: Likewise.
27129         * tests/test-strstr.c: Likewise.
27130         * tests/test-strtod.c: Likewise.
27131         * build-aux/ncftpput-ftp: Likewise.
27132
27133 2010-01-26  Eric Blake  <ebb9@byu.net>
27134
27135         ignore-value: update recommended header name
27136         * modules/ignore-value (Include): Only use <> for headers that
27137         exist in glibc.
27138
27139 2010-01-26  Jim Meyering  <meyering@redhat.com>
27140
27141         test-userspec.c: avoid compiler warnings
27142         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27143         and "initialization discards qualifiers..." warnings.
27144         Put the first "uid" in its own scope, and make char* members "const".
27145
27146 2010-01-25  Bruno Haible  <bruno@clisp.org>
27147
27148         gnulib-tool: Make warning diagnostics consistent.
27149         * gnulib-tool (func_warning): New function.
27150         Use it everywhere where gnulib-tool produces output to stderr and it is
27151         not a fatal error.
27152
27153 2010-01-25  Bruno Haible  <bruno@clisp.org>
27154
27155         Fix test dependencies.
27156         * modules/xstrtol-tests (Depends-on): Add inttypes.
27157         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27158
27159 2010-01-25 Pádraig Brady <P@draigBrady.com>
27160
27161         syntax-check: detect incorrect boolean macro values in config.h
27162         * modules/maintainer-makefile (configure.ac): Parameterize the location
27163         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27164         The logic is from Eric Blake and the location indicated by Jim Meyering.
27165         Note the more natural CONFIG_HEADER name is prohibited by automake
27166         for backwards compatibility reasons.
27167         * top/maint.mk (sc_Wundef_boolean): New rule.
27168
27169 2010-01-25  Jim Meyering  <meyering@redhat.com>
27170
27171         bootstrap: detect MacOS 10.6's shasum, too
27172         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27173         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27174
27175 2010-01-23  Jim Meyering  <meyering@redhat.com>
27176
27177         xstrtoll: new module
27178         * modules/xstrtoll: New file.
27179         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27180         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27181         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27182         ./configure fails if you use this module and lack "long long".
27183         * modules/xstrtoll-tests: New module.
27184         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27185         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27186         new init.sh-based test framework.
27187
27188 2010-01-24  Bruno Haible  <bruno@clisp.org>
27189
27190         Tests for module 'yn'.
27191         * modules/yn-tests: New file.
27192         * tests/test-yn.c: New file.
27193
27194         Tests for module 'y1'.
27195         * modules/y1-tests: New file.
27196         * tests/test-y1.c: New file.
27197
27198         Tests for module 'y0'.
27199         * modules/y0-tests: New file.
27200         * tests/test-y0.c: New file.
27201
27202         Tests for module 'tanh'.
27203         * modules/tanh-tests: New file.
27204         * tests/test-tanh.c: New file.
27205
27206         Tests for module 'tan'.
27207         * modules/tan-tests: New file.
27208         * tests/test-tan.c: New file.
27209
27210         Tests for module 'sqrt'.
27211         * modules/sqrt-tests: New file.
27212         * tests/test-sqrt.c: New file.
27213
27214         Tests for module 'sinh'.
27215         * modules/sinh-tests: New file.
27216         * tests/test-sinh.c: New file.
27217
27218         Tests for module 'sin'.
27219         * modules/sin-tests: New file.
27220         * tests/test-sin.c: New file.
27221
27222         Tests for module 'rint'.
27223         * modules/rint-tests: New file.
27224         * tests/test-rint.c: New file.
27225
27226         Tests for module 'remainder'.
27227         * modules/remainder-tests: New file.
27228         * tests/test-remainder.c: New file.
27229
27230         Tests for module 'pow'.
27231         * modules/pow-tests: New file.
27232         * tests/test-pow.c: New file.
27233
27234         Tests for module 'nextafter'.
27235         * modules/nextafter-tests: New file.
27236         * tests/test-nextafter.c: New file.
27237
27238         Tests for module 'modf'.
27239         * modules/modf-tests: New file.
27240         * tests/test-modf.c: New file.
27241
27242         Tests for module 'logb'.
27243         * modules/logb-tests: New file.
27244         * tests/test-logb.c: New file.
27245
27246         Tests for module 'log1p'.
27247         * modules/log1p-tests: New file.
27248         * tests/test-log1p.c: New file.
27249
27250         Tests for module 'log10'.
27251         * modules/log10-tests: New file.
27252         * tests/test-log10.c: New file.
27253
27254         Tests for module 'log'.
27255         * modules/log-tests: New file.
27256         * tests/test-log.c: New file.
27257
27258         Tests for module 'lgamma'.
27259         * modules/lgamma-tests: New file.
27260         * tests/test-lgamma.c: New file.
27261
27262         Tests for module 'ldexp'.
27263         * modules/ldexp-tests: New file.
27264         * tests/test-ldexp.c: New file.
27265
27266         Tests for module 'jn'.
27267         * modules/jn-tests: New file.
27268         * tests/test-jn.c: New file.
27269
27270         Tests for module 'j1'.
27271         * modules/j1-tests: New file.
27272         * tests/test-j1.c: New file.
27273
27274         Tests for module 'j0'.
27275         * modules/j0-tests: New file.
27276         * tests/test-j0.c: New file.
27277
27278         Tests for module 'hypot'.
27279         * modules/hypot-tests: New file.
27280         * tests/test-hypot.c: New file.
27281
27282         Tests for module 'fmod'.
27283         * modules/fmod-tests: New file.
27284         * tests/test-fmod.c: New file.
27285
27286         Tests for module 'fabs'.
27287         * modules/fabs-tests: New file.
27288         * tests/test-fabs.c: New file.
27289
27290         Tests for module 'exp'.
27291         * modules/exp-tests: New file.
27292         * tests/test-exp.c: New file.
27293
27294         Tests for module 'erfc'.
27295         * modules/erfc-tests: New file.
27296         * tests/test-erfc.c: New file.
27297
27298         Tests for module 'erf'.
27299         * modules/erf-tests: New file.
27300         * tests/test-erf.c: New file.
27301
27302         Tests for module 'cosh'.
27303         * modules/cosh-tests: New file.
27304         * tests/test-cosh.c: New file.
27305
27306         Tests for module 'cos'.
27307         * modules/cos-tests: New file.
27308         * tests/test-cos.c: New file.
27309
27310         Tests for module 'copysign'.
27311         * modules/copysign-tests: New file.
27312         * tests/test-copysign.c: New file.
27313
27314         Tests for module 'cbrt'.
27315         * modules/cbrt-tests: New file.
27316         * tests/test-cbrt.c: New file.
27317
27318         Tests for module 'atan2'.
27319         * modules/atan2-tests: New file.
27320         * tests/test-atan2.c: New file.
27321
27322         Tests for module 'atan'.
27323         * modules/atan-tests: New file.
27324         * tests/test-atan.c: New file.
27325
27326         Tests for module 'asin'.
27327         * modules/asin-tests: New file.
27328         * tests/test-asin.c: New file.
27329
27330         Tests for module 'acos'.
27331         * modules/acos-tests: New file.
27332         * tests/test-acos.c: New file.
27333
27334 2010-01-24  Bruno Haible  <bruno@clisp.org>
27335
27336         Fix tests for common <math.h> functions.
27337         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27338         code snippet that references the function pointer, rather than merely
27339         calling the function. Substitute the FUNC_LIBM variable.
27340         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27341         * modules/acos (configure.ac): Likewise.
27342         * modules/asin (configure.ac): Likewise.
27343         * modules/atan (configure.ac): Likewise.
27344         * modules/atan2 (configure.ac): Likewise.
27345         * modules/cbrt (configure.ac): Likewise.
27346         * modules/copysign (configure.ac): Likewise.
27347         * modules/cos (configure.ac): Likewise.
27348         * modules/cosh (configure.ac): Likewise.
27349         * modules/erf (configure.ac): Likewise.
27350         * modules/erfc (configure.ac): Likewise.
27351         * modules/exp (configure.ac): Likewise.
27352         * modules/fabs (configure.ac): Likewise.
27353         * modules/fmod (configure.ac): Likewise.
27354         * modules/hypot (configure.ac): Likewise.
27355         * modules/j0 (configure.ac): Likewise.
27356         * modules/j1 (configure.ac): Likewise.
27357         * modules/jn (configure.ac): Likewise.
27358         * modules/ldexp (configure.ac): Likewise.
27359         * modules/lgamma (configure.ac): Likewise.
27360         * modules/log (configure.ac): Likewise.
27361         * modules/log10 (configure.ac): Likewise.
27362         * modules/log1p (configure.ac): Likewise.
27363         * modules/logb (configure.ac): Likewise.
27364         * modules/modf (configure.ac): Likewise.
27365         * modules/nextafter (configure.ac): Likewise.
27366         * modules/pow (configure.ac): Likewise.
27367         * modules/remainder (configure.ac): Likewise.
27368         * modules/rint (configure.ac): Likewise.
27369         * modules/sin (configure.ac): Likewise.
27370         * modules/sinh (configure.ac): Likewise.
27371         * modules/tan (configure.ac): Likewise.
27372         * modules/tanh (configure.ac): Likewise.
27373         * modules/y0 (configure.ac): Likewise.
27374         * modules/y1 (configure.ac): Likewise.
27375         * modules/yn (configure.ac): Likewise.
27376
27377 2010-01-24  Bruno Haible  <bruno@clisp.org>
27378
27379         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27380         * tests/test-acosl.c (x): New variable.
27381         (main): Store argument in x and fetch it from x.
27382         * tests/test-asinl.c (x): New variable.
27383         (main): Store argument in x and fetch it from x.
27384         * tests/test-atanl.c (x): New variable.
27385         (main): Store argument in x and fetch it from x.
27386         * tests/test-cosl.c (x): New variable.
27387         (main): Store argument in x and fetch it from x.
27388         * tests/test-expl.c (x): New variable.
27389         (main): Store argument in x and fetch it from x.
27390         * tests/test-logl.c (x): New variable.
27391         (main): Store argument in x and fetch it from x.
27392         * tests/test-sinl.c (x): New variable.
27393         (main): Store argument in x and fetch it from x.
27394         * tests/test-sqrtl.c (x): New variable.
27395         (main): Store argument in x and fetch it from x.
27396         * tests/test-tanl.c (x): New variable.
27397         (main): Store argument in x and fetch it from x.
27398
27399 2010-01-24  Bruno Haible  <bruno@clisp.org>
27400
27401         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27402         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27403         assignments to the initial TESTS_ENVIRONMENT.
27404         * doc/gnulib.texi (Unit test modules): Document it.
27405         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27406         TESTS_ENVIRONMENT.
27407         * modules/btowc-tests (Makefile.am): Likewise.
27408         * modules/c-stack-tests (Makefile.am): Likewise.
27409         * modules/c-strcase-tests (Makefile.am): Likewise.
27410         * modules/copy-file-tests (Makefile.am): Likewise.
27411         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27412         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27413         * modules/mbrtowc-tests (Makefile.am): Likewise.
27414         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27415         * modules/mbscasestr-tests (Makefile.am): Likewise.
27416         * modules/mbschr-tests (Makefile.am): Likewise.
27417         * modules/mbscspn-tests (Makefile.am): Likewise.
27418         * modules/mbsinit-tests (Makefile.am): Likewise.
27419         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27420         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27421         * modules/mbspbrk-tests (Makefile.am): Likewise.
27422         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27423         * modules/mbsrchr-tests (Makefile.am): Likewise.
27424         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27425         * modules/mbsspn-tests (Makefile.am): Likewise.
27426         * modules/mbsstr-tests (Makefile.am): Likewise.
27427         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27428         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27429         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27430         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27431         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27432         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27433         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27434         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27435         * modules/wcrtomb-tests (Makefile.am): Likewise.
27436         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27437         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27438         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27439         assignments from TESTS_ENVIRONMENT.
27440         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27441         augmentation.
27442         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27443         * modules/atexit-tests (Makefile.am): Likewise.
27444         * modules/binary-io-tests (Makefile.am): Likewise.
27445         * modules/closein-tests (Makefile.am): Likewise.
27446         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27447         * modules/exclude-tests (Makefile.am): Likewise.
27448         * modules/fflush-tests (Makefile.am): Likewise.
27449         * modules/fpending-tests (Makefile.am): Likewise.
27450         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27451         * modules/freadahead-tests (Makefile.am): Likewise.
27452         * modules/freadptr-tests (Makefile.am): Likewise.
27453         * modules/freadseek-tests (Makefile.am): Likewise.
27454         * modules/fseek-tests (Makefile.am): Likewise.
27455         * modules/fseeko-tests (Makefile.am): Likewise.
27456         * modules/ftell-tests (Makefile.am): Likewise.
27457         * modules/ftello-tests (Makefile.am): Likewise.
27458         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27459         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27460         * modules/lseek-tests (Makefile.am): Likewise.
27461         * modules/parse-duration-tests (Makefile.am): Likewise.
27462         * modules/perror-tests (Makefile.am): Likewise.
27463         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27464         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27465         * modules/pipe-tests (Makefile.am): Likewise.
27466         * modules/pread-tests (Makefile.am): Likewise.
27467         * modules/printf-posix-tests (Makefile.am): Likewise.
27468         * modules/select-tests (Makefile.am): Likewise.
27469         * modules/sigpipe-tests (Makefile.am): Likewise.
27470         * modules/tsearch-tests (Makefile.am): Likewise.
27471         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27472         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27473         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27474         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27475         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27476         * modules/version-etc-tests (Makefile.am): Likewise.
27477         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27478         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27479         * modules/xalloc-die-tests (Makefile.am): Likewise.
27480         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27481         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27482         * modules/xstrtol-tests (Makefile.am): Likewise.
27483         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27484         * modules/yesno-tests (Makefile.am): Likewise.
27485         Suggested by Jim Meyering.
27486
27487 2010-01-24  Bruno Haible  <bruno@clisp.org>
27488
27489         More documentation.
27490         * doc/gnulib.texi (Writing modules): New chapter.
27491         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27492         the new chapter.
27493
27494 2010-01-24  Jim Meyering  <meyering@redhat.com>
27495
27496         maint.mk: do not prepend "./" after filtering
27497         * top/maint.mk (_prepend_srcdir_prefix): New variable
27498         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27499         "./" when $(srcdir) is ".".
27500
27501         define STREQ(a,b) consistently, removing useless parentheses
27502         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27503         since the only risk is that "a" or "b" contains an unparenthesized
27504         comma, but if either did that, STREQ would have 3 or more arguments.
27505         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27506         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27507         * lib/hash-triple.c (STREQ): Likewise.
27508         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27509         * lib/getugroups.c (STREQ): Likewise.
27510
27511 2010-01-23  Jim Meyering  <meyering@redhat.com>
27512
27513         maint.mk: fix syntax-check in a non-srcdir build directory
27514         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27515         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27516
27517 2010-01-22  Jim Meyering  <meyering@redhat.com>
27518
27519         userspec: add unit tests
27520         * tests/test-userspec.c: New file.
27521         * modules/userspec-tests: Likewise.
27522
27523 2010-01-21  Jim Meyering  <meyering@redhat.com>
27524
27525         maint.mk: handle source file names containing "." robustly
27526         * top/maint.mk (_dot_escaped_srcdir): Define.
27527         (VC_LIST): Use it in LHS of sed substitution.
27528
27529 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27530
27531         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27532         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27533         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27534         from a non-srcdir build.
27535
27536 2010-01-20  Eric Blake  <ebb9@byu.net>
27537
27538         warn-on-use: use instead of link-warning
27539         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27540         * modules/unistd (Depends-on, Makefile.am): Likewise.
27541         * modules/arpa_inet (Depends-on): Replace link-warning with
27542         warn-on-use.
27543         (Makefile.am): Update rules accordingly.
27544         * modules/ctype (Depends-on, Makefile.am): Likewise.
27545         * modules/dirent (Depends-on, Makefile.am): Likewise.
27546         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27547         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27548         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27549         * modules/locale (Depends-on, Makefile.am): Likewise.
27550         * modules/math (Depends-on, Makefile.am): Likewise.
27551         * modules/search (Depends-on, Makefile.am): Likewise.
27552         * modules/signal (Depends-on, Makefile.am): Likewise.
27553         * modules/spawn (Depends-on, Makefile.am): Likewise.
27554         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27555         * modules/string (Depends-on, Makefile.am): Likewise.
27556         * modules/strings (Depends-on, Makefile.am): Likewise.
27557         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27558         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27559         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27560         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27561         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27562         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27563         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27564         * modules/wchar (Depends-on, Makefile.am): Likewise.
27565         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27566         should be poisoned.
27567         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27568         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27569         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27570         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27571         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27572         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27573         * m4/math_h.m4 (gl_MATH_H): Likewise.
27574         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27575         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27576         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27577         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27578         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27579         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27580         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27581         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27582         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27583         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27584         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27585         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27586         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27587         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27588         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27589         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27590         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27591         GL_LINK_WARNING.
27592         * lib/ctype.in.h: Likewise.
27593         * lib/dirent.in.h: Likewise.
27594         * lib/fcntl.in.h: Likewise.
27595         * lib/inttypes.in.h: Likewise.
27596         * lib/langinfo.in.h: Likewise.
27597         * lib/locale.in.h: Likewise.
27598         * lib/math.in.h: Likewise.
27599         * lib/search.in.h: Likewise.
27600         * lib/signal.in.h: Likewise.
27601         * lib/spawn.in.h: Likewise.
27602         * lib/stdio.in.h: Likewise.
27603         * lib/stdlib.in.h: Likewise.
27604         * lib/string.in.h: Likewise.
27605         * lib/strings.in.h: Likewise.
27606         * lib/sys_file.in.h: Likewise.
27607         * lib/sys_ioctl.in.h: Likewise.
27608         * lib/sys_select.in.h: Likewise.
27609         * lib/sys_socket.in.h: Likewise.
27610         * lib/sys_stat.in.h: Likewise.
27611         * lib/sys_times.in.h: Likewise.
27612         * lib/sys_utsname.in.h: Likewise.
27613         * lib/unistd.in.h: Likewise.
27614         * lib/wchar.in.h: Likewise.
27615
27616 2010-01-20  Bruno Haible  <bruno@clisp.org>
27617
27618         Avoid duplicate -lm.
27619         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27620         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27622         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27623         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27624         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27625         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27626         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27627         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27628         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27629         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27630         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27631         Reported by Paolo Bonzini.
27632
27633 2010-01-19  Bruno Haible  <bruno@clisp.org>
27634
27635         langinfo, nl_langinfo: Relicense under LGPLv2+.
27636         * modules/langinfo (License): Change to LGPLv2+.
27637         * modules/nl_langinfo (License): Likewise.
27638         Patch by David Lutterkort <lutter@redhat.com>.
27639
27640 2010-01-19  Bruno Haible  <bruno@clisp.org>
27641
27642         Avoid compilation error with cc on OSF/1 5.1.
27643         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27644         statement, not before.
27645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27646
27647 2010-01-18  Bruno Haible  <bruno@clisp.org>
27648
27649         Avoid a link error due to the __printf__ symbol.
27650         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27651         and 2.6.x.
27652         (__format__, __printf__): Remove definitions.
27653         * lib/argp-fmtstream.h: Likewise.
27654         * lib/argp.h: Likewise.
27655         * lib/error.h: Likewise.
27656         * lib/vasnprintf.h: Likewise.
27657         * lib/xprintf.h: Likewise.
27658         * lib/xvasprintf.h: Likewise.
27659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27660
27661 2010-01-18  Bruno Haible  <bruno@clisp.org>
27662
27663         Tests for module 'tanl'.
27664         * modules/tanl-tests: New file.
27665         * tests/test-tanl.c: New file.
27666
27667         Tests for module 'sqrtl'.
27668         * modules/sqrtl-tests: New file.
27669         * tests/test-sqrtl.c: New file.
27670
27671         Tests for module 'sinl'.
27672         * modules/sinl-tests: New file.
27673         * tests/test-sinl.c: New file.
27674
27675         Tests for module 'logl'.
27676         * modules/logl-tests: New file.
27677         * tests/test-logl.c: New file.
27678
27679         Tests for module 'expl'.
27680         * modules/expl-tests: New file.
27681         * tests/test-expl.c: New file.
27682
27683         Tests for module 'cosl'.
27684         * modules/cosl-tests: New file.
27685         * tests/test-cosl.c: New file.
27686
27687         Tests for module 'atanl'.
27688         * modules/atanl-tests: New file.
27689         * tests/test-atanl.c: New file.
27690
27691         Tests for module 'asinl'.
27692         * modules/asinl-tests: New file.
27693         * tests/test-asinl.c: New file.
27694
27695         Tests for module 'acosl'.
27696         * modules/acosl-tests: New file.
27697         * tests/test-acosl.c: New file.
27698
27699         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27700         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27701         tanl): Use the standard gnulib idiom.
27702         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27703         * lib/sinl.c: Likewise.
27704         * lib/tanl.c: Don't include trigl.c.
27705         (kernel_tanl): Make static.
27706         * lib/sincosl.c: Include trigl.h first.
27707         * lib/trigl.c: Likewise.
27708         * m4/acosl.m4: New file.
27709         * m4/asinl.m4: New file.
27710         * m4/atanl.m4: New file.
27711         * m4/cosl.m4: New file.
27712         * m4/expl.m4: New file.
27713         * m4/logl.m4: New file.
27714         * m4/sinl.m4: New file.
27715         * m4/sqrtl.m4: New file.
27716         * m4/tanl.m4: New file.
27717         * m4/mathl.m4: Remove file.
27718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27719         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27720         Don't initialize GNULIB_MATHL.
27721         * modules/acosl: New file.
27722         * modules/asinl: New file.
27723         * modules/atanl: New file.
27724         * modules/cosl: New file.
27725         * modules/expl: New file.
27726         * modules/logl: New file.
27727         * modules/sinl: New file.
27728         * modules/sqrtl: New file.
27729         * modules/tanl: New file.
27730         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27731         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27732         substitute GNULIB_MATHL.
27733         * modules/mathl: Rewritten.
27734         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27735         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27736         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27737         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27738         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27739         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27740         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27741         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27742         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27743
27744 2010-01-18  Bruno Haible  <bruno@clisp.org>
27745
27746         sqrt: Make gl_FUNC_SQRT requirable.
27747         * m4/sqrt.m4: New file.
27748         * modules/sqrt (Files): Add it.
27749         (configure.ac): Invoke gl_FUNC_SQRT.
27750
27751 2010-01-18  Bruno Haible  <bruno@clisp.org>
27752
27753         New modules for common <math.h> functions.
27754         * m4/mathfunc.m4: New file.
27755         * modules/acos: New file.
27756         * modules/asin: New file.
27757         * modules/atan: New file.
27758         * modules/atan2: New file.
27759         * modules/cbrt: New file.
27760         * modules/copysign: New file.
27761         * modules/cos: New file.
27762         * modules/cosh: New file.
27763         * modules/erf: New file.
27764         * modules/erfc: New file.
27765         * modules/exp: New file.
27766         * modules/fabs: New file.
27767         * modules/fmod: New file.
27768         * modules/hypot: New file.
27769         * modules/j0: New file.
27770         * modules/j1: New file.
27771         * modules/jn: New file.
27772         * modules/ldexp: New file.
27773         * modules/lgamma: New file.
27774         * modules/log: New file.
27775         * modules/log10: New file.
27776         * modules/log1p: New file.
27777         * modules/logb: New file.
27778         * modules/modf: New file.
27779         * modules/nextafter: New file.
27780         * modules/pow: New file.
27781         * modules/remainder: New file.
27782         * modules/rint: New file.
27783         * modules/sin: New file.
27784         * modules/sinh: New file.
27785         * modules/sqrt: New file.
27786         * modules/tan: New file.
27787         * modules/tanh: New file.
27788         * modules/y0: New file.
27789         * modules/y1: New file.
27790         * modules/yn: New file.
27791         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27792         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27793         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27794         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27795         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27796         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27797         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27798         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27799         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27800         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27801         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27802         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27803         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27804         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27805         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27806         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27807         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27808         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27809         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27810         * doc/posix-functions/log.texi: Mention the 'log' module.
27811         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27812         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27813         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27814         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27815         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27816         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27817         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27818         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27819         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27820         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27821         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27822         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27823         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27824         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27825         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27826         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27827
27828 2010-01-18  Jim Meyering  <meyering@redhat.com>
27829
27830         ignore-value: relax license to LGPLv2+
27831         * modules/ignore-value (License): Relax to LGPLv2+.
27832
27833         getdate: don't leak when TZ contains two or more '"'s
27834         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27835         double quote in TZ after the first one.
27836
27837         readtokens: do not leak internal token_lengths buffer
27838         * lib/readtokens.c (readtokens): Free the local, lengths,
27839         when the supplied "token_lengths" parameter is NULL.
27840
27841 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27842
27843         Fix a couple of missing LIBTHREAD link failures on AIX.
27844         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27845         $(LIBTHREAD).
27846         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27847
27848         Link test-poll against INET_PTON_LIB.
27849         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27850         for inet_pton on Solaris 10.
27851
27852 2010-01-17  Bruno Haible  <bruno@clisp.org>
27853
27854         unistdio/*-sprintf: Fix typo in module description.
27855         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27856         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27857         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27858         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27859         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27860         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27861         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27863
27864 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27865
27866         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27867         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27868         variables in shell case patterns, for AIX and HP-UX ksh.
27869
27870         Split large sed scripts, for HP-UX sed.
27871         * modules/stdio: Split sed scripts around 50 sed commands,
27872         to avoid HP-UX limit of 99 commands, in the near future.
27873         * modules/string: Likewise.
27874         * modules/unistd: Likewise.
27875
27876         gnulib-tool: avoid writing in the current directory.
27877         * gnulib-tool (func_emit_lib_Makefile_am)
27878         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27879         not in the current directory, so concurrent gnulib-tool
27880         instances do not interfere.
27881
27882 2010-01-16  Jim Meyering  <meyering@redhat.com>
27883
27884         doc: update users.txt
27885         * users.txt: Add grep.
27886         (diffutils, gzip): Update URLs.
27887
27888 2010-01-12  Bruno Haible  <bruno@clisp.org>
27889
27890         posix_spawn: Avoid test failure on Cygwin.
27891         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27892         characters.
27893         Reported by Simon Josefsson.
27894
27895 2010-01-12  Bruno Haible  <bruno@clisp.org>
27896
27897         * tests/test-cond.c (main): When skipping the test, show the reason.
27898
27899 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27900
27901         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27902
27903 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27904
27905         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27906         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27907
27908 2010-01-12  Eric Blake  <ebb9@byu.net>
27909
27910         build: guarantee AS_VAR_IF
27911         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27912         (gl_AS_VAR_IF): Move...
27913         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27914         Reported by Simon Josefsson.
27915
27916 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27917
27918         * lib/stdio.in.h: Fix typo.
27919
27920 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27921
27922         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27923         libgpg-error.
27924
27925 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27926
27927         * tests/test-xalloc-die.sh: Use $EXEEXT.
27928
27929 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27930             Bruno Haible  <bruno@clisp.org>
27931
27932         getlogin, getlogin_r: Avoid test failure.
27933         * tests/test-getlogin.c: Include <stdio.h>.
27934         (main): Skip the test when the function fails because stdin is not a
27935         tty.
27936         * tests/test-getlogin_r.c: Include <stdio.h>.
27937         (main): Skip the test when the function fails because stdin is not a
27938         tty.
27939
27940 2010-01-11  Eric Blake  <ebb9@byu.net>
27941
27942         tests: avoid more large file warnings
27943         * tests/test-fflush.c: Avoid warning about ftell use.
27944         * tests/test-fseek.c: Avoid warning about fseek use.
27945
27946 2010-01-10  Bruno Haible  <bruno@clisp.org>
27947
27948         nproc: Work better on Linux when /proc and /sys are not mounted.
27949         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27950         as lower bound when, on glibc/Linux systems,
27951         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27952         Suggested by Pádraig Brady <P@draigbrady.com>.
27953         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27954
27955         nproc: Refactor.
27956         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27957         extracted from num_processors.
27958         (num_processors): Call it.
27959
27960 2010-01-11  Jim Meyering  <meyering@redhat.com>
27961
27962         utimecmp: avoid new warning from upcoming gcc-4.5.0
27963         * lib/utimecmp.c (BILLION): Define using #define rather than an
27964         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27965
27966 2010-01-11  Eric Blake  <ebb9@byu.net>
27967
27968         math: add portability warnings for classification macros
27969         * modules/math (Depends-on): Add warn-on-use.
27970         (Makefile.am): Provide new substitutions.
27971         * m4/math_h.m4 (gl_MATH_H): Require inline.
27972         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27973         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27974         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27975         implement warnings.
27976
27977         unistd: warn on use of environ without module
27978         * modules/unistd (Depends-on): Add warn-on-use.
27979         (Makefile.am): Provide new substitutions.
27980         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27981         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27982
27983         stdio: warn on suspicious uses
27984         * modules/stdio (Depends-on): Add warn-on-use.
27985         (Makefile.am): Provide new substitutions.
27986         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27987         fseeko.
27988         * lib/stdio.in.h (gets): Always warn on use.
27989         (fseek, ftell): Adjust when warnings are issued, and honor
27990         _GL_NO_LARGE_FILES as a way to silence the warning.
27991         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27992         any warning about large file offsets.
27993         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27994         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27995         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27996         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27997         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27998         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27999         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28000         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28001
28002         warn-on-use: new module
28003         * modules/warn-on-use: New file.
28004         * build-aux/warn-on-use.h: Likewise.
28005         * m4/warn-on-use.m4: Likewise.
28006         * MODULES.html.sh (Support for building): Mention it.
28007
28008 2010-01-10  Bruno Haible  <bruno@clisp.org>
28009
28010         Tests for module 'unistr/u32-strdup'.
28011         * modules/unistr/u32-strdup-tests: New file.
28012         * tests/unistr/test-u32-strdup.c: New file.
28013
28014         Tests for module 'unistr/u16-strdup'.
28015         * modules/unistr/u16-strdup-tests: New file.
28016         * tests/unistr/test-u16-strdup.c: New file.
28017
28018         Tests for module 'unistr/u8-strdup'.
28019         * modules/unistr/u8-strdup-tests: New file.
28020         * tests/unistr/test-u8-strdup.c: New file.
28021         * tests/unistr/test-strdup.h: New file.
28022
28023         Tests for module 'unistr/u32-strncmp'.
28024         * modules/unistr/u32-strncmp-tests: New file.
28025         * tests/unistr/test-u32-strncmp.c: New file.
28026
28027         Tests for module 'unistr/u16-strncmp'.
28028         * modules/unistr/u16-strncmp-tests: New file.
28029         * tests/unistr/test-u16-strncmp.c: New file.
28030
28031         Tests for module 'unistr/u8-strncmp'.
28032         * modules/unistr/u8-strncmp-tests: New file.
28033         * tests/unistr/test-u8-strncmp.c: New file.
28034         * tests/unistr/test-strncmp.h: New file.
28035
28036         Tests for module 'unistr/u32-strcoll'.
28037         * modules/unistr/u32-strcoll-tests: New file.
28038         * tests/unistr/test-u32-strcoll.c: New file.
28039
28040         Tests for module 'unistr/u16-strcoll'.
28041         * modules/unistr/u16-strcoll-tests: New file.
28042         * tests/unistr/test-u16-strcoll.c: New file.
28043
28044         Tests for module 'unistr/u8-strcoll'.
28045         * modules/unistr/u8-strcoll-tests: New file.
28046         * tests/unistr/test-u8-strcoll.c: New file.
28047
28048         Tests for module 'unistr/u32-strcmp'.
28049         * modules/unistr/u32-strcmp-tests: New file.
28050         * tests/unistr/test-u32-strcmp.c: New file.
28051         * tests/unistr/test-u32-strcmp.h: New file.
28052
28053         Tests for module 'unistr/u16-strcmp'.
28054         * modules/unistr/u16-strcmp-tests: New file.
28055         * tests/unistr/test-u16-strcmp.c: New file.
28056         * tests/unistr/test-u16-strcmp.h: New file.
28057
28058         Tests for module 'unistr/u8-strcmp'.
28059         * modules/unistr/u8-strcmp-tests: New file.
28060         * tests/unistr/test-u8-strcmp.c: New file.
28061         * tests/unistr/test-u8-strcmp.h: New file.
28062         * tests/unistr/test-strcmp.h: New file.
28063
28064         Tests for module 'unistr/u32-strncat'.
28065         * modules/unistr/u32-strncat-tests: New file.
28066         * tests/unistr/test-u32-strncat.c: New file.
28067
28068         Tests for module 'unistr/u16-strncat'.
28069         * modules/unistr/u16-strncat-tests: New file.
28070         * tests/unistr/test-u16-strncat.c: New file.
28071
28072         Tests for module 'unistr/u8-strncat'.
28073         * modules/unistr/u8-strncat-tests: New file.
28074         * tests/unistr/test-u8-strncat.c: New file.
28075         * tests/unistr/test-strncat.h: New file.
28076
28077         Tests for module 'unistr/u32-strcat'.
28078         * modules/unistr/u32-strcat-tests: New file.
28079         * tests/unistr/test-u32-strcat.c: New file.
28080
28081         Tests for module 'unistr/u16-strcat'.
28082         * modules/unistr/u16-strcat-tests: New file.
28083         * tests/unistr/test-u16-strcat.c: New file.
28084
28085         Tests for module 'unistr/u8-strcat'.
28086         * modules/unistr/u8-strcat-tests: New file.
28087         * tests/unistr/test-u8-strcat.c: New file.
28088         * tests/unistr/test-strcat.h: New file.
28089
28090         Tests for module 'unistr/u32-stpncpy'.
28091         * modules/unistr/u32-stpncpy-tests: New file.
28092         * tests/unistr/test-u32-stpncpy.c: New file.
28093
28094         Tests for module 'unistr/u16-stpncpy'.
28095         * modules/unistr/u16-stpncpy-tests: New file.
28096         * tests/unistr/test-u16-stpncpy.c: New file.
28097
28098         Tests for module 'unistr/u8-stpncpy'.
28099         * modules/unistr/u8-stpncpy-tests: New file.
28100         * tests/unistr/test-u8-stpncpy.c: New file.
28101         * tests/unistr/test-stpncpy.h: New file.
28102
28103         Tests for module 'unistr/u32-strncpy'.
28104         * modules/unistr/u32-strncpy-tests: New file.
28105         * tests/unistr/test-u32-strncpy.c: New file.
28106
28107         Tests for module 'unistr/u16-strncpy'.
28108         * modules/unistr/u16-strncpy-tests: New file.
28109         * tests/unistr/test-u16-strncpy.c: New file.
28110
28111         Tests for module 'unistr/u8-strncpy'.
28112         * modules/unistr/u8-strncpy-tests: New file.
28113         * tests/unistr/test-u8-strncpy.c: New file.
28114         * tests/unistr/test-strncpy.h: New file.
28115
28116         Tests for module 'unistr/u32-stpcpy'.
28117         * modules/unistr/u32-stpcpy-tests: New file.
28118         * tests/unistr/test-u32-stpcpy.c: New file.
28119
28120         Tests for module 'unistr/u16-stpcpy'.
28121         * modules/unistr/u16-stpcpy-tests: New file.
28122         * tests/unistr/test-u16-stpcpy.c: New file.
28123
28124         Tests for module 'unistr/u8-stpcpy'.
28125         * modules/unistr/u8-stpcpy-tests: New file.
28126         * tests/unistr/test-u8-stpcpy.c: New file.
28127         * tests/unistr/test-stpcpy.h: New file.
28128
28129         Tests for module 'unistr/u32-strcpy'.
28130         * modules/unistr/u32-strcpy-tests: New file.
28131         * tests/unistr/test-u32-strcpy.c: New file.
28132
28133         Tests for module 'unistr/u16-strcpy'.
28134         * modules/unistr/u16-strcpy-tests: New file.
28135         * tests/unistr/test-u16-strcpy.c: New file.
28136
28137         Tests for module 'unistr/u8-strcpy'.
28138         * modules/unistr/u8-strcpy-tests: New file.
28139         * tests/unistr/test-u8-strcpy.c: New file.
28140         * tests/unistr/test-strcpy.h: New file.
28141
28142         Tests for module 'unistr/u32-strnlen'.
28143         * modules/unistr/u32-strnlen-tests: New file.
28144         * tests/unistr/test-u32-strnlen.c: New file.
28145
28146         Tests for module 'unistr/u16-strnlen'.
28147         * modules/unistr/u16-strnlen-tests: New file.
28148         * tests/unistr/test-u16-strnlen.c: New file.
28149
28150         Tests for module 'unistr/u8-strnlen'.
28151         * modules/unistr/u8-strnlen-tests: New file.
28152         * tests/unistr/test-u8-strnlen.c: New file.
28153         * tests/unistr/test-strnlen.h: New file.
28154
28155         Tests for module 'unistr/u32-strlen'.
28156         * modules/unistr/u32-strlen-tests: New file.
28157         * tests/unistr/test-u32-strlen.c: New file.
28158
28159         Tests for module 'unistr/u16-strlen'.
28160         * modules/unistr/u16-strlen-tests: New file.
28161         * tests/unistr/test-u16-strlen.c: New file.
28162
28163         Tests for module 'unistr/u8-strlen'.
28164         * modules/unistr/u8-strlen-tests: New file.
28165         * tests/unistr/test-u8-strlen.c: New file.
28166
28167         Tests for module 'unistr/u32-prev'.
28168         * modules/unistr/u32-prev-tests: New file.
28169         * tests/unistr/test-u32-prev.c: New file.
28170
28171         Tests for module 'unistr/u16-prev'.
28172         * modules/unistr/u16-prev-tests: New file.
28173         * tests/unistr/test-u16-prev.c: New file.
28174
28175         Tests for module 'unistr/u8-prev'.
28176         * modules/unistr/u8-prev-tests: New file.
28177         * tests/unistr/test-u8-prev.c: New file.
28178
28179         Tests for module 'unistr/u32-next'.
28180         * modules/unistr/u32-next-tests: New file.
28181         * tests/unistr/test-u32-next.c: New file.
28182
28183         Tests for module 'unistr/u16-next'.
28184         * modules/unistr/u16-next-tests: New file.
28185         * tests/unistr/test-u16-next.c: New file.
28186
28187         Tests for module 'unistr/u8-next'.
28188         * modules/unistr/u8-next-tests: New file.
28189         * tests/unistr/test-u8-next.c: New file.
28190
28191         Tests for module 'unistr/u32-strmbtouc'.
28192         * modules/unistr/u32-strmbtouc-tests: New file.
28193         * tests/unistr/test-u32-strmbtouc.c: New file.
28194
28195         Tests for module 'unistr/u16-strmbtouc'.
28196         * modules/unistr/u16-strmbtouc-tests: New file.
28197         * tests/unistr/test-u16-strmbtouc.c: New file.
28198
28199         Tests for module 'unistr/u8-strmbtouc'.
28200         * modules/unistr/u8-strmbtouc-tests: New file.
28201         * tests/unistr/test-u8-strmbtouc.c: New file.
28202
28203         Tests for module 'unistr/u32-strmblen'.
28204         * modules/unistr/u32-strmblen-tests: New file.
28205         * tests/unistr/test-u32-strmblen.c: New file.
28206
28207         Tests for module 'unistr/u16-strmblen'.
28208         * modules/unistr/u16-strmblen-tests: New file.
28209         * tests/unistr/test-u16-strmblen.c: New file.
28210
28211         Tests for module 'unistr/u8-strmblen'.
28212         * modules/unistr/u8-strmblen-tests: New file.
28213         * tests/unistr/test-u8-strmblen.c: New file.
28214
28215         Tests for module 'unistr/u32-cpy-alloc'.
28216         * modules/unistr/u32-cpy-alloc-tests: New file.
28217         * tests/unistr/test-u32-cpy-alloc.c: New file.
28218
28219         Tests for module 'unistr/u16-cpy-alloc'.
28220         * modules/unistr/u16-cpy-alloc-tests: New file.
28221         * tests/unistr/test-u16-cpy-alloc.c: New file.
28222
28223         Tests for module 'unistr/u8-cpy-alloc'.
28224         * modules/unistr/u8-cpy-alloc-tests: New file.
28225         * tests/unistr/test-u8-cpy-alloc.c: New file.
28226         * tests/unistr/test-cpy-alloc.h: New file.
28227
28228         Tests for module 'unistr/u32-mbsnlen'.
28229         * modules/unistr/u32-mbsnlen-tests: New file.
28230         * tests/unistr/test-u32-mbsnlen.c: New file.
28231
28232         Tests for module 'unistr/u16-mbsnlen'.
28233         * modules/unistr/u16-mbsnlen-tests: New file.
28234         * tests/unistr/test-u16-mbsnlen.c: New file.
28235
28236         Tests for module 'unistr/u8-mbsnlen'.
28237         * modules/unistr/u8-mbsnlen-tests: New file.
28238         * tests/unistr/test-u8-mbsnlen.c: New file.
28239
28240         Tests for module 'unistr/u32-chr'.
28241         * modules/unistr/u32-chr-tests: New file.
28242         * tests/unistr/test-u32-chr.c: New file.
28243
28244         Tests for module 'unistr/u16-chr'.
28245         * modules/unistr/u16-chr-tests: New file.
28246         * tests/unistr/test-u16-chr.c: New file.
28247
28248         Tests for module 'unistr/u8-chr'.
28249         * modules/unistr/u8-chr-tests: New file.
28250         * tests/unistr/test-u8-chr.c: New file.
28251         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28252
28253         Tests for module 'unistr/u32-cmp2'.
28254         * modules/unistr/u32-cmp2-tests: New file.
28255         * tests/unistr/test-u32-cmp2.c: New file.
28256
28257         Tests for module 'unistr/u16-cmp2'.
28258         * modules/unistr/u16-cmp2-tests: New file.
28259         * tests/unistr/test-u16-cmp2.c: New file.
28260
28261         Tests for module 'unistr/u8-cmp2'.
28262         * modules/unistr/u8-cmp2-tests: New file.
28263         * tests/unistr/test-u8-cmp2.c: New file.
28264         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28265
28266         Tests for module 'unistr/u32-cmp'.
28267         * modules/unistr/u32-cmp-tests: New file.
28268         * tests/unistr/test-u32-cmp.c: New file.
28269
28270         Tests for module 'unistr/u16-cmp'.
28271         * modules/unistr/u16-cmp-tests: New file.
28272         * tests/unistr/test-u16-cmp.c: New file.
28273
28274         Tests for module 'unistr/u8-cmp'.
28275         * modules/unistr/u8-cmp-tests: New file.
28276         * tests/unistr/test-u8-cmp.c: New file.
28277         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28278
28279         Tests for module 'unistr/u32-set'.
28280         * modules/unistr/u32-set-tests: New file.
28281         * tests/unistr/test-u32-set.c: New file.
28282
28283         Tests for module 'unistr/u16-set'.
28284         * modules/unistr/u16-set-tests: New file.
28285         * tests/unistr/test-u16-set.c: New file.
28286
28287         Tests for module 'unistr/u8-set'.
28288         * modules/unistr/u8-set-tests: New file.
28289         * tests/unistr/test-u8-set.c: New file.
28290         * tests/unistr/test-set.h: New file.
28291
28292         Tests for module 'unistr/u32-move'.
28293         * modules/unistr/u32-move-tests: New file.
28294         * tests/unistr/test-u32-move.c: New file.
28295
28296         Tests for module 'unistr/u16-move'.
28297         * modules/unistr/u16-move-tests: New file.
28298         * tests/unistr/test-u16-move.c: New file.
28299
28300         Tests for module 'unistr/u8-move'.
28301         * modules/unistr/u8-move-tests: New file.
28302         * tests/unistr/test-u8-move.c: New file.
28303         * tests/unistr/test-move.h: New file.
28304
28305         Tests for module 'unistr/u32-cpy'.
28306         * modules/unistr/u32-cpy-tests: New file.
28307         * tests/unistr/test-u32-cpy.c: New file.
28308
28309         Tests for module 'unistr/u16-cpy'.
28310         * modules/unistr/u16-cpy-tests: New file.
28311         * tests/unistr/test-u16-cpy.c: New file.
28312
28313         Tests for module 'unistr/u8-cpy'.
28314         * modules/unistr/u8-cpy-tests: New file.
28315         * tests/unistr/test-u8-cpy.c: New file.
28316         * tests/unistr/test-cpy.h: New file.
28317
28318 2010-01-09  Bruno Haible  <bruno@clisp.org>
28319
28320         Tests for module 'unistr/u32-uctomb'.
28321         * modules/unistr/u32-uctomb-tests: New file.
28322         * tests/unistr/test-u32-uctomb.c: New file.
28323
28324         Tests for module 'unistr/u16-uctomb'.
28325         * modules/unistr/u16-uctomb-tests: New file.
28326         * tests/unistr/test-u16-uctomb.c: New file.
28327
28328         Tests for module 'unistr/u8-uctomb'.
28329         * modules/unistr/u8-uctomb-tests: New file.
28330         * tests/unistr/test-u8-uctomb.c: New file.
28331
28332         Tests for module 'unistr/u32-mbtoucr'.
28333         * modules/unistr/u32-mbtoucr-tests: New file.
28334         * tests/unistr/test-u32-mbtoucr.c: New file.
28335
28336         Tests for module 'unistr/u16-mbtoucr'.
28337         * modules/unistr/u16-mbtoucr-tests: New file.
28338         * tests/unistr/test-u16-mbtoucr.c: New file.
28339
28340         Tests for module 'unistr/u8-mbtoucr'.
28341         * modules/unistr/u8-mbtoucr-tests: New file.
28342         * tests/unistr/test-u8-mbtoucr.c: New file.
28343
28344         Tests for module 'unistr/u32-mbtouc'.
28345         * modules/unistr/u32-mbtouc-tests: New file.
28346         * tests/unistr/test-u32-mbtouc.c: New file.
28347
28348         Tests for module 'unistr/u16-mbtouc'.
28349         * modules/unistr/u16-mbtouc-tests: New file.
28350         * tests/unistr/test-u16-mbtouc.c: New file.
28351
28352         Tests for module 'unistr/u8-mbtouc'.
28353         * modules/unistr/u8-mbtouc-tests: New file.
28354         * tests/unistr/test-u8-mbtouc.c: New file.
28355
28356         Tests for module 'unistr/u32-mbtouc-unsafe'.
28357         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28358         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28359         * tests/unistr/test-u32-mbtouc.h: New file.
28360
28361         Tests for module 'unistr/u16-mbtouc-unsafe'.
28362         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28363         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28364         * tests/unistr/test-u16-mbtouc.h: New file.
28365
28366         Tests for module 'unistr/u8-mbtouc-unsafe'.
28367         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28368         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28369         * tests/unistr/test-u8-mbtouc.h: New file.
28370
28371         Tests for module 'unistr/u32-mblen'.
28372         * modules/unistr/u32-mblen-tests: New file.
28373         * tests/unistr/test-u32-mblen.c: New file.
28374
28375         Tests for module 'unistr/u16-mblen'.
28376         * modules/unistr/u16-mblen-tests: New file.
28377         * tests/unistr/test-u16-mblen.c: New file.
28378
28379         Tests for module 'unistr/u8-mblen'.
28380         * modules/unistr/u8-mblen-tests: New file.
28381         * tests/unistr/test-u8-mblen.c: New file.
28382
28383         Tests for module 'unistr/u32-to-u16'.
28384         * modules/unistr/u32-to-u16-tests: New file.
28385         * tests/unistr/test-u32-to-u16.c: New file.
28386
28387         Tests for module 'unistr/u32-to-u8'.
28388         * modules/unistr/u32-to-u8-tests: New file.
28389         * tests/unistr/test-u32-to-u8.c: New file.
28390
28391         Tests for module 'unistr/u16-to-u32'.
28392         * modules/unistr/u16-to-u32-tests: New file.
28393         * tests/unistr/test-u16-to-u32.c: New file.
28394
28395         Tests for module 'unistr/u16-to-u8'.
28396         * modules/unistr/u16-to-u8-tests: New file.
28397         * tests/unistr/test-u16-to-u8.c: New file.
28398
28399         Tests for module 'unistr/u8-to-u32'.
28400         * modules/unistr/u8-to-u32-tests: New file.
28401         * tests/unistr/test-u8-to-u32.c: New file.
28402
28403         Tests for module 'unistr/u8-to-u16'.
28404         * modules/unistr/u8-to-u16-tests: New file.
28405         * tests/unistr/test-u8-to-u16.c: New file.
28406
28407         Tests for module 'unistr/u32-check'.
28408         * modules/unistr/u32-check-tests: New file.
28409         * tests/unistr/test-u32-check.c: New file.
28410
28411         Tests for module 'unistr/u16-check'.
28412         * modules/unistr/u16-check-tests: New file.
28413         * tests/unistr/test-u16-check.c: New file.
28414
28415         Tests for module 'unistr/u8-check'.
28416         * modules/unistr/u8-check-tests: New file.
28417         * tests/unistr/test-u8-check.c: New file.
28418
28419         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28420         (category_equals): New function.
28421         (main): Add more tests.
28422         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28423
28424         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28425
28426 2010-01-10  Bruno Haible  <bruno@clisp.org>
28427
28428         unistr/u*-strcoll: Try harder to distinguish different strings.
28429         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28430         compare s1 and s2 to see if they are different.
28431
28432 2010-01-10  Bruno Haible  <bruno@clisp.org>
28433
28434         unistr/u*-stpncpy: Fix the return value.
28435         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28436         description of the return value consistent with stpncpy in glibc.
28437         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28438         written non-NUL unit.
28439
28440 2010-01-10  Bruno Haible  <bruno@clisp.org>
28441
28442         unistr/u*-next: Add missing dependencies.
28443         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28444         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28445         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28446
28447 2010-01-10  Bruno Haible  <bruno@clisp.org>
28448
28449         unistr/u8-mbsnlen: Fix return value for incomplete character.
28450         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28451         u8_mblen.
28452         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28453         Remove unistr/u8-mblen.
28454         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28455         u16_mblen.
28456         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28457         Remove unistr/u16-mblen.
28458
28459 2010-01-10  Bruno Haible  <bruno@clisp.org>
28460
28461         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28462         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28463         Reported by Brian Gough <bjg@gnu.org> and
28464         Chris Clayton <chris2553@googlemail.com> via
28465         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28466
28467 2010-01-09  Bruno Haible  <bruno@clisp.org>
28468
28469         unistr/u16-to-u32: Reject invalid input.
28470         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28471         u16_mbtouc.
28472         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28473         Remove unistr/u16-mbtouc.
28474
28475         unistr/u16-to-u8: Reject invalid input.
28476         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28477         u16_mbtouc.
28478         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28479         Remove unistr/u16-mbtouc.
28480
28481         unistr/u8-to-u32: Reject invalid input.
28482         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28483         u8_mbtouc.
28484         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28485         Remove unistr/u8-mbtouc.
28486
28487         unistr/u8-to-u16: Reject invalid input.
28488         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28489         u8_mbtouc.
28490         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28491         Remove unistr/u8-mbtouc.
28492
28493 2010-01-09  Bruno Haible  <bruno@clisp.org>
28494
28495         Tests for module 'getlogin'.
28496         * modules/getlogin-tests: New file.
28497         * tests/test-getlogin.c: New file.
28498
28499         New module 'getlogin'.
28500         * lib/unistd.in.h (getlogin): New declaration.
28501         * lib/getlogin.c: New file.
28502         * m4/getlogin.m4: New file.
28503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28504         HAVE_GETLOGIN.
28505         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28506         HAVE_GETLOGIN.
28507         * modules/getlogin: New file.
28508         * doc/posix-functions/getlogin.texi: Mention the new module.
28509         Reported by John W. Eaton <jwe@gnu.org>.
28510
28511 2010-01-09  Bruno Haible  <bruno@clisp.org>
28512
28513         getlogin_r: Support for native Windows.
28514         * lib/getlogin_r.c: Include <windows.h>
28515         (getlogin_r): Implement for native Windows.
28516         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28517         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28518         via John W. Eaton <jwe@gnu.org>.
28519
28520 2010-01-09  Bruno Haible  <bruno@clisp.org>
28521
28522         getlogin_r: Small fixes.
28523         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28524         succeeds.
28525         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28526         before testing whether getlogin_r is declared. No need to set
28527         HAVE_DECL_GETLOGIN_R to 1.
28528         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28529
28530 2010-01-09  Bruno Haible  <bruno@clisp.org>
28531
28532         * lib/unistd.in.h (getlogin_r): Add comment.
28533
28534 2010-01-09  Bruno Haible  <bruno@clisp.org>
28535
28536         Tests for module 'getlogin_r'.
28537         * modules/getlogin_r-tests: New file.
28538         * tests/test-getlogin_r.c: New file.
28539
28540 2010-01-09  Jim Meyering  <meyering@redhat.com>
28541
28542         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28543         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28544         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28545
28546 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28547
28548         * lib/dup2.c (rpl_dup2): Improve comment.
28549
28550 2010-01-08  Eric Blake  <ebb9@byu.net>
28551
28552         maint.mk: allow packages to add makefile @@ exceptions
28553         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28554         (sc_makefile_check): Rename...
28555         (sc_makefile_at_at_check): ...to this, and use hook.
28556
28557         dup2: work around mingw bug
28558         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28559         Reported by Simon Josefsson.
28560
28561 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28562
28563         glob: Fix C++ compilation.
28564         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28565         C++.
28566
28567 2010-01-07  Bruno Haible  <bruno@clisp.org>
28568
28569         Fix indentation of wctype.in.h, broken since 2007-01-06.
28570         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28571
28572 2010-01-07  Bruno Haible  <bruno@clisp.org>
28573
28574         mbslen: Avoid collision with system function.
28575         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28576         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28577         * m4/mbslen.m4: New file.
28578         * modules/mbslen (Files): Add it.
28579         (configure.ac): Invoke gl_MBSLEN.
28580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28581         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28582         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28583         via Ian Beckwith <ianb@erislabs.net>.
28584
28585 2010-01-07  Bruno Haible  <bruno@clisp.org>
28586
28587         dirent: Document the last fix.
28588         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28589
28590 2010-01-07  Bruno Haible  <bruno@clisp.org>
28591
28592         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28593         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28594         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28595         va_list are defined.
28596         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28597         Reported by Eric Blake.
28598
28599 2010-01-07  Bruno Haible  <bruno@clisp.org>
28600
28601         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28602         * modules/xlist (Depends-on): Add 'list',
28603         * modules/xoset (Depends-on): Add 'oset'.
28604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28605
28606 2010-01-07  Bruno Haible  <bruno@clisp.org>
28607
28608         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28609         * doc/posix-functions/strncasecmp.texi: Likewise.
28610
28611 2010-01-07  Bruno Haible  <bruno@clisp.org>
28612
28613         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28614
28615 2010-01-07  John W. Eaton  <jwe@octave.org>
28616
28617         wctype: allow C++ use
28618         * lib/wctype.in.h: Add extern "C" block for C++.
28619
28620 2010-01-06  Eric Blake  <ebb9@byu.net>
28621
28622         maint.mk: detect incorrect GFDL usage
28623         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28624
28625 2010-01-06  Jim Meyering  <meyering@redhat.com>
28626         and Eric Blake  <ebb9@byu.net>
28627
28628         maint.mk: ignore multi-line copyright in NEWS
28629         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28630
28631 2010-01-06  Eric Blake  <ebb9@byu.net>
28632
28633         select: add missing dependency
28634         * modules/select-tests (Depends-on): Move sockets dependency...
28635         * modules/select (Depends-on): ...here.
28636         Reported by Ian Beckwith.
28637
28638         doc: regenerate INSTALL
28639         * doc/INSTALL: Reflect recent autoconf update.
28640         * doc/INSTALL.ISO: Likewise.
28641         * doc/INSTALL.UTF-8: Likewise.
28642
28643         pread: fix compilation on glibc
28644         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28645         Reported by Ralf Wildenhues.
28646
28647         dirent: fix test failure
28648         * lib/dirent.in.h (includes): Guarantee ino_t.
28649         Reported by Ralf Wildenhues.
28650
28651 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28652
28653         linkat, renameat: avoid bad free
28654         * lib/at-func2.c (at_func2): Fix typo.
28655         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28656
28657 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28658
28659         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28660         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28661         to avoid failure of symlink test later.
28662
28663 2010-01-06  Eric Blake  <ebb9@byu.net>
28664
28665         stdio, unistd: guarantee ssize_t
28666         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28667         2008 are exposed when needed.
28668         * lib/stdio.in.h (includes): Likewise.
28669         Reported by Ralf Wildenhues.
28670
28671 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28672
28673         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28674         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28675         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28676
28677 2010-01-06  Jim Meyering  <meyering@redhat.com>
28678
28679         readtokens: this module *does* require xalloc.h
28680         It uses only functions that were omitted by the old syntax-check rule.
28681         * lib/readtokens.c: Include "xalloc.h" once again.
28682         * modules/readtokens (Depends-on): Add xalloc.
28683         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28684
28685 2010-01-05  Eric Blake  <ebb9@byu.net>
28686
28687         maint: support 'make announcement' from a VPATH build
28688         * top/maint.mk (announcement): Look for correct NEWS file.
28689
28690 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28691
28692         utimens (fdutimens): ignore a negative FD, per contract
28693         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28694         when we have a valid file descriptor.  Otherwise, using a brand
28695         new glibc (with just-patched futimens that now fails with EBADF)
28696         would cause this function to fail with ENOSYS.
28697         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28698         See also http://bugzilla.redhat.com/552320.
28699
28700 2010-01-05  Eric Blake  <ebb9@byu.net>
28701
28702         strcase: document what it provides
28703         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28704         gnulib module.
28705         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28706         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28707
28708 2010-01-05  Jim Meyering  <meyering@redhat.com>
28709
28710         maint: remove useless inclusions of "xalloc.h"
28711         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28712         * lib/readtokens.c: Likewise.
28713         * lib/same.c: Likewise.
28714         * modules/getloadavg (Depends-on): Remove xalloc.
28715         * modules/readtokens: Likewise.
28716         * modules/same: Likewise.
28717
28718         maint.mk: include 4 more function names in alloca.h-checking regexp
28719         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28720         regexp.  Before, we would give a false-positive (saying alloca.h
28721         is included unnecessarily) when the only uses involved omitted symbols.
28722
28723         xalloc.h: use consistent formatting
28724         * lib/xalloc.h: Move declarations to start in the first column.
28725
28726 2010-01-05  Eric Blake  <ebb9@byu.net>
28727
28728         mkdir: avoid xalloc
28729         * lib/mkdir.c (includes): Drop unused header.
28730         Reported by John W. Eaton.
28731
28732 2010-01-04  Jim Meyering  <meyering@redhat.com>
28733
28734         nl_langinfo: avoid configure-time syntax error
28735         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28736         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28737         the empty string.  Don't let that provoke a shell syntax error.
28738
28739         regcomp, regexec, fnmatch: avoid array bounds read error
28740         * lib/regcomp.c (build_equiv_class): From glibc:
28741         Use only the low 24 bits of a findidx return value as an index
28742         into the weights array.  Patch by Ulrich Drepper:
28743         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28744         * lib/regexec.c (check_node_accept_bytes): Likewise.
28745         * lib/fnmatch_loop.c (FCT): Likewise.
28746
28747         regcomp: skip collseq lookup when there are no rules
28748         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28749         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28750
28751         regcomp: recognize ill-formed { } expressions
28752         * lib/regcomp.c (parse_dup_op): From glibc:
28753         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28754
28755         regcomp: fix typo in comment
28756         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28757         s/satisfy/satisfies/.
28758
28759         regcomp: sync from glibc: remove dead store
28760         * lib/regcomp.c (duplicate_node_closure): Remove useless
28761         search_duplicated_node call and dead store.
28762
28763         regcomp: sync from glibc; always use nl_langinfo
28764         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28765         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28766         * modules/regex (Depends-on): Add nl_langinfo.
28767
28768 2010-01-04  Eric Blake  <ebb9@byu.net>
28769
28770         fdopendir: fix configure test
28771         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28772
28773 2010-01-01  Bruno Haible  <bruno@clisp.org>
28774
28775         wchar: Remove unused configure check.
28776         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28777
28778 2010-01-01  Eric Blake  <ebb9@byu.net>
28779
28780         headers: make check of system header explicit
28781         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28782         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28783         ourselves.
28784         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28785         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28787         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28788         internals.
28789         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28790         missing.
28791         Suggested by Bruno Haible.
28792
28793 2010-01-01  Jim Meyering  <meyering@redhat.com>
28794
28795         ChangeLog: tweak to eliminate unnecessary copyright line
28796         * ChangeLog: Remove a copyright line that was mistakenly updated
28797         by today's update-copyright run.  Reported by Eric Blake.
28798
28799         test-update-copyright: don't let envvar setting cause test failure
28800         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28801
28802 2010-01-01  Bruno Haible  <bruno@clisp.org>
28803
28804         localename: Avoid gcc warning.
28805         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28806         function if it is not used.
28807
28808 2010-01-01  Jim Meyering  <meyering@redhat.com>
28809
28810         update nearly all FSF copyright year lists to include 2010
28811         Use the same procedure as for 2009, outlined in
28812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28813
28814         version-etc: set COPYRIGHT_YEAR to 2010
28815         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28816
28817 2009-12-31  Eric Blake  <ebb9@byu.net>
28818
28819         doc: correct availability of cygwin 1.5.x getopt
28820         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28821         variables.
28822         * doc/posix-functions/opterr.texi (opterr): Likewise.
28823         * doc/posix-functions/optind.texi (optind): Likewise.
28824         * doc/posix-functions/optopt.texi (optopt): Likewise.
28825         * doc/posix-functions/tzname.texi (tzname): Likewise.
28826
28827         openat: update maintainer
28828         * modules/openat (Maintainer): Add myself.
28829
28830         utimens: avoid shadowing warning
28831         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28832         buffers into one, to avoid shadowing, as well as avoiding a
28833         redundant stat.
28834         Reported by Jim Meyering.
28835
28836         test-dup2: avoid compiler warning
28837         * tests/test-dup2.c (is_inheritable): Only define if used.
28838
28839 2010-01-01  Bruno Haible  <bruno@clisp.org>
28840
28841         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28842         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28843         defined, use wctomb instead of wcrtomb.
28844
28845 2010-01-01  Bruno Haible  <bruno@clisp.org>
28846
28847         iconv: Reject native Solaris iconv.
28848         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28849         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28850
28851 2009-12-31  Bruno Haible  <bruno@clisp.org>
28852
28853         * tests/test-signal.c (main): Remove test of 'SIG'.
28854
28855 2009-12-31  Bruno Haible  <bruno@clisp.org>
28856
28857         spawn: Fix incomplete fix.
28858         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28859         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28860         warnings for GNULIB_POSIXCHECK again.
28861         Reported by Eric Blake.
28862
28863 2009-12-31  Bruno Haible  <bruno@clisp.org>
28864
28865         Avoid namespace pollution on glibc systems.
28866         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28867         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28868         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28869         glibc systems.
28870
28871 2009-12-31  Bruno Haible  <bruno@clisp.org>
28872
28873         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28874         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28875         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28876         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28877         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28878         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28879         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28880
28881 2009-12-31  Bruno Haible  <bruno@clisp.org>
28882
28883         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28884         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28885         afterwards.
28886
28887 2009-12-31  Bruno Haible  <bruno@clisp.org>
28888
28889         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28890         SYS_UTSNAME_H.
28891
28892 2009-12-31  Bruno Haible  <bruno@clisp.org>
28893
28894         spawn: Fix misapplied patch.
28895         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28896         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28897         warnings for GNULIB_POSIXCHECK.
28898
28899 2009-12-31  Bruno Haible  <bruno@clisp.org>
28900
28901         times: Update after sys_times changed.
28902         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28903         * modules/times (Files): Add it.
28904         (configure.ac): Invoke gl_FUNC_TIMES.
28905
28906 2009-12-31  Bruno Haible  <bruno@clisp.org>
28907
28908         Use AC_C_INLINE where necessary.
28909         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28910         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28912         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28913         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28914         * m4/mbiter.m4 (gl_MBITER): Likewise.
28915         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28916         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28917         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28918         * modules/u64 (configure.ac): Likewise.
28919
28920 2009-12-31  Bruno Haible  <bruno@clisp.org>
28921
28922         Use AC_C_INLINE instead of module 'inline' where possible.
28923         * modules/inline (Description): Clarify purpose.
28924         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28925         * modules/count-one-bits (Depends-on): Remove inline.
28926         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28927         * modules/openat (Depends-on): Remove inline.
28928         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28929         instead of depending on module 'inline'.
28930         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28931         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28932         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28933         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28934         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28935         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28936         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28937         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28938         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28939         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28940         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28941         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28942         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28943         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28944         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28945         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28946         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28947         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28948         Likewise.
28949         * modules/unictype/property-ascii-hex-digit (Depends-on,
28950         configure.ac): Likewise.
28951         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28952         configure.ac): Likewise.
28953         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28954         configure.ac): Likewise.
28955         * modules/unictype/property-bidi-block-separator (Depends-on,
28956         configure.ac): Likewise.
28957         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28958         configure.ac): Likewise.
28959         * modules/unictype/property-bidi-common-separator (Depends-on,
28960         configure.ac): Likewise.
28961         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28962         Likewise.
28963         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28964         configure.ac): Likewise.
28965         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28966         configure.ac): Likewise.
28967         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28968         configure.ac): Likewise.
28969         * modules/unictype/property-bidi-european-digit (Depends-on,
28970         configure.ac): Likewise.
28971         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28972         configure.ac): Likewise.
28973         * modules/unictype/property-bidi-left-to-right (Depends-on,
28974         configure.ac): Likewise.
28975         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28976         configure.ac): Likewise.
28977         * modules/unictype/property-bidi-other-neutral (Depends-on,
28978         configure.ac): Likewise.
28979         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28980         Likewise.
28981         * modules/unictype/property-bidi-segment-separator (Depends-on,
28982         configure.ac): Likewise.
28983         * modules/unictype/property-bidi-whitespace (Depends-on,
28984         configure.ac): Likewise.
28985         * modules/unictype/property-combining (Depends-on, configure.ac):
28986         Likewise.
28987         * modules/unictype/property-composite (Depends-on, configure.ac):
28988         Likewise.
28989         * modules/unictype/property-currency-symbol (Depends-on,
28990         configure.ac): Likewise.
28991         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28992         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28993         Likewise.
28994         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28995         configure.ac): Likewise.
28996         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28997         Likewise.
28998         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28999         Likewise.
29000         * modules/unictype/property-extender (Depends-on, configure.ac):
29001         Likewise.
29002         * modules/unictype/property-format-control (Depends-on, configure.ac):
29003         Likewise.
29004         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29005         Likewise.
29006         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29007         Likewise.
29008         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29009         Likewise.
29010         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29011         Likewise.
29012         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29013         Likewise.
29014         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29015         Likewise.
29016         * modules/unictype/property-id-start (Depends-on, configure.ac):
29017         Likewise.
29018         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29019         Likewise.
29020         * modules/unictype/property-ids-binary-operator (Depends-on,
29021         configure.ac): Likewise.
29022         * modules/unictype/property-ids-trinary-operator (Depends-on,
29023         configure.ac): Likewise.
29024         * modules/unictype/property-ignorable-control (Depends-on,
29025         configure.ac): Likewise.
29026         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29027         Likewise.
29028         * modules/unictype/property-join-control (Depends-on, configure.ac):
29029         Likewise.
29030         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29031         Likewise.
29032         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29033         Likewise.
29034         * modules/unictype/property-logical-order-exception (Depends-on,
29035         configure.ac): Likewise.
29036         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29037         Likewise.
29038         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29039         * modules/unictype/property-non-break (Depends-on, configure.ac):
29040         Likewise.
29041         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29042         Likewise.
29043         * modules/unictype/property-numeric (Depends-on, configure.ac):
29044         Likewise.
29045         * modules/unictype/property-other-alphabetic (Depends-on,
29046         configure.ac): Likewise.
29047         * modules/unictype/property-other-default-ignorable-code-point
29048         (Depends-on, configure.ac): Likewise.
29049         * modules/unictype/property-other-grapheme-extend (Depends-on,
29050         configure.ac): Likewise.
29051         * modules/unictype/property-other-id-continue (Depends-on,
29052         configure.ac): Likewise.
29053         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29054         Likewise.
29055         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29056         Likewise.
29057         * modules/unictype/property-other-math (Depends-on, configure.ac):
29058         Likewise.
29059         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29060         Likewise.
29061         * modules/unictype/property-paired-punctuation (Depends-on,
29062         configure.ac): Likewise.
29063         * modules/unictype/property-paragraph-separator (Depends-on,
29064         configure.ac): Likewise.
29065         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29066         Likewise.
29067         * modules/unictype/property-pattern-white-space (Depends-on,
29068         configure.ac): Likewise.
29069         * modules/unictype/property-private-use (Depends-on, configure.ac):
29070         Likewise.
29071         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29072         Likewise.
29073         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29074         Likewise.
29075         * modules/unictype/property-radical (Depends-on, configure.ac):
29076         Likewise.
29077         * modules/unictype/property-sentence-terminal (Depends-on,
29078         configure.ac): Likewise.
29079         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29080         Likewise.
29081         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29082         * modules/unictype/property-terminal-punctuation (Depends-on,
29083         configure.ac): Likewise.
29084         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29085         Likewise.
29086         * modules/unictype/property-unassigned-code-value (Depends-on,
29087         configure.ac): Likewise.
29088         * modules/unictype/property-unified-ideograph (Depends-on,
29089         configure.ac): Likewise.
29090         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29091         Likewise.
29092         * modules/unictype/property-variation-selector (Depends-on,
29093         configure.ac): Likewise.
29094         * modules/unictype/property-white-space (Depends-on, configure.ac):
29095         Likewise.
29096         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29097         Likewise.
29098         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29099         Likewise.
29100         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29101         Likewise.
29102         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29103         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29104         Likewise.
29105
29106 2009-12-31  Bruno Haible  <bruno@clisp.org>
29107
29108         Remove unnecessary AC_C_INLINE invocation.
29109         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29110         since 2009-08-21.
29111
29112 2009-12-31  Jim Meyering  <meyering@redhat.com>
29113
29114         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29115         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29116         With this change, we can all remove the gpg_key_ID = ... definition
29117         from our respective cfg.mk files.
29118
29119         maint.mk: create announcement template in ~/, not in /tmp
29120         * top/maint.mk (emit_upload_commands): Adjust.
29121         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29122         Remove temporary file, .ci-msg.
29123
29124 2009-12-31  Eric Blake  <ebb9@byu.net>
29125
29126         link-warning: always build headers with link warnings
29127         * modules/arpa_inet (Makefile.am): Always build replacement
29128         header.
29129         * modules/ctype (Makefile.am): Likewise.
29130         * modules/dirent (Makefile.am): Likewise.
29131         * modules/inttypes (Makefile.am): Likewise.
29132         * modules/langinfo (Makefile.am): Likewise.
29133         * modules/locale (Makefile.am): Likewise.
29134         * modules/spawn (Makefile.am): Likewise.
29135         * modules/sys_file (Makefile.am): Likewise.
29136         * modules/sys_ioctl (Makefile.am): Likewise.
29137         * modules/sys_select (Makefile.am): Likewise.
29138         * modules/sys_socket (Makefile.am): Likewise.
29139         * modules/sys_times (Makefile.am): Likewise.
29140         * modules/sys_utsname (Makefile.am): Likewise.
29141         * modules/sys_wait (Makefile.am): Likewise.
29142         * modules/wchar (Makefile.am): Likewise.
29143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29144         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29145         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29146         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29147         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29148         Likewise.
29149         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29150         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29151         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29152         Likewise.
29153         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29154         Likewise.
29155         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29156         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29157         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29158         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29159         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29160         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29161         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29162         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29163         (gl_WCHAR_H_DEFAULTS): Likewise.
29164
29165 2009-12-31  Eric Blake  <ebb9@byu.net>
29166
29167         signal, spawn: use link warnings
29168         * lib/signal.in.h (sigset_t): Make unconditional.
29169         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29170         (sigpending, sigprocmask, sigaction): Add link warnings.
29171         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29172         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29173         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29174         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29175         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29176         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29177         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29178         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29179         (posix_spawn_file_actions_destroy)
29180         (posix_spawn_file_actions_addopen)
29181         (posix_spawn_file_actions_addclose)
29182         (posix_spawn_file_actions_adddup2): Likewise.
29183         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29184         * tests/test-signal.c (main): Enhance test.
29185
29186         spawn: improve wrapper support
29187         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29188         (gl_SPAWN_H_DEFAULTS): New defaults.
29189         * modules/spawn (Makefile.am): Substitute them.
29190         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29191         Only declare if missing or broken.
29192
29193         sys_times, sys_utsname: use include_next
29194         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29195         header.
29196         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29197         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29198         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29199         * modules/sys_times (Depends-on): Add include_next.
29200         (Makefile.am): Substitute additional values.
29201         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29202         * lib/sys_times.in.h (includes): Include native header, if
29203         available.
29204         * lib/sys_utsname.in.h (includes): Likewise.
29205         * tests/test-sys_times.c (main): Enhance test.
29206
29207         fdutimensat: revert prior patch
29208         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29209         utimens.h.
29210         Reported by Bruno Haible.
29211
29212 2009-12-30  Eric Blake  <ebb9@byu.net>
29213
29214         sys_wait: drop link-warning dependency
29215         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29216         link-warning efforts.
29217         * lib/sys_wait.in.h: Likewise.
29218
29219         fdutimensat: remove bogus dependency
29220         * modules/fdutimensat (Depends-on): Drop inline.
29221
29222         unistd: fix typo
29223         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29224
29225 2009-12-30  Bruno Haible  <bruno@clisp.org>
29226
29227         Fix compilation error with Solaris cc.
29228         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29229         * lib/unicase/u16-is-invariant.c: Likewise.
29230         * lib/unicase/u32-is-invariant.c: Likewise.
29231         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29232
29233 2009-12-30  Bruno Haible  <bruno@clisp.org>
29234
29235         Fix test crash.
29236         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29237         locales.
29238         Reported by Simon Josefsson <simon@josefsson.org>.
29239
29240 2009-12-30  Bruno Haible  <bruno@clisp.org>
29241
29242         Fix compilation error on most platforms.
29243         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29244         Reported by Simon Josefsson <simon@josefsson.org>
29245         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29246
29247 2009-12-30  Eric Blake  <ebb9@byu.net>
29248
29249         futimens, utimensat: work around ntfs-3g bug
29250         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29251         a ctime bug is present, and expand workaround to cover ntfs-3g.
29252         * lib/utimens.c (fdutimens, lutimens): Likewise.
29253         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29254         (validate_timespec): Adjust return value.
29255         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29256         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29257         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29258
29259 2009-12-29  Eric Blake  <ebb9@byu.net>
29260
29261         link-warning: make usage consistent
29262         * modules/ctype (Depends-on): Add link-warning.
29263         (Makefile.am): Update rules accordingly.
29264         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29265         * modules/locale (Depends-on, Makefile.am): Likewise.
29266         * modules/sys_file (Makefile.am): Likewise.
29267         * modules/getopt-posix (Makefile.am): Delete unused link warning
29268         efforts.
29269         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29270         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29271         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29272         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29273
29274         stdio: remove unused variables
29275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29277         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29278
29279         tests: test more substitute headers
29280         * modules/ctype-tests: New file.
29281         * modules/dirent-tests: Likewise.
29282         * modules/spawn-tests: Likewise.
29283         * modules/sys_file-tests: Likewise.
29284         * modules/sys_ioctl-tests: Likewise.
29285         * modules/sys_wait-tests: Likewise.
29286         * tests/test-ctype.c: Likewise.
29287         * tests/test-dirent.c: Likewise.
29288         * tests/test-spawn.c: Likewise.
29289         * tests/test-sys_file.c: Likewise.
29290         * tests/test-sys_ioctl.c: Likewise.
29291         * tests/test-sys_wait.c: Likewise.
29292         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29293         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29294         whether or not flock is in use.
29295
29296         tests: remove License section from module
29297         * modules/arpa_inet-tests: Remove unneeded section.
29298         * modules/byteswap-tests: Likewise.
29299         * modules/ceilf-tests: Likewise.
29300         * modules/ceill-tests: Likewise.
29301         * modules/crypto/des-tests: Likewise.
29302         * modules/crypto/gc-arcfour-tests: Likewise.
29303         * modules/crypto/gc-arctwo-tests: Likewise.
29304         * modules/crypto/gc-des-tests: Likewise.
29305         * modules/crypto/gc-hmac-md5-tests: Likewise.
29306         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29307         * modules/crypto/gc-md2-tests: Likewise.
29308         * modules/crypto/gc-md4-tests: Likewise.
29309         * modules/crypto/gc-md5-tests: Likewise.
29310         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29311         * modules/crypto/gc-rijndael-tests: Likewise.
29312         * modules/crypto/gc-sha1-tests: Likewise.
29313         * modules/crypto/gc-tests: Likewise.
29314         * modules/crypto/md2-tests: Likewise.
29315         * modules/crypto/md4-tests: Likewise.
29316         * modules/fcntl-h-tests: Likewise.
29317         * modules/floorf-tests: Likewise.
29318         * modules/floorl-tests: Likewise.
29319         * modules/frexp-nolibm-tests: Likewise.
29320         * modules/frexp-tests: Likewise.
29321         * modules/frexpl-nolibm-tests: Likewise.
29322         * modules/frexpl-tests: Likewise.
29323         * modules/getaddrinfo-tests: Likewise.
29324         * modules/inttypes-tests: Likewise.
29325         * modules/isfinite-tests: Likewise.
29326         * modules/isinf-tests: Likewise.
29327         * modules/ldexpl-tests: Likewise.
29328         * modules/locale-tests: Likewise.
29329         * modules/math-tests: Likewise.
29330         * modules/netdb-tests: Likewise.
29331         * modules/netinet_in-tests: Likewise.
29332         * modules/printf-frexp-tests: Likewise.
29333         * modules/printf-frexpl-tests: Likewise.
29334         * modules/priv-set-tests: Likewise.
29335         * modules/random_r-tests: Likewise.
29336         * modules/round-tests: Likewise.
29337         * modules/roundf-tests: Likewise.
29338         * modules/roundl-tests: Likewise.
29339         * modules/search-tests: Likewise.
29340         * modules/select-tests: Likewise.
29341         * modules/signal-tests: Likewise.
29342         * modules/stdbool-tests: Likewise.
29343         * modules/stddef-tests: Likewise.
29344         * modules/stdint-tests: Likewise.
29345         * modules/stdio-tests: Likewise.
29346         * modules/stdlib-tests: Likewise.
29347         * modules/string-tests: Likewise.
29348         * modules/strings-tests: Likewise.
29349         * modules/sys_select-tests: Likewise.
29350         * modules/sys_socket-tests: Likewise.
29351         * modules/sys_stat-tests: Likewise.
29352         * modules/sys_time-tests: Likewise.
29353         * modules/sys_utsname-tests: Likewise.
29354         * modules/sysexits-tests: Likewise.
29355         * modules/time-tests: Likewise.
29356         * modules/trunc-tests: Likewise.
29357         * modules/truncf-tests: Likewise.
29358         * modules/truncl-tests: Likewise.
29359         * modules/tsearch-tests: Likewise.
29360         * modules/unistd-tests: Likewise.
29361         * modules/wchar-tests: Likewise.
29362         * modules/wctype-tests: Likewise.
29363
29364         tests: fix license on several tests
29365         * tests/test-des.c: Update to GPLv3+.
29366         * tests/test-flock.c: Likewise.
29367         * tests/test-fsync.c: Likewise.
29368         * tests/test-futimens.h: Likewise.
29369         * tests/test-gc-arcfour.c: Likewise.
29370         * tests/test-gc-arctwo.c: Likewise.
29371         * tests/test-gc-des.c: Likewise.
29372         * tests/test-gc-hmac-md5.c: Likewise.
29373         * tests/test-gc-hmac-sha1.c: Likewise.
29374         * tests/test-gc-md2.c: Likewise.
29375         * tests/test-gc-md4.c: Likewise.
29376         * tests/test-gc-md5.c: Likewise.
29377         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29378         * tests/test-gc-rijndael.c: Likewise.
29379         * tests/test-gc-sha1.c: Likewise.
29380         * tests/test-gc.c: Likewise.
29381         * tests/test-getcwd.c: Likewise.
29382         * tests/test-link.c: Likewise.
29383         * tests/test-link.h: Likewise.
29384         * tests/test-lutimens.h: Likewise.
29385         * tests/test-md2.c: Likewise.
29386         * tests/test-md4.c: Likewise.
29387         * tests/test-mkdir.h: Likewise.
29388         * tests/test-rename.c: Likewise.
29389         * tests/test-rename.h: Likewise.
29390         * tests/test-safe-alloc.c: Likewise.
29391         * tests/test-utimens-common.h: Likewise.
29392         * tests/test-utimens.h: Likewise.
29393
29394         maint: sync license texts
29395         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29396         * doc/gpl-3.0.texi: Revert copyright year update.
29397         * doc/lgpl-3.0.texi: Likewise.
29398
29399 2009-12-29  Jim Meyering  <meyering@redhat.com>
29400
29401         update nearly all FSF copyright year lists to include 2009
29402         The files named by the following are exempted:
29403             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29404               test -f "$dst" && { echo "$dst"; continue; }
29405               test -d "$dst" || continue
29406               echo "$dst"/$(basename "$src")
29407             done > exempt
29408             git ls-files tests/unictype >> exempt
29409         In the remaining files, convert to all-interval notation if
29410         - there is already at least one year interval like 2000-2003
29411         - the file is maintained by me
29412         - the file is in lib/uni*/, where that style already prevails
29413         Otherwise, use update-copyright's default.
29414
29415 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29416         and Eric Blake  <ebb9@byu.net>
29417
29418         tests: don't require debug system() to pass
29419         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29420         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29421         * tests/test-unlink.h (test_unlink_func): Likewise.
29422         * tests/test-fstatat.c (main): ...into callers.
29423         * tests/test-lstat.c (main): Likewise.
29424         * tests/test-rmdir.c (main): Likewise.
29425         * tests/test-unlink.c (main): Likewise.
29426         * tests/test-unlinkat.c (main): Likewise.
29427         * tests/test-areadlink-with-size.c (main): Don't require a
29428         debug-only system call to pass, aiding cross-testing to mingw.
29429         * tests/test-areadlink.c (main): Likewise.
29430         * tests/test-areadlinkat-with-size.c (main): Likewise.
29431         * tests/test-areadlinkat.c (main): Likewise.
29432         * tests/test-canonicalize-lgpl.c (main): Likewise.
29433         * tests/test-canonicalize.c (main): Likewise.
29434         * tests/test-chown.c (main): Likewise.
29435         * tests/test-fchownat.c (main): Likewise.
29436         * tests/test-lchown.c (main): Likewise.
29437         * tests/test-fdutimensat.c (main): Likewise.
29438         * tests/test-futimens.c (main): Likewise.
29439         * tests/test-link.c (main): Likewise.
29440         * tests/test-linkat.c (main): Likewise.
29441         * tests/test-mkdir.c (main): Likewise.
29442         * tests/test-mkdirat.c (main): Likewise.
29443         * tests/test-mkfifo.c (main): Likewise.
29444         * tests/test-mkfifoat.c (main): Likewise.
29445         * tests/test-mknod.c (main): Likewise.
29446         * tests/test-readlink.c (main): Likewise.
29447         * tests/test-remove.c (main): Likewise.
29448         * tests/test-rename.c (main): Likewise.
29449         * tests/test-renameat.c (main): Likewise.
29450         * tests/test-symlink.c (main): Likewise.
29451         * tests/test-symlinkat.c (main): Likewise.
29452         * tests/test-utimens.c (main): Likewise.
29453         * tests/test-utimensat.c (main): Likewise.
29454
29455 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29456
29457         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29458         on $(UNUSED_PARAMETER_H) to avoid build failure.
29459
29460 2009-12-28  Jim Meyering  <meyering@redhat.com>
29461
29462         update-copyright: you may specify a max. line length other than 72
29463         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29464
29465         maint: use consistent FSF copyright line syntax
29466         * lib/posixtm.c: Add missing comma in FSF copyright line.
29467         * lib/posixtm.h: Likewise.
29468         * lib/getugroups.c: Add missing ", Inc.".
29469
29470         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29471         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29472         FSF copyright line.  Remove trailing blanks.
29473
29474 2009-12-28  Eric Blake  <ebb9@byu.net>
29475
29476         test-dup2: reduce dependencies
29477         * modules/cloexec (Configure.ac): Set witness.
29478         * modules/dup2-tests (Depends-on): Drop cloexec.
29479         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29480         not present.
29481         Suggested by Bruno Haible.
29482
29483 2009-12-26  Bruno Haible  <bruno@clisp.org>
29484
29485         Remove an unneeded dependency.
29486         * modules/fseterr (Depends-on): Remove dup2.
29487
29488 2009-12-26  Eric Blake  <ebb9@byu.net>
29489
29490         tests: use macros.h in more places
29491         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29492         (ASSERT_STREAM): Provide default of stderr.
29493         * tests/test-dirent-safer.c: Include macros.h, using alternate
29494         stream for assertions.
29495         * tests/test-dup-safer.c: Likewise.
29496         * tests/test-freopen-safer.c: Likewise.
29497         * tests/test-getopt.c: Likewise.
29498         * tests/test-openat-safer.c: Likewise.
29499         * tests/test-pipe.c: Likewise.
29500         * tests/test-popen-safer.c: Likewise.
29501         * modules/dirent-safer-tests (Files): Include macros.h.
29502         * modules/unistd-safer-tests (Files): Likewise.
29503         * modules/freopen-safer-tests (Files): Likewise.
29504         * modules/getopt-posix-tests (Files): Likewise.
29505         * modules/openat-safer-tests (Files): Likewise.
29506         * modules/pipe-tests (Files): Likewise.
29507
29508 2009-12-26  Bruno Haible  <bruno@clisp.org>
29509
29510         javacomp: Portability fix.
29511         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29512         that it also works on Solaris.
29513
29514 2009-12-26  Bruno Haible  <bruno@clisp.org>
29515
29516         localename: Fix storage allocation of gl_locale_name_thread's result.
29517         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29518         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29519         all platforms that have 'uselocale'.
29520         (gl_locale_name_thread_unsafe): New function, extracted from
29521         gl_locale_name_thread.
29522         (gl_locale_name_thread): Call struniq on all platforms that have
29523         'uselocale'.
29524         * tests/test-localename.c (test_locale_name_thread): Check that the
29525         resulting strings are permanently allocated.
29526         * modules/localename-tests (Depends-on): Add strdup.
29527
29528 2009-12-26  Bruno Haible  <bruno@clisp.org>
29529
29530         * tests/test-localename.c (categories): Fill in the strings.
29531
29532 2009-12-26  Jim Meyering  <meyering@redhat.com>
29533
29534         isdir: complete the removal of m4/isdir.m4
29535         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29536
29537         isdir: clean up, since at least grep still uses it
29538         * lib/isdir.c: Include "isdir.h".
29539         (S_ISDIR): Remove now-unneeded definition.
29540         * modules/isdir (Files): Add lib/isdir.h.
29541         * lib/isdir.h: New file, with declaration.
29542         * m4/isdir.m4: Remove file -- unneeded.
29543
29544 2009-12-25  Bruno Haible  <bruno@clisp.org>
29545
29546         selinux-h: Make generated .h files standalone.
29547         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29548         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29549         * lib/se-selinux.in.h: Likewise.
29550         * modules/selinux-h (Depends-on): Add unused-parameter.
29551         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29552         selinux/selinux.h and selinux/context.h.
29553         Suggested by Eric Blake.
29554
29555 2009-12-25  Bruno Haible  <bruno@clisp.org>
29556
29557         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29558         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29559         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29560         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29561         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29562
29563 2009-12-24  Bruno Haible  <bruno@clisp.org>
29564
29565         openat: Fix warning.
29566         * lib/openat-proc.c: Include <unistd.h>.
29567
29568 2009-12-24  Bruno Haible  <bruno@clisp.org>
29569
29570         New module 'unused-parameter'.
29571         * build-aux/unused-parameter.h: New file, extracted from earlier
29572         gnulib-common.m4.
29573         * modules/unused-parameter: New file.
29574         * lib/unistr.h: Include unused-parameter.h.
29575         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29576         _GL_UNUSED.
29577         * modules/unistr/base (Depends-on): Add unused-parameter.
29578
29579 2009-12-24  Bruno Haible  <bruno@clisp.org>
29580
29581         Add missing dependencies to 'extensions' module.
29582         * m4/extensions.m4: Add comment.
29583         * modules/accept4 (Depends-on): Add extensions.
29584         * modules/dup3 (Depends-on): Likewise.
29585         * modules/fcntl (Depends-on): Likewise.
29586         * modules/futimens (Depends-on): Likewise.
29587         * modules/mknod (Depends-on): Likewise.
29588         * modules/pipe2 (Depends-on): Likewise.
29589         * modules/stat-time (Depends-on): Likewise.
29590         * modules/strcasestr-simple (Depends-on): Likewise.
29591         * modules/strsignal (Depends-on): Likewise.
29592         * modules/utimensat (Depends-on): Likewise.
29593         * modules/localcharset (Depends-on): Likewise. Needed because of
29594         gl_FCNTL_O_FLAGS.
29595         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29596         AC_TYPE_MBSTATE_T.
29597         * modules/wcsnrtombs (Depends-on): Likewise.
29598         * modules/wcsrtombs (Depends-on): Likewise.
29599
29600 2009-12-24  Bruno Haible  <bruno@clisp.org>
29601
29602         binary-io: Avoid gcc warning due to SET_BINARY.
29603         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29604         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29605
29606 2009-12-24  Bruno Haible  <bruno@clisp.org>
29607
29608         Avoid future namespace pollution on glibc systems.
29609         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29610         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29611         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29612         glibc systems.
29613
29614 2009-12-24  Bruno Haible  <bruno@clisp.org>
29615
29616         Refactor common macros used in tests.
29617         * tests/macros.h: New file.
29618         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29619         and/or <stdlib.h>, if appropriate.
29620         (ASSERT, SIZEOF): Remove macros.
29621         * tests/test-areadlink-with-size.c: Likewise.
29622         * tests/test-areadlinkat.c: Likewise.
29623         * tests/test-areadlinkat-with-size.c: Likewise.
29624         * tests/test-argmatch.c: Likewise.
29625         * tests/test-argv-iter.c: Likewise.
29626         * tests/test-array-mergesort.c: Likewise.
29627         * tests/test-array_list.c: Likewise.
29628         * tests/test-array_oset.c: Likewise.
29629         * tests/test-avltree_list.c: Likewise.
29630         * tests/test-avltree_oset.c: Likewise.
29631         * tests/test-avltreehash_list.c: Likewise.
29632         * tests/test-base64.c: Likewise.
29633         * tests/test-binary-io.c: Likewise.
29634         * tests/test-bitrotate.c: Likewise.
29635         * tests/test-btowc.c: Likewise.
29636         * tests/test-byteswap.c: Likewise.
29637         * tests/test-c-ctype.c: Likewise.
29638         * tests/test-c-stack.c: Likewise.
29639         * tests/test-c-strcasecmp.c: Likewise.
29640         * tests/test-c-strcasestr.c: Likewise.
29641         * tests/test-c-strncasecmp.c: Likewise.
29642         * tests/test-c-strstr.c: Likewise.
29643         * tests/test-canonicalize-lgpl.c: Likewise.
29644         * tests/test-canonicalize.c: Likewise.
29645         * tests/test-carray_list.c: Likewise.
29646         * tests/test-ceilf1.c: Likewise.
29647         * tests/test-ceilf2.c: Likewise.
29648         * tests/test-ceill.c: Likewise.
29649         * tests/test-chown.c: Likewise.
29650         * tests/test-cloexec.c: Likewise.
29651         * tests/test-copy-acl.c: Likewise.
29652         * tests/test-copy-file.c: Likewise.
29653         * tests/test-count-one-bits.c: Likewise.
29654         * tests/test-dprintf-posix.c: Likewise.
29655         * tests/test-dup2.c: Likewise.
29656         * tests/test-dup3.c: Likewise.
29657         * tests/test-duplocale.c: Likewise.
29658         * tests/test-fbufmode.c: Likewise.
29659         * tests/test-fchdir.c: Likewise.
29660         * tests/test-fchownat.c: Likewise.
29661         * tests/test-fcntl-safer.c: Likewise.
29662         * tests/test-fcntl.c: Likewise.
29663         * tests/test-fdopendir.c: Likewise.
29664         * tests/test-fdutimensat.c: Likewise.
29665         * tests/test-fflush2.c: Likewise.
29666         * tests/test-file-has-acl.c: Likewise.
29667         * tests/test-filevercmp.c: Likewise.
29668         * tests/test-flock.c: Likewise.
29669         * tests/test-floorf1.c: Likewise.
29670         * tests/test-floorf2.c: Likewise.
29671         * tests/test-floorl.c: Likewise.
29672         * tests/test-fnmatch.c: Likewise.
29673         * tests/test-fopen.h: Likewise.
29674         * tests/test-fpending.c: Likewise.
29675         * tests/test-fprintf-posix.c: Likewise.
29676         * tests/test-fpurge.c: Likewise.
29677         * tests/test-freadable.c: Likewise.
29678         * tests/test-freadahead.c: Likewise.
29679         * tests/test-freading.c: Likewise.
29680         * tests/test-freadptr.c: Likewise.
29681         * tests/test-freadptr2.c: Likewise.
29682         * tests/test-freadseek.c: Likewise.
29683         * tests/test-freopen.c: Likewise.
29684         * tests/test-frexp.c: Likewise.
29685         * tests/test-frexpl.c: Likewise.
29686         * tests/test-fseek.c: Likewise.
29687         * tests/test-fseeko.c: Likewise.
29688         * tests/test-fstatat.c: Likewise.
29689         * tests/test-fstrcmp.c: Likewise.
29690         * tests/test-fsync.c: Likewise.
29691         * tests/test-ftell.c: Likewise.
29692         * tests/test-ftello.c: Likewise.
29693         * tests/test-func.c: Likewise.
29694         * tests/test-futimens.c: Likewise.
29695         * tests/test-fwritable.c: Likewise.
29696         * tests/test-fwriting.c: Likewise.
29697         * tests/test-getcwd.c: Likewise.
29698         * tests/test-getdate.c: Likewise.
29699         * tests/test-getdelim.c: Likewise.
29700         * tests/test-getdtablesize.c: Likewise.
29701         * tests/test-getgroups.c: Likewise.
29702         * tests/test-getline.c: Likewise.
29703         * tests/test-getndelim2.c: Likewise.
29704         * tests/test-glob.c: Likewise.
29705         * tests/test-hash.c: Likewise.
29706         * tests/test-i-ring.c: Likewise.
29707         * tests/test-iconv-utf.c: Likewise.
29708         * tests/test-iconv.c: Likewise.
29709         * tests/test-idpriv-drop.c: Likewise.
29710         * tests/test-idpriv-droptemp.c: Likewise.
29711         * tests/test-inet_ntop.c: Likewise.
29712         * tests/test-inet_pton.c: Likewise.
29713         * tests/test-isblank.c: Likewise.
29714         * tests/test-isfinite.c: Likewise.
29715         * tests/test-isinf.c: Likewise.
29716         * tests/test-isnan.c: Likewise.
29717         * tests/test-isnand.h: Likewise.
29718         * tests/test-isnanf.h: Likewise.
29719         * tests/test-isnanl.h: Likewise.
29720         * tests/test-lchown.c: Likewise.
29721         * tests/test-ldexpl.c: Likewise.
29722         * tests/test-link.c: Likewise.
29723         * tests/test-linkat.c: Likewise.
29724         * tests/test-linked_list.c: Likewise.
29725         * tests/test-linkedhash_list.c: Likewise.
29726         * tests/test-localename.c: Likewise.
29727         * tests/test-lseek.c: Likewise.
29728         * tests/test-lstat.c: Likewise.
29729         * tests/test-mbmemcasecmp.c: Likewise.
29730         * tests/test-mbmemcasecoll.c: Likewise.
29731         * tests/test-mbrtowc.c: Likewise.
29732         * tests/test-mbscasecmp.c: Likewise.
29733         * tests/test-mbscasestr1.c: Likewise.
29734         * tests/test-mbscasestr2.c: Likewise.
29735         * tests/test-mbscasestr3.c: Likewise.
29736         * tests/test-mbscasestr4.c: Likewise.
29737         * tests/test-mbschr.c: Likewise.
29738         * tests/test-mbscspn.c: Likewise.
29739         * tests/test-mbsinit.c: Likewise.
29740         * tests/test-mbsncasecmp.c: Likewise.
29741         * tests/test-mbsnrtowcs.c: Likewise.
29742         * tests/test-mbspbrk.c: Likewise.
29743         * tests/test-mbspcasecmp.c: Likewise.
29744         * tests/test-mbsrchr.c: Likewise.
29745         * tests/test-mbsrtowcs.c: Likewise.
29746         * tests/test-mbsspn.c: Likewise.
29747         * tests/test-mbsstr1.c: Likewise.
29748         * tests/test-mbsstr2.c: Likewise.
29749         * tests/test-mbsstr3.c: Likewise.
29750         * tests/test-memchr.c: Likewise.
29751         * tests/test-memchr2.c: Likewise.
29752         * tests/test-memcmp.c: Likewise.
29753         * tests/test-memmem.c: Likewise.
29754         * tests/test-memrchr.c: Likewise.
29755         * tests/test-mkdir.c: Likewise.
29756         * tests/test-mkdirat.c: Likewise.
29757         * tests/test-mkfifo.c: Likewise.
29758         * tests/test-mkfifoat.c: Likewise.
29759         * tests/test-mknod.c: Likewise.
29760         * tests/test-nanosleep.c: Likewise.
29761         * tests/test-nl_langinfo.c: Likewise.
29762         * tests/test-obstack-printf.c: Likewise.
29763         * tests/test-open.c: Likewise.
29764         * tests/test-openat.c: Likewise.
29765         * tests/test-pipe-filter-gi1.c: Likewise.
29766         * tests/test-pipe-filter-gi2-main.c: Likewise.
29767         * tests/test-pipe-filter-ii1.c: Likewise.
29768         * tests/test-pipe-filter-ii2-main.c: Likewise.
29769         * tests/test-pipe2.c: Likewise.
29770         * tests/test-popen.h: Likewise.
29771         * tests/test-posixtm.c: Likewise.
29772         * tests/test-pread.c: Likewise.
29773         * tests/test-printf-frexp.c: Likewise.
29774         * tests/test-printf-frexpl.c: Likewise.
29775         * tests/test-printf-posix.c: Likewise.
29776         * tests/test-priv-set.c: Likewise.
29777         * tests/test-quotearg.c: Likewise.
29778         * tests/test-random_r.c: Likewise.
29779         * tests/test-rawmemchr.c: Likewise.
29780         * tests/test-rbtree_list.c: Likewise.
29781         * tests/test-rbtree_oset.c: Likewise.
29782         * tests/test-rbtreehash_list.c: Likewise.
29783         * tests/test-readlink.c: Likewise.
29784         * tests/test-remove.c: Likewise.
29785         * tests/test-rename.c: Likewise.
29786         * tests/test-renameat.c: Likewise.
29787         * tests/test-rmdir.c: Likewise.
29788         * tests/test-round1.c: Likewise.
29789         * tests/test-roundf1.c: Likewise.
29790         * tests/test-roundl.c: Likewise.
29791         * tests/test-safe-alloc.c: Likewise.
29792         * tests/test-sameacls.c: Likewise.
29793         * tests/test-set-mode-acl.c: Likewise.
29794         * tests/test-setenv.c: Likewise.
29795         * tests/test-sigaction.c: Likewise.
29796         * tests/test-signbit.c: Likewise.
29797         * tests/test-sleep.c: Likewise.
29798         * tests/test-snprintf-posix.c: Likewise.
29799         * tests/test-snprintf.c: Likewise.
29800         * tests/test-sprintf-posix.c: Likewise.
29801         * tests/test-stat-time.c: Likewise.
29802         * tests/test-stat.c: Likewise.
29803         * tests/test-strcasestr.c: Likewise.
29804         * tests/test-strchrnul.c: Likewise.
29805         * tests/test-strerror.c: Likewise.
29806         * tests/test-striconv.c: Likewise.
29807         * tests/test-striconveh.c: Likewise.
29808         * tests/test-striconveha.c: Likewise.
29809         * tests/test-strsignal.c: Likewise.
29810         * tests/test-strstr.c: Likewise.
29811         * tests/test-strtod.c: Likewise.
29812         * tests/test-strverscmp.c: Likewise.
29813         * tests/test-symlink.c: Likewise.
29814         * tests/test-symlinkat.c: Likewise.
29815         * tests/test-trunc1.c: Likewise.
29816         * tests/test-trunc2.c: Likewise.
29817         * tests/test-truncf1.c: Likewise.
29818         * tests/test-truncf2.c: Likewise.
29819         * tests/test-truncl.c: Likewise.
29820         * tests/test-uname.c: Likewise.
29821         * tests/test-unlink.c: Likewise.
29822         * tests/test-unlinkat.c: Likewise.
29823         * tests/test-unsetenv.c: Likewise.
29824         * tests/test-usleep.c: Likewise.
29825         * tests/test-utimens.c: Likewise.
29826         * tests/test-utimensat.c: Likewise.
29827         * tests/test-vasnprintf-posix.c: Likewise.
29828         * tests/test-vasnprintf-posix2.c: Likewise.
29829         * tests/test-vasnprintf.c: Likewise.
29830         * tests/test-vasprintf-posix.c: Likewise.
29831         * tests/test-vasprintf.c: Likewise.
29832         * tests/test-vdprintf-posix.c: Likewise.
29833         * tests/test-vfprintf-posix.c: Likewise.
29834         * tests/test-vprintf-posix.c: Likewise.
29835         * tests/test-vsnprintf-posix.c: Likewise.
29836         * tests/test-vsnprintf.c: Likewise.
29837         * tests/test-vsprintf-posix.c: Likewise.
29838         * tests/test-wcrtomb.c: Likewise.
29839         * tests/test-wcsnrtombs.c: Likewise.
29840         * tests/test-wcsrtombs.c: Likewise.
29841         * tests/test-wctype.c: Likewise.
29842         * tests/test-wcwidth.c: Likewise.
29843         * tests/test-xfprintf-posix.c: Likewise.
29844         * tests/test-xmemdup0.c: Likewise.
29845         * tests/test-xprintf-posix.c: Likewise.
29846         * tests/test-xvasprintf.c: Likewise.
29847         * tests/unicase/test-locale-language.c: Likewise.
29848         * tests/unicase/test-mapping-part1.h: Likewise.
29849         * tests/unicase/test-predicate-part1.h: Likewise.
29850         * tests/unicase/test-u8-casecmp.c: Likewise.
29851         * tests/unicase/test-u8-casecoll.c: Likewise.
29852         * tests/unicase/test-u8-casefold.c: Likewise.
29853         * tests/unicase/test-u8-is-cased.c: Likewise.
29854         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29855         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29856         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29857         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29858         * tests/unicase/test-u8-tolower.c: Likewise.
29859         * tests/unicase/test-u8-totitle.c: Likewise.
29860         * tests/unicase/test-u8-toupper.c: Likewise.
29861         * tests/unicase/test-u16-casecmp.c: Likewise.
29862         * tests/unicase/test-u16-casecoll.c: Likewise.
29863         * tests/unicase/test-u16-casefold.c: Likewise.
29864         * tests/unicase/test-u16-is-cased.c: Likewise.
29865         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29866         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29867         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29868         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29869         * tests/unicase/test-u16-tolower.c: Likewise.
29870         * tests/unicase/test-u16-totitle.c: Likewise.
29871         * tests/unicase/test-u16-toupper.c: Likewise.
29872         * tests/unicase/test-u32-casecmp.c: Likewise.
29873         * tests/unicase/test-u32-casecoll.c: Likewise.
29874         * tests/unicase/test-u32-casefold.c: Likewise.
29875         * tests/unicase/test-u32-is-cased.c: Likewise.
29876         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29877         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29878         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29879         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29880         * tests/unicase/test-u32-tolower.c: Likewise.
29881         * tests/unicase/test-u32-totitle.c: Likewise.
29882         * tests/unicase/test-u32-toupper.c: Likewise.
29883         * tests/unicase/test-ulc-casecmp.c: Likewise.
29884         * tests/unicase/test-ulc-casecoll.c: Likewise.
29885         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29886         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29887         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29888         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29889         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29890         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29891         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29892         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29893         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29894         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29895         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29896         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29897         * tests/unictype/test-bidi_byname.c: Likewise.
29898         * tests/unictype/test-bidi_name.c: Likewise.
29899         * tests/unictype/test-bidi_of.c: Likewise.
29900         * tests/unictype/test-bidi_test.c: Likewise.
29901         * tests/unictype/test-block_list.c: Likewise.
29902         * tests/unictype/test-block_of.c: Likewise.
29903         * tests/unictype/test-block_test.c: Likewise.
29904         * tests/unictype/test-categ_and.c: Likewise.
29905         * tests/unictype/test-categ_and_not.c: Likewise.
29906         * tests/unictype/test-categ_byname.c: Likewise.
29907         * tests/unictype/test-categ_name.c: Likewise.
29908         * tests/unictype/test-categ_none.c: Likewise.
29909         * tests/unictype/test-categ_of.c: Likewise.
29910         * tests/unictype/test-categ_or.c: Likewise.
29911         * tests/unictype/test-categ_test_withtable.c: Likewise.
29912         * tests/unictype/test-combining.c: Likewise.
29913         * tests/unictype/test-decdigit.c: Likewise.
29914         * tests/unictype/test-digit.c: Likewise.
29915         * tests/unictype/test-mirror.c: Likewise.
29916         * tests/unictype/test-numeric.c: Likewise.
29917         * tests/unictype/test-pr_byname.c: Likewise.
29918         * tests/unictype/test-pr_test.c: Likewise.
29919         * tests/unictype/test-predicate-part1.h: Likewise.
29920         * tests/unictype/test-scripts.c: Likewise.
29921         * tests/unictype/test-sy_c_ident.c: Likewise.
29922         * tests/unictype/test-sy_java_ident.c: Likewise.
29923         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29924         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29925         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29926         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29927         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29928         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29929         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29930         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29931         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29932         * tests/uninorm/test-compat-decomposition.c: Likewise.
29933         * tests/uninorm/test-composition.c: Likewise.
29934         * tests/uninorm/test-decomposing-form.c: Likewise.
29935         * tests/uninorm/test-decomposition.c: Likewise.
29936         * tests/uninorm/test-u8-nfc.c: Likewise.
29937         * tests/uninorm/test-u8-nfd.c: Likewise.
29938         * tests/uninorm/test-u8-nfkc.c: Likewise.
29939         * tests/uninorm/test-u8-nfkd.c: Likewise.
29940         * tests/uninorm/test-u8-normcmp.c: Likewise.
29941         * tests/uninorm/test-u8-normcoll.c: Likewise.
29942         * tests/uninorm/test-u16-nfc.c: Likewise.
29943         * tests/uninorm/test-u16-nfd.c: Likewise.
29944         * tests/uninorm/test-u16-nfkc.c: Likewise.
29945         * tests/uninorm/test-u16-nfkd.c: Likewise.
29946         * tests/uninorm/test-u16-normcmp.c: Likewise.
29947         * tests/uninorm/test-u16-normcoll.c: Likewise.
29948         * tests/uninorm/test-u32-nfc.c: Likewise.
29949         * tests/uninorm/test-u32-nfd.c: Likewise.
29950         * tests/uninorm/test-u32-nfkc.c: Likewise.
29951         * tests/uninorm/test-u32-nfkd.c: Likewise.
29952         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29953         * tests/uninorm/test-u32-normcmp.c: Likewise.
29954         * tests/uninorm/test-u32-normcoll.c: Likewise.
29955         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29956         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29957         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29958         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29959         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29960         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29961         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29962         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29963         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29964         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29965         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29966         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29967         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29968         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29969         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29970         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29971         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29972         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29973         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29974         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29975         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29976         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29977         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29978         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29979         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29980         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29981         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29982         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29983         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29984         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29985         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29986         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29987         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29988         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29989         * tests/uniwidth/test-u8-width.c: Likewise.
29990         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29991         * tests/uniwidth/test-u16-width.c: Likewise.
29992         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29993         * tests/uniwidth/test-u32-width.c: Likewise.
29994         * tests/uniwidth/test-uc_width.c: Likewise.
29995         * tests/uniwidth/test-uc_width2.c: Likewise.
29996         * modules/acl-tests (Files): Add tests/macros.h.
29997         * modules/areadlink-tests (Files): Likewise.
29998         * modules/areadlink-with-size-tests (Files): Likewise.
29999         * modules/areadlinkat-tests (Files): Likewise.
30000         * modules/areadlinkat-with-size-tests (Files): Likewise.
30001         * modules/argmatch-tests (Files): Likewise.
30002         * modules/argv-iter-tests (Files): Likewise.
30003         * modules/array-list-tests (Files): Likewise.
30004         * modules/array-mergesort-tests (Files): Likewise.
30005         * modules/array-oset-tests (Files): Likewise.
30006         * modules/avltree-list-tests (Files): Likewise.
30007         * modules/avltree-oset-tests (Files): Likewise.
30008         * modules/avltreehash-list-tests (Files): Likewise.
30009         * modules/base64-tests (Files): Likewise.
30010         * modules/binary-io-tests (Files): Likewise.
30011         * modules/bitrotate-tests (Files): Likewise.
30012         * modules/btowc-tests (Files): Likewise.
30013         * modules/byteswap-tests (Files): Likewise.
30014         * modules/c-ctype-tests (Files): Likewise.
30015         * modules/c-stack-tests (Files): Likewise.
30016         * modules/c-strcase-tests (Files): Likewise.
30017         * modules/c-strcasestr-tests (Files): Likewise.
30018         * modules/c-strstr-tests (Files): Likewise.
30019         * modules/canonicalize-lgpl-tests (Files): Likewise.
30020         * modules/canonicalize-tests (Files): Likewise.
30021         * modules/carray-list-tests (Files): Likewise.
30022         * modules/ceilf-tests (Files): Likewise.
30023         * modules/ceill-tests (Files): Likewise.
30024         * modules/chown-tests (Files): Likewise.
30025         * modules/cloexec-tests (Files): Likewise.
30026         * modules/copy-file-tests (Files): Likewise.
30027         * modules/count-one-bits-tests (Files): Likewise.
30028         * modules/dprintf-posix-tests (Files): Likewise.
30029         * modules/dup2-tests (Files): Likewise.
30030         * modules/dup3-tests (Files): Likewise.
30031         * modules/duplocale-tests (Files): Likewise.
30032         * modules/fbufmode-tests (Files): Likewise.
30033         * modules/fchdir-tests (Files): Likewise.
30034         * modules/fcntl-safer-tests (Files): Likewise.
30035         * modules/fcntl-tests (Files): Likewise.
30036         * modules/fdopendir-tests (Files): Likewise.
30037         * modules/fdutimensat-tests (Files): Likewise.
30038         * modules/fflush-tests (Files): Likewise.
30039         * modules/filevercmp-tests (Files): Likewise.
30040         * modules/flock-tests (Files): Likewise.
30041         * modules/floorf-tests (Files): Likewise.
30042         * modules/floorl-tests (Files): Likewise.
30043         * modules/fnmatch-tests (Files): Likewise.
30044         * modules/fopen-safer-tests (Files): Likewise.
30045         * modules/fopen-tests (Files): Likewise.
30046         * modules/fpending-tests (Files): Likewise.
30047         * modules/fprintf-posix-tests (Files): Likewise.
30048         * modules/fpurge-tests (Files): Likewise.
30049         * modules/freadable-tests (Files): Likewise.
30050         * modules/freadahead-tests (Files): Likewise.
30051         * modules/freading-tests (Files): Likewise.
30052         * modules/freadptr-tests (Files): Likewise.
30053         * modules/freadseek-tests (Files): Likewise.
30054         * modules/freopen-tests (Files): Likewise.
30055         * modules/frexp-nolibm-tests (Files): Likewise.
30056         * modules/frexp-tests (Files): Likewise.
30057         * modules/frexpl-nolibm-tests (Files): Likewise.
30058         * modules/frexpl-tests (Files): Likewise.
30059         * modules/fseek-tests (Files): Likewise.
30060         * modules/fseeko-tests (Files): Likewise.
30061         * modules/fstrcmp-tests (Files): Likewise.
30062         * modules/fsync-tests (Files): Likewise.
30063         * modules/ftell-tests (Files): Likewise.
30064         * modules/ftello-tests (Files): Likewise.
30065         * modules/func-tests (Files): Likewise.
30066         * modules/futimens-tests (Files): Likewise.
30067         * modules/fwritable-tests (Files): Likewise.
30068         * modules/fwriting-tests (Files): Likewise.
30069         * modules/getcwd-tests (Files): Likewise.
30070         * modules/getdate-tests (Files): Likewise.
30071         * modules/getdelim-tests (Files): Likewise.
30072         * modules/getdtablesize-tests (Files): Likewise.
30073         * modules/getgroups-tests (Files): Likewise.
30074         * modules/getline-tests (Files): Likewise.
30075         * modules/getndelim2-tests (Files): Likewise.
30076         * modules/glob-tests (Files): Likewise.
30077         * modules/hash-tests (Files): Likewise.
30078         * modules/i-ring-tests (Files): Likewise.
30079         * modules/iconv-tests (Files): Likewise.
30080         * modules/iconv_open-utf-tests (Files): Likewise.
30081         * modules/idpriv-drop-tests (Files): Likewise.
30082         * modules/idpriv-droptemp-tests (Files): Likewise.
30083         * modules/inet_ntop-tests (Files): Likewise.
30084         * modules/inet_pton-tests (Files): Likewise.
30085         * modules/isblank-tests (Files): Likewise.
30086         * modules/isfinite-tests (Files): Likewise.
30087         * modules/isinf-tests (Files): Likewise.
30088         * modules/isnan-tests (Files): Likewise.
30089         * modules/isnand-nolibm-tests (Files): Likewise.
30090         * modules/isnand-tests (Files): Likewise.
30091         * modules/isnanf-nolibm-tests (Files): Likewise.
30092         * modules/isnanf-tests (Files): Likewise.
30093         * modules/isnanl-nolibm-tests (Files): Likewise.
30094         * modules/isnanl-tests (Files): Likewise.
30095         * modules/lchown-tests (Files): Likewise.
30096         * modules/ldexpl-tests (Files): Likewise.
30097         * modules/link-tests (Files): Likewise.
30098         * modules/linkat-tests (Files): Likewise.
30099         * modules/linked-list-tests (Files): Likewise.
30100         * modules/linkedhash-list-tests (Files): Likewise.
30101         * modules/localename-tests (Files): Likewise.
30102         * modules/lseek-tests (Files): Likewise.
30103         * modules/lstat-tests (Files): Likewise.
30104         * modules/mbmemcasecmp-tests (Files): Likewise.
30105         * modules/mbmemcasecoll-tests (Files): Likewise.
30106         * modules/mbrtowc-tests (Files): Likewise.
30107         * modules/mbscasecmp-tests (Files): Likewise.
30108         * modules/mbscasestr-tests (Files): Likewise.
30109         * modules/mbschr-tests (Files): Likewise.
30110         * modules/mbscspn-tests (Files): Likewise.
30111         * modules/mbsinit-tests (Files): Likewise.
30112         * modules/mbsncasecmp-tests (Files): Likewise.
30113         * modules/mbsnrtowcs-tests (Files): Likewise.
30114         * modules/mbspbrk-tests (Files): Likewise.
30115         * modules/mbspcasecmp-tests (Files): Likewise.
30116         * modules/mbsrchr-tests (Files): Likewise.
30117         * modules/mbsrtowcs-tests (Files): Likewise.
30118         * modules/mbsspn-tests (Files): Likewise.
30119         * modules/mbsstr-tests (Files): Likewise.
30120         * modules/memchr-tests (Files): Likewise.
30121         * modules/memchr2-tests (Files): Likewise.
30122         * modules/memcmp-tests (Files): Likewise.
30123         * modules/memmem-tests (Files): Likewise.
30124         * modules/memrchr-tests (Files): Likewise.
30125         * modules/mkdir-tests (Files): Likewise.
30126         * modules/mkfifo-tests (Files): Likewise.
30127         * modules/mkfifoat-tests (Files): Likewise.
30128         * modules/mknod-tests (Files): Likewise.
30129         * modules/nanosleep-tests (Files): Likewise.
30130         * modules/nl_langinfo-tests (Files): Likewise.
30131         * modules/obstack-printf-tests (Files): Likewise.
30132         * modules/open-tests (Files): Likewise.
30133         * modules/openat-tests (Files): Likewise.
30134         * modules/pipe-filter-gi-tests (Files): Likewise.
30135         * modules/pipe-filter-ii-tests (Files): Likewise.
30136         * modules/pipe2-tests (Files): Likewise.
30137         * modules/popen-safer-tests (Files): Likewise.
30138         * modules/popen-tests (Files): Likewise.
30139         * modules/posixtm-tests (Files): Likewise.
30140         * modules/pread-tests (Files): Likewise.
30141         * modules/printf-frexp-tests (Files): Likewise.
30142         * modules/printf-frexpl-tests (Files): Likewise.
30143         * modules/printf-posix-tests (Files): Likewise.
30144         * modules/priv-set-tests (Files): Likewise.
30145         * modules/quotearg-tests (Files): Likewise.
30146         * modules/random_r-tests (Files): Likewise.
30147         * modules/rawmemchr-tests (Files): Likewise.
30148         * modules/rbtree-list-tests (Files): Likewise.
30149         * modules/rbtree-oset-tests (Files): Likewise.
30150         * modules/rbtreehash-list-tests (Files): Likewise.
30151         * modules/readlink-tests (Files): Likewise.
30152         * modules/remove-tests (Files): Likewise.
30153         * modules/rename-tests (Files): Likewise.
30154         * modules/renameat-tests (Files): Likewise.
30155         * modules/rmdir-tests (Files): Likewise.
30156         * modules/round-tests (Files): Likewise.
30157         * modules/roundf-tests (Files): Likewise.
30158         * modules/roundl-tests (Files): Likewise.
30159         * modules/safe-alloc-tests (Files): Likewise.
30160         * modules/setenv-tests (Files): Likewise.
30161         * modules/sigaction-tests (Files): Likewise.
30162         * modules/signbit-tests (Files): Likewise.
30163         * modules/sleep-tests (Files): Likewise.
30164         * modules/snprintf-posix-tests (Files): Likewise.
30165         * modules/snprintf-tests (Files): Likewise.
30166         * modules/sprintf-posix-tests (Files): Likewise.
30167         * modules/stat-tests (Files): Likewise.
30168         * modules/stat-time-tests (Files): Likewise.
30169         * modules/strcasestr-tests (Files): Likewise.
30170         * modules/strchrnul-tests (Files): Likewise.
30171         * modules/strerror-tests (Files): Likewise.
30172         * modules/striconv-tests (Files): Likewise.
30173         * modules/striconveh-tests (Files): Likewise.
30174         * modules/striconveha-tests (Files): Likewise.
30175         * modules/strsignal-tests (Files): Likewise.
30176         * modules/strstr-tests (Files): Likewise.
30177         * modules/strtod-tests (Files): Likewise.
30178         * modules/strverscmp-tests (Files): Likewise.
30179         * modules/symlink-tests (Files): Likewise.
30180         * modules/symlinkat-tests (Files): Likewise.
30181         * modules/trunc-tests (Files): Likewise.
30182         * modules/truncf-tests (Files): Likewise.
30183         * modules/truncl-tests (Files): Likewise.
30184         * modules/uname-tests (Files): Likewise.
30185         * modules/unicase/cased-tests (Files): Likewise.
30186         * modules/unicase/ignorable-tests (Files): Likewise.
30187         * modules/unicase/locale-language-tests (Files): Likewise.
30188         * modules/unicase/tolower-tests (Files): Likewise.
30189         * modules/unicase/totitle-tests (Files): Likewise.
30190         * modules/unicase/toupper-tests (Files): Likewise.
30191         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30192         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30193         * modules/unicase/u8-casefold-tests (Files): Likewise.
30194         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30195         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30196         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30197         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30198         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30199         * modules/unicase/u8-tolower-tests (Files): Likewise.
30200         * modules/unicase/u8-totitle-tests (Files): Likewise.
30201         * modules/unicase/u8-toupper-tests (Files): Likewise.
30202         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30203         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30204         * modules/unicase/u16-casefold-tests (Files): Likewise.
30205         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30206         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30207         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30208         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30209         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30210         * modules/unicase/u16-tolower-tests (Files): Likewise.
30211         * modules/unicase/u16-totitle-tests (Files): Likewise.
30212         * modules/unicase/u16-toupper-tests (Files): Likewise.
30213         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30214         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30215         * modules/unicase/u32-casefold-tests (Files): Likewise.
30216         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30217         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30218         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30219         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30220         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30221         * modules/unicase/u32-tolower-tests (Files): Likewise.
30222         * modules/unicase/u32-totitle-tests (Files): Likewise.
30223         * modules/unicase/u32-toupper-tests (Files): Likewise.
30224         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30225         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30226         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30227         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30228         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30229         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30230         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30231         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30232         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30233         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30234         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30235         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30236         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30237         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30238         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30239         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30240         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30241         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30242         * modules/unictype/block-list-tests (Files): Likewise.
30243         * modules/unictype/block-of-tests (Files): Likewise.
30244         * modules/unictype/block-test-tests (Files): Likewise.
30245         * modules/unictype/category-C-tests (Files): Likewise.
30246         * modules/unictype/category-Cc-tests (Files): Likewise.
30247         * modules/unictype/category-Cf-tests (Files): Likewise.
30248         * modules/unictype/category-Cn-tests (Files): Likewise.
30249         * modules/unictype/category-Co-tests (Files): Likewise.
30250         * modules/unictype/category-Cs-tests (Files): Likewise.
30251         * modules/unictype/category-L-tests (Files): Likewise.
30252         * modules/unictype/category-Ll-tests (Files): Likewise.
30253         * modules/unictype/category-Lm-tests (Files): Likewise.
30254         * modules/unictype/category-Lo-tests (Files): Likewise.
30255         * modules/unictype/category-Lt-tests (Files): Likewise.
30256         * modules/unictype/category-Lu-tests (Files): Likewise.
30257         * modules/unictype/category-M-tests (Files): Likewise.
30258         * modules/unictype/category-Mc-tests (Files): Likewise.
30259         * modules/unictype/category-Me-tests (Files): Likewise.
30260         * modules/unictype/category-Mn-tests (Files): Likewise.
30261         * modules/unictype/category-N-tests (Files): Likewise.
30262         * modules/unictype/category-Nd-tests (Files): Likewise.
30263         * modules/unictype/category-Nl-tests (Files): Likewise.
30264         * modules/unictype/category-No-tests (Files): Likewise.
30265         * modules/unictype/category-P-tests (Files): Likewise.
30266         * modules/unictype/category-Pc-tests (Files): Likewise.
30267         * modules/unictype/category-Pd-tests (Files): Likewise.
30268         * modules/unictype/category-Pe-tests (Files): Likewise.
30269         * modules/unictype/category-Pf-tests (Files): Likewise.
30270         * modules/unictype/category-Pi-tests (Files): Likewise.
30271         * modules/unictype/category-Po-tests (Files): Likewise.
30272         * modules/unictype/category-Ps-tests (Files): Likewise.
30273         * modules/unictype/category-S-tests (Files): Likewise.
30274         * modules/unictype/category-Sc-tests (Files): Likewise.
30275         * modules/unictype/category-Sk-tests (Files): Likewise.
30276         * modules/unictype/category-Sm-tests (Files): Likewise.
30277         * modules/unictype/category-So-tests (Files): Likewise.
30278         * modules/unictype/category-Z-tests (Files): Likewise.
30279         * modules/unictype/category-Zl-tests (Files): Likewise.
30280         * modules/unictype/category-Zp-tests (Files): Likewise.
30281         * modules/unictype/category-Zs-tests (Files): Likewise.
30282         * modules/unictype/category-and-not-tests (Files): Likewise.
30283         * modules/unictype/category-and-tests (Files): Likewise.
30284         * modules/unictype/category-byname-tests (Files): Likewise.
30285         * modules/unictype/category-name-tests (Files): Likewise.
30286         * modules/unictype/category-none-tests (Files): Likewise.
30287         * modules/unictype/category-of-tests (Files): Likewise.
30288         * modules/unictype/category-or-tests (Files): Likewise.
30289         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30290         * modules/unictype/combining-class-tests (Files): Likewise.
30291         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30292         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30293         * modules/unictype/ctype-blank-tests (Files): Likewise.
30294         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30295         * modules/unictype/ctype-digit-tests (Files): Likewise.
30296         * modules/unictype/ctype-graph-tests (Files): Likewise.
30297         * modules/unictype/ctype-lower-tests (Files): Likewise.
30298         * modules/unictype/ctype-print-tests (Files): Likewise.
30299         * modules/unictype/ctype-punct-tests (Files): Likewise.
30300         * modules/unictype/ctype-space-tests (Files): Likewise.
30301         * modules/unictype/ctype-upper-tests (Files): Likewise.
30302         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30303         * modules/unictype/decimal-digit-tests (Files): Likewise.
30304         * modules/unictype/digit-tests (Files): Likewise.
30305         * modules/unictype/mirror-tests (Files): Likewise.
30306         * modules/unictype/numeric-tests (Files): Likewise.
30307         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30308         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30309         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30310         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30311         Likewise.
30312         * modules/unictype/property-bidi-block-separator-tests (Files):
30313         Likewise.
30314         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30315         Likewise.
30316         * modules/unictype/property-bidi-common-separator-tests (Files):
30317         Likewise.
30318         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30319         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30320         Likewise.
30321         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30322         Likewise.
30323         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30324         Likewise.
30325         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30326         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30327         Likewise.
30328         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30329         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30330         Likewise.
30331         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30332         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30333         * modules/unictype/property-bidi-segment-separator-tests (Files):
30334         Likewise.
30335         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30336         * modules/unictype/property-byname-tests (Files): Likewise.
30337         * modules/unictype/property-combining-tests (Files): Likewise.
30338         * modules/unictype/property-composite-tests (Files): Likewise.
30339         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30340         * modules/unictype/property-dash-tests (Files): Likewise.
30341         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30342         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30343         Likewise.
30344         * modules/unictype/property-deprecated-tests (Files): Likewise.
30345         * modules/unictype/property-diacritic-tests (Files): Likewise.
30346         * modules/unictype/property-extender-tests (Files): Likewise.
30347         * modules/unictype/property-format-control-tests (Files): Likewise.
30348         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30349         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30350         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30351         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30352         * modules/unictype/property-hyphen-tests (Files): Likewise.
30353         * modules/unictype/property-id-continue-tests (Files): Likewise.
30354         * modules/unictype/property-id-start-tests (Files): Likewise.
30355         * modules/unictype/property-ideographic-tests (Files): Likewise.
30356         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30357         * modules/unictype/property-ids-trinary-operator-tests (Files):
30358         Likewise.
30359         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30360         * modules/unictype/property-iso-control-tests (Files): Likewise.
30361         * modules/unictype/property-join-control-tests (Files): Likewise.
30362         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30363         * modules/unictype/property-line-separator-tests (Files): Likewise.
30364         * modules/unictype/property-logical-order-exception-tests (Files):
30365         Likewise.
30366         * modules/unictype/property-lowercase-tests (Files): Likewise.
30367         * modules/unictype/property-math-tests (Files): Likewise.
30368         * modules/unictype/property-non-break-tests (Files): Likewise.
30369         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30370         * modules/unictype/property-numeric-tests (Files): Likewise.
30371         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30372         * modules/unictype/property-other-default-ignorable-code-point-tests
30373         (Files): Likewise.
30374         * modules/unictype/property-other-grapheme-extend-tests (Files):
30375         Likewise.
30376         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30377         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30378         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30379         * modules/unictype/property-other-math-tests (Files): Likewise.
30380         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30381         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30382         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30383         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30384         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30385         * modules/unictype/property-private-use-tests (Files): Likewise.
30386         * modules/unictype/property-punctuation-tests (Files): Likewise.
30387         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30388         * modules/unictype/property-radical-tests (Files): Likewise.
30389         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30390         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30391         * modules/unictype/property-space-tests (Files): Likewise.
30392         * modules/unictype/property-terminal-punctuation-tests (Files):
30393         Likewise.
30394         * modules/unictype/property-test-tests (Files): Likewise.
30395         * modules/unictype/property-titlecase-tests (Files): Likewise.
30396         * modules/unictype/property-unassigned-code-value-tests (Files):
30397         Likewise.
30398         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30399         * modules/unictype/property-uppercase-tests (Files): Likewise.
30400         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30401         * modules/unictype/property-white-space-tests (Files): Likewise.
30402         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30403         * modules/unictype/property-xid-start-tests (Files): Likewise.
30404         * modules/unictype/property-zero-width-tests (Files): Likewise.
30405         * modules/unictype/scripts-tests (Files): Likewise.
30406         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30407         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30408         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30409         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30410         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30411         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30412         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30413         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30414         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30415         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30416         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30417         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30418         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30419         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30420         * modules/uninorm/composition-tests (Files): Likewise.
30421         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30422         * modules/uninorm/decomposition-tests (Files): Likewise.
30423         * modules/uninorm/filter-tests (Files): Likewise.
30424         * modules/uninorm/nfc-tests (Files): Likewise.
30425         * modules/uninorm/nfd-tests (Files): Likewise.
30426         * modules/uninorm/nfkc-tests (Files): Likewise.
30427         * modules/uninorm/nfkd-tests (Files): Likewise.
30428         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30429         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30430         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30431         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30432         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30433         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30434         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30435         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30436         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30437         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30438         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30439         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30440         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30441         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30442         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30443         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30444         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30445         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30446         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30447         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30448         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30449         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30450         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30451         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30452         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30453         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30454         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30455         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30456         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30457         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30458         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30459         * modules/uniwidth/u8-width-tests (Files): Likewise.
30460         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30461         * modules/uniwidth/u16-width-tests (Files): Likewise.
30462         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30463         * modules/uniwidth/u32-width-tests (Files): Likewise.
30464         * modules/uniwidth/width-tests (Files): Likewise.
30465         * modules/unlink-tests (Files): Likewise.
30466         * modules/unsetenv-tests (Files): Likewise.
30467         * modules/usleep-tests (Files): Likewise.
30468         * modules/utimens-tests (Files): Likewise.
30469         * modules/utimensat-tests (Files): Likewise.
30470         * modules/vasnprintf-posix-tests (Files): Likewise.
30471         * modules/vasnprintf-tests (Files): Likewise.
30472         * modules/vasprintf-posix-tests (Files): Likewise.
30473         * modules/vasprintf-tests (Files): Likewise.
30474         * modules/vdprintf-posix-tests (Files): Likewise.
30475         * modules/vfprintf-posix-tests (Files): Likewise.
30476         * modules/vprintf-posix-tests (Files): Likewise.
30477         * modules/vsnprintf-posix-tests (Files): Likewise.
30478         * modules/vsnprintf-tests (Files): Likewise.
30479         * modules/vsprintf-posix-tests (Files): Likewise.
30480         * modules/wcrtomb-tests (Files): Likewise.
30481         * modules/wcsnrtombs-tests (Files): Likewise.
30482         * modules/wcsrtombs-tests (Files): Likewise.
30483         * modules/wctype-tests (Files): Likewise.
30484         * modules/wcwidth-tests (Files): Likewise.
30485         * modules/xmemdup0-tests (Files): Likewise.
30486         * modules/xprintf-posix-tests (Files): Likewise.
30487         * modules/xvasprintf-tests (Files): Likewise.
30488
30489 2009-12-24  Eric Blake  <ebb9@byu.net>
30490
30491         test-nanosleep: fix typo
30492         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30493         patch.
30494         Reported by Bruno Haible.
30495
30496 2009-12-24  Bruno Haible  <bruno@clisp.org>
30497
30498         Reduce namespace pollution on glibc systems.
30499         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30500         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30501         systems.
30502         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30503         <getopt.h> on glibc systems.
30504         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30505         systems.
30506         * lib/fcntl.c: Include <unistd.h> here instead.
30507
30508 2009-12-24  Bruno Haible  <bruno@clisp.org>
30509
30510         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30511
30512 2009-12-24  Eric Blake  <ebb9@byu.net>
30513
30514         tests: add signature checks
30515         * tests/signature.h (SIGNATURE_CHECK): New file.
30516         * modules/atexit-tests (Files): Use it.
30517         * modules/btowc-tests (Files): Likewise.
30518         * modules/canonicalize-lgpl-tests (Files): Likewise.
30519         * modules/ceilf-tests (Files): Likewise.
30520         * modules/ceill-tests (Files): Likewise.
30521         * modules/chown-tests (Files): Likewise.
30522         * modules/dprintf-posix-tests (Files): Likewise.
30523         * modules/dup2-tests (Files): Likewise.
30524         * modules/dup3-tests (Files): Likewise.
30525         * modules/duplocale-tests (Files): Likewise.
30526         * modules/fchdir-tests (Files): Likewise.
30527         * modules/fcntl-tests (Files): Likewise.
30528         * modules/fdopendir-tests (Files): Likewise.
30529         * modules/fflush-tests (Files): Likewise.
30530         * modules/flock-tests (Files): Likewise.
30531         * modules/floorf-tests (Files): Likewise.
30532         * modules/floorl-tests (Files): Likewise.
30533         * modules/fnmatch-tests (Files): Likewise.
30534         * modules/fopen-tests (Files): Likewise.
30535         * modules/fprintf-posix-tests (Files): Likewise.
30536         * modules/freopen-tests (Files): Likewise.
30537         * modules/frexp-nolibm-tests (Files): Likewise.
30538         * modules/frexp-tests (Files): Likewise.
30539         * modules/frexpl-nolibm-tests (Files): Likewise.
30540         * modules/frexpl-tests (Files): Likewise.
30541         * modules/fseek-tests (Files): Likewise.
30542         * modules/fseeko-tests (Files): Likewise.
30543         * modules/fsync-tests (Files): Likewise.
30544         * modules/ftell-tests (Files): Likewise.
30545         * modules/ftello-tests (Files): Likewise.
30546         * modules/futimens-tests (Files): Likewise.
30547         * modules/getaddrinfo-tests (Files): Likewise.
30548         * modules/getcwd-tests (Files): Likewise.
30549         * modules/getdelim-tests (Files): Likewise.
30550         * modules/getdtablesize-tests (Files): Likewise.
30551         * modules/getgroups-tests (Files): Likewise.
30552         * modules/gethostname-tests (Files): Likewise.
30553         * modules/getline-tests (Files): Likewise.
30554         * modules/getopt-posix-tests (Files): Likewise.
30555         * modules/gettimeofday-tests (Files): Likewise.
30556         * modules/glob-tests (Files): Likewise.
30557         * modules/iconv-tests (Files): Likewise.
30558         * modules/inet_ntop-tests (Files): Likewise.
30559         * modules/inet_pton-tests (Files): Likewise.
30560         * modules/isblank-tests (Files): Likewise.
30561         * modules/lchown-tests (Files): Likewise.
30562         * modules/ldexpl-tests (Files): Likewise.
30563         * modules/link-tests (Files): Likewise.
30564         * modules/linkat-tests (Files): Likewise.
30565         * modules/lseek-tests (Files): Likewise.
30566         * modules/lstat-tests (Files): Likewise.
30567         * modules/mbrtowc-tests (Files): Likewise.
30568         * modules/mbsinit-tests (Files): Likewise.
30569         * modules/mbsnrtowcs-tests (Files): Likewise.
30570         * modules/mbsrtowcs-tests (Files): Likewise.
30571         * modules/memchr-tests (Files): Likewise.
30572         * modules/memcmp-tests (Files): Likewise.
30573         * modules/memmem-tests (Files): Likewise.
30574         * modules/memrchr-tests (Files): Likewise.
30575         * modules/mkdir-tests (Files): Likewise.
30576         * modules/mkfifo-tests (Files): Likewise.
30577         * modules/mkfifoat-tests (Files): Likewise.
30578         * modules/mknod-tests (Files): Likewise.
30579         * modules/nanosleep-tests (Files): Likewise.
30580         * modules/nl_langinfo-tests (Files): Likewise.
30581         * modules/obstack-printf-tests (Files): Likewise.
30582         * modules/open-tests (Files): Likewise.
30583         * modules/openat-tests (Files): Likewise.
30584         * modules/perror-tests (Files): Likewise.
30585         * modules/pipe2-tests (Files): Likewise.
30586         * modules/poll-tests (Files): Likewise.
30587         * modules/popen-tests (Files): Likewise.
30588         * modules/posix_spawn-tests (Files): Likewise.
30589         * modules/posix_spawnp-tests (Files): Likewise.
30590         * modules/pread-tests (Files): Likewise.
30591         * modules/printf-posix-tests (Files): Likewise.
30592         * modules/pty-tests (Files): Likewise.
30593         * modules/random_r-tests (Files): Likewise.
30594         * modules/rawmemchr-tests (Files): Likewise.
30595         * modules/readlink-tests (Files): Likewise.
30596         * modules/remove-tests (Files): Likewise.
30597         * modules/rename-tests (Files): Likewise.
30598         * modules/renameat-tests (Files): Likewise.
30599         * modules/rmdir-tests (Files): Likewise.
30600         * modules/round-tests (Files): Likewise.
30601         * modules/roundf-tests (Files): Likewise.
30602         * modules/roundl-tests (Files): Likewise.
30603         * modules/select-tests (Files): Likewise.
30604         * modules/setenv-tests (Files): Likewise.
30605         * modules/sigaction-tests (Files): Likewise.
30606         * modules/sleep-tests (Files): Likewise.
30607         * modules/snprintf-posix-tests (Files): Likewise.
30608         * modules/snprintf-tests (Files): Likewise.
30609         * modules/sprintf-posix-tests (Files): Likewise.
30610         * modules/stat-tests (Files): Likewise.
30611         * modules/strcasestr-tests (Files): Likewise.
30612         * modules/strchrnul-tests (Files): Likewise.
30613         * modules/strerror-tests (Files): Likewise.
30614         * modules/strsignal-tests (Files): Likewise.
30615         * modules/strstr-tests (Files): Likewise.
30616         * modules/strtod-tests (Files): Likewise.
30617         * modules/strverscmp-tests (Files): Likewise.
30618         * modules/symlink-tests (Files): Likewise.
30619         * modules/symlinkat-tests (Files): Likewise.
30620         * modules/times-tests (Files): Likewise.
30621         * modules/trunc-tests (Files): Likewise.
30622         * modules/truncf-tests (Files): Likewise.
30623         * modules/truncl-tests (Files): Likewise.
30624         * modules/tsearch-tests (Files): Likewise.
30625         * modules/uname-tests (Files): Likewise.
30626         * modules/unlink-tests (Files): Likewise.
30627         * modules/unsetenv-tests (Files): Likewise.
30628         * modules/usleep-tests (Files): Likewise.
30629         * modules/utimensat-tests (Files): Likewise.
30630         * modules/vasprintf-tests (Files): Likewise.
30631         * modules/vdprintf-posix-tests (Files): Likewise.
30632         * modules/vfprintf-posix-tests (Files): Likewise.
30633         * modules/vprintf-posix-tests (Files): Likewise.
30634         * modules/vsnprintf-posix-tests (Files): Likewise.
30635         * modules/vsnprintf-tests (Files): Likewise.
30636         * modules/vsprintf-posix-tests (Files): Likewise.
30637         * modules/wcrtomb-tests (Files): Likewise.
30638         * modules/wcsnrtombs-tests (Files): Likewise.
30639         * modules/wcsrtombs-tests (Files): Likewise.
30640         * modules/wcwidth-tests (Files): Likewise.
30641         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30642         * tests/test-isinf.c (isinf): Likewise.
30643         * tests/test-isnan.c (isnan): Likewise.
30644         * tests/test-signbit.c (signbit): Likewise.
30645         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30646         declaration, either as macro or with correct signature.
30647         (select): Ensure function under test is declared with correct
30648         signature in correct header.
30649         * tests/test-atexit.c (atexit): Likewise.
30650         * tests/test-btowc.c (btowc): Likewise.
30651         * tests/test-canonicalize-lgpl.c (realpath)
30652         (canonicalize_file_name): Likewise.
30653         * tests/test-ceilf1.c (ceilf): Likewise.
30654         * tests/test-ceill.c (ceill): Likewise.
30655         * tests/test-chown.c (chown): Likewise.
30656         * tests/test-dprintf-posix.c (dprintf): Likewise.
30657         * tests/test-dup2.c (dup2): Likewise.
30658         * tests/test-dup3.c (dup3): Likewise.
30659         * tests/test-duplocale.c (duplocale): Likewise.
30660         * tests/test-fchdir.c (fchdir): Likewise.
30661         * tests/test-fchownat.c (fchownat): Likewise.
30662         * tests/test-fcntl.c (fcntl): Likewise.
30663         * tests/test-fdopendir.c (fdopendir): Likewise.
30664         * tests/test-fflush.c (fflush): Likewise.
30665         * tests/test-flock.c (flock): Likewise.
30666         * tests/test-floorf1.c (floorf): Likewise.
30667         * tests/test-floorl.c (floorl): Likewise.
30668         * tests/test-fnmatch.c (fnmatch): Likewise.
30669         * tests/test-fopen.c (fopen): Likewise.
30670         * tests/test-fprintf-posix.c (fprintf): Likewise.
30671         * tests/test-freopen.c (freopen): Likewise.
30672         * tests/test-frexp.c (frexp): Likewise.
30673         * tests/test-frexpl.c (frexpl): Likewise.
30674         * tests/test-fseek.c (fseek): Likewise.
30675         * tests/test-fseeko.c (fseeko): Likewise.
30676         * tests/test-fstatat.c (fstatat): Likewise.
30677         * tests/test-fsync.c (fsync): Likewise.
30678         * tests/test-ftell.c (ftell): Likewise.
30679         * tests/test-ftello.c (ftello): Likewise.
30680         * tests/test-futimens.c (futimens): Likewise.
30681         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30682         (gai_strerror): Likewise.
30683         * tests/test-getcwd.c (getcwd): Likewise.
30684         * tests/test-getdelim.c (getdelim): Likewise.
30685         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30686         * tests/test-getgroups.c (getgroups): Likewise.
30687         * tests/test-gethostname.c (gethostname): Likewise.
30688         * tests/test-getline.c (getline): Likewise.
30689         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30690         Likewise.
30691         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30692         * tests/test-glob.c (glob, globfree): Likewise.
30693         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30694         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30695         * tests/test-inet_pton.c (inet_pton): Likewise.
30696         * tests/test-isblank.c (isblank): Likewise.
30697         * tests/test-lchown.c (lchown): Likewise.
30698         * tests/test-ldexpl.c (ldexpl): Likewise.
30699         * tests/test-link.c (link): Likewise.
30700         * tests/test-linkat.c (linkat): Likewise.
30701         * tests/test-lseek.c (lseek): Likewise.
30702         * tests/test-lstat.c (lstat): Likewise.
30703         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30704         * tests/test-mbsinit.c (mbsinit): Likewise.
30705         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30706         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30707         * tests/test-memchr.c (memchr): Likewise.
30708         * tests/test-memcmp.c (memcmp): Likewise.
30709         * tests/test-memmem.c (memmem): Likewise.
30710         * tests/test-memrchr.c (memrchr): Likewise.
30711         * tests/test-mkdir.c (mkdir): Likewise.
30712         * tests/test-mkdirat.c (mkdirat): Likewise.
30713         * tests/test-mkfifo.c (mkfifo): Likewise.
30714         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30715         * tests/test-mknod.c (mknod): Likewise.
30716         * tests/test-nanosleep.c (nanosleep): Likewise.
30717         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30718         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30719         Likewise.
30720         * tests/test-open.c (open): Likewise.
30721         * tests/test-openat.c (openat): Likewise.
30722         * tests/test-perror.c (perror): Likewise.
30723         * tests/test-pipe2.c (pipe2): Likewise.
30724         * tests/test-poll.c (poll): Likewise.
30725         * tests/test-popen.c (popen, pclose): Likewise.
30726         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30727         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30728         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30729         (posix_spawn_file_actions_destroy)
30730         (posix_spawn_file_actions_addclose)
30731         (posix_spawn_file_actions_addopen)
30732         (posix_spawn_file_actions_adddup2): Likewise.
30733         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30734         * tests/test-pread.c (pread): Likewise.
30735         * tests/test-printf-posix.c (printf): Likewise.
30736         * tests/test-pty.c (openpty, forkpty): Likewise.
30737         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30738         (random_r): Likewise.
30739         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30740         * tests/test-readlink.c (readlink): Likewise.
30741         * tests/test-remove.c (remove): Likewise.
30742         * tests/test-rename.c (rename): Likewise.
30743         * tests/test-renameat.c (renameat): Likewise.
30744         * tests/test-rmdir.c (rmdir): Likewise.
30745         * tests/test-round1.c (round): Likewise.
30746         * tests/test-roundf1.c (roundf): Likewise.
30747         * tests/test-roundl.c (roundl): Likewise.
30748         * tests/test-setenv.c (setenv): Likewise.
30749         * tests/test-sigaction.c (sigaction): Likewise.
30750         * tests/test-sleep.c (sleep): Likewise.
30751         * tests/test-snprintf.c (snprintf): Likewise.
30752         * tests/test-sprintf-posix.c (sprintf): Likewise.
30753         * tests/test-stat.c (stat): Likewise.
30754         * tests/test-stpncpy.c (stpncpy): Likewise.
30755         * tests/test-strcasestr.c (strcasestr): Likewise.
30756         * tests/test-strchrnul.c (strchrnul): Likewise.
30757         * tests/test-strerror.c (strerror): Likewise.
30758         * tests/test-strsignal.c (strsignal): Likewise.
30759         * tests/test-strstr.c (strstr): Likewise.
30760         * tests/test-strtod.c (strtod): Likewise.
30761         * tests/test-strverscmp.c (strverscmp): Likewise.
30762         * tests/test-symlink.c (symlink): Likewise.
30763         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30764         * tests/test-times.c (times): Likewise.
30765         * tests/test-trunc1.c (trunc): Likewise.
30766         * tests/test-truncf1.c (truncf): Likewise.
30767         * tests/test-truncl.c (truncl): Likewise.
30768         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30769         Likewise.
30770         * tests/test-uname.c (uname): Likewise.
30771         * tests/test-unlink.c (unlink): Likewise.
30772         * tests/test-unlinkat.c (unlinkat): Likewise.
30773         * tests/test-unsetenv.c (unsetenv): Likewise.
30774         * tests/test-usleep.c (usleep): Likewise.
30775         * tests/test-utimensat.c (utimensat): Likewise.
30776         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30777         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30778         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30779         * tests/test-vprintf-posix.c (vprintf): Likewise.
30780         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30781         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30782         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30783         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30784         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30785         * tests/test-wcwidth.c (wcwidth): Likewise.
30786
30787         build: pull in conditional headers during GNULIB_POSIXCHECK
30788         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30789         definitions from any conditionally-included headers.
30790         * lib/stdlib.in.h (includes): Likewise.
30791         * lib/unistd.in.h (includes): Likewise.
30792
30793 2009-12-24  Bruno Haible  <bruno@clisp.org>
30794
30795         * tests/test-argv-iter.c: Include header file being tested immediately
30796         after config.h.
30797         * tests/test-base64.c: Likewise.
30798         * tests/test-flock.c: Likewise.
30799         * tests/test-fsync.c: Likewise.
30800         * tests/test-getdate.c: Likewise.
30801         * tests/test-getndelim2.c: Likewise.
30802         * tests/test-isfinite.c: Likewise.
30803         * tests/test-isinf.c: Likewise.
30804         * tests/test-strerror.c: Likewise.
30805         * tests/test-strsignal.c: Likewise.
30806
30807 2009-12-23  Eric Blake  <ebb9@byu.net>
30808
30809         unistd: work around cygwin bug
30810         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30811         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30812         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30813
30814 2009-12-23  Bruno Haible  <bruno@clisp.org>
30815
30816         localename: More tests.
30817         * tests/test-localename.c (SIZEOF): New macro.
30818         (categories): New variable.
30819         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30820         test_locale_name_default): Add test w.r.t. thread locale.
30821         (test_locale_name_thread): New function.
30822         (main): Invoke it.
30823
30824         localename: Make aware of thread locale.
30825         * lib/localename.h (gl_locale_name_thread): New declaration.
30826         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30827         behaviour with respect to thread locale.
30828         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30829         <langinfo.h>, glthread/lock.h.
30830         (SIZE_BITS): New macro.
30831         (string_hash): New function.
30832         (struct hash_node): New type.
30833         (HASH_TABLE_SIZE): New macro.
30834         (struniq_hash_table, struniq_lock): New variables.
30835         (struniq): New function.
30836         (gl_locale_name_thread): New function.
30837         (gl_locale_name): Invoke it.
30838         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30839         * modules/localename (Depends-on): Add lock.
30840         Reported by Mike Gran <spk121@yahoo.com>.
30841
30842 2009-12-23  Eric Blake  <ebb9@byu.net>
30843
30844         va-args: new module
30845         * modules/va-args: New file.
30846         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30847         * MODULES.html.sh (Core language properties): Mention it.
30848
30849         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30850         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30851         named alias for __attribute__((__unused__)).
30852         * lib/chown.c: Update client.
30853         * lib/fchmodat.c: Likewise.
30854         * lib/fts.c: Likewise.
30855         * lib/getdate.y: Likewise.
30856         * lib/getgroups.c: Likewise.
30857         * lib/getopt.c: Likewise.
30858         * lib/getugroups.c: Likewise.
30859         * lib/mkdir.c: Likewise.
30860         * lib/mkfifo.c: Likewise.
30861         * lib/mkfifoat.c: Likewise.
30862         * lib/mknod.c: Likewise.
30863         * lib/mknodat.c: Likewise.
30864         * lib/readlink.c: Likewise.
30865         * lib/se-context.in.h: Likewise.
30866         * lib/se-selinux.in.h: Likewise.
30867         * lib/sockets.c: Likewise.
30868         * lib/symlink.c: Likewise.
30869         * lib/symlinkat.c: Likewise.
30870         * lib/unicodeio.c: Likewise.
30871         * lib/unistr.h: Likewise.
30872         * tests/test-areadlink.c: Likewise.
30873         * tests/test-areadlinkat.c: Likewise.
30874         * tests/test-filenamecat.c: Likewise.
30875         * tests/test-fseeko.c: Likewise.
30876         * tests/test-ftello.c: Likewise.
30877         * tests/test-getdate.c: Likewise.
30878         * tests/test-getgroups.c: Likewise.
30879         * tests/test-gethostname.c: Likewise.
30880         * tests/test-quotearg.c: Likewise.
30881         * tests/test-version-etc.c: Likewise.
30882         * tests/test-xalloc-die.c: Likewise.
30883         * tests/test-xfprintf-posix.c: Likewise.
30884         * tests/test-xprintf-posix.c: Likewise.
30885         * tests/test-xvasprintf.c: Likewise.
30886
30887         tests: avoid compiler warnings
30888         * tests/test-fcntl.c (main): Delete unused parameters.
30889         * tests/test-freopen-safer.c (main): Likewise.
30890         * tests/test-xalloc-die.c (main): Mark unused parameters.
30891         * tests/test-fseeko.c (main): Likewise.
30892         * tests/test-ftello.c (main): Likewise.
30893         * tests/test-nanosleep.c (main): Avoid declaration warning.
30894         * tests/test-sleep.c (main): Likewise.
30895         * tests/test-unsetenv.c (main): Silence warning about string
30896         literal.
30897         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30898
30899 2009-12-23  Bruno Haible  <bruno@clisp.org>
30900
30901         * tests/test-localename.c (test_locale_name): New function, extracted
30902         from main. Also test mixed situations.
30903         (test_locale_name_posix, test_locale_name_environ,
30904         test_locale_name_default): New functions.
30905         (main): Invoke them all.
30906         * modules/localename-tests (configure.ac): Test for newlocale.
30907
30908 2009-12-23  Bruno Haible  <bruno@clisp.org>
30909
30910         unistd: Ensure getcwd gets declared before being overridden.
30911         * lib/unistd.in.h: Conditionally include <io.h>.
30912
30913 2009-12-22  Bruno Haible  <bruno@clisp.org>
30914
30915         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30916         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30917         (gl_WCHAR_H): Invoke it.
30918         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30919         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30920         Reported by Karl Berry <karl@freefriends.org>.
30921
30922 2009-12-22  Eric Blake  <ebb9@byu.net>
30923
30924         math, unistd: avoid redundant includes
30925         * lib/math.in.h (isnan): No need to re-include <math.h>.
30926         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30927
30928         getsubopt: work around cygwin bug
30929         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30930         avoid conflicting with system getsubopt.
30931         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30932         bug.
30933
30934         getopt: synchronize from glibc
30935         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30936         parameter order.  Adjust all callers.
30937         (_getopt_internal_r, main): Adjust quoting in error messages.
30938         Drop considerations for outdated POSIX 1003.2 error message.
30939         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30940         callers.
30941         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30942
30943         test-getopt: test stderr behavior
30944         * modules/getopt-posix-tests (Depends-on): Add dup2.
30945         * tests/test-getopt.c (ASSERT): Avoid stderr.
30946         (main): Move stderr to a temporary file.
30947         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30948         Instead, add parameter to inform caller if output occurred.
30949         (test_getopt): Adjust all existing tests to expect silence, and
30950         add new tests of leading ":".
30951         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30952         glibc shortcomings with leading "-:" or "+:" in optstring.
30953         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30954         Likewise.
30955         * doc/posix-functions/getopt.texi (getopt): Likewise.
30956
30957         test-getopt: enhance test
30958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30959         supports optind=0.
30960         * tests/test-getopt.c (OPTIND_MIN): Move...
30961         * tests/test-getopt.h (OPTIND_MIN): ...here.
30962         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30963         Require that optind=0 works, since modern BSD supports it in
30964         addition to optreset, and since coreutils expects it.
30965         (test_getopt_long_only): New test.
30966         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30967         glibc shortcomings with 'W;', and enforcement of optind=0.
30968         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30969         Likewise.
30970
30971 2009-12-21  Bruno Haible  <bruno@clisp.org>
30972
30973         localename: Improvements for MacOS X and Cygwin.
30974         * lib/localename.h (gl_locale_name_environ): New declaration.
30975         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30976         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30977         (gl_locale_name_posix): Invoke it.
30978         (gl_locale_name_default): Add comments. Use Windows native API also on
30979         Cygwin.
30980
30981 2009-12-21  Bruno Haible  <bruno@clisp.org>
30982
30983         Update list of Win32 locale ids.
30984         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30985         (LANG_SAMI): Renamed from LANG_SAAMI.
30986         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30987         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30988         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30989         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30990         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30991         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30992         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30993         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30994         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30995         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30996         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30997         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30998         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30999         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31000         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31001         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31002         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31003         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31004         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31005         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31006         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31007         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31008         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31009         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31010         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31011         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31012         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31013         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31014         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31015         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31016         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31017         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31018         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31019         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31020         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31021         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31022         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31023         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31024         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31025         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31026         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31027         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31028         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31029         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31030         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31031         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31032         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31033         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31034         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31035         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31036         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31037         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31038         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31039         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31040         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31041         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31042         Add more languages and countries for Sami, Sorbian. Add more countries
31043         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31044         for Pashto. Change country for Syriac, Tswana.
31045
31046 2009-12-21  Eric Blake  <ebb9@byu.net>
31047
31048         test-utimens: avoid spurious failure
31049         * tests/test-chown.h (nap): Factor...
31050         * tests/nap.h: ...into new file.
31051         * tests/test-lchown.h (nap): Avoid duplication.
31052         * tests/test-utimens-common.h (nap): Use shared implementation,
31053         necessary on file systems with 1-second resolution.
31054         * modules/chown-tests (Files): Include new file.
31055         * modules/fdutimensat-tests (Files): Likewise.
31056         * modules/futimens-tests (Files): Likewise.
31057         * modules/lchown-tests (Files): Likewise.
31058         * modules/openat-tests (Files): Likewise.
31059         * modules/utimens-tests (Files): Likewise.
31060         * modules/utimensat-tests (Files): Likewise.
31061
31062 2009-12-19  Eric Blake  <ebb9@byu.net>
31063
31064         futimens, utimensat: work around Linux bug
31065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31066         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31067         * lib/utimensat.c (rpl_utimensat): Work around it.
31068         * lib/futimens.c (rpl_futimens): Adjust comment.
31069
31070         utimens: work around Linux ctime bug
31071         * lib/utimens.c (detect_ctime_bug): New helper function.
31072         (update_timespec): Differentiate between workaround needed for
31073         this bug vs. what is needed for systems that lack utimensat.
31074         (fdutimens, lutimens): Work around bug.
31075
31076         utimens: check for ctime update
31077         * tests/test-utimens-common.h (check_ctime): Define.
31078         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31079         * tests/test-futimens.h (test_futimens): Likewise.
31080         * tests/test-lutimens.h (test_lutimens): Likewise.
31081         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31082         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31083
31084 2009-12-19  Bruno Haible  <bruno@clisp.org>
31085
31086         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31087         * tests/test-dprintf-posix2.sh: New file.
31088         * tests/test-dprintf-posix2.c: New file.
31089         * modules/dprintf-posix-tests (Files): Add them.
31090         (configure.ac): Check for getrlimit and setrlimit.
31091         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31092
31093 2009-12-19  Bruno Haible  <bruno@clisp.org>
31094
31095         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31096         * tests/test-fprintf-posix3.sh: New file.
31097         * tests/test-fprintf-posix3.c: New file.
31098         * modules/fprintf-posix-tests (Files): Add them.
31099         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31100
31101 2009-12-19  Eric Blake  <ebb9@byu.net>
31102
31103         dirfd: fix prototype
31104         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31105         * lib/dirfd.c (dirfd): Likewise.
31106
31107         canonicalize: reduce memory usage
31108         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31109         allocation to size.
31110         Reported by Solar Designer <solar@openwall.com>.
31111
31112 2009-12-19  Bruno Haible  <bruno@clisp.org>
31113
31114         New module attribute 'Applicability'.
31115         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31116         * gnulib-tool: New option --extract-applicability.
31117         (func_usage): Document it.
31118         (sed_extract_prog): Recognize it.
31119         (func_get_applicability): New function.
31120         (func_import): Generalize handling of 'link-warning' module.
31121         * modules/link-warning (Applicability): New section.
31122         * modules/arg-nonnull (Applicability): New section.
31123         Repoted by Simon Josefsson <simon@josefsson.org>.
31124
31125 2009-12-19  Bruno Haible  <bruno@clisp.org>
31126
31127         fflush: tweak
31128         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31129         * lib/fseeko.c (rpl_fseeko): Likewise.
31130
31131 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31132
31133         * lib/gl_list.h: Fix typo in comment.
31134
31135 2009-12-16  Eric Blake  <ebb9@byu.net>
31136
31137         fcntl: use to simplify other modules
31138         * modules/cloexec (Depends-on): Add fcntl.
31139         * modules/fchdir (Depends-on): Likewise.
31140         * modules/fd-safer-flag (Depends-on): Likewise.
31141         * modules/unistd-safer (Depends-on): Likewise.
31142         * modules/dup3 (configure.ac): Set module indicator.
31143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31144         missing.
31145         * lib/fchdir.c (_gl_register_dup): Fix comment.
31146         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31147         * lib/dup-safer.c (dup_safer): Likewise.
31148         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31149         * lib/dup3.c (dup3): Likewise.
31150         * tests/test-fchdir.c (main): Enhance test.
31151         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31152
31153         fcntl: port portions of fcntl to mingw
31154         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31155         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31156         replacement for mingw.
31157         * modules/fcntl (Description): Update.
31158         (Depends-on): Add dup2.
31159         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31160         * modules/fcntl-h (Makefile.am): Substitute it.
31161         * lib/fcntl.in.h (fcntl): Update declaration.
31162         (F_DUPFD, F_GETFD): New macros, when needed.
31163         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31164         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31165         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31166         we now guarantee.
31167
31168         fcntl: work around cygwin bug in F_DUPFD
31169         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31170         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31171         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31172         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31173         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31174
31175         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31176         * modules/fcntl (Files): List new files.
31177         (configure.ac): Run a test.
31178         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31179         * lib/fcntl.c (rpl_fcntl): Likewise.
31180         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31181         (gl_FCNTL_H): Always replace fcntl.h.
31182         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31183         * lib/fcntl.in.h (fcntl): Declare replacement.
31184         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31185         needed, plus a witness.
31186         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31187         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31188         * tests/test-fcntl.c: New file.
31189         * modules/fcntl-tests: Likewise.
31190
31191         binary-io: avoid potential compilation warning
31192         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31193         directives.
31194
31195         fflush: avoid compilation error on NetBSD
31196         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31197         between off_t and fpos_t, since the latter is sometimes a struct.
31198         * lib/fseeko.c (rpl_fseeko): Likewise.
31199         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31200
31201 2009-12-15  Eric Blake  <ebb9@byu.net>
31202
31203         fcntl-h, stdio, sys_ioctl: fix declarations
31204         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31205         function must not take arguments.
31206         * lib/sys_ioctl.in.h (ioctl): Likewise.
31207         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31208         (open): Add a link warning.
31209
31210 2009-12-15  Jim Meyering  <meyering@redhat.com>
31211
31212         areadlink, areadlink-with-size: relax license to LGPLv2+
31213         * modules/areadlink (License): Relax to LGPLv2+.
31214         * modules/areadlink-with-size (License): Likewise.
31215
31216 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31217             Bruno Haible  <bruno@clisp.org>
31218
31219         *printf: Fix memory leak.
31220         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31221         * lib/vfprintf.c (vfprintf): Likewise.
31222         * lib/dprintf.c (dprintf): Likewise.
31223         * lib/vdprintf.c (vdprintf): Likewise.
31224
31225 2009-12-14  Eric Blake  <ebb9@byu.net>
31226
31227         accept4: adjust module dependencies
31228         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31229
31230         utimens: one more try at avoiding compiler warning
31231         * lib/utimens.c (lutimens): Lower scope of result.
31232
31233 2009-12-13  Bruno Haible  <bruno@clisp.org>
31234
31235         Move the malloc checking from module 'list' to new module 'xlist'.
31236         * modules/xlist: New file.
31237         * lib/gl_xlist.h: New file.
31238         * lib/gl_xlist.c: New file.
31239         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31240         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31241         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31242         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31243         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31244         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31245         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31246         gl_sortedlist_nx_add): New declarations.
31247         (struct gl_list_implementation): Rename and change methods accordingly.
31248         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31249         (gl_list_nx_create): Renamed from gl_list_create.
31250         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31251         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31252         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31253         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31254         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31255         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31256         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31257         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31258         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31259         gl_list_create_empty.
31260         (gl_list_nx_create): Renamed from gl_list_create.
31261         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31262         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31263         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31264         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31265         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31266         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31267         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31268         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31269         * lib/gl_array_list.c: Don't include xalloc.h.
31270         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31271         NULL upon out-of-memory.
31272         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31273         out-of-memory.
31274         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31275         Change return type to 'int'.
31276         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31277         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31278         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31279         upon out-of-memory.
31280         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31281         upon out-of-memory.
31282         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31283         upon out-of-memory.
31284         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31285         upon out-of-memory.
31286         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31287         out-of-memory.
31288         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31289         Update.
31290         (gl_array_list_implementation): Update.
31291         * lib/gl_carray_list.c: Don't include xalloc.h.
31292         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31293         Return NULL upon out-of-memory.
31294         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31295         out-of-memory.
31296         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31297         Change return type to 'int'.
31298         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31299         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31300         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31301         upon out-of-memory.
31302         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31303         upon out-of-memory.
31304         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31305         out-of-memory.
31306         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31307         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31308         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31309         Update.
31310         (gl_carray_list_implementation): Update.
31311         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31312         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31313         gl_linked_create_empty. Return NULL upon out-of-memory.
31314         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31315         out-of-memory.
31316         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31317         Change return type to 'int'. Return -1 upon out-of-memory.
31318         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31319         out-of-memory.
31320         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31321         upon out-of-memory.
31322         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31323         upon out-of-memory.
31324         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31325         NULL upon out-of-memory.
31326         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31327         upon out-of-memory.
31328         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31329         out-of-memory.
31330         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31331         Update.
31332         * lib/gl_linked_list.c: Don't include xalloc.h.
31333         (gl_linked_list_implementation): Update.
31334         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31335         (add_to_bucket): Change return type to 'int'.
31336         (gl_linkedhash_list_implementation): Update.
31337         * lib/gl_anytree_list1.h (free_subtree): New function.
31338         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31339         gl_tree_create_empty. Return NULL upon out-of-memory.
31340         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31341         Change return type to 'int'. Return -1 upon out-of-memory.
31342         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31343         out-of-memory.
31344         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31345         (gl_tree_remove_node): New function, moved here from
31346         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31347         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31348         Update.
31349         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31350         malloc, not xmalloc. Return NULL upon out-of-memory.
31351         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31352         out-of-memory.
31353         (gl_tree_remove_node_from_tree): New function, extracted from
31354         gl_tree_remove_node.
31355         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31356         upon out-of-memory.
31357         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31358         out-of-memory.
31359         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31360         upon out-of-memory.
31361         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31362         upon out-of-memory.
31363         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31364         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31365         not xmalloc. Return NULL upon out-of-memory.
31366         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31367         out-of-memory.
31368         (gl_tree_remove_node_from_tree): New function, extracted from
31369         gl_tree_remove_node.
31370         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31371         upon out-of-memory.
31372         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31373         out-of-memory.
31374         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31375         upon out-of-memory.
31376         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31377         upon out-of-memory.
31378         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31379         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31380         gl_anytree_list1.h before gl_anyavltree_list2.h.
31381         (gl_avltree_list_implementation): Update.
31382         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31383         gl_anytree_list1.h before gl_anyavltree_list2.h.
31384         (gl_rbtree_list_implementation): Update.
31385         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31386         Change return type to 'int'. Return -1 upon out-of-memory. Use
31387         __builtin_expect.
31388         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31389         (gl_avltreehash_list_implementation): Update.
31390         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31391         (gl_rbtreehash_list_implementation): Update.
31392         * modules/array-list (Depends-on): Remove xalloc.
31393         * modules/carray-list (Depends-on): Likewise.
31394         * modules/linked-list (Depends-on): Likewise.
31395         * modules/linkedhash-list (Depends-on): Likewise.
31396         * modules/avltree-list (Depends-on): Likewise.
31397         * modules/rbtree-list (Depends-on): Likewise.
31398         * modules/avltreehash-list (Depends-on): Likewise.
31399         * modules/rbtreehash-list (Depends-on): Likewise.
31400
31401         * modules/xsublist: New file.
31402         * lib/gl_xsublist.h: New file.
31403         * lib/gl_xsublist.c: New file.
31404         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31405         (gl_sublist_nx_create): New declaration.
31406         * lib/gl_sublist.c: Don't include xalloc.h.
31407         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31408         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31409         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31410         Change return type to 'int'. Return -1 upon out-of-memory.
31411         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31412         upon out-of-memory.
31413         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31414         NULL upon out-of-memory.
31415         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31416         upon out-of-memory.
31417         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31418         NULL upon out-of-memory.
31419         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31420         NULL upon out-of-memory.
31421         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31422         upon out-of-memory.
31423         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31424         (gl_sublist_list_implementation): Update.
31425         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31426         upon out-of-memory.
31427         * modules/sublist (Depends-on): Remove xalloc.
31428
31429         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31430         * tests/test-carray_list.c: Likewise.
31431         * tests/test-linked_list.c: Likewise.
31432         * tests/test-linkedhash_list.c: Likewise.
31433         * tests/test-avltree_list.c: Likewise.
31434         * tests/test-rbtree_list.c: Likewise.
31435         * tests/test-avltreehash_list.c: Likewise.
31436         * tests/test-rbtreehash_list.c: Likewise.
31437         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31438         * modules/carray-list-tests (Makefile.am): Likewise.
31439         * modules/linked-list-tests (Makefile.am): Likewise.
31440         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31441         * modules/avltree-list-tests (Makefile.am): Likewise.
31442         * modules/rbtree-list-tests (Makefile.am): Likewise.
31443         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31444         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31445
31446         * NEWS: Mention the changes.
31447
31448         * lib/clean-temp.c: Include gl_xlist.h.
31449         * modules/clean-temp (Depends-on): Add xlist.
31450
31451         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31452         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31453
31454         * tests/test-array_oset.c: Include gl_xlist.h.
31455         * modules/array-oset-tests (Depends-on): Add xlist.
31456
31457         Reported by José E. Marchesi <jemarch@gnu.org>.
31458
31459 2009-12-13  Bruno Haible  <bruno@clisp.org>
31460
31461         Move the malloc checking from module 'oset' to new module 'xoset'.
31462         * modules/xoset: New file.
31463         * lib/gl_xoset.h: New file.
31464         * lib/gl_xoset.c: New file.
31465         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31466         declarations.
31467         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31468         (struct gl_oset_implementation): Rename and change methods accordingly.
31469         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31470         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31471         'int'. Mark as __warn_unused_result__.
31472         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31473         gl_oset_create_empty.
31474         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31475         'int'.
31476         * lib/gl_array_oset.c: Don't include xalloc.h.
31477         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31478         malloc, not xmalloc.
31479         (grow): Change return type to 'int'. Don't call xalloc_die.
31480         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31481         to 'int'.
31482         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31483         'int'.
31484         (gl_array_oset_implementation): Update.
31485         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31486         gl_tree_create_empty.
31487         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31488         'int'.
31489         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31490         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31491         xmalloc.
31492         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31493         not xmalloc.
31494         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31495         xmalloc.
31496         (gl_avltree_oset_implementation): Update.
31497         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31498         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31499         xmalloc.
31500         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31501         not xmalloc.
31502         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31503         xmalloc.
31504         (gl_rbtree_oset_implementation): Update.
31505         * modules/array-oset (Depends-on): Remove xalloc.
31506         * modules/avltree-oset (Depends-on): Likewise.
31507         * modules/rbtree-oset (Depends-on): Likewise.
31508         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31509         * tests/test-avltree_oset.c: Likewise.
31510         * tests/test-rbtree_oset.c: Likewise.
31511         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31512         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31513         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31514         * NEWS: Mention the change.
31515
31516 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31517
31518         maint.mk: allow a project to override release-prep commands
31519         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31520         commands into a new rule.
31521         (release-prep): New rule.
31522         (release-prep-hook): New overridable variable.
31523
31524 2009-12-13  Bruno Haible  <bruno@clisp.org>
31525
31526         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31527
31528 2009-12-13  Jim Meyering  <meyering@redhat.com>
31529
31530         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31531         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31532
31533 2009-12-12  Bruno Haible  <bruno@clisp.org>
31534
31535         duplocale: Tweak.
31536         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31537
31538 2009-12-12  Karl Berry  <karl@gnu.org>
31539
31540         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31541
31542 2009-12-12  Bruno Haible  <bruno@clisp.org>
31543
31544         * m4/po.m4: Undo incorrect untabification.
31545
31546 2009-12-12  Bruno Haible  <bruno@clisp.org>
31547
31548         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31549         * modules/c-strtod (Depends-on): Add locale.
31550         * modules/c-strtold (Depends-on): Likewise.
31551
31552 2009-12-12  Bruno Haible  <bruno@clisp.org>
31553
31554         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31555
31556 2009-12-11  Eric Blake  <ebb9@byu.net>
31557
31558         setenv: relax requirement in light of POSIX ruling
31559         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31560         not NULL.
31561         * tests/test-setenv.c (main): Relax test.
31562         * tests/test-unsetenv.c (main): Likewise.
31563         * doc/posix-functions/setenv.texi (setenv): Document this.
31564         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31565
31566 2009-12-11  Bruno Haible  <bruno@clisp.org>
31567
31568         New module 'fd-safer-flag'.
31569         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31570         * lib/dup-safer.c (dup_safer_flag): Remove function.
31571         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31572         * lib/fd-safer.c (fd_safer_flag): Remove function.
31573         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31574         * modules/cloexec (configure.ac): Drop indicator macro.
31575         * modules/fd-safer-flag: New file.
31576         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31577         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31578         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31579
31580 2009-12-11  Bruno Haible  <bruno@clisp.org>
31581
31582         Tests for module 'nl_langinfo'.
31583         * modules/nl_langinfo-tests: New file.
31584         * tests/test-nl_langinfo.sh: New file.
31585         * tests/test-nl_langinfo.c: New file.
31586
31587         New module 'nl_langinfo'.
31588         * lib/nl_langinfo.c: New file.
31589         * m4/nl_langinfo.m4: New file.
31590         * modules/nl_langinfo: New file.
31591         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31592
31593 2009-12-11  Bruno Haible  <bruno@clisp.org>
31594
31595         Tests for module 'langinfo'.
31596         * modules/langinfo-tests: New file.
31597         * tests/test-langinfo.c: New file.
31598
31599         New module 'langinfo'.
31600         * lib/langinfo.in.h: New file.
31601         * m4/langinfo_h.m4: New file.
31602         * modules/langinfo: New file.
31603         * doc/posix-headers/langinfo.texi: Mention the new module.
31604
31605 2009-12-11  Bruno Haible  <bruno@clisp.org>
31606
31607         * lib/config.charset: Untabify.
31608
31609 2009-12-11  Bruno Haible  <bruno@clisp.org>
31610
31611         * modules/unistd-safer (configure.ac): Drop indicator macro.
31612
31613 2009-12-11  Bruno Haible  <bruno@clisp.org>
31614
31615         Move pipe2-safer code to its own file.
31616         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31617         * lib/pipe-safer.c (pipe2_safer): Remove function.
31618         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31619         (Makefile.am): Add it to lib_SOURCES.
31620
31621 2009-12-10  Bruno Haible  <bruno@clisp.org>
31622
31623         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31624
31625 2009-12-10  Bruno Haible  <bruno@clisp.org>
31626
31627         Declare which arguments expect non-NULL values, for GCC and clang.
31628         * build-aux/arg-nonnull.h: New file.
31629         * modules/arg-nonnull: New file.
31630         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31631         (inet_ntop, inet_pton): Use it.
31632         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31633         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31634         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31635         (open, openat): Use it.
31636         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31637         (fnmatch): Use it.
31638         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31639         (getopt, getopt_long, getopt_long_only): Use it.
31640         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31641         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31642         Use it.
31643         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31644         (iconv_open): Use it.
31645         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31646         (strtoimax, strtoumax): Use it.
31647         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31648         (duplocale): Use it.
31649         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31650         (frexp, frexpl): Use it.
31651         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31652         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31653         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31654         (tsearch, tfind, tdelete, twalk): Use it.
31655         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31656         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31657         sigpending): Use it.
31658         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31659         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31660         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31661         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31662         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31663         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31664         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31665         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31666         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31667         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31668         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31669         Use it.
31670         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31671         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31672         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31673         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31674         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31675         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31676         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31677         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31678         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31679         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31680         strtoull, unsetenv): Use it.
31681         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31682         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31683         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31684         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31685         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31686         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31687         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31688         (strcasecmp, strncasecmp): Use it.
31689         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31690         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31691         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31692         rpl_setsockopt): Use it.
31693         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31694         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31695         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31696         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31697         (gettimeofday): Use it.
31698         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31699         (times): Use it.
31700         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31701         (uname): Use it.
31702         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31703         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31704         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31705         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31706         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31707         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31708         unlinkat, write): Use it.
31709         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31710         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31711         * lib/argv-iter.h: Include arg-nonnull.h.
31712         (_ATTRIBUTE_NONNULL_): Remove macro.
31713         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31714         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31715         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31716         optimization.
31717         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31718         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31719         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31720         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31721         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31722         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31723         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31724         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31725         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31726         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31727         * modules/dirent (Depends-on): Add arg-nonnull.
31728         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31729         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31730         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31731         * modules/fnmatch (Depends-on): Add arg-nonnull.
31732         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31733         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31734         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31735         * modules/glob (Depends-on): Add arg-nonnull.
31736         (Makefile.am): Insert arg-nonnull.h into glob.h.
31737         * modules/iconv_open (Depends-on): Add arg-nonnull.
31738         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31739         * modules/inttypes (Depends-on): Add arg-nonnull.
31740         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31741         * modules/locale (Depends-on): Add arg-nonnull.
31742         (Makefile.am): Insert arg-nonnull.h into locale.h.
31743         * modules/math (Depends-on): Add arg-nonnull.
31744         (Makefile.am): Insert arg-nonnull.h into math.h.
31745         * modules/netdb (Depends-on): Add arg-nonnull.
31746         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31747         * modules/search (Depends-on): Add arg-nonnull.
31748         (Makefile.am): Insert arg-nonnull.h into search.h.
31749         * modules/signal (Depends-on): Add arg-nonnull.
31750         (Makefile.am): Insert arg-nonnull.h into signal.h.
31751         * modules/spawn (Depends-on): Add arg-nonnull.
31752         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31753         * modules/stdio (Depends-on): Add arg-nonnull.
31754         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31755         * modules/stdlib (Depends-on): Add arg-nonnull.
31756         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31757         * modules/string (Depends-on): Add arg-nonnull.
31758         (Makefile.am): Insert arg-nonnull.h into string.h.
31759         * modules/strings (Depends-on): Add arg-nonnull.
31760         (Makefile.am): Insert arg-nonnull.h into strings.h.
31761         * modules/sys_socket (Depends-on): Add arg-nonnull.
31762         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31763         * modules/sys_stat (Depends-on): Add arg-nonnull.
31764         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31765         * modules/sys_time (Depends-on): Add arg-nonnull.
31766         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31767         * modules/sys_times (Depends-on): Add arg-nonnull.
31768         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31769         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31770         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31771         * modules/time (Depends-on): Add arg-nonnull.
31772         (Makefile.am): Insert arg-nonnull.h into time.h.
31773         * modules/unistd (Depends-on): Add arg-nonnull.
31774         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31775         * modules/wchar (Depends-on): Add arg-nonnull.
31776         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31777         * modules/argv-iter (Depends-on): Add arg-nonnull.
31778         * tests/test-canonicalize.c (null_ptr): New function.
31779         (main): Use it.
31780         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31781         (main): Use it.
31782         * tests/test-memmem.c (null_ptr): New function.
31783         (main): Use it.
31784         Reported by Jim Meyering.
31785
31786 2009-12-10  Bruno Haible  <bruno@clisp.org>
31787
31788         Use spaces for indentation, not tabs.
31789         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31790         * m4/*.m4: Untabify.
31791         * build-aux/*.h: Untabify.
31792         * tests/**/*.[hc]: Untabify.
31793         * README: New section "Indent with spaces, not TABs", based on
31794         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31795         * NEWS: Mention the change.
31796
31797 2009-12-10  Bruno Haible  <bruno@clisp.org>
31798
31799         pty test: Fix link error.
31800         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31801         test_pty_LDADD.
31802
31803 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31804
31805         * modules/pty: New file.
31806         * modules/pty-tests: New file.
31807         * m4/pty.m4: New file.
31808         * tests/test-pty.c: New file.
31809         * doc/glibc-headers/pty.texi: Modified.
31810         * doc/glibc-functions/forkpty.texi: Modified.
31811         * doc/glibc-functions/openpty.texi: Modified.
31812
31813 2009-12-10  Bruno Haible  <bruno@clisp.org>
31814
31815         Avoid syntax error in C++ mode.
31816         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31817
31818 2009-12-10  Bruno Haible  <bruno@clisp.org>
31819
31820         Use sed with option -e.
31821         * gnulib-tool (func_version, func_emit_copyright_notice,
31822         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31823         option -e to sed.
31824         * modules/link-warning (Makefile.am): Likewise.
31825
31826 2009-12-10  Jim Meyering  <meyering@redhat.com>
31827
31828         mgetgroups: do not write bytes beyond end of malloc'd buffer
31829         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31830         username, we call getgroups with a one-element-shorter buffer,
31831         but still told it the length was original, max_n_groups.
31832
31833 2009-12-09  Eric Blake  <ebb9@byu.net>
31834
31835         cloexec: relax license
31836         * modules/cloexec (Maintainer): Add myself.
31837         (License): Use LGPL, not GPL.
31838
31839         link-warning: optimize generation
31840         * modules/link-warning (Makefile.am): Reduce process usage.
31841
31842 2009-12-09  Bruno Haible  <bruno@clisp.org>
31843
31844         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31845         workaround was added on 2009-11-17.
31846
31847 2009-12-09  Jim Meyering  <meyering@redhat.com>
31848             Bruno Haible  <bruno@clisp.org>
31849
31850         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31851         * modules/link-warning (Makefile.am): Make the comment-removing sed
31852         command more robust in the face of bootstrap-prepended comment lines.
31853
31854 2009-12-09  Bruno Haible  <bruno@clisp.org>
31855
31856         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31857         most one group.
31858
31859 2009-12-09  Simon Josefsson <simon@josefsson.org>
31860             Bruno Haible  <bruno@clisp.org>
31861
31862         * build-aux/link-warning.h: Add copyright notice.
31863         * modules/link-warning (Makefile.am): Generate link-warning.h from
31864         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31865         * NEWS: Mention change in link-warning module.
31866         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31867         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31868         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31869         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31870         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31871         * modules/math (Makefile.am): Add dependency to math.h.
31872         * modules/search (Makefile.am): Add dependency to search.h.
31873         * modules/signal (Makefile.am): Add dependency to signal.h.
31874         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31875         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31876         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31877         * modules/string (Makefile.am): Add dependency to string.h.
31878         * modules/strings (Makefile.am): Add dependency to strings.h.
31879         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31880         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31881         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31882         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31883         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31884         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31885         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31886         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31887         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31888
31889 2009-12-09  Bruno Haible  <bruno@clisp.org>
31890
31891         fchdir: Optimize away rpl_fstat when possible.
31892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31893         REPLACE_OPEN_DIRECTORY.
31894         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31895
31896 2009-12-09  Bruno Haible  <bruno@clisp.org>
31897
31898         * lib/fchdir.c: Update comment.
31899
31900 2009-12-09  Bruno Haible  <bruno@clisp.org>
31901
31902         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31903
31904 2009-12-08  Eric Blake  <ebb9@byu.net>
31905
31906         fchdir: avoid memory leak on re-registration.
31907         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31908
31909 2009-12-08  Jim Meyering  <meyering@redhat.com>
31910
31911         init.sh: avoid Solaris 10 /bin/sh portability problem
31912         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31913         sourced script:
31914           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31915           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31916           bar
31917         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31918         and two tests used that idiom.
31919         * tests/init.sh: Update suggested usage comments.
31920         (path_prepend_): New function, to be used in place
31921         of the --src-path=DIR option.
31922         (setup_): Move PATH-prepending code into path_prepend_.
31923         * tests/test-pread.sh: Adapt to new usage.
31924         * tests/test-xalloc-die.sh: Likewise.
31925
31926 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31927
31928         * doc/gnulib.texi (Glibc pty.h): Add.
31929         * doc/glibc-functions/forkpty.texi: Add.
31930         * doc/glibc-functions/openpty.texi: Add.
31931         Suggested by Bruno Haible.
31932
31933 2009-12-08  Eric Blake  <ebb9@byu.net>
31934
31935         fchdir: fix logic bugs
31936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31937         * tests/test-fchdir.c (main): Enhance test.
31938         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31939         is in use.
31940
31941         dup2: fix logic bugs
31942         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31943         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31944         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31945         exists.
31946         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31947
31948 2009-12-07  Eric Blake  <ebb9@byu.net>
31949
31950         unlink: fix m4 detection
31951         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31952
31953         unistd-safer: add unit test
31954         * modules/unistd-safer-tests: New file.
31955         * tests/test-dup-safer.c: Likewise.
31956         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31957         * tests/test-dup2.c (setmode): Likewise.
31958         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31959
31960         cloexec: preserve text vs. binary across dup_cloexec
31961         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31962         mode.
31963         * modules/dup2-tests (Depends-on): Add binary-io.
31964         * modules/cloexec-tests (Depends-on): Likewise.
31965         * tests/test-dup2.c (setmode, is_mode): New helpers.
31966         (main): Add tests that translation mode is preserved.
31967         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31968         Reported by Bruno Haible.
31969
31970         mgetgroups: reduce duplicate listings
31971         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31972         resulting array.
31973         * tests/test-chown.h (test_chown): Simplify client.
31974         * tests/test-lchown.h (test_lchown): Likewise.
31975
31976 2009-12-06  Bruno Haible  <bruno@clisp.org>
31977
31978         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31979         value.
31980
31981 2009-12-06  Bruno Haible  <bruno@clisp.org>
31982
31983         * lib/progname.c: Include stdio.h, stdlib.h.
31984         (set_program_name): Reject a NULL argument.
31985
31986 2009-12-05  Eric Blake  <ebb9@byu.net>
31987
31988         pipe2-safer: new module
31989         * modules/pipe2-safer: New file.
31990         * lib/unistd-safer.h (pipe2_safer): New prototype.
31991         * lib/unistd--.h (pipe2): New wrapper.
31992         * lib/pipe-safer.c (pipe2_safer): New function.
31993         * modules/pipe (Depends-on): Add pipe2-safer.
31994         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31995
31996         stdlib-safer: preserve cloexec flag for mkostemp[s]
31997         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31998         fd_safer_flag.
31999
32000         unistd-safer: allow preservation of cloexec status via flag
32001         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32002         prototypes.
32003         * lib/dup-safer.c (dup_safer_flag): New function.
32004         * lib/fd-safer.c (fd_safer_flag): Likewise.
32005         * modules/cloexec (configure.ac): Set witness.
32006
32007         test-dup2: enhance test
32008         * modules/dup2-tests (Depends-on): Add cloexec.
32009         * tests/test-dup2.c (main): Enhance test.
32010
32011         cloexec: add dup_cloexec
32012         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32013         header and comments.
32014         * lib/cloexec.c (set_cloexec_flag): Add comments.
32015         (dup_cloexec): New function, with mingw implementation borrowed
32016         from...
32017         * lib/w32spawn.h (dup_noinherit): ...here.
32018         * modules/execute (Depends-on): Add cloexec.
32019         * modules/pipe (Depends-on): Likewise.
32020         * modules/cloexec (Depends-on): Add dup2.
32021         * modules/cloexec-tests (Files): New file.
32022         * tests/test-cloexec.c: Likewise.
32023
32024         test-xalloc-die: fix test for mingw
32025         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32026         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32027         directory and .exe suffix off argv[0] output.
32028
32029         test-fseeko: fix test for mingw
32030         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32031         than undefining fseek, so test will pass on mingw.
32032
32033 2009-12-05  Bruno Haible  <bruno@clisp.org>
32034
32035         * lib/progname.h (set_program_name): Clarify specification.
32036         * lib/progname.c (set_program_name): Likewise.
32037         Reported by Jim Meyering.
32038
32039 2009-12-05  Jim Meyering  <meyering@redhat.com>
32040
32041         maint.mk: backslash-escape parens in default regexp
32042         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32043         backslash-escape the literal parentheses.
32044
32045         maint.mk: news-date-check: use grep -E
32046         * top/maint.mk (today): Define a Make variable, not a...
32047         (news-date-check): ...shell variable.
32048         (news-date-regexp): Use the Make variable.
32049         Use grep's -E option.  Change the failing diagnostic to mention
32050         the variable, $(news-date-regexp).
32051
32052 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32053
32054         maintainer-makefile: allow customization of NEWS entry format
32055         * top/maint.mk (news-date-regexp): New overridable variable.
32056         (news-date-check): Use it.
32057
32058 2009-12-04  Eric Blake  <ebb9@byu.net>
32059
32060         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32061         * lib/mgetgroups.h (xgetgroups): New prototype.
32062         * lib/mgetgroups.c (xgetgroups): New wrapper.
32063         (mgetgroups): Handle ENOSYS.
32064         * modules/mgetgroups (Depends-on): Add realloc.
32065         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32066
32067         mgetgroups: avoid argument promotion issues with -1
32068         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32069         for invalid gid_t.
32070         * tests/test-chown.h (getegid, test_chown): Likewise.
32071         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32072
32073 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32074
32075         exclude: Fix header file problems.
32076         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32077
32078 2009-12-01  Jim Meyering  <meyering@redhat.com>
32079
32080         fts: fts_open: do not let an empty string cause immediate failure
32081         This is required in support of GNU rm, for which the command
32082         "rm A '' B" must process and remove both A and B, in spite of
32083         the empty string argument.
32084         * lib/fts.c (fts_open): Do not let the presence of an empty string
32085         cause fts_open to fail immediately.  Most fts-using tools must be
32086         able to process all arguments, in order, and can be expected to
32087         diagnose such arguments themselves.
32088
32089 2009-11-30  Eric Blake  <ebb9@byu.net>
32090
32091         utimens: fix compilation error
32092         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32093         Declare variable at right scope.
32094
32095 2009-11-29  Jim Meyering  <meyering@redhat.com>
32096
32097         bootstrap: handle perl-5.11's changed --version output
32098         * build-aux/bootstrap (get_version): Handle perl separately,
32099         since perl-5.11's --version output is different.
32100
32101 2009-11-28  Jim Meyering  <meyering@redhat.com>
32102
32103         userspec: depend on the inttostr module, too
32104         * modules/userspec (Depends-on): Add inttostr.
32105
32106         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32107         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32108         number of MAXUID when it evaluates to (uid_t) -1.
32109         Likewise for group ID.  Reported by Matt McCutchen in
32110         <http://savannah.gnu.org/bugs/?28113>
32111
32112         userspec: reformat to use spaces, not TABs
32113         * lib/userspec.c: Expand TABs to spaces.
32114         Add Emacs' "indent-tabs-mode: nil" hint.
32115
32116 2009-11-27  Eric Blake  <ebb9@byu.net>
32117
32118         getopt-gnu: flush out another BSD bug
32119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32120         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32121         flush out BSD bug.
32122         * tests/test-getopt.h (test_getopt): End lists with NULL.
32123         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32124         (test_getopt_long_posix): Enhance test.
32125         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32126         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32127         getopt-gnu.
32128         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32129         Likewise.
32130
32131 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32132
32133         * modules/idpriv-droptemp-tests (Notice): Fix text.
32134
32135 2009-11-27  Jim Meyering  <meyering@redhat.com>
32136
32137         test-xalloc-die: avoid spurious failure due to libtool argv difference
32138         In a libtool-enabled project, this test would fail due to a difference
32139         in the emitted program name, e.g.,
32140         -test-xalloc-die: memory exhausted
32141         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32142         Use program to avoid that.
32143         * modules/xalloc-die-tests (Depends-on): Add progname.
32144         * tests/test-xalloc-die.c: Include progname.h".
32145         (program_name): Remove decl.
32146         (main): Call set_program_name.
32147         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32148
32149 2009-11-26  Richard Jones  <rjones@redhat.com>
32150
32151         w32sock: leave win32 error in place.
32152         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32153
32154 2009-11-26  Eric Blake  <ebb9@byu.net>
32155
32156         init.sh: suggest to use skip_ and fail_ functions in comments
32157         * tests/init.sh: Add a sentence.
32158
32159 2009-11-25  Bruno Haible  <bruno@clisp.org>
32160
32161         init.sh: add documentation in comments
32162         * tests/init.sh: Add some developer and user documentation.
32163
32164 2009-11-26  Jim Meyering  <meyering@redhat.com>
32165
32166         init.sh: accommodate even those who specify bogus srcdir manually
32167         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32168         configure-time tests to be sanitized, so that there is no need to
32169         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32170         (with no double quotes) suffices.  However, since tests may be
32171         invoked manually, and since you may explicitly set srcdir to the
32172         name of a directory containing spaces, do quote its uses here.
32173         * tests/test-pread.sh: Likewise.
32174         Suggested by Bruno Haible.
32175
32176         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32177         * tests/test-pread.sh: Write no data into the pipe, because
32178         test-pread actually reads none.  This avoids a diagnostic,
32179         "bash: echo: write error: Broken pipe", that arises in the unusual
32180         event something is ignoring SIGPIPE, and might be interpreted
32181         as some sort of failure.  Reported by Bruno Haible.
32182
32183 2009-11-25  Jim Meyering  <meyering@redhat.com>
32184
32185         test-pread: cover failure with ESPIPE and EINVAL
32186         * tests/test-pread.c (main): Test for failure, too.
32187         * tests/test-pread.sh: Invoke with stdin on a pipe.
32188         Suggested by Eric Blake.
32189
32190         pread: improvement and fix
32191         * modules/pread (Depends-on): Depend on lseek, for portability to
32192         e.g., mingw.  Suggested by Eric Blake.
32193         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32194
32195         unistd.in.h: correct declaration of pread
32196         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32197         Reported by Richard W.M. Jones.
32198
32199         test-pread.sh: distribute the test script
32200         * modules/pread-tests (Files): Include test-pread.sh.
32201
32202         test-pread.sh: clean up
32203         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32204         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32205         That is unnecessary, since it's always ".".
32206         Suggestion from Eric Blake.
32207
32208         test-pread.sh: make executable
32209         * tests/test-pread.sh: Set executable bit.
32210         Reported by Eric Blake.
32211
32212         correct typo in test-pread.sh
32213         * tests/test-pread.sh: Add #! line.
32214
32215         test pread
32216         * tests/test-pread.c: New file.
32217         * tests/test-pread.sh: Likewise.
32218         * modules/pread-tests: Likewise.
32219
32220         pread: new module
32221         * modules/pread: New file.
32222         * lib/unistd.in.h (pread): Define/declare.
32223         * lib/pread.c (pread): New file.
32224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32225         * modules/unistd (Makefile.am): Substitute witnesses.
32226         * doc/posix-functions/pread.texi (pread): Update.
32227         * MODULES.html.sh: Add pread.
32228
32229 2009-11-25  Jim Meyering  <meyering@redhat.com>
32230
32231         tests/init.sh: new file to be used via most *.sh tests
32232         * tests/init.sh: New file.
32233
32234 2009-11-25  Eric Blake  <ebb9@byu.net>
32235
32236         utimens: work around older Linux failure with symlinks
32237         * lib/utimens.c (lutimensat_works_really): New variable.
32238         (fdutimens, lutimens): Use it to manage kernels that support
32239         nanosecond times on files, but not on symlinks.
32240         Reported by Ondřej Vašík.
32241
32242         utimes: fix configure grammar
32243         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32244
32245 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32246
32247         regex: Fix fastmap for multibyte character ranges.
32248         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32249         characters when a multibyte character range is included.
32250
32251 2009-11-22  Andy Wingo  <wingo@pobox.com>
32252
32253         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32254         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32255
32256 2009-11-24  Bruno Haible  <bruno@clisp.org>
32257
32258         doc: Most *_l functions exist in MacOS X 10.5.
32259         * doc/posix-functions/duplocale.texi: Update platforms list.
32260         * doc/posix-functions/freelocale.texi: Likewise.
32261         * doc/posix-functions/newlocale.texi: Likewise.
32262         * doc/posix-functions/uselocale.texi: Likewise.
32263         * doc/posix-functions/isalnum_l.texi: Likewise.
32264         * doc/posix-functions/isalpha_l.texi: Likewise.
32265         * doc/posix-functions/isblank_l.texi: Likewise.
32266         * doc/posix-functions/iscntrl_l.texi: Likewise.
32267         * doc/posix-functions/isdigit_l.texi: Likewise.
32268         * doc/posix-functions/isgraph_l.texi: Likewise.
32269         * doc/posix-functions/islower_l.texi: Likewise.
32270         * doc/posix-functions/isprint_l.texi: Likewise.
32271         * doc/posix-functions/ispunct_l.texi: Likewise.
32272         * doc/posix-functions/isspace_l.texi: Likewise.
32273         * doc/posix-functions/isupper_l.texi: Likewise.
32274         * doc/posix-functions/iswalnum_l.texi: Likewise.
32275         * doc/posix-functions/iswalpha_l.texi: Likewise.
32276         * doc/posix-functions/iswblank_l.texi: Likewise.
32277         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32278         * doc/posix-functions/iswctype_l.texi: Likewise.
32279         * doc/posix-functions/iswdigit_l.texi: Likewise.
32280         * doc/posix-functions/iswgraph_l.texi: Likewise.
32281         * doc/posix-functions/iswlower_l.texi: Likewise.
32282         * doc/posix-functions/iswprint_l.texi: Likewise.
32283         * doc/posix-functions/iswpunct_l.texi: Likewise.
32284         * doc/posix-functions/iswspace_l.texi: Likewise.
32285         * doc/posix-functions/iswupper_l.texi: Likewise.
32286         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32287         * doc/posix-functions/isxdigit_l.texi: Likewise.
32288         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32289         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32290         * doc/posix-functions/strcoll_l.texi: Likewise.
32291         * doc/posix-functions/strfmon_l.texi: Likewise.
32292         * doc/posix-functions/strftime_l.texi: Likewise.
32293         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32294         * doc/posix-functions/strxfrm_l.texi: Likewise.
32295         * doc/posix-functions/tolower_l.texi: Likewise.
32296         * doc/posix-functions/toupper_l.texi: Likewise.
32297         * doc/posix-functions/towctrans_l.texi: Likewise.
32298         * doc/posix-functions/towlower_l.texi: Likewise.
32299         * doc/posix-functions/towupper_l.texi: Likewise.
32300         * doc/posix-functions/wcscoll_l.texi: Likewise.
32301         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32302         * doc/posix-functions/wctrans_l.texi: Likewise.
32303         * doc/posix-functions/wctype_l.texi: Likewise.
32304         * doc/glibc-functions/strptime_l.texi: Likewise.
32305         * doc/glibc-functions/strtod_l.texi: Likewise.
32306         * doc/glibc-functions/strtof_l.texi: Likewise.
32307         * doc/glibc-functions/strtol_l.texi: Likewise.
32308         * doc/glibc-functions/strtold_l.texi: Likewise.
32309         * doc/glibc-functions/strtoll_l.texi: Likewise.
32310         * doc/glibc-functions/strtoul_l.texi: Likewise.
32311         * doc/glibc-functions/strtoull_l.texi: Likewise.
32312         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32313         * doc/glibc-functions/wcstod_l.texi: Likewise.
32314         * doc/glibc-functions/wcstof_l.texi: Likewise.
32315         * doc/glibc-functions/wcstol_l.texi: Likewise.
32316         * doc/glibc-functions/wcstold_l.texi: Likewise.
32317         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32318         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32319         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32320
32321 2009-11-24  Bruno Haible  <bruno@clisp.org>
32322
32323         duplocale: Fix logic bug.
32324         * lib/duplocale.c: Don't include <langinfo.h>.
32325         (_NL_LOCALE_NAME): Remove macro.
32326         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32327         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32328
32329 2009-11-23  Jim Meyering  <meyering@redhat.com>
32330
32331         test-update-copyright: don't hard-code /usr/bin/perl
32332         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32333         perl to print the current year.  Gilles Espinasse reported that
32334         the replaced use of perl was hard-coded as /usr/bin/perl.
32335
32336 2009-11-23  Bruno Haible  <bruno@clisp.org>
32337
32338         duplocale: Add support for glibc 2.3.x.
32339         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32340
32341 2009-11-22  Bruno Haible  <bruno@clisp.org>
32342
32343         vasnprintf: Tiny optimization.
32344         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32345         MacOS X.
32346
32347 2009-11-22  Bruno Haible  <bruno@clisp.org>
32348
32349         Tests for module 'duplocale'.
32350         * modules/duplocale-tests: New file.
32351         * tests/test-duplocale.c: New file.
32352
32353         New module 'duplocale'.
32354         * m4/duplocale.m4: New file.
32355         * lib/locale.in.h (duplocale): New declaration.
32356         * lib/duplocale.c: New file.
32357         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32358         gl_LOCALE_H_DEFAULTS): New macros.
32359         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32360         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32361         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32362         REPLACE_DUPLOCALE.
32363         * modules/duplocale: New file.
32364         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32365
32366 2009-11-22  Bruno Haible  <bruno@clisp.org>
32367
32368         * modules/locale-tests (configure.ac): Test for newlocale function.
32369         * tests/test-locale.c: When the system has extended locale functions,
32370         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32371
32372         locale: Make locale_t available when possible.
32373         * lib/locale.in.h: Include <xlocale.h> when it exists.
32374         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32375         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32376         * modules/locale (Depends-on): Add extensions.
32377         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32378         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32379
32380 2009-11-22  Bruno Haible  <bruno@clisp.org>
32381
32382         Add comments.
32383         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32384         invocation.
32385         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32386         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32387         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32388
32389 2009-11-22  Bruno Haible  <bruno@clisp.org>
32390
32391         error: account for the possibility of freopen (stdout).
32392         * lib/error.c: Include <unistd.h>.
32393         (flush_stdout): New function, extracted from error and error_at_line.
32394         Determine stdout's fd dynamically.
32395         (error, error_at_line): Invoke flush_stdout.
32396         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32397         * modules/error (Depends-on): Add unistd.
32398
32399 2009-11-22  Bruno Haible  <bruno@clisp.org>
32400
32401         diffseq: Add comment.
32402         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32403
32404 2009-11-22  Jim Meyering  <meyering@redhat.com>
32405
32406         c-stack: avoid defining an unused static function
32407         * lib/c-stack.c (find_stack_direction): Do not define this function
32408         when it will not be used.
32409
32410         diffseq: avoid spurious gcc warnings
32411         * lib/diffseq.h (IF_LINT2): Define.
32412         (compareseq): Use it to initialize two members of "part".
32413         This avoids two used-uninitialized warnings.
32414
32415 2009-11-21  Jim Meyering  <meyering@redhat.com>
32416
32417         c-stack: avoid "ignoring return value of `write'" warning
32418         * lib/c-stack.c: Include "ignore-value.h".
32419         (die): Explicitly ignore each write return value.
32420         * modules/c-stack (Depends-on): Add ignore-value.
32421
32422 2009-11-21  Bruno Haible  <bruno@clisp.org>
32423
32424         diffseq: reduce scope of variable 'best'.
32425         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32426         variable, earlier used for two different purposes.
32427
32428 2009-11-21  Jim Meyering  <meyering@redhat.com>
32429
32430         diffseq: remove useless assignment to "best"
32431         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32432         assignment.  At that point "best" is already guaranteed to be zero.
32433
32434 2009-11-20  Eric Blake  <ebb9@byu.net>
32435
32436         build: mention ftp redirector in release announcements
32437         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32438         values that used to come from cfg.mk; mention FTP redirect URL.
32439         * build-aux/announce-gen: Mention the mirror list.
32440         Suggested by Karl Berry.
32441
32442         nanosleep: improve port to mingw
32443         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32445         LIB_NANOSLEEP, but only when needed.
32446         * modules/select (Link): Document LIBSOCKET.
32447         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32448         enough.
32449
32450         nanosleep: work around cygwin bug
32451         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32452         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32453         bug.
32454         (getnow): Delete, not needed.
32455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32456         LIB_CLOCK_GETTIME.
32457         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32458         clock-time, gettime.
32459         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32460         bug.
32461         * modules/nanosleep-tests: New test.
32462         * tests/test-nanosleep.c: New file.
32463
32464         sleep: work around cygwin bug
32465         * lib/sleep.c (rpl_sleep): Work around the bug.
32466         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32467         (gl_PREREQ_SLEEP): Delete unused macro.
32468         * modules/sleep (Depends-on): Add verify.
32469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32470         * modules/unistd (Makefile.am): Substitute witness.
32471         * lib/unistd.in.h (sleep): Update prototype.
32472         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32473         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32474         * modules/sleep-tests (Depends-on): Check for alarm.
32475
32476 2009-11-20  Jim Meyering  <meyering@redhat.com>
32477
32478         maint.mk: improve sc_prohibit_magic_number_exit
32479         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32480         so it does not match uses like System.exit(1).
32481         Add comments showing how to correct all offenders.
32482
32483 2009-11-19  Eric Blake  <ebb9@byu.net>
32484
32485         xalloc-die-tests: add missing library
32486         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32487
32488         test-xvasprintf: silence compiler warnings
32489         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32490         empty string from gcc.
32491
32492 2009-11-19  Jim Meyering  <meyering@redhat.com>
32493
32494         xfreopen: new module, from coreutils
32495         * modules/xfreopen: New module.
32496         * lib/xfreopen.c: New file.
32497         * lib/xfreopen.h: New file.
32498         * MODULES.html.sh (File stream based Input/Output"): Add it.
32499
32500 2009-11-19  Eric Blake  <ebb9@byu.net>
32501
32502         manywarnings: depend on warnings
32503         * modules/manywarnings (Depends-on): Add warnings.
32504
32505         build: avoid compiler warnings
32506         * lib/select.c (rpl_select): Delete unused variable.
32507         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32508
32509 2009-11-18  Eric Blake  <ebb9@byu.net>
32510
32511         tests: avoid false negative with --with-packager
32512         * tests/test-version-etc.sh: Discard packager information.
32513         * tests/test-argp-version-etc-1.sh: Likewise.
32514         Reported by Mike Frysinger.
32515
32516         utimens: fix regression on Solaris
32517         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32518         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32519         can only change fd timestamps via futimesat.  Instead, use an
32520         additional witness macro to avoid BSD bug.
32521         Reported by Jim Meyering.
32522
32523 2009-11-17  Eric Blake  <ebb9@byu.net>
32524
32525         usleep: use it to simplify tests
32526         * modules/stat-time-tests (Depends-on): Add usleep.
32527         (configure.ac): Drop usleep check.
32528         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32529         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32530         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32531         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32532         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32533         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32534         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32535         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32536         Likewise.
32537         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32538         * tests/test-lchown.h (nap): Likewise.
32539         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32540         * tests/test-stat-time.c (nap): Likewise.
32541         * tests/test-utimens-common.h (nap): Update comments.
32542
32543         usleep: new module
32544         * modules/usleep: New file.
32545         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32546         * lib/usleep.c (usleep): Likewise.
32547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32548         * modules/unistd (Makefile.am): Substitute witnesses.
32549         * lib/unistd.in.h (usleep): Add declaration.
32550         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32551         * MODULES.html.sh (Date and time): Likewise.
32552         * modules/usleep-tests (Depends-on): New test.
32553         * tests/test-usleep.c: New file.
32554
32555         chown: work around OpenBSD bug
32556         * lib/chown.c (rpl_chown): Work around the bug.
32557         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32558         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32559         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32560         * modules/chown (Depends-on): Add stdbool.
32561         * modules/lchown (Depends-on): Likewise.
32562         * doc/posix-functions/chown.texi (chown): Document the bug.
32563         * doc/posix-functions/lchown.texi (lchown): Likewise.
32564         * tests/test-lchown.h (test_chown): Relax test.
32565
32566         mkstemp: avoid conflict with C++ keyword template
32567         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32568         * lib/mkostemp.c (mkostemp): Likewise.
32569         * lib/mkostemps.c (mkostemps): Likewise.
32570         * lib/mkstemp.c (mkstemp): Likewise.
32571         * lib/mkstemps.c (mkstemps): Likewise.
32572
32573         xalloc-die-tests: optimize
32574         * tests/test-xalloc-die.sh: Reduce number of processes.
32575
32576 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32577
32578         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32579         patch from ludo@gnu.org (Ludovic Courtès).
32580
32581 2009-11-17  Jim Meyering  <meyering@redhat.com>
32582
32583         version-etc: use proper license string
32584         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32585         * modules/version-etc-fsf: Likewise.
32586
32587 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32588
32589         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32590         printed to stdout.  Deal with EOL differences.
32591
32592 2009-11-17  Eric Blake  <ebb9@byu.net>
32593
32594         unsetenv: work around Solaris bug
32595         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32596         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32597         Reported by Jim Meyering.
32598
32599         vasnprintf: avoid compiler warnings
32600         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32601         variables.
32602         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32603
32604 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32605
32606         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32607         settings since xalloc-die is no longer the self test,
32608         xalloc-die.sh is.
32609
32610 2009-11-17  Jim Meyering  <meyering@redhat.com>
32611
32612         test-xalloc-die.sh: make the code agree with the commit log
32613         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32614         at the end, just in case you happen to have a test-xalloc-die
32615         program in some other PATH directory.
32616
32617         test-xalloc-die.sh: fix a portability bug
32618         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32619         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32620         Otherwise, argv[0] (as often seen in diagnostics) would be too
32621         system-dependent, sometimes with, and sometimes without the leading "./".
32622
32623         version-etc-fsf: relax license to LGPLv3+
32624         * modules/version-etc-fsf (License): Relax license.
32625
32626 2009-11-16  Eric Blake  <ebb9@byu.net>
32627
32628         xalloc-die-tests: avoid printing null pointer
32629         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32630         shell script.
32631         * tests/test-xalloc-die.c (program_name): Declare.
32632         * tests/test-xalloc-die.sh (tmpfiles): New file.
32633
32634         setenv, unsetenv: work around various bugs
32635         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32636         (setenv) [HAVE_SETENV]: Work around bugs.
32637         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32638         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32639         for bugs.
32640         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32641         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32642         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32643         * modules/stdlib (Makefile.am): Update substitutions.
32644         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32645         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32646         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32647         * modules/setenv-tests: New test.
32648         * modules/unsetenv-tests: Likewise.
32649         * tests/test-setenv.c: New file.
32650         * tests/test-unsetenv.c: Likewise.
32651
32652 2009-11-16  Jim Meyering  <meyering@redhat.com>
32653
32654         version-etc: relax license to LGPLv3+
32655         * modules/version-etc (License): Relax license.
32656
32657         better AC_REQUIRE expanded-before-required-warning avoidance
32658         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32659         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32660         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32661         which is no longer needed.
32662
32663 2009-11-16  Eric Blake  <ebb9@byu.net>
32664
32665         test-freading: clean up temporary file
32666         * tests/test-freading.c (main): Remove file on success, and use
32667         ASSERT more liberally.
32668         Reported by Jim Meyering.
32669
32670 2009-11-16  Jim Meyering  <meyering@redhat.com>
32671
32672         avoid new AC_REQUIRE expanded-before-required warnings
32673         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32674         merely using it.
32675         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32676         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32677
32678 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32679
32680         * tests/test-xalloc-die.c: New file.
32681         * modules/xalloc-die-tests: New file.
32682         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32683         XFAIL_TESTS so it can be appended by modules.
32684
32685 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32686
32687         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32688         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32689
32690 2009-11-14  Eric Blake  <ebb9@byu.net>
32691
32692         fnmatch: avoid compiler warning
32693         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32694         to silence compiler warning about mismatch signedness in ?:.
32695         Reported by Robert Millan.
32696
32697         intprops: add double-inclusion guard
32698         * lib/intprops.h: Allow idempotent includes.
32699         Suggested by Bruce Korb.
32700
32701         openat: detect Solaris fchownat bug
32702         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32703         penalizing glibc chownat when only lchownat is broken.
32704         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32705         trailing slash bugs.
32706         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32707         * modules/openat-tests (Files): Include more files.
32708         (Depends-on): Add mgetgroups, sleep, stat-time.
32709         (configure.ac): Add additional checks.
32710         (Makefile.am): Build new test.
32711         * tests/test-fchownat.c: New file.
32712
32713         lchown: detect Solaris and FreeBSD bug
32714         * lib/lchown.c (rpl_lchown): Work around bug.
32715         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32717         * modules/unistd (Makefile.am): Populate it.
32718         * lib/unistd.in.h (lchown): Update declaration.
32719         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32720         * modules/lchown-tests: New file.
32721         * tests/test-lchown.h (test_lchown): Likewise.
32722         * tests/test-lchown.c (main): Likewise.
32723
32724         chown: detect Solaris and FreeBSD bug
32725         * lib/chown.c (rpl_chown): Work around bug.
32726         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32727         (gl_PREREQ_CHOWN): Delete.
32728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32729         * modules/unistd (Makefile.am): Populate it.
32730         * lib/unistd.in.h (chown): Update declaration.
32731         * lib/lchown.c (chown): Update client.
32732         * modules/lchown (Depends-on): Add lstat.
32733         * doc/posix-functions/chown.texi (chown): Document the bug.
32734         * doc/posix-functions/getgroups.texi (getgroups): Document
32735         getgroups pitfall.
32736         * modules/chown-tests: New file.
32737         * tests/test-chown.h (test_chown): Likewise.
32738         * tests/test-chown.c (main): Likewise.
32739
32740 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32741
32742         gnulib-tool: correctly detect absence of m4 directories
32743         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32744
32745 2009-11-14  Jim Meyering  <meyering@redhat.com>
32746
32747         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32748         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32749
32750 2009-11-14  John W. Eaton  <jwe@gnu.org>
32751
32752         strftime.h: wrap funtion declaration in extern "C" block
32753         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32754
32755 2009-11-13  Eric Blake  <ebb9@byu.net>
32756
32757         getgroups: avoid compiler warning
32758         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32759
32760         getgroups: work around FreeBSD bug
32761         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32762         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32763         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32764         * tests/test-getgroups.c (main): Fix buffer overrun.
32765
32766         getgroups: avoid compilation failure
32767         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32768         * modules/getgroups (Depends-on): Add stdint.
32769
32770 2009-11-13  Jim Meyering  <meyering@redhat.com>
32771
32772         test-getgroups: avoid compilation failure
32773         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32774
32775 2009-11-13  Eric Blake  <ebb9@byu.net>
32776
32777         mgetgroups: new module, taken from coreutils
32778         * modules/mgetgroups: New file.
32779         * lib/mgetgroups.h: Likewise.
32780         * lib/mgetgroups.c (mgetgroups): Likewise.
32781         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32782         * MODULES.html.sh (Users and groups): Mention it.
32783
32784         getgroups: don't expose GETGROUPS_T to user
32785         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32786         an element at a time if GETGROUPS_T is wrong size.
32787         * lib/getugroups.h (getugroups): Change signature.
32788         * lib/unistd.in.h (getgroups): Likewise.
32789         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32790         signature needs fixing.
32791         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32792         AC_TYPE_GETGROUPS.
32793         * modules/group-member (Depends-on): Add getgroups.
32794         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32795         (group_member): Rely on getgroups replacement.
32796         * lib/getugroups.c (getugroups): Use gid_t.
32797         * tests/test-getgroups.c (main): Likewise.
32798         * NEWS: Mention the signature change.
32799         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32800         problem with signature.
32801         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32802         GETGROUPS_T is still useful for setgroups.
32803
32804         getgroups, getugroups: provide stubs for mingw
32805         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32806         * lib/getugroups.c (getugroups): Likewise.
32807         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32808         function.  Modernize replacement scheme.
32809         (gl_PREREQ_GETGROUPS): Delete.
32810         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32811         * modules/getgroups (configure.ac): Declare witness.
32812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32813         * modules/unistd (Depends-on): Substitute witness.
32814         * lib/unistd.in.h (getgroups): Declare replacement.
32815
32816         getgroups: avoid calling exit
32817         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32818         drop xalloc.
32819         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32820         dependencies.
32821         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32822         exiting, in the rare case of malloc failure.
32823
32824         getgroups: fix logic error
32825         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32826         has more than 20 groups.
32827         * modules/getgroups-tests: New test.
32828         * tests/test-getgroups.c: New file.
32829
32830 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32831
32832         * tests/test-base64.c: Improve.
32833
32834 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32835
32836         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32837         Blake <ebb9@byu.net>.
32838
32839 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32840
32841         * tests/test-xvasprintf.c: Add %s%s related checks.
32842
32843 2009-11-12  Eric Blake  <ebb9@byu.net>
32844
32845         version-etc: match standards.texi style
32846         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32847         and use <> only for URLs.
32848
32849 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32850
32851         fts: do not fail on a submount during traversal
32852         * lib/fts.c (fts_build): Read the stat info again after opening
32853         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32854         Original report at http://bugzilla.redhat.com/501848.
32855
32856 2009-11-12  Jim Meyering  <meyering@redhat.com>
32857
32858         bootstrap: sync from coreutils
32859         * build-aux/bootstrap (bootstrap_epilogue): New function.
32860         Use git_modules_config in one more place.  This make bootstrap's
32861         --gnulib-srcdir option more useful for testing.
32862
32863         bootstrap: generalize autoheader check
32864         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32865         AC_CONFIG_HEADERS.
32866
32867 2009-11-11  Eric Blake  <ebb9@byu.net>
32868
32869         mkfifoat: use new modules for Solaris and BSD bugs
32870         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32871         * lib/mkfifoat.c (mknodat): Split...
32872         * lib/mknodat.c (mknodat): ...into new file.
32873         * modules/mkfifoat (Files): Ship new file.
32874         (Depends-on): Add mkfifo, mknod.
32875         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32876         (Depends-on): Add symlink.
32877         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32878         redundant with test_mkfifo.h.
32879         (do_mkfifoat, do_mknodat): New helpers.
32880
32881         mknod: new module
32882         * modules/mknod: New file.
32883         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32884         * lib/mknod.c (mknod): Likewise.
32885         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32886         defaults.
32887         * modules/sys_stat (Makefile.am): Substitute them.
32888         * lib/sys_stat.in.h (mknod): Declare replacement.
32889         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32890         Document it.
32891         * doc/posix-functions/mknod.texi (mknod): Likewise.
32892         * modules/mknod-tests: New test.
32893         * tests/test-mknod.c: Likewise.
32894
32895         mkfifo: new module
32896         * modules/mkfifo: New file.
32897         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32898         * lib/mkfifo.c (mkfifo): Likewise.
32899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32900         defaults.
32901         * modules/sys_stat (Makefile.am): Substitute them.
32902         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32903         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32904         Document it.
32905         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32906         * modules/mkfifo-tests: New test.
32907         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32908         from test-mkfifoat.c.
32909         * tests/test-mkfifo.c: New file.
32910
32911         readlink: detect FreeBSD bug
32912         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32913         slash on symlink.
32914         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32915         * tests/test-readlink.h (test_readlink): Enhance test.
32916
32917         symlink: detect FreeBSD bug
32918         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32919         slash on symlink.
32920         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32921         * tests/test-symlink.h (test_symlink): Enhance test.
32922
32923 2009-11-10  Eric Blake  <ebb9@byu.net>
32924
32925         link: detect FreeBSD bug
32926         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32927         symlink.
32928         * doc/posix-functions/link.texi (link): Document the bug.
32929         * tests/test-link.h (test_link): Enhance test.
32930         * tests/test-linkat.c (main): Update caller.
32931
32932         unlink, remove: detect FreeBSD bug
32933         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32934         slash on symlink.
32935         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32936         * doc/posix-functions/remove.texi (remove): Likewise.
32937         * tests/test-unlink.h (test_unlink): Enhance test.
32938         * tests/test-remove.c (main): Likewise.
32939
32940 2009-11-09  Eric Blake  <ebb9@byu.net>
32941
32942         rename: detect FreeBSD bug
32943         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32944         slash on symlink.
32945         * modules/renameat-tests (Depends-on): Add filenamecat.
32946         * tests/test-rename.h (test_rename): Allow one more errno.
32947         * tests/test-renameat.c (main): Likewise.
32948         * doc/posix-functions/rename.texi (rename): Document the bug.
32949
32950         open: detect FreeBSD bug
32951         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32952         symlink.
32953         * doc/posix-functions/open.texi (open): Document the bug.
32954         * doc/posix-functions/utimes.texi (utimes): Likewise.
32955         * tests/test-open.h (test_open): Add parameters, and test symlink
32956         handling.
32957         * tests/test-open.c (main): Adjust caller.
32958         * tests/test-fcntl-safer.c (main): Likewise.
32959         * modules/open-tests (Depends-on): Add stdbool, symlink.
32960         * modules/fcntl-safer-tests (Depends-on): Likewise.
32961         * tests/test-openat.c (main): Add test-open tests.
32962
32963         stat: detect FreeBSD bug
32964         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32965         symlink.
32966         * doc/posix-functions/stat.texi (stat): Document the bug.
32967         * tests/test-stat.h (test_stat_func): Add argument.
32968         * tests/test-stat.c (main): Adjust caller.
32969         * tests/test-fstatat.c (main): Likewise.
32970         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32971         Reported by Jim Meyering.
32972
32973 2009-11-09  James Youngman  <jay@gnu.org>
32974
32975         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32976         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32977
32978 2009-11-08  Jim Meyering  <meyering@redhat.com>
32979
32980         utimens: remove invalid futimesat call
32981         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32982         It used the file descriptor of the target file as the DIR_FD
32983         parameter and NULL as the file name.  That caused failure with
32984         errno == EFAULT on FreeBSD-8.0-rc2
32985
32986 2009-11-07  Eric Blake  <ebb9@byu.net>
32987
32988         fflush, freadseek: use fseeko, not fseek
32989         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32990         (clear_ungetc_buffer): Avoid potential problems on large files.
32991         * lib/freadseek.c (freadseek): Likewise.
32992         * modules/freadseek (Depends-on): Add fseeko.
32993         * modules/fseek (configure.ac): Set a witness.
32994         * tests/test-fflush.c (main): Use fseeko.
32995         * tests/test-fpurge.c (fseek): Disable link warning.
32996         * tests/test-freadable.c (fseek): Likewise.
32997         * tests/test-freading.c (fseek): Likewise.
32998         * tests/test-fseeko.c (fseek): Likewise.
32999         * tests/test-ftell.c (fseek): Likewise.
33000         * tests/test-ftello.c (fseek): Likewise.
33001         * tests/test-fwritable.c (fseek): Likewise.
33002         * tests/test-fwriting.c (fseek): Likewise.
33003
33004 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33005
33006         * modules/memchr (Depends-on): Drop getpagesize dependency.
33007
33008 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33009
33010         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33011         Reported by Ludovic Courtès.
33012         * build-aux/pmccabe2html: Improve example usage.
33013         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33014
33015 2009-11-06  Jim Meyering  <meyering@redhat.com>
33016
33017         do-release-commit-and-tag: New module.
33018         Automate the release-commit and tag process.
33019         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33020         * modules/do-release-commit-and-tag: New file.
33021         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33022
33023 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33024
33025         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33026         because test-select.c uses inet_pton.
33027
33028 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33029
33030         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33031         GETADDRINFO_LIB.  Bump serial number.
33032         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33033         Suggested by Eric Blake <ebb9@byu.net>.
33034
33035 2009-11-05  Eric Blake  <ebb9@byu.net>
33036
33037         strtod: detect darwin bug
33038         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33039         Reported by Leo Davis.
33040
33041         freopen-safer: new module
33042         * modules/freopen-safer: New module.
33043         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33044         * lib/freopen-safer.c (freopen_safer): New file.
33045         * lib/stdio-safer.h (freopen_safer): New declaration.
33046         * lib/stdio--.h (freopen): New override.
33047         * MODULES.html.sh (File stream based Input/Output): Mention it.
33048         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33049         freopen-safer module.
33050         * doc/posix-functions/stderr.texi (stderr): Likewise.
33051         * doc/posix-functions/stdin.texi (stdin): Likewise.
33052         * doc/posix-functions/stdout.texi (stdout): Likewise.
33053         * modules/freopen-safer-tests: New test.
33054         * tests/test-reopen-safer.c: New file.
33055
33056 2009-11-05  Jim Meyering  <meyering@redhat.com>
33057
33058         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33059         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33060
33061 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33062
33063         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33064
33065 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33066
33067         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33068
33069 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33070
33071         Fix link error.
33072         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33073         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33074
33075 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33076
33077         * tests/test-func.c: Also test value of __func__.
33078
33079 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33080
33081         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33082         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33083
33084 2009-11-05  Bruno Haible  <bruno@clisp.org>
33085
33086         Fix link error.
33087         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33088         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33089         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33090
33091 2009-11-05  Bruno Haible  <bruno@clisp.org>
33092
33093         Tests for module 'inet_pton'.
33094         * modules/inet_pton-tests: New file.
33095         * tests/test-inet_pton.c: New file.
33096
33097 2009-11-05  Bruno Haible  <bruno@clisp.org>
33098
33099         Tests for module 'inet_ntop'.
33100         * modules/inet_ntop-tests: New file.
33101         * tests/test-inet_ntop.c: New file.
33102
33103 2009-11-04  Eric Blake  <ebb9@byu.net>
33104
33105         stdlib-safer: wrap all mkstemp variants
33106         * modules/mkostemp (configure.ac): Set witness.
33107         * modules/mkostemps (configure.ac): Likewise.
33108         * modules/mkstemps (configure.ac): Likewise.
33109         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33110         (mkstemps_safer): Wrap more functions.
33111         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33112         wrapping.
33113         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33114         (mkstemps_safer): Implement the wrappers.
33115
33116         mkstemps, mkostemps: new modules
33117         * modules/mkostemps: New module.
33118         * modules/mkstemps: Likewise.
33119         * lib/mkostemps.c (mkostemps): New file.
33120         * lib/mkstemps.c (mkstemps): Likewise.
33121         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33122         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33124         * modules/stdlib (Makefile.am): Substitute them.
33125         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33126         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33127         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33128         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33129         * MODULES.html.sh (File system functions): Mention them.
33130
33131         tempname: resync from glibc
33132         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33133         same values for __GT_FILE as glibc.  Abort even when assertions
33134         are disabled.
33135         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33136         match its value otherwise.  Allow idempotent inclusion.
33137         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33138         * lib/mkostemp.c (mkostemp): Likewise.
33139         * lib/mkstemp.c (mkstemp): Likewise.
33140         * lib/tmpfile.c (tmpfile): Likewise.
33141         * NEWS: Document this.
33142
33143         utimens: fix use of futimens on older Linux
33144         * lib/utimens.c (fdutimens): Use updated, rather than original,
33145         timespec to avoid bug in older Linux kernel.
33146         Reported by Simon Josefsson.
33147
33148 2009-11-04  Bruno Haible  <bruno@clisp.org>
33149
33150         Make num_processors more flexible and consistent.
33151         * lib/nproc.h (enum nproc_query): New type.
33152         (num_processors): Add a 'query' argument.
33153         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33154         (num_processors): Add a 'query' argument. Test the value of the
33155         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33156         mingw, count the number of CPUs available for the current process.
33157         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33158         Check for sched_getaffinity and sched_getaffinity_np.
33159         * modules/nproc (Depends-on): Add c-ctype, extensions.
33160         * NEWS: Mention the change.
33161
33162 2009-11-03  Bruno Haible  <bruno@clisp.org>
33163
33164         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33165
33166 2009-11-03  Jim Meyering  <meyering@redhat.com>
33167
33168         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33169         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33170         if it is defined.
33171
33172 2009-11-02  Eric Blake  <ebb9@byu.net>
33173
33174         mktime, timegm: share common declaration
33175         * lib/mktime-internal.h: New file.
33176         * lib/mktime.c: Use it rather than open-coding a declaration.
33177         * lib/timegm.c: Likewise.
33178         * modules/mktime (Files): Ship it.
33179         * modules/timegm (Files): Likewise.
33180         Suggested by Bruno Haible.
33181
33182         test-update-copyright: update test to match script changes
33183         * tests/test-update-copyright.sh: Avoid hard-coding perl
33184         location.  Don't update *.bak created by earlier runs.
33185
33186 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33187             Simon Josefsson  <simon@josefsson.org>
33188             Bruno Haible  <bruno@clisp.org>
33189
33190         Fix link error on Solaris 8.
33191         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33192         also in libnsl. Define also INET_PTON_LIB.
33193         * modules/inet_pton (Link): New section.
33194
33195 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33196             Bruno Haible  <bruno@clisp.org>
33197
33198         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33199         * modules/inet_ntop (Link): New section.
33200         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33201
33202 2009-11-02  Eric Blake  <ebb9@byu.net>
33203
33204         maint: avoid compiler warnings in m4 macros
33205         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33206         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33207
33208 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33209
33210         * m4/pmccabe2html.m4: Remove file.
33211         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33212         function.  Change maintainer.
33213         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33214         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33215         Courtès).
33216
33217 2009-10-31  Eric Blake  <ebb9@byu.net>
33218
33219         fseeko: fix m4 regression
33220         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33221         regression from 2009-10-27.
33222         Reported by Ralf Wildenhues.
33223
33224 2009-10-31  Jim Meyering  <meyering@redhat.com>
33225
33226         inttostr: aesthetics and improved (compile-time) safety
33227         Define inttype_is_signed rather than inttype_is_unsigned,
33228         since the sole use is via "#if inttype_is_signed".
33229         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33230         inttype_is_unsigned.
33231         * lib/offtostr.c (inttype_is_signed): Likewise.
33232         * lib/uinttostr.c (inttype_is_signed): Likewise.
33233         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33234         * lib/inttostr.c (inttostr): Use verify to cross-check the
33235         inttype_is_signed value and the signedness of the actual type.
33236         * modules/inttostr (Depends-on): Add verify.
33237
33238 2009-10-30  Eric Blake  <ebb9@byu.net>
33239
33240         build: avoid compiler warnings
33241         * lib/fchmodat.c (lchmod): Mark unused variables.
33242         * lib/getopt.c (_getopt_initialize): Likewise.
33243         * lib/mktime.c (__mktime_internal): Provide prototype.
33244         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33245         older gcc that do not understand #pragma GCC diagnostic.
33246         * lib/uinttostr.c (inttype_is_unsigned): Define.
33247         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33248
33249 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33250
33251         stat: fix compilation on AIX
33252         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33253         only see struct stat64.
33254
33255 2009-10-30  Eric Blake  <ebb9@byu.net>
33256
33257         exclude: make more robust
33258         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33259         rather than masking a coding bug.
33260         Suggested by Bruno Haible.
33261
33262 2009-10-30  Jim Meyering  <meyering@redhat.com>
33263
33264         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33265         Rather than putting #!/usr/bin/perl on the first line,
33266         start with a variant of what's recommended by "man perlrun" that
33267         invokes the first "perl" program from your shell's search path.
33268         * build-aux/gitlog-to-changelog: Replace #!... as above.
33269         Add a "Local Variables" perl mode setting.
33270         Prompted by a patch from Ludovic Courtès.
33271         Improved by Eric Blake.
33272         * build-aux/useless-if-before-free: Likewise.
33273         * build-aux/announce-gen: Likewise.
33274         * build-aux/update-copyright: Likewise.
33275
33276 2009-10-29  Eric Blake  <ebb9@byu.net>
33277
33278         filenamecat-lgpl: adjust clients
33279         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33280         filenamecat.
33281         * modules/renameat (Depends-on): Likewise.
33282
33283         filenamecat: split into filenamecat-lgpl
33284         * modules/filenamecat-lgpl: New module.
33285         * modules/filenamecat (Files): Move library-safe files into
33286         filenamecat-lgpl.
33287         (Depends-on): Add filenamecat-lgpl.
33288         (configure.ac): Declare witness.
33289         * lib/filenamecat.h (file_name_concat): Only declare when using
33290         GPL module.
33291         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33292         Move...
33293         * lib/filenamecat-lgpl.c: ...into new file.
33294         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33295         (gl_FILE_NAME_CONCAT): Use it.
33296         * MODULES.html.sh (File system functions): Mention new module.
33297
33298         argp: avoid memory leak
33299         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33300         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33301         base_name, since the latter malloc()s and can call exit().
33302         Leak introduced 2006-07-03.
33303
33304         dirname-lgpl: adjust clients that don't need full dirname
33305         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33306         * modules/filenamecat (Depends-on): Likewise.
33307         * modules/linkat (Depends-on): Likewise.
33308         * modules/mkancesdirs (Depends-on): Likewise.
33309         * modules/mkdir (Depends-on): Likewise.
33310         * modules/openat (Depends-on): Likewise.
33311         * modules/savewd (Depends-on): Likewise.
33312         * modules/rename (Depends-on): Likewise.
33313         (License): Relax license.
33314         * modules/mkdir-tests (Depends-on): Drop progname.
33315         (Makefile.am): Delete unneeded LDADD.
33316         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33317
33318         dirname: split into dirname-lgpl
33319         * modules/dirname-lgpl: New module.
33320         * modules/dirname (Files): Move library-safe files into
33321         dirname-lgpl.
33322         (Depends-on): Add dirname-lgpl.
33323         (configure.ac): Declare witness.
33324         * modules/double-slash-root (License): Relax license.
33325         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33326         module.
33327         * lib/dirname.c (dir_len, mdir_name): Move...
33328         * lib/dirname-lgpl.c: ...into new file.
33329         * lib/basename.c (last_component, base_len): Move...
33330         * lib/basename-lgpl.c: ...into new file.
33331         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33332         (gl_DIRNAME): Use it.
33333         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33334         Mention new module.
33335         * modules/dirname-tests (Depends-on): Add progname.
33336         * tests/test-dirname.c (program_name): Delete.
33337
33338         mkdir: make safe for libraries
33339         * modules/mkdir (Depends-on): Drop xalloc.
33340         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33341         exit.
33342
33343         tests: avoid some compiler warnings
33344         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33345         literals.
33346         * tests/test-memchr.c (main): Avoid type mismatch.
33347         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33348         * tests/test-base64.c (main): Likewise.
33349         * tests/test-getdelim.c (main): Likewise.
33350         * tests/test-gethostname.c (main): Likewise.
33351         * tests/test-getline.c (main): Likewise.
33352         * tests/test-netinet_in.c (main): Likewise.
33353         * tests/test-select.c (open_server_socket, main): Likewise.
33354         * tests/test-select-stdin.c (main): Likewise.
33355         * tests/test-sockets.c (main): Likewise.
33356         * tests/test-strsignal.c (main): Likewise.
33357         * tests/test-sys_select.c (main): Likewise.
33358         * tests/test-sys_socket.c (main): Likewise.
33359         * tests/test-u64.c (main): Likewise.
33360         * tests/test-xfprintf-posix.c (main): Likewise.
33361         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33362
33363         sockets: avoid compiler warning
33364         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33365
33366         maint: detect usage(1) and other suspicious exits
33367         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33368
33369 2009-10-29  Jim Meyering  <meyering@redhat.com>
33370
33371         timespec: long-to-int truncation could make timespec_cmp malfunction
33372         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33373         a multiple of 2^32 nanoseconds as no difference.
33374
33375 2009-10-28  Jim Meyering  <meyering@redhat.com>
33376
33377         fprintftime: wrap macro code argument in "do {...} while(0)"
33378         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33379         cpy macro must be a statement that can be followed by a semicolon.
33380         Now that the else clause contains a comment and is hence longer
33381         than one line, I require curly braces.  That in turn requires
33382         that we wrap this code block in the standard do...while(0).
33383
33384         fprintftime: remove stray semicolon from previous change
33385         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33386
33387         fprintftime: avoid a warning about ignored fwrite return value
33388         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33389         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33390         that is unsafe.
33391         * modules/fprintftime (Depends-on): Add ignore-value.
33392
33393         exclude: avoid an unwarranted warning
33394         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33395
33396 2009-10-27  Eric Blake  <ebb9@byu.net>
33397
33398         fseek: avoid compilation failure when fflush is replaced
33399         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33400         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33401         module is in use.
33402         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33403         module is not in use; since REPLACE_FSEEK worked otherwise.
33404         (GNULIB_FTELLO): Likewise for ftell.
33405         Reported by Ian Beckwith and others.
33406
33407 2009-10-27  Bruno Haible  <bruno@clisp.org>
33408
33409         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33410         Reported by Jim Meyering.
33411
33412 2009-10-27  Jim Meyering  <jim@meyering.net>
33413             Bruno Haible  <bruno@clisp.org>
33414
33415         Avoid warning despite dropping the return value of fwrite.
33416         * lib/unicodeio.c: Include ignore-value.h.
33417         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33418         * modules/unicodeio (Depends-on): Add ignore-value.
33419
33420 2009-10-26  Eric Blake  <ebb9@byu.net>
33421
33422         areadlinkat: fix fallback path
33423         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33424         pointer and zero.
33425
33426 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33427
33428         Use a better IO block size for modern systems
33429         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33430         * lib/md2.c: Likewise.
33431         * lib/md4.c: Likewise.
33432         * lib/md5.c: Likewise.
33433         * lib/sha1.c: Likewise.
33434         * lib/sha256.c: Likewise.
33435         * lib/sha512.c: Likewise.
33436
33437 2009-10-22  Eric Blake  <ebb9@byu.net>
33438
33439         tests: avoid several compiler warnings
33440         * tests/test-getcwd.c (main): Avoid buffer underflow.
33441         * tests/test-getdate.c (main): String literals are not safe with
33442         putenv, so use setenv.  Declare unused argument.
33443         * modules/getdate-tests (Depends-on): Add setenv.
33444         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33445         problems with string literals in char *.
33446         * tests/test-hash.c (main): Avoid shadowing declaration.
33447         (insert_new): Treat string literals as char const *.
33448         * tests/test-getopt.h (test_getopt): Likewise.
33449         (getopt_loop): Alter types to minimize casting elsewhere.
33450         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33451         (test_getopt_long_posix): Likewise.
33452         (do_getopt_long): Add wrapper to minimize casting.
33453         * tests/test-atexit.c (clear_temp_file): Use void.
33454         * tests/test-areadlink-with-size.c (main): Declare unused
33455         arguments.
33456         * tests/test-areadlink.c (main): Likewise.
33457         * tests/test-areadlinkat-with-size.c (main): Likewise.
33458         * tests/test-areadlinkat.c (main): Likewise.
33459         * tests/test-canonicalize-lgpl.c (main): Likewise.
33460         * tests/test-canonicalize.c (main): Likewise.
33461         * tests/test-dirent-safer.c (main): Likewise.
33462         * tests/test-dirname.c (main): Likewise.
33463         * tests/test-dup2.c (main): Likewise.
33464         * tests/test-fchdir.c (main): Likewise.
33465         * tests/test-fcntl-h.c (main): Likewise.
33466         * tests/test-fcntl-safer.c (main): Likewise.
33467         * tests/test-fdopendir.c (main): Likewise.
33468         * tests/test-fdutimensat.c (main): Likewise.
33469         * tests/test-fflush.c (main): Likewise.
33470         * tests/test-filenamecat.c (main): Likewise.
33471         * tests/test-filevercmp.c (main): Likewise.
33472         * tests/test-fopen-safer.c (main): Likewise.
33473         * tests/test-fopen.c (main): Likewise.
33474         * tests/test-fpending.c (main): Likewise.
33475         * tests/test-fpurge.c (main): Likewise.
33476         * tests/test-freading.c (main): Likewise.
33477         * tests/test-fstatat.c (main): Likewise.
33478         * tests/test-fsync.c (main): Likewise.
33479         * tests/test-futimens.c (main): Likewise.
33480         * tests/test-getndelim2.c (main): Likewise.
33481         * tests/test-gettimeofday.c (main): Likewise.
33482         * tests/test-getopt.c (main): Likewise.
33483         * tests/test-i-ring.c (main): Likewise.
33484         * tests/test-inttypes.c (main): Likewise.
33485         * tests/test-link.c (main): Likewise.
33486         * tests/test-lstat.c (main): Likewise.
33487         * tests/test-math.c (main): Likewise.
33488         * tests/test-md5.c (main): Likewise.
33489         * tests/test-memchr2.c (main): Likewise.
33490         * tests/test-memrchr.c (main): Likewise.
33491         * tests/test-mkdir.c (main): Likewise.
33492         * tests/test-mkdirat.c (main): Likewise.
33493         * tests/test-mkfifoat.c (main): Likewise.
33494         * tests/test-open.c (main): Likewise.
33495         * tests/test-openat-safer.c (main): Likewise.
33496         * tests/test-openat.c (main): Likewise.
33497         * tests/test-quotearg.c (main): Likewise.
33498         * tests/test-rawmemchr.c (main): Likewise.
33499         * tests/test-readlink.c (main): Likewise.
33500         * tests/test-remove.c (main): Likewise.
33501         * tests/test-rename.c (main): Likewise.
33502         * tests/test-renameat.c (main): Likewise.
33503         * tests/test-rmdir.c (main): Likewise.
33504         * tests/test-sha1.c (main): Likewise.
33505         * tests/test-signal.c (main): Likewise.
33506         * tests/test-sigaction.c (main): Likewise.
33507         * tests/test-stat.c (main): Likewise.
33508         * tests/test-stat-time.c (main): Likewise.
33509         * tests/test-stddef.c (main): Likewise.
33510         * tests/test-stdint.c (main): Likewise.
33511         * tests/test-stdio.c (main): Likewise.
33512         * tests/test-stdlib.c (main): Likewise.
33513         * tests/test-strchrnul.c (main): Likewise.
33514         * tests/test-strerror.c (main): Likewise.
33515         * tests/test-string.c (main): Likewise.
33516         * tests/test-strtod.c (main): Likewise.
33517         * tests/test-strverscmp.c (main): Likewise.
33518         * tests/test-symlink.c (main): Likewise.
33519         * tests/test-symlinkat.c (main): Likewise.
33520         * tests/test-sys_stat.c (main): Likewise.
33521         * tests/test-sys_time.c (main): Likewise.
33522         * tests/test-time.c (main): Likewise.
33523         * tests/test-unistd.c (main): Likewise.
33524         * tests/test-unlink.c (main): Likewise.
33525         * tests/test-unlinkat.c (main): Likewise.
33526         * tests/test-utimens.c (main): Likewise.
33527         * tests/test-utimensat.c (main): Likewise.
33528         * tests/test-version-etc.c (main): Likewise.
33529         * tests/test-wchar.c (main): Likewise.
33530         * tests/test-wctype.c (main): Likewise.
33531         * tests/test-xprintf-posix.c (main): Likewise.
33532         * tests/test-posixtm.c (main): Likewise.
33533         (STREQ): Delete unused macro.
33534         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33535         shadowed variables.
33536         * tests/test-memchr.c (main): Likewise.
33537
33538 2009-10-21  Eric Blake  <ebb9@byu.net>
33539
33540         areadlinkat: avoid failure on older glibc
33541         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33542         rather than mis-comparing 0 against FUNC_RESULT of char*.
33543
33544 2009-10-21  Bruno Haible  <bruno@clisp.org>
33545
33546         * modules/stpncpy (License): Relicense under LGPLv2+.
33547         Reported by David Lutterkort <lutter@redhat.com>.
33548
33549 2009-10-20  Eric Blake  <ebb9@byu.net>
33550
33551         utimensat: work around Solaris 9 bug
33552         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33553         has trailing slash bugs.
33554         * tests/test-lutimens.h (test_lutimens): Enhance test.
33555         * tests/test-utimens.h (test_utimens): Likewise.
33556         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33557         * doc/posix-functions/utimes.texi (utimes): Likewise.
33558         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33559         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33560         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33561         * doc/posix-functions/futimens.texi (futimens): Likewise.
33562
33563         fdutimensat: new module
33564         * modules/fdutimensat: New file.
33565         * lib/fdutimensat.c (fdutimensat): Likewise.
33566         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33567         * MODULES.html.sh (File system functions): Mention module.
33568         * modules/fdutimensat-tests: New test.
33569         * tests/test-fdutimensat.c: Likewise.
33570
33571         doc: regenerate INSTALL
33572         * doc/INSTALL: Reflect recent autoconf update.
33573         * doc/INSTALL.ISO: Likewise.
33574         * doc/INSTALL.UTF-8: Likewise.
33575
33576 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33577
33578         acl: warn if ACL support is not detected
33579         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33580
33581 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33582
33583         * lib/nproc.h: Add extern "C" block for C++.
33584
33585 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33586             Bruno Haible  <bruno@clisp.org>
33587
33588         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33589         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33590         * doc/posix-functions/isalpha.texi: Likewise.
33591         * doc/posix-functions/isblank.texi: Likewise.
33592         * doc/posix-functions/iscntrl.texi: Likewise.
33593         * doc/posix-functions/isdigit.texi: Likewise.
33594         * doc/posix-functions/isgraph.texi: Likewise.
33595         * doc/posix-functions/islower.texi: Likewise.
33596         * doc/posix-functions/isprint.texi: Likewise.
33597         * doc/posix-functions/ispunct.texi: Likewise.
33598         * doc/posix-functions/isspace.texi: Likewise.
33599         * doc/posix-functions/isupper.texi: Likewise.
33600         * doc/posix-functions/isxdigit.texi: Likewise.
33601
33602 2009-10-18  Bruno Haible  <bruno@clisp.org>
33603
33604         Tests for module 'isblank'.
33605         * modules/isblank-tests: New file.
33606         * tests/test-isblank.c: New file.
33607
33608         New module 'isblank'.
33609         * lib/isblank.c: New file.
33610         * m4/isblank.m4: New file.
33611         * modules/isblank: New file.
33612         * doc/posix-functions/isblank.texi: Mention the new module.
33613
33614 2009-10-18  Bruno Haible  <bruno@clisp.org>
33615
33616         New module 'ctype'.
33617         * lib/ctype.in.h: New file.
33618         * m4/ctype.m4: New file.
33619         * modules/ctype: New file.
33620         * doc/posix-headers/ctype.texi: Mention the new module.
33621
33622 2009-10-18  Jim Meyering  <meyering@redhat.com>
33623
33624         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33625         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33626         right after its initialization, rather than farther down.
33627         Keeping these in close proximity makes it easier to ensure
33628         that each such variable is initialized.  E.g.,
33629
33630             LIB_CLOCK_GETTIME=
33631             AC_SUBST([LIB_CLOCK_GETTIME])
33632
33633         This change also increments these serial numbers.
33634         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33635         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33637
33638 2009-10-18  Bruno Haible  <bruno@clisp.org>
33639
33640         Don't let environment variables perturb build.
33641         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33642         (gl_PREREQ_GETHRXTIME): ... not here.
33643
33644 2009-10-18  Bruno Haible  <bruno@clisp.org>
33645
33646         Avoid symlink attack in localcharset module.
33647         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33648         (O_NOFOLLOW): Define fallback.
33649         (get_charset_aliases): Don't open the file if it is a symbolic link.
33650         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33651         gl_FCNTL_H.
33652         (gl_FCNTL_H): Require it.
33653         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33654         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33655         Reported by Fergal Glynn <fglynn@veracode.com>.
33656
33657 2009-10-18  Bruno Haible  <bruno@clisp.org>
33658
33659         Implement nproc for mingw.
33660         * lib/nproc.c: Include <windows.h>
33661         (num_processors): On native Windows platforms, try GetSystemInfo.
33662
33663 2009-10-18  Bruno Haible  <bruno@clisp.org>
33664
33665         Implement nproc for IRIX.
33666         * lib/nproc.c: Include <sys/sysmp.h>.
33667         (num_processors): On IRIX systems, try sysmp.
33668         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33669
33670 2009-10-18  Bruno Haible  <bruno@clisp.org>
33671
33672         Implement nproc for HP-UX.
33673         * lib/nproc.c: Include <sys/pstat.h>
33674         (num_processors): On HP-UX systems, try pstat_getdynamic.
33675         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33676         pstat_getdynamic.
33677
33678 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33679             Bruno Haible  <bruno@clisp.org>
33680
33681         Implement nproc for NetBSD, OpenBSD.
33682         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33683         (ARRAY_SIZE): New macro.
33684         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33685         * m4/nproc.m4: New file.
33686         * modules/nproc (Files): Add m4/nproc.m4.
33687         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33688         (Makefile.am): Instead, augment lib_SOURCES.
33689
33690 2009-10-18  Bruno Haible  <bruno@clisp.org>
33691
33692         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33693         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33694         sys/param.h.
33695
33696 2009-10-16  Eric Blake  <ebb9@byu.net>
33697
33698         utimensat: new module
33699         * modules/utimensat: New file.
33700         * lib/utimensat.c (utimensat): Likewise.
33701         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33702         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33703         so we can work around Linux bugs.
33704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33705         * modules/sys_stat (Makefile.am): Substitute them.
33706         * lib/sys_stat.in.h (utimensat): Declare it.
33707         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33708         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33709         * modules/utimensat-tests: New test.
33710         * tests/test-utimensat.c: Likewise.
33711
33712         utimens: let lutimens work on non-symlinks
33713         * lib/utimens.c (lutimens): Fall back to utimens rather than
33714         failing with ENOSYS, when file is not a symlink.
33715         (utimens): Reduce redirection.
33716         * tests/test-lutimens.h (test_lutimens): Update test to cover
33717         non-symlinks.
33718         * tests/test-utimens.h (test_utimens): Update test to cover
33719         symlinks.
33720         * tests/test-utimens.c (main): Update caller.
33721
33722         utimens: cache whether utimensat syscall works
33723         * lib/utimens.c (utimensat_works_really): New cache variable.
33724         (fdutimens, lutimens): Use it to avoid failing syscall.
33725
33726         test-stat-time, test-utimens: improve portability
33727         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33728         ext4 on alpha, and for cygwin.
33729         * tests/test-utimens-common.h: New file.
33730         (nap): Factor delays into single function.
33731         * tests/test-lutimens.h (test_lutimens): Use new header.
33732         * tests/test-futimens.h (test_futimens): Likewise.
33733         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33734         timestamps to occur from same machine, as was done previously for
33735         test_utimens.
33736         * modules/utimens-tests (Files): Ship new file.
33737         * modules/futimens-tests (Files): Likewise.
33738         Reported in part by Jim Meyering.
33739
33740         sys_stat: sort replacement declarations
33741         * lib/sys_stat.in.h: Sort declarations.
33742         * lib/futimens.c (futimens): Fix typo.
33743
33744 2009-10-15  Jim Meyering  <meyering@redhat.com>
33745
33746         don't let environment settings perturb build
33747         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33748         could cause a configure-time and/or build-time malfunction.
33749         Typically, a configure-time function-in-library test is performed
33750         via code like this:
33751
33752           LIB_VAR=
33753           AC_SUBST([LIB_VAR])
33754           prefix_saved_LIBS=$LIBS
33755             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33756                        [test "$ac_cv_search_FUNC" = "none required" ||
33757                         LIB_VAR=$ac_cv_search_FUNC])
33758           LIBS=$prefix_saved_LIBS
33759
33760         However, in each of the files affected by this change, the LIB_VAR=
33761         initialization was omitted.  Thus, when set in the environment, its
33762         value would propagate into generated Makefiles when FUNC is not found
33763         in LIB_NAME.
33764         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33765         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33767
33768 2009-10-14  Eric Blake  <ebb9@byu.net>
33769
33770         fchdir: avoid infinite recursion in mingw
33771         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33772         recursing.
33773
33774         test-stat-time: port to mingw
33775         * tests/test-stat-time.c (force_unlink): Return a value.
33776         (test_ctime) [W32]: Fix compilation error.
33777         (nap): Don't call usleep with too large an argument.  Use
33778         force_unlink.
33779         * doc/pastposix-functions/usleep.texi (usleep): Document the
33780         portability issue.
33781
33782 2009-10-13  Jim Meyering  <meyering@redhat.com>
33783
33784         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33785         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33786         * modules/pipe-filter-ii: Likewise.
33787         * modules/sys_socket-tests: Likewise.
33788         * modules/tsearch-tests: Likewise.
33789         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33790         (check): Depend on it.
33791
33792 2009-10-12  Eric Blake  <ebb9@byu.net>
33793
33794         utimens-tests: port to NFS file systems
33795         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33796         comparisons to avoid spurious failures from timestamp drift
33797         between NFS machines.
33798
33799 2009-10-12  Eric Blake  <ebb9@byu.net>
33800
33801         stat-time-tests: minor cleanups
33802         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33803         * tests/test-stat-time.c (nap): Separate assignment from call.
33804         Suggested by Paolo Bonzini and Bruno Haible.
33805
33806         sys_stat: guarantee struct timespec
33807         * lib/sys_stat.in.h (includes): Always include <time.h>
33808         * modules/sys_stat (Depends-on): Add time.
33809         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33810         mode_t permission values.
33811         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33812         get at subsecond timestamps.
33813
33814 2009-10-10  Eric Blake  <ebb9@byu.net>
33815
33816         futimens: new module
33817         * modules/futimens: New file.
33818         * lib/futimens.c (futimens): Likewise.
33819         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33820         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33821         we can work around Linux bugs.
33822         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33823         * modules/sys_stat (Makefile.am): Substitute them.
33824         * lib/sys_stat.in.h (futimens): Declare it.
33825         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33826         * doc/posix-functions/futimens.texi (futimens): Likewise.
33827         * modules/futimens-tests: New test.
33828         * tests/test-futimens.c: Likewise.
33829
33830         utimens: introduce fdutimens
33831         * lib/utimens.h (fdutimens): New prototype.
33832         * lib/utimens.c (gl_futimens): Move guts...
33833         (fdutimens): ...to new interface.
33834         * tests/test-utimens.c (do_fdutimens): Use it.
33835
33836         utimens: add UTIME_NOW and UTIME_OMIT support
33837         * lib/utimens.c (validate_timespec, update_timespec): New helper
33838         functions.
33839         (gl_futimens, lutimens): Use them.
33840         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33841         stdbool, sys_stat.
33842         (Link): Mention resulting library dependency.
33843         * modules/utimecmp (Link): Likewise.
33844         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33845         (Makefile.am): Pick up library dependency.
33846         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33847         definition.
33848         * tests/test-sys_stat.c: Test the definitions.
33849         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33850         * NEWS: Document library dependency.
33851
33852         utimecmp: support symlink timestamps
33853         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33854         hashing when possible.  Use pathconf when available.
33855         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33856         * modules/utimecmp (Depends-on): Add lstat.
33857
33858         utimens: add lutimens interface
33859         * lib/utimens.c (lutimens): New function.
33860         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33861         * lib/utimens.h (lutimens): Declare new interface.
33862         * tests/test-utimens.c (main): Enhance test.
33863         * tests/test-lutimens.h (test_lutimens): New file.
33864         * modules/utimens-tests (Files): Distribute it.
33865         (Depends-on): Add symlink.
33866         (configure.ac): Check for usleep.
33867
33868         utimens: validate futimens usage
33869         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33870         fewer syscalls on failure later on.  Avoid compiler warning on
33871         mingw.
33872         * modules/utimens (Depends-on): Add dup2.
33873
33874         utimens: add test
33875         * modules/utimens-tests: New test.
33876         * tests/test-utimens.h: New file.
33877         * tests/test-futimens.h: Likewise.
33878         * tests/test-utimens.c: Likewise.
33879
33880         doc: mention timestamp portability issues
33881         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33882         instead.
33883         * doc/posix-functions/utime.texi (utime): Likewise.
33884         * doc/posix-functions/utimes.texi (utimes): Likewise.
33885         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33886         instead.
33887         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33888         module.
33889         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33890         Mention weakness with symlink timestamps.
33891         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33892         to utimensat/futimens instead.
33893         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33894
33895         test-dup2: enhance test
33896         * tests/test-dup2.c (main): Also check AT_FDCWD.
33897
33898         test-stat-time: avoid more spurious failures
33899         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33900         xfs; and avoid race if the two timestamps cross quantization edge.
33901
33902         relocatable: prefer 'file system' over 'filesystem'
33903         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33904         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33905         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33906         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33907         * lib/relocatable.c (compute_curr_prefix): Likewise.
33908
33909 2009-10-10  Jim Meyering  <meyering@redhat.com>
33910
33911         stat-time-tests: check for the usleep function
33912         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33913
33914 2009-10-10  Bruno Haible  <bruno@clisp.org>
33915
33916         * modules/xnanosleep: Put the Link section after the Include section.
33917
33918 2009-10-09  Eric Blake  <ebb9@byu.net>
33919
33920         dup2: work around FreeBSD 6.1 bug
33921         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33922         * doc/posix-functions/dup2.texi (dup2): Document it.
33923         Reported by Nelson H. F. Beebe and Jim Meyering.
33924
33925         test-stat-time: port to buggy NFS clients
33926         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33927         (test_ctime): Also skip test if mtime and ctime are skewed.
33928
33929         maint: prefer 'file system' over 'filesystem'
33930         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33931         * doc/posix-functions/lstat.texi (lstat): Likewise.
33932         * lib/file-has-acl.c (file_has_acl): Likewise.
33933         * lib/fwriteerror.c [TEST]: Likewise.
33934         * tests/test-areadlink.h (test_areadlink): Likewise.
33935         * tests/test-areadlinkat-with-size.c (main): Likewise.
33936         * tests/test-areadlinkat.c (main): Likewise.
33937         * tests/test-canonicalize-lgpl.c (main): Likewise.
33938         * tests/test-canonicalize.c (main): Likewise.
33939         * tests/test-fstatat.c (main): Likewise.
33940         * tests/test-linkat.c (main): Likewise.
33941         * tests/test-lstat.h (test_lstat_func): Likewise.
33942         * tests/test-mkdir.h (test_mkdir): Likewise.
33943         * tests/test-readlink.h (test_readlink): Likewise.
33944         * tests/test-remove.c (main): Likewise.
33945         * tests/test-rename.h (test_rename): Likewise.
33946         * tests/test-renameat.c (main): Likewise.
33947         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33948         * tests/test-symlink.h (test_symlink): Likewise.
33949         * tests/test-symlinkat.c (main): Likewise.
33950         * tests/test-unlink.h (test_unlink_func): Likewise.
33951         * tests/test-unlinkat.c (main): Likewise.
33952
33953         maint: make realtime library usage explicit
33954         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33955         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33956         * modules/settime (Link): Likewise.
33957         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33958
33959         test-stat-time: speed up execution
33960         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33961         warning on mingw.
33962         (nap): New helper function.
33963         (prepare_test): Use it to reduce sleep time.
33964         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33965         execution.
33966         * modules/stat-time-tests (configure.ac): Check for usleep.
33967
33968 2009-10-09  Jim Meyering  <meyering@redhat.com>
33969
33970         selinux-h: always use getfilecon wrappers
33971         * lib/getfilecon.c: New file.
33972         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33973         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33974         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33975         (fgetfilecon): Provide a stub.
33976         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33977         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33978         file unconditionally.
33979         When <selinux/selinux.h> is found, arrange to use wrappers.
33980         * modules/selinux-h (Files): Add getfilecon.c.
33981         (Makefile.am): Substitute include-next-related bits
33982         into the now-always-generated selinux/selinux.h file.
33983         * doc/glibc-functions/lgetfilecon.texi: New file.
33984         * doc/glibc-functions/fgetfilecon.texi: New file.
33985         * doc/glibc-functions/getfilecon.texi: New file.
33986         * doc/glibc-functions/getfilecon-desc.texi: New file.
33987         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33988         which to pull in the new files.
33989         * MODULES.html.sh (Misc): Add selinux-h.
33990
33991 2009-10-08  Jim Meyering  <meyering@redhat.com>
33992
33993         unistd: fix comment typo
33994         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33995
33996 2009-10-08  Eric Blake  <ebb9@byu.net>
33997
33998         areadlink: use SIZE_MAX consistently
33999         * modules/areadlink (Depends-on): Add stdint.
34000         * modules/areadlink-with-size (Depends-on): Likewise.
34001         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34002         gives NULL; drop sys/types, since unistd gives size_t; and add
34003         stdint for SIZE_MAX.
34004         (SIZE_MAX): Rely on headers.
34005         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34006         and add stdint.
34007         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34008         (SIZE_MAX): Likewise.
34009         (INITIAL_BUF_SIZE): Turn into enum.
34010         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34011
34012 2009-10-08  Jim Meyering  <meyering@redhat.com>
34013
34014         areadlinkat: avoid compilation failure
34015         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34016         Fix typo in comment.
34017
34018 2009-10-07  Eric Blake  <ebb9@byu.net>
34019
34020         areadlinkat-with-size: new module
34021         * modules/areadlinkat-with-size: New module.
34022         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34023         * lib/areadlink.h (areadlinkat): Declare it.
34024         * MODULES.html.sh (File system functions): Mention it.
34025         * modules/areadlinkat-with-size-tests: New test.
34026         * tests/test-areadlinkat-with-size.c: New file.
34027
34028         xreadlinkat: new module
34029         * modules/xreadlinkat: New module.
34030         * lib/xreadlinkat.c (xreadlinkat): New file.
34031         * lib/xreadlink.h (xreadlinkat): Declare it.
34032         * MODULES.html.sh (File system functions): Mention it.
34033
34034         areadlinkat: new module
34035         * lib/at-func.c (FUNC_FAIL): New define.
34036         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34037         * modules/areadlinkat: New module.
34038         * lib/linkat.c (areadlinkat): Move...
34039         * lib/areadlinkat.c (areadlinkat): ...to new file.
34040         * lib/areadlink.h (areadlinkat): Declare it.
34041         * modules/linkat (Depends-on): Add areadlinkat.
34042         * MODULES.html.sh (File system functions): Mention it.
34043         * modules/areadlinkat-tests: New test.
34044         * tests/test-areadlinkat.c: New file.
34045
34046         areadlink, areadlink-with-size: add tests
34047         * modules/areadlink-tests: New test.
34048         * modules/areadlink-with-size-tests: Likewise.
34049         * tests/test-areadlink.h: New file.
34050         * tests/test-areadlink.c: Likewise.
34051         * tests/test-areadlink-with-size.c: Likewise.
34052
34053         maint: minor cleanups
34054         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34055         _UNUSED_PARAMETER_ instead.
34056         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34057         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34058         * modules/linkat-tests (Files): Distribute test-link.h.
34059
34060         openat, utimens: whitespace cleanup
34061         * lib/openat.c: Prefer space throughout, rather than mix of 8
34062         spaces vs. tabs.
34063         * lib/at-func.c: Likewise.
34064         * lib/utimens.c: Likewise.
34065
34066         openat: avoid using wrong fd
34067         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34068         working directory chooses same fd.
34069         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34070
34071         mkdir, mkdirat: fix cygwin 1.5.x bug
34072         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34073         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34074         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34075         bug.
34076         (gl_PREREQ_MKDIR): Delete unused macro.
34077         * modules/mkdir (Files): Track file rename.
34078         (configure.ac): Update macro name.
34079         * modules/openat (Depends-on): Add mkdir.
34080         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34081
34082         mkdir, mkdirat: add tests
34083         * modules/mkdir-tests: New test.
34084         * tests/test-mkdir.h: New file.
34085         * tests/test-mkdir.c: Likewise.
34086         * tests/test-mkdirat.c: Likewise.
34087         * modules/openat-tests (Files): Add new files.
34088         (Makefile.am): Run new test.
34089
34090 2009-10-06  Eric Blake  <ebb9@byu.net>
34091
34092         doc: tweak *at function documentation
34093         * doc/posix-functions/faccessat.texi (faccessat): Mention
34094         known issue with replacement.
34095         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34096         * doc/posix-functions/linkat.texi (linkat): Likewise.
34097         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34098         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34099         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34100         * doc/posix-functions/renameat.texi (renameat): Likewise.
34101         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34102
34103         openat: fix GNU/Hurd bug in unlinkat
34104         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34105         broken.
34106         * doc/posix-functions/unlink.texi (unlink): Document this.
34107         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34108
34109         fdopendir: fix GNU/Hurd bug
34110         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34111         allowing non-directory fds.
34112         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34113         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34114         * modules/dirent (Makefile.am): Substitute it.
34115         * lib/dirent.in.h (fdopendir): Declare replacement.
34116         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34117         * tests/test-fdopendir.c (main): Test something other than
34118         /dev/null, since on Hurd that behaves like a directory.
34119
34120         test-symlink: port to GNU/Hurd
34121         * tests/test-symlink.h (test_symlink): Relax expected errno.
34122
34123         doc: tweak more cygwin information
34124         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34125         now compatible with glibc.
34126         * doc/posix-functions/getopt.texi (getopt): Likewise.
34127
34128         getopt-gnu: add another test
34129         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34130         guarantee behavior relied on by m4.
34131         * tests/test-getopt.c (main): Use it.
34132         * modules/getopt-posix-tests (Depends-on): Add setenv.
34133         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34134
34135         getopt: fix compilation on darwin
34136         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34137         include.
34138         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34139         Reported by Ludovic Courtès.
34140
34141 2009-10-06  Bruno Haible  <bruno@clisp.org>
34142
34143         * modules/size_max (Description): Discourage its use.
34144         Reported by Simon Josefsson.
34145
34146 2009-10-06  Jim Meyering  <meyering@redhat.com>
34147
34148         linkat: avoid compilation failure
34149         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34150
34151 2009-10-05  Eric Blake  <ebb9@byu.net>
34152
34153         linkat: support Linux 2.6.17
34154         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34155         linkat on Linux, but allow cache variable override.
34156         * lib/linkat.c (rpl_linkat): Define override.
34157         * modules/linkat (Depends-on): Add symlinkat.
34158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34159         * modules/unistd (Makefile.am): Substitute it.
34160         * lib/unistd.in.h (linkat): Declare replacement.
34161         Reported by Pádraig Brady.
34162
34163         quotearg: port test to systems with C.UTF-8 locale
34164         * tests/test-quotearg.c (struct result_strings): Add another
34165         member, differentiating between C.ASCII and C.UTF-8 handling.
34166         (compare_strings): Add parameter.
34167         (main): Adjust all callers.
34168
34169         getopt: avoid clash with FreeBSD _getopt_internal
34170         * lib/getopt.in.h (_getopt_internal): Override the name.
34171         * lib/getopt_int.h (includes): Pick up any overrides.
34172         Reported by Reuben Thomas.
34173
34174         hash: allow C89 compilation
34175         * lib/hash.c (check_tuning): Move declaration before statement.
34176         Reported by Reuben Thomas.
34177
34178 2009-10-05  Karl Berry  <karl@gnu.org>
34179
34180         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34181
34182 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34183             Bruno Haible  <bruno@clisp.org>
34184
34185         * lib/uname.c (uname): Use a table-driven algorithm to compute
34186         Windows NT versions.
34187
34188 2009-10-04  Bruno Haible  <bruno@clisp.org>
34189
34190         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34191         program_invocation_short_name.
34192         * modules/progname (configure.ac): Test for presence of
34193         program_invocation_short_name.
34194         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34195
34196 2009-10-04  Bruno Haible  <bruno@clisp.org>
34197
34198         * lib/progname.c (set_program_name): Fix comment.
34199         Reported by Jim Meyering.
34200
34201 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34202             Bruno Haible  <bruno@clisp.org>
34203
34204         * lib/uname.c: Include <string.h>.
34205         (uname): Do only one call to GetVersionEx in the common case.
34206
34207 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34208             Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34211         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34212         (uname): Add support for Windows CE and various non-x86 CPU types.
34213
34214 2009-10-03  Bruno Haible  <bruno@clisp.org>
34215
34216         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34217         invocation to tests/configure.ac.
34218         Reported by Ian Beckwith <ianb@erislabs.net>.
34219
34220 2009-10-02  Eric Blake  <ebb9@byu.net>
34221
34222         fchdir: avoid compiler warning
34223         * lib/fchdir.c (canonicalize_file_name)
34224         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34225
34226         test-open: support mingw errno values
34227         * tests/test-open.h (test_open): Relax test.
34228         * tests/test-fopen.h (test_fopen): Likewise.
34229         * tests/test-openat-safer.c (main): Likewise.
34230
34231         open: fix opening directory on mingw
34232         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34233
34234         test-open: on GNU/Hurd, /dev/null is a directory
34235         * tests/test-fopen.h (main): Rename...
34236         (test_fopen): ...to this.  Use a guaranteed non-directory when
34237         confirming open behavior on trailing slash.
34238         * tests/test-openat-safer.c (main): Likewise.
34239         * tests/test-open.h (main): Likewise....
34240         (test_open): ...to this.
34241         * tests/test-fopen.c (main): Adjust caller.
34242         * tests/test-fopen-safer.c (main): Likewise.
34243         * tests/test-open.c (main): Likewise.
34244         * tests/test-fcntl-safer.c (main): Likewise.
34245         Reported by Samuel Thibault.
34246
34247         rename, fchdir: don't ignore chdir failure
34248         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34249         * lib/rename.c (rpl_rename) [W32]: Likewise.
34250         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34251         an empty destination directory if source cannot be renamed,
34252         although there is still possibility for failure.
34253         * doc/posix-functions/rename.texi (rename): Document the race.
34254         Reported by Jim Meyering.
34255
34256         maint: cleanup whitespace in recent commits
34257         * lib/rename.c (rpl_rename): Remove tabs.
34258         * tests/test-link.h (test_link): Likewise.
34259         * lib/fchdir.c (get_name): Likewise.
34260         Reported by Jim Meyering.
34261
34262 2009-10-02  Ben Pfaff  <blp@gnu.org>
34263
34264         relocatable-prog-wrapper: Add missing dependency on
34265         double-slash-root.
34266         * modules/relocatable-prog-wrapper: Add dependency.
34267         Reported by Ian Beckwith <ianb@erislabs.net>.
34268
34269 2009-10-02  Eric Blake  <ebb9@byu.net>
34270
34271         renameat: fix Solaris bugs
34272         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34273         needed fixing.
34274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34275         * modules/stdio (Makefile.am): Substitute it.
34276         * lib/stdio.in.h (renameat): Declare replacement.
34277         * lib/renameat.c (rpl_renameat): Implement fix.
34278
34279         renameat: new module
34280         * modules/renameat: New file.
34281         * lib/renameat.c (renameat): Likewise.
34282         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34284         * modules/stdio (Makefile.am): Substitute them.
34285         * lib/stdio.in.h (renameat): Declare it.
34286         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34287         * doc/posix-functions/renameat.texi (renameat): Likewise.
34288         * modules/renameat-tests: New test.
34289         * tests/test-renameat.c: Likewise.
34290
34291         rename: fix mingw bugs
34292         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34293         directory overwrite bugs.
34294
34295         rename: fix another cygwin 1.5 bug
34296         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34297         checks.
34298         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34299         unnecessary cygwin workarounds.  Also work around bug with moving
34300         full directory onto an empty one.
34301         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34302
34303         rename-dest-slash: merge into rename module
34304         * modules/rename-dest-slash (Status): Mark obsolete.
34305         (Depends-on): Add rename.
34306         (Files): Let rename do it all.
34307         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34308         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34309         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34310         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34311         * lib/rename.c (rpl_rename): Update comments.
34312
34313         rename: fix cygwin 1.5.x bugs
34314         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34315         * lib/rename.c (rpl_rename): Work around them.
34316         * modules/rename (Depends-on): Add same-inode.
34317
34318         rename: fix Solaris 10 bug
34319         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34320         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34321         was the only bug.
34322
34323         rename: fix Solaris 9 bug
34324         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34325         on non-directory.  Avoid calling exit.
34326         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34327         strdup.
34328         * modules/rename-tests (Depends-on): Drop lstat.
34329         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34330         (gl_PREREQ_RENAME): Delete unused macro.
34331
34332         rename-dest-slash: fix NetBSD bug
34333         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34334         links.
34335         * modules/rename-dest-slash (Depends-on): Add same-inode.
34336
34337         rename-tests: new test, exposes several platform bugs
34338         * modules/rename-tests: New file.
34339         * tests/test-rename.h: Likewise.
34340         * tests/test-rename.c: Likewise.
34341         * doc/posix-functions/rename.texi (rename): Improve documentation,
34342         including bugs that will eventually be fixed in gnulib.
34343
34344 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34345
34346         * lib/uname.c: Include <stdlib.h>
34347         (uname): Assume version info is available.
34348
34349 2009-10-02  Jim Meyering  <meyering@redhat.com>
34350
34351         gnu-web-doc-update: correct --help output
34352         * build-aux/gnu-web-doc-update: Make --help output relevant.
34353
34354         gnu-web-doc-update: add standard options
34355         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34356
34357         gnu-web-doc-update: New module.
34358         Use this script to automatically update the on-line web documentation
34359         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34360         * modules/gnu-web-doc-update: New file, from coreutils.
34361         * build-aux/gnu-web-doc-update: New script.
34362
34363 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34364
34365         link: LoadLibrary is not needed.
34366         * lib/link.c: Use GetModuleHandle.
34367
34368 2009-10-01  Eric Blake  <ebb9@byu.net>
34369
34370         getopt: bump serial number
34371         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34372         change.
34373
34374         tests: tighten link, rmdir, and remove tests
34375         * tests/test-link.h (includes): No need to use <config.h> here.
34376         Clean up if directory hard link was created, otherwise test for
34377         trailing '.'.
34378         * tests/test-linkat.c (main): Simplify.
34379         * tests/test-remove.c (main): Enhance test for trailing '.'.
34380         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34381
34382 2009-10-01  Jim Meyering  <meyering@redhat.com>
34383
34384         maint.mk: requiring "make major" was annoying, for a "minor" release.
34385         What is intended is "stable", to contrast with alpha and beta,
34386         so require "make stable", not "make major".
34387         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34388         (get_tool_versions): Likewise.
34389         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34390
34391 2009-09-30  Ben Pfaff  <blp@gnu.org>
34392
34393         Fix broken build of replacement for Windows tmpfile().
34394         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34395         flags argument added along with the 'mkostemp' module.
34396
34397 2009-09-28  Bruno Haible  <bruno@clisp.org>
34398
34399         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34400         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34401         to 'remove_elt'.
34402         (gl_list_remove): Update.
34403         * lib/gl_list.c (gl_list_remove): Update.
34404         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34405         to 'remove_elt'.
34406         (gl_oset_remove): Update.
34407         * lib/gl_list.c (gl_oset_remove): Update.
34408         Reported by Eric Blake.
34409
34410 2009-09-28  Eric Blake  <ebb9@byu.net>
34411
34412         doc: mention yet more cygwin 1.7 status
34413         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34414         cygwin.
34415         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34416         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34417
34418         argp: fix test failure
34419         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34420         that are not upper-case.  Pass correct range to tolower.
34421
34422 2009-09-27  Jim Meyering  <meyering@redhat.com>
34423
34424         test-yesno: work around sparc-dash here-document infelicity
34425         Without this change, the literal \177 byte in a here document
34426         would make dash 0.5.5.1-3 access uninitialized memory.
34427         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34428         Instead, use a marker, "@", and filter through tr to create the desired
34429         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34430
34431 2009-09-27  Bruno Haible  <bruno@clisp.org>
34432
34433         Disable untested support for new flavours of ACLs on AIX.
34434         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34435         progress.
34436         * lib/set-mode-acl.c (qset_acl): Likewise.
34437
34438 2008-12-07  Bruno Haible  <bruno@clisp.org>
34439
34440         Add support for new flavours of ACLs on AIX. (Untested.)
34441         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34442         (file_has_acl): Add support for newer AIX.
34443         * lib/set-mode-acl.c (qset_acl): Likewise.
34444         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34445         Rainer Tammer <tammer@tammer.net>.
34446
34447 2009-09-26  Eric Blake  <ebb9@byu.net>
34448
34449         argp: fix compilation of getopt
34450         * lib/getopt.in.h (includes): Use different guard than glibc.
34451         Reported by Sergey Poznyakoff.
34452
34453         doc: mention more cygwin 1.7 status
34454         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34455         bug.
34456         * doc/posix-functions/execl.texi (execl): Likewise.
34457         * doc/posix-functions/execle.texi (execle): Likewise.
34458         * doc/posix-functions/execlp.texi (execlp): Likewise.
34459         * doc/posix-functions/execv.texi (execv): Likewise.
34460         * doc/posix-functions/execve.texi (execve): Likewise.
34461         * doc/posix-functions/execvp.texi (execvp): Likewise.
34462         * doc/glibc-functions/canonicalize_file_name.texi
34463         (canonicalize_file_name): Cygwin 1.7 now provides this.
34464         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34465         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34466         on AT_SYMLINK_NOFOLLOW.
34467
34468 2009-09-24  Eric Blake  <ebb9@byu.net>
34469
34470         test-linkat: make test more robust
34471         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34472
34473         getopt: fix inclusion guards for cygwin
34474         * modules/getopt-posix (Depends-on): Add include-next.
34475         (Makefile.am): Substitute more items in replacement header.
34476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34477         <getopt.h>.
34478         * lib/getopt.in.h (includes): Use split inclusion guard, and
34479         prefer <getopt.h> over include <unistd.h> when one is present.
34480         (option): Also override name of 'struct option'.
34481
34482         same-inode: revert prior change; it is not yet ready
34483         * NEWS: Undo mention of this change.
34484         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34485         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34486         * lib/cycle-check.c (cycle_check): Likewise.
34487         * lib/same.c (same_name): Likewise.
34488         * lib/at-func2.c (at_func2): Likewise.
34489
34490 2009-09-23  Eric Blake  <ebb9@byu.net>
34491
34492         linkat: new module
34493         * modules/linkat: New file.
34494         * lib/at-func2.c (at_func2): Likewise.
34495         * lib/linkat.c (linkat): Likewise.
34496         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34497         * lib/openat-priv.h (at_func2): Add declaration.
34498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34499         * modules/unistd (Makefile.am): Substitute them.
34500         * lib/unistd.in.h (linkat): Declare it.
34501         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34502         * doc/posix-functions/linkat.texi (linkat): Likewise.
34503         * doc/posix-functions/link.texi (link): Tweak wording.
34504         * tests/test-link.c (main): Move guts...
34505         * tests/test-link.h (test_link): ...into new file.
34506         * modules/linkat-tests: New test.
34507         * tests/test-linkat.c: Likewise.
34508         * modules/link-tests (Files): Ship new file.
34509         (Depends-on): Add stdbool.
34510
34511         dirname: add library-safe mdir_name
34512         * lib/dirname.h (mdir_name): New prototype.
34513         * lib/dirname.c (dir_name): Move guts...
34514         (mdir_name): ...to new function that avoids xalloc_die.
34515
34516         fchdir: another mingw fix
34517         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34518         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34519         on mingw (where it has not yet been ported), and make it optional
34520         elsewhere.
34521         (_gl_register_fd): Use it.
34522
34523         same-inode: make SAME_INODE tri-state, to port to mingw
34524         * NEWS: Mention this change.
34525         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34526         st_ino always being 0.
34527         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34528         * lib/cycle-check.c (cycle_check): Likewise.
34529         * lib/same.c (same_name): Likewise.
34530
34531         lstat: avoid mingw compilation error
34532         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34533         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34534         lstat ourselves.
34535         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34536         was adequate.
34537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34538         the checks for lstat.
34539         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34540
34541         link: fix test failure on Solaris 9
34542         * lib/link.c (rpl_link): Don't assume link will catch bogus
34543         trailing slash on source.
34544
34545         test-symlinkat: enhance test
34546         * tests/test-readlink.c (main): Move guts...
34547         * tests/test-readlink.h (test_readlink): ...into new file.
34548         * tests/test-symlink.c (main): Move guts...
34549         * tests/test-symlink.h (test_symlink): ...into new file.
34550         * tests/test-symlinkat.c (main): Use new files for further
34551         coverage.
34552         (do_symlink, do_readlink): New helper functions.
34553         * modules/symlink-tests (Files): Ship new file.
34554         (Depends-on): Add stdbool.
34555         * modules/readlink-tests (Files): Ship new file.
34556         (Depends-on): Add stdbool.
34557         * modules/symlinkat-tests (Files): Use new files.
34558
34559 2009-09-23  Eric Blake  <ebb9@byu.net>
34560
34561         readlink: document portability issue with symlink length
34562         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34563         systems have bogus st_size on symlinks, and mention the
34564         areadlink-with-size module.
34565         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34566         * doc/posix-functions/readlink.texi (readlink): Mention the
34567         areadlink module, and ERANGE failure.
34568         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34569         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34570
34571         readlink: fix Solaris 9 bug with trailing slash
34572         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34573         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34574         * doc/posix-functions/readlink.texi (readlink): Document this.
34575         * modules/readlink-tests: New test.
34576         * tests/test-readlink.c: Likewise.
34577
34578         readlink: fix cygwin 1.5.x bug with return type
34579         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34580         * lib/unistd.in.h (readlink): Use ssize_t.
34581         * lib/readlink.c (readlink): Likewise.
34582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34583         * modules/unistd (Makefile.am): Substitute it.
34584         * lib/unistd.in.h (readlink): Declare replacement.
34585         * doc/posix-functions/readlink.texi (readlink): Document this.
34586
34587         symlink: use throughout gnulib
34588         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34589         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34590         symlink is not used.
34591         * modules/symlinkat (Depends-on): Add symlink.
34592         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34593         * modules/canonicalize-tests (Depends-on): Likewise.
34594         * modules/lstat-tests (Depends-on): Likewise.
34595         * modules/openat-tests (Depends-on): Likewise.
34596         * modules/remove-tests (Depends-on): Likewise.
34597         * modules/rmdir-tests (Depends-on): Likewise.
34598         * modules/unlink-tests (Depends-on): Likewise.
34599         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34600         * tests/test-canonicalize.c (symlink): Likewise.
34601         * tests/test-fstatat.c (symlink): Likewise.
34602         * tests/test-lstat.c (symlink): Likewise.
34603         * tests/test-remove.c (symlink): Likewise.
34604         * tests/test-rmdir.c (symlink): Likewise.
34605         * tests/test-unlink.c (symlink): Likewise.
34606         * tests/test-unlinkat.c (symlink): Likewise.
34607
34608         symlink: new module, for Solaris 9 bug
34609         * modules/symlink: New file.
34610         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34611         * lib/symlink.c: Likewise.
34612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34613         * modules/unistd (Makefile.am): Substitute them.
34614         * lib/unistd.in.h (symlink): Declare replacement.
34615         * MODULES.html.sh (File system functions): Mention it.
34616         * doc/posix-functions/symlink.texi (symlink): Likewise.
34617         * modules/symlink-tests: New test.
34618         * tests/test-symlink.c: Likewise.
34619
34620 2009-09-23  Bruno Haible  <bruno@clisp.org>
34621
34622         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34623         when needed.
34624         Test case: gnulib-tool --import --with-tests atexit inttypes.
34625         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34626
34627 2009-09-23  Bruno Haible  <bruno@clisp.org>
34628
34629         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34630         subcommand, not in a subshell.
34631
34632 2009-09-22  Eric Blake  <ebb9@byu.net>
34633
34634         unistd: sort replacement declarations
34635         * lib/unistd.in.h: Sort declarations.
34636
34637         open, openat: minor optimization
34638         * lib/open.c (open): If open succeeded, len is non-zero.
34639         * lib/openat.c (rpl_openat): Likewise.
34640
34641         link-follow: ensure correct result
34642         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34643         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34644         distinguish between possible failures.
34645
34646 2009-09-21  Eric Blake  <ebb9@byu.net>
34647
34648         fts: avoid compiler warning
34649         * lib/fts.c (dirent_inode_sort_may_be_useful)
34650         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34651
34652 2009-09-19  Bruno Haible  <bruno@clisp.org>
34653
34654         * lib/progreloc.c (canonicalize_file_name): New declaration.
34655
34656 2009-09-19  Eric Blake  <ebb9@byu.net>
34657
34658         link: fix quoting
34659         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34660
34661         openat: fix openat bugs on Solaris 9
34662         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34663         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34664         * modules/openat (Depends-on): Add open.
34665         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34666         * modules/fcntl-h (Makefile.am): Substitute it.
34667         * lib/fcntl.in.h (openat): Declare replacement.
34668         * doc/posix-functions/openat.texi (openat): Document this.
34669
34670         openat: move fstatat and unlinkat into correct files
34671         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34672         compiled.
34673         * lib/openat.c (fstatat, unlinkat): Move...
34674         * lib/fstatat.c (fstatat): ...into correct files.
34675         * lib/unlinkat.c (unlinkat): Likewise.
34676
34677         openat: fix unlinkat bugs on Solaris 9
34678         * lib/unlinkat.c (unlinkat): New file.
34679         * modules/openat (Depends-on): Add unlink.
34680         (Files): Distribute it.
34681         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34682         trailing slash behavior is broken.
34683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34684         * modules/unistd (Makefile.am): Substitute it.
34685         * lib/unistd.in.h (unlinkat): Declare replacement.
34686         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34687
34688         openat: fix fstatat bugs on Solaris 9
34689         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34690         stat.
34691         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34692
34693         test-unlinkat: enhance test, to expose Solaris 9 bug
34694         * tests/test-unlink.c (main): Factor guts...
34695         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34696         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34697         * tests/test-rmdir.c (main): Adjust caller.
34698         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34699         (unlinker): New helper function.
34700         (rmdirat): Enhance check.
34701         * modules/rmdir-tests (Depends-on): Add stdbool.
34702         * modules/unlink-tests (Depends-on): Likewise.
34703         (Files): Add test-unlink.h.
34704         * modules/openat-tests (Files): Likewise.
34705         (Depends-on): Add unlinkdir.
34706
34707         test-fstatat: new test, to expose Solaris 9 bugs
34708         * tests/test-stat.c (main): Factor guts...
34709         * tests/test-stat.h (test_stat_func): ...into new file.
34710         * tests/test-lstat.c (main): Factor guts...
34711         * tests/test-lstat.h (test_lstat_func): ...into new file.
34712         * tests/test-fstatat.c: New file.
34713         * modules/stat-tests (Files): Add test-stat.h.
34714         * modules/lstat-tests (Files): Add test-lstat.h.
34715         (Depends-on): Add stdbool.
34716         * modules/openat-tests (Depends-on): Add pathmax.
34717         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34718         (Makefile.am): Run new test.
34719
34720         remove: new module, for mingw and Solaris 9 bugs
34721         * modules/remove: New file.
34722         * lib/remove.c: Likewise.
34723         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34725         * modules/stdio (Makefile.am): Use them.
34726         * lib/stdio.in.h (remove): Declare replacement.
34727         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34728         * doc/posix-functions/remove.texi (remove): Likewise.
34729         * modules/remove-tests: New test.
34730         * tests/test-remove.c: Likewise.
34731
34732         unlink: new module, for Solaris 9 bug
34733         * modules/unlink: New file.
34734         * lib/unlink.c: Likewise.
34735         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34737         * modules/unistd (Makefile.am): Use them.
34738         * lib/unistd.in.h (stat): Declare replacement.
34739         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34740         * doc/posix-functions/unlink.texi (unlink): Likewise.
34741         * modules/unlink-tests: New test.
34742         * tests/test-unlink.c: Likewise.
34743
34744         lstat: fix Solaris 9 bug
34745         * lib/lstat.c (lstat): Also check for trailing slash on
34746         non-symlink, non-directories.  Use stat module to simplify logic.
34747         * doc/posix-functions/lstat.texi (lstat): Document it.
34748         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34749         (configure.ac): Check for symlink.
34750         * tests/test-lstat.c (main): Add more tests.
34751
34752         stat: add as dependency to other modules
34753         * modules/chown (Depends-on): Add stat.
34754         * modules/euidaccess (Depends-on): Likewise.
34755         * modules/fchdir (Depends-on): Likewise.
34756         * modules/isdir (Depends-on): Likewise.
34757         * modules/link (Depends-on): Likewise.
34758         * modules/lstat (Depends-on): Likewise.
34759         * modules/mkdir-p (Depends-on): Likewise.
34760         * modules/modechange (Depends-on): Likewise.
34761         * modules/open (Depends-on): Likewise.
34762         * modules/readlink (Depends-on): Likewise.
34763         * modules/same (Depends-on): Likewise.
34764
34765         stat: fix Solaris 9 bug
34766         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34767         slash.
34768         * lib/stat.c (rpl_stat): Work around it.
34769         * doc/posix-functions/stat.texi (stat): Update documentation.
34770
34771         stat: new module, for mingw bug
34772         * modules/stat: New file.
34773         * lib/stat.c: Likewise.
34774         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34775         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34776         * modules/sys_stat (Makefile.am): Use them.
34777         * lib/sys_stat.in.h (stat): Declare replacement.
34778         * lib/openat.c (fstatat): Deal with lstat and stat being function
34779         macros.
34780         * modules/openat (Depends-on): Add inline.
34781         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34782         * doc/posix-functions/stat.texi (stat): Likewise.
34783         * modules/stat-tests: New test.
34784         * tests/test-stat.c: Likewise.
34785
34786 2009-09-19  Jim Meyering  <meyering@redhat.com>
34787
34788         syntax-check: detect unnecessary inclusion of canonicalize.h
34789         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34790
34791 2009-09-19  Eric Blake  <ebb9@byu.net>
34792
34793         canonicalize-lgpl: adjust clients to use correct header
34794         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34795         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34796         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34797         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34798         * lib/progreloc.c (includes): Likewise.
34799
34800 2009-09-19  Jim Meyering  <meyering@redhat.com>
34801
34802         test-posixtm.c: correct a comment
34803         * tests/test-posixtm.c: Correct first-line comment.
34804         Spotted by Eric Blake.
34805
34806 2009-09-16  Jim Meyering  <meyering@redhat.com>
34807
34808         posixtm-tests: make T const-correct; add a test case
34809         * tests/test-posixtm.c (T): Declare const.
34810         Add a test for -(2^31+1).
34811         Remove useless can-succeed-only-in-2002 test.
34812
34813         posixtm-tests: adjust the sole failing test
34814         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34815         expected output matches what mktime now produces.  Cross-checked via
34816         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34817
34818         posixtm: move #ifdef'd tests into a new module
34819         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34820         * tests/test-posixtm.c: ... this new file.
34821         * modules/posixtm-tests: New module.
34822
34823 2009-09-19  Eric Blake  <ebb9@byu.net>
34824
34825         openat: simplify use of at-func.c
34826         * lib/at-func.c (includes): Include prerequisites here, to
34827         simplify requirements on client files.
34828         * lib/openat-priv.h: Add double-inclusion guard.
34829         * lib/faccessat.c (includes): Simplify.
34830         * lib/fchmodat.c (includes): Likewise.
34831         * lib/fchownat.c (includes): Likewise.
34832         * lib/mkdirat.c (includes): Likewise.
34833         * lib/mkfifoat.c (includes): Likewise.
34834         * lib/symlinkat.c (includes): Likewise.
34835
34836         openat: allow return of fd 0
34837         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34838         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34839         unistd-safer.
34840         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34841         <fcntl.h>; this module does not leak fds.
34842         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34843         must be allowed to return 0, leaving openat_safer to add the
34844         safety.
34845         (openat_permissive): Avoid writing to just-opened fd 2 if
34846         restoring the current directory fails.
34847         * lib/openat-die.c (openat_restore_fail): Add comment.
34848         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34849         (save_cwd): Guarantee safe fd, but without use of open_safer.
34850         * tests/test-openat.c: New test.
34851         * modules/openat-tests (Files, Makefile.am): Distribute and build
34852         new file.
34853
34854         relocatable-prog-wrapper: fix build
34855         * modules/relocatable-prog-wrapper (Files): Update name of
34856         canonicalize m4 file, broken on 2009-09-17.
34857         Reported by emad hajjar <aleppos@hotmail.com>.
34858
34859 2009-09-19  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34862         * lib/safe-alloc.c: Likewise.
34863         Reported by Ian Beckwith <ianb@erislabs.net>.
34864
34865 2009-09-18  Bruno Haible  <bruno@clisp.org>
34866
34867         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34868         Reported by <erobles@sensacd.com.mx>.
34869
34870 2009-09-17  Eric Blake  <ebb9@byu.net>
34871
34872         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34873         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34874         slashes when checking if last component is missing.
34875         * tests/test-canonicalize.c (main): Test this.
34876
34877         canonicalize, canonicalize-lgpl: honor // if distinct from /
34878         * modules/canonicalize (Files): Add double-slash-root.m4.
34879         * modules/canonicalize-lgpl (Files): Likewise.
34880         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34881         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34882         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34883         fallback definition.
34884         (canonicalize_filename_mode): Use it to protect //.
34885         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34886         (__realpath): Likewise.
34887         * tests/test-canonicalize.c (main): Test this.
34888         * tests/test-canonicalize-lgpl.c (main): Likewise.
34889         * modules/canonicalize-tests (Depends-on): Add same-inode.
34890         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34891
34892         canonicalize-lgpl: fix glibc bug with trailing slash
34893         * m4/canonicalize-lgpl.m4: Move contents...
34894         * m4/canonicalize.m4: ...here.
34895         (gl_CANONICALIZE_LGPL): Factor realpath check...
34896         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34897         glibc 2.3.5 bug, fixed 2005-04-27.
34898         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34899         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34900         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34901         * modules/canonicalize-lgpl (Files): Manage file rename.
34902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34903         * modules/stdlib (Makefile.am): Substitute witness.
34904         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34905         is needed.
34906         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34907         replacement is required.
34908         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34909         * doc/glibc-functions/canonicalize_file_name.texi
34910         (canonicalize_file_name): Document this.
34911         * doc/posix-functions/realpath.texi (realpath): Likewise.
34912
34913         canonicalize-lgpl: reject non-directory with trailing slash
34914         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34915         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34916         catches failures in glibc 2.3.5.
34917         * tests/test-canonicalize.c (main): Likewise.
34918
34919         canonicalize-lgpl: use native realpath if it works
34920         * lib/canonicalize-lgpl.c (realpath): Guard with
34921         FUNC_REALPATH_WORKS.
34922         * lib/stdlib.in.h (realpath): Make declaration optional based on
34923         HAVE_REALPATH.
34924         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34925         native realpath works.
34926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34927         * modules/stdlib (Makefile.am): Substitute witness.
34928
34929         canonicalize, canonicalize-lgpl: use <stdlib.h>
34930         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34931         (Include): Mention <stdlib.h>.
34932         (configure.ac): Mention functions we provide.
34933         * modules/canonicalize (configure.ac): Likewise.
34934         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34935         realpath if canonicalize_file_name is missing.
34936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34937         * modules/stdlib (Makefile.am): Substitute witnesses.
34938         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34939         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34940         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34941         * NEWS: Document this.
34942         * doc/glibc-functions/canonicalize_file_name.texi
34943         (canonicalize_file_name): Likewise.
34944         * doc/posix-functions/realpath.texi (realpath): Likewise.
34945         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34946
34947         test-canonicalize: consolidate into single C program
34948         * tests/test-canonicalize.sh: Delete; move setup into...
34949         * tests/test-canonicalize.c (main): ...the program, making it
34950         easier to run in debugger.  Add some tests.
34951         * modules/canonicalize-tests (Files): Remove unused file.
34952         (Depends-on): Add progname.
34953         (configure.ac, Makefile.am): Simplify.
34954
34955         test-canonicalize-lgpl: consolidate into single C program
34956         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34957         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34958         easier to run in debugger.  Add some tests.
34959         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34960         (configure.ac, Makefile.am): Simplify.
34961
34962         canonicalize: avoid resolvepath
34963         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34964         unnecessary checks.
34965         * lib/canonicalize.c (includes): Simplify.
34966         (canonicalize_file_name): Drop resolvepath implementation.
34967         * modules/canonicalize (Depends-on): Drop filenamecat.
34968
34969         canonicalize: don't lose errno
34970         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34971         over calls to free.
34972
34973         canonicalize: simplify errno handling
34974         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34975         assignment.
34976
34977         canonicalize, canonicalize-lgpl: update module dependencies
34978         * modules/canonicalize (Depends-on): Add extensions, lstat,
34979         pathmax, stdlib.
34980         (Files): Drop pathmax.h.
34981         (configure.ac): Adjust macro name.
34982         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34983         lstat, stdlib, sys_stat.
34984         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34985         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34986         extensions.
34987         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34988         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34989         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34990         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34991         declaration, if available.
34992         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34993         we can rely on the readlink module.
34994         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34995         (includes): Use <unistd.h> unconditionally.
34996
34997 2009-09-17  Eric Blake  <ebb9@byu.net>
34998
34999         maint: make Include sections of modules consistent
35000         * modules/alloca: Use only header name; no need to list #include.
35001         * modules/alloca-opt: Likewise.
35002         * modules/arpa_inet: Likewise.
35003         * modules/canon-host: Likewise.
35004         * modules/configmake: Likewise.
35005         * modules/dirent: Likewise.
35006         * modules/eealloc: Likewise.
35007         * modules/environ: Likewise.
35008         * modules/fchdir: Likewise.
35009         * modules/fcntl: Likewise.
35010         * modules/fcntl-h: Likewise.
35011         * modules/gethrxtime: Likewise.
35012         * modules/gettime: Likewise.
35013         * modules/ignore-value: Likewise.
35014         * modules/inet_ntop: Likewise.
35015         * modules/inet_pton: Likewise.
35016         * modules/inttypes: Likewise.
35017         * modules/isnand-nolibm: Likewise.
35018         * modules/isnanf-nolibm: Likewise.
35019         * modules/mbchar: Likewise.
35020         * modules/mbfile: Likewise.
35021         * modules/mbiter: Likewise.
35022         * modules/mbuiter: Likewise.
35023         * modules/netdb: Likewise.
35024         * modules/netinet_in: Likewise.
35025         * modules/nproc: Likewise.
35026         * modules/pagealign_alloc: Likewise.
35027         * modules/poll: Likewise.
35028         * modules/printf-frexp: Likewise.
35029         * modules/pthread: Likewise.
35030         * modules/putenv: Likewise.
35031         * modules/random_r: Likewise.
35032         * modules/relocatable-prog: Likewise.
35033         * modules/search: Likewise.
35034         * modules/select: Likewise.
35035         * modules/selinux-h: Likewise.
35036         * modules/settime: Likewise.
35037         * modules/signal: Likewise.
35038         * modules/size_max: Likewise.
35039         * modules/socklen: Likewise.
35040         * modules/ssize_t: Likewise.
35041         * modules/stdarg: Likewise.
35042         * modules/stdbool: Likewise.
35043         * modules/stddef: Likewise.
35044         * modules/stdint: Likewise.
35045         * modules/stdio: Likewise.
35046         * modules/stdlib: Likewise.
35047         * modules/string: Likewise.
35048         * modules/strings: Likewise.
35049         * modules/sys_file: Likewise.
35050         * modules/sys_ioctl: Likewise.
35051         * modules/sys_select: Likewise.
35052         * modules/sys_socket: Likewise.
35053         * modules/sys_stat: Likewise.
35054         * modules/sys_time: Likewise.
35055         * modules/sys_times: Likewise.
35056         * modules/sys_utsname: Likewise.
35057         * modules/sys_wait: Likewise.
35058         * modules/sysexits: Likewise.
35059         * modules/time: Likewise.
35060         * modules/times: Likewise.
35061         * modules/tmpfile: Likewise.
35062         * modules/trim: Likewise.
35063         * modules/unistd: Likewise.
35064         * modules/wchar: Likewise.
35065         * modules/wctype: Likewise.
35066
35067 2009-09-17  Bruno Haible  <bruno@clisp.org>
35068
35069         Make getdate.y compile on QNX and NetBSD 5 / i386.
35070         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35071         TIME_T_FITS_IN_LONG_INT.
35072         * lib/getdate.y (long_time_t): New type.
35073         (relative_time): Change type of 'seconds' field to long_time_t.
35074         (get_date): Update types of local variables. Check against overflow
35075         during conversion from long_time_t to time_t.
35076         Reported by Matt Kraai <kraai@ftbfs.org>
35077         and Hasso Tepper <hasso@netbsd.org>.
35078
35079 2009-09-17  Bruno Haible  <bruno@clisp.org>
35080
35081         * modules/COPYING: Update copyright years.
35082         * modules/README: Likeiwse.
35083         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35084         Reported by Ian Beckwith <ianb@erislabs.net>.
35085
35086 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35087
35088         * users.txt: Update references for gnuit package.
35089
35090 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35091
35092         * m4/getdelim.m4: Fix typo in copyright line.
35093
35094 2009-09-17  Bruno Haible  <bruno@clisp.org>
35095
35096         * lib/atoll.c: Use the standard header with GPL copyright.
35097         * lib/argz.in.h: Likewise.
35098         * lib/glob.c: Likewise.
35099         * lib/glob-libc.h: Likewise.
35100         * lib/random_r.c: Likewise.
35101         * lib/siglist.h: Likewise.
35102         * lib/strsignal.c: Likewise.
35103         Reported by Ian Beckwith <ianb@erislabs.net>.
35104
35105 2009-09-17  Eric Blake  <ebb9@byu.net>
35106
35107         rmdir: ensure correct dependency order
35108         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35109
35110 2009-09-17  Bruno Haible  <bruno@clisp.org>
35111
35112         Disable assertion that fails on NetBSD 5 / i386.
35113         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35114         Reported by Sam Steingold <sds@gnu.org>
35115         and Hasso Tepper <hasso@netbsd.org>.
35116
35117 2009-09-16  Eric Blake  <ebb9@byu.net>
35118
35119         unlinkdir: port to mingw
35120         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35121         on which no one can unlink a directory.
35122
35123         stdlib: sort witness names
35124         * modules/stdlib (Makefile.am): Sort replacements.
35125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35126         * lib/stdlib.in.h: Likewise.
35127
35128         parse-duration-tests: avoid link failure
35129         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35130         LIBINTL.
35131         Reported by Tom G. Christensen.
35132
35133         openat-tests: ensure unlinkat behaves like rmdir
35134         * tests/test-rmdir.c (main): Factor guts...
35135         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35136         * modules/rmdir-tests (Files): Ship new file.
35137         * modules/openat-tests: New test.
35138         * tests/test-unlinkat.c: Likewise.
35139
35140         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35141         * modules/rmdir-errno (Status, Notice): Now obsolete.
35142
35143         rmdir: work around cygwin 1.5.x and mingw bugs
35144         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35145         * lib/rmdir.c (rmdir): Work around it.
35146         * modules/rmdir (Status, Notice): No longer obsolete.
35147         (Files): Add dos.m4.
35148         (Depends-on): Add unistd.
35149         (configure.ac): Set witnesses.
35150         (License): Relax to LGPLv2+.
35151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35152         * modules/unistd (Makefile.am): Substitute witnesses.
35153         * lib/unistd.in.h (rmdir): Declare replacement.
35154         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35155         * modules/rmdir-tests: New tests.
35156         * tests/test-rmdir.c: Likewise.
35157
35158 2009-09-15  Eric Blake  <ebb9@byu.net>
35159
35160         fchdir: improve use of replacement functions
35161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35164         REPLACE_CLOSEDIR.
35165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35166         * modules/sys_stat (Makefile.am): Substitute correct witness.
35167         * modules/dirent (Makefile.am): Likewise.
35168         * modules/unistd (Makefile.am): Likewise.
35169         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35170         * lib/unistd.in.h (dup): Likewise.
35171         * lib/sys_stat.in.h (fstat): Likewise.
35172
35173         maint: ignore gnulib-tool temp files
35174         * .gitignore: Ignore files created during gnulib-tool --test.
35175
35176 2009-09-13  Jim Meyering  <meyering@redhat.com>
35177
35178         posixtm: don't reject a time that specify "60" as the number of seconds
35179         * lib/posixtm.c (posixtime): The code to reject invalid dates
35180         would also reject a time specified with the .60 suffix.
35181         But POSIX allows that, in order to accommodate leap seconds.
35182         So don't reject it.
35183         (main): Adjust tests accordingly.
35184         * modules/posixtm (Depends-on): Add stpcpy.
35185
35186 2009-09-11  Jim Meyering  <meyering@redhat.com>
35187
35188         announce-gen: include [$release_type] in emitted Subject:
35189         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35190         e.g., [stable] in the emitted Subject: line.
35191
35192 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35193
35194         Remove obsolete macros from several modules.
35195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35196         obsolete Autoconf macros with their modern counterparts.
35197         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35198         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35199         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35200         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35201         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35202         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35204         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35205         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35206         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35207         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35208         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35209         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35210         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35211         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35212         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35213         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35214         * m4/time_r.m4 (gl_TIME_R): Likewise.
35215         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35216         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35217         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35218
35219         Fix copyright header in build-aux scripts.
35220         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35221         recommendation.
35222         * build-aux/ncftpput-ftp: Likewise.
35223         * build-aux/update-copyright: Likewise.
35224
35225 2009-09-09  Eric Blake  <ebb9@byu.net>
35226
35227         test-link: allow Linux choice of errno
35228         * tests/test-link.c (main): Relax test for alternate error.
35229
35230         strndup: fix improper m4 caching
35231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35232         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35233         (gl_PREREQ_STRNDUP): Delete.
35234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35235         * modules/string (Makefile.am): Substitute it.
35236         * lib/string.in.h (strndup): Modernize prototype.
35237
35238         getcwd: port to mingw
35239         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35240         different from the POSIX assumptions made throughout the getcwd
35241         module; fortunately, the mingw getcwd does not need replacement.
35242         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35243         * modules/getcwd-tests: New test.
35244         * tests/test-getcwd.c: Likewise.
35245
35246         link: fix platform bugs
35247         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35248         * lib/link.c (link): Work around them.  Fix related mingw bug.
35249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35250         * modules/unistd (Makefile.am): Substitute it.
35251         * lib/unistd.in.h (link): Declare replacement.
35252         * doc/posix-functions/link.texi (link): Document this.
35253         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35254
35255         test-link: consolidate into single C program, test more cases
35256         * tests/test-link.sh: Delete.
35257         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35258         at least Cygwin and Solaris.
35259         * modules/link-tests (Files): Remove unused file.
35260         (Depends-on): Add errno, sys_stat.
35261         (Makefile.am): Simplify.
35262
35263 2009-09-08  Bruno Haible  <bruno@clisp.org>
35264
35265         Work around towlower, towupper bug on mingw.
35266         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35267         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35268         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35269         * doc/posix-functions/towupper.texi: Likewise.
35270         Reported by Eric Blake.
35271
35272 2009-09-08  Jim Meyering  <meyering@redhat.com>
35273
35274         build: don't try to run autoheader if we don't use it
35275         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35276         is not used in configure.ac.
35277
35278 2009-09-08  Eric Blake  <ebb9@byu.net>
35279
35280         euidaccess: fix compilation error
35281         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35282
35283         rawmemchr: relax license
35284         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35285         okay.
35286         Reported by Jim Meyering.
35287
35288         mkfifoat: new module
35289         * modules/mkfifoat: New file.
35290         * lib/mkfifoat.c: Likewise.
35291         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35292         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35293         * modules/sys_stat (Makefile.am): Use them.
35294         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35295         * MODULES.html.sh (File system functions): Mention module.
35296         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35297         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35298         * modules/mkfifoat-tests: New test.
35299         * tests/test-mkfifoat.c: Likewise.
35300
35301         strchrnul: relax license
35302         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35303         okay.
35304         Reported by Jim Meyering.
35305
35306 2009-09-08  Eric Blake  <ebb9@byu.net>
35307
35308         fstatat: fix compilation on Solaris
35309         * lib/fstatat.c (includes): Add fcntl.h.
35310         Reported by Pádraig Brady.
35311
35312 2009-09-07  Eric Blake  <ebb9@byu.net>
35313
35314         rename: modernize replacement
35315         * modules/rename (Depends-on): Add stdio.
35316         (configure.ac): Declare witness.
35317         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35318         stdio take care of replacement.
35319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35320         * modules/stdio (Makefile.am): Substitute them.
35321         * lib/stdio.in.h (rename): Declare replacement.
35322         * lib/rename.c (includes): Allow cross-compilation to non-windows
35323         machines.
35324         * doc/posix-functions/rename.texi (rename): Improve
35325         documentation.
35326
35327         stdio: sort witness names
35328         * modules/stdio (Makefile.am): Sort replacements.
35329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35330         * lib/stdio.in.h: Likewise.
35331
35332         getcwd: minor cleanups
35333         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35334         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35335
35336         openat: provide more convenience names
35337         * modules/faccessat (configure.ac): Add C witness.
35338         * lib/unistd.in.h (readlinkat): Fix typo.
35339         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35340         convenience wrappers.
35341         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35342         wrappers in syntax checks.
35343
35344 2009-09-06  Eric Blake  <ebb9@byu.net>
35345
35346         doc: fix comments in recent patches
35347         * lib/faccessat.c: Mention correct function.
35348         * lib/fchmodat.c: Likewise.
35349         * lib/fchownat.c: Likewise.
35350         * lib/symlinkat.c: Likewise.
35351         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35352         constants.
35353
35354         faccessat, symlinkat: continue cleanup of previous patch
35355         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35356         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35357         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35359         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35360         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35361         set.
35362
35363 2009-09-06  Bruno Haible  <bruno@clisp.org>
35364
35365         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35366         (fstatat): Declare if GNULIB_FSTATAT is set.
35367         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35368         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35369         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35370         * modules/fcntl-h (Files): Remove m4/openat.m4.
35371         * modules/sys_stat (Files): Remove m4/openat.m4.
35372         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35373         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35374         * modules/unistd (Files): Remove m4/openat.m4.
35375         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35376         GNULIB_OPENAT.
35377         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35378         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35380         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35381         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35382         gl_OPENAT_DEFAULTS.
35383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35384         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35385         Don't require gl_OPENAT_DEFAULTS.
35386         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35387         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35388         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35389         (gl_OPENAT_DEFAULTS): Remove macro.
35390
35391 2009-09-06  Bruno Haible  <bruno@clisp.org>
35392
35393         * modules/openat (configure.ac): Remove unneeded witness.
35394
35395 2009-09-06  Bruno Haible  <bruno@clisp.org>
35396
35397         Set errno to ENOSYS when a function is entirely unsupported.
35398         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35399         EOPNOTSUPP.
35400         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35401         * modules/chown (Depends-on): Remove errno.
35402
35403 2009-09-06  Bruno Haible  <bruno@clisp.org>
35404
35405         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35406
35407 2009-09-06  Bruno Haible  <bruno@clisp.org>
35408
35409         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35410
35411 2009-09-06  Ben Pfaff  <blp@gnu.org>
35412             Bruno Haible  <bruno@clisp.org>
35413
35414         Work around a glibc bug in strtok_r.
35415         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35416         Undefine if UNDEFINE_STRTOK_R is set.
35417         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35419         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35420         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35421         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35422         UNDEFINE_STRTOK_R.
35423         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35424
35425 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35426
35427         exclude: minor fix
35428         * lib/exclude.c: Include wctype.h
35429
35430 2009-09-06  Akim Demaille  <demaille@gostai.com>
35431
35432         bootstrap: improve error message
35433         * build-aux/bootstrap (find_tool): Upon failure, report the list
35434         of candidates.
35435         Honor the initial value of the envvar.
35436
35437 2009-09-05  Eric Blake  <ebb9@byu.net>
35438
35439         symlinkat: new module
35440         * modules/symlinkat: New file.
35441         * lib/symlinkat.c: Likewise.
35442         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35444         * modules/unistd (Makefile.am): Use them.
35445         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35446         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35447         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35448         * MODULES.html.sh (File system functions): Mention module.
35449         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35450         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35451         * modules/symlinkat-tests: New test.
35452         * tests/test-symlinkat.c: Likewise.
35453
35454         test-openat-safer: add more checks
35455         * tests/test-openat-safer.c (main): Check more code paths.
35456
35457 2009-09-05  Jim Meyering  <meyering@redhat.com>
35458
35459         syntax-check: detect unnecessary inclusion of openat.h
35460         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35461
35462 2009-09-05  Bruno Haible  <bruno@clisp.org>
35463
35464         Support towlower, towupper.
35465         * doc/posix-functions/towlower.texi: Mention module wctype.
35466         * doc/posix-functions/towupper.texi: Likewise.
35467         * lib/wctype.in.h (towlower, towupper): New functions.
35468         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35469         (ASSERT): New macro.
35470         (e): New variable.
35471         (main): Test also towlower, towupper. Test WEOF argument.
35472         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35473
35474 2009-09-05  Bruno Haible  <bruno@clisp.org>
35475
35476         Fix conversion behaviour when the input is invalid.
35477         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35478         mark occurring in first pass of indirect conversion.
35479         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35480         input.
35481         Found by clang's static analyzer.
35482
35483 2009-09-05  Bruno Haible  <bruno@clisp.org>
35484
35485         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35486         where direct conversion is possible.
35487
35488 2009-09-04  Eric Blake  <ebb9@byu.net>
35489
35490         openat: fail with ENOENT on empty name
35491         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35492         buffer.
35493
35494         link-follow: fix logic bug in prior patch
35495         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35496         reversed sense of yes and no in prior patch.  Avoid confusing
35497         compilation failure with desired semantics.
35498
35499         link-follow: accomodate mingw and cross-compilation
35500         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35501         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35502         cross-compilation results to -1, to make linkat easier to
35503         implement when cross-compiling.  Trivially support mingw.
35504         * modules/link-follow (configure.ac): Call new name.
35505         * NEWS: Mention this.
35506
35507 2009-09-03  Eric Blake  <ebb9@byu.net>
35508
35509         faccessat: compile replacement
35510         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35511         needed.
35512
35513         fts: fix compilation error
35514         * lib/fts.c (includes): Re-add "openat.h", for
35515         openat_needs_fchdir.
35516
35517         faccessat: new module
35518         * modules/faccessat: New file.
35519         * lib/faccessat.c: Likewise.
35520         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35522         * modules/unistd (Makefile.am): Use it.
35523         * lib/unistd.in.h (faccessat): Declare it.
35524         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35525         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35526         * MODULES.html.sh (File system functions): Mention it.
35527         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35528         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35529
35530         euidaccess: prefer POSIX over non-standard implementation
35531         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35532         * lib/euidaccess.c (euidaccess): Use it if available.
35533
35534         openat: make template easier to use
35535         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35536         AT_FUNC_F2 to be undefined.
35537         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35538         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35539         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35540         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35541         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35542         Likewise.
35543         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35544         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35545         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35546         Likewise.
35547
35548         openat: declare in POSIX headers
35549         * NEWS: Mention this.
35550         * modules/openat (configure.ac): Declare witnesses.
35551         (Depends-on): Add fcntl-h, sys_stat, unistd.
35552         (Include): Mention correct headers.
35553         * modules/fcntl-h (Depends-on): Add link-warning.
35554         (Files): Add openat.m4.
35555         (Makefile.am): Substitute witnesses.
35556         * modules/sys_stat (Files, Makefile.am): Likewise.
35557         * modules/unistd (Files, Makefile.am): Likewise.
35558         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35559         (gl_OPENAT_DEFAULTS): New macro.
35560         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35562         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35563         (SYS_STAT_H): Remove unused variable.
35564         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35565         * lib/fcntl--.h (includes): Remove unneeded header.
35566         * lib/openat-safer.c (includes): Likewise.
35567         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35568         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35569         appropriate headers.
35570         (__OPENAT_PREFIX): Delete.
35571         * lib/fcntl.in.h (openat): Provide declaration.
35572         (AT_FDCWD): Fix Solaris bug.
35573         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35574         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35575         * lib/fchmodat.c (includes):  Adjust to find declaration.
35576         * lib/fchownat.c (includes): Likewise.
35577         * lib/mkdirat.c (includes): Likewise.
35578         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35579         still visible.
35580
35581 2009-09-02  Eric Blake  <ebb9@byu.net>
35582
35583         errno: use consistently
35584         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35585         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35586         * lib/canonicalize.c (ELOOP): Likewise.
35587         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35588         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35589         * lib/lchown.c (EOPNOTSUPP): Likewise.
35590         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35591         * lib/savewd.c (ESTALE): Likewise.
35592         * lib/settime.c (ENOSYS): Likewise.
35593         * lib/utimens.c (ENOSYS): Likewise.
35594         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35595         * lib/chdir-safer.c (ELOOP): Likewise.
35596         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35597         * modules/c-stack (Depends-on): Add errno.
35598         * modules/canonicalize (Depends-on): Likewise.
35599         * modules/chdir-safer (Depends-on): Likewise.
35600         * modules/fdopendir (Depends-on): Likewise.
35601         * modules/inet_ntop (Depends-on): Likewise.
35602         * modules/inet_pton (Depends-on): Likewise.
35603         * modules/lchown (Depends-on): Likewise.
35604         * modules/openat (Depends-on): Likewise.
35605         * modules/savewd (Depends-on): Likewise.
35606         * modules/settime (Depends-on): Likewise.
35607         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35608
35609         fts: avoid leaking fds
35610         * modules/fts (Depends-on): Add cloexec.
35611         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35612         flag.
35613
35614         fts: make directory fds more robust
35615         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35616         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35617
35618         backupfile, chdir-long, fts, savedir: make safer
35619         * lib/backupfile.c (includes): Use "dirent--.h", since
35620         numbered_backup can write to stderr during readdir.
35621         * lib/savedir.c (includes): Likewise.
35622         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35623         emulation can write to stderr on failure.
35624         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35625         * lib/getcwd.c: Document why opendir_safer is unused.
35626         * lib/glob.c: Likewise.
35627         * lib/scandir.c: Likewise.
35628         * lib/openat-proc.c: Likewise, for open_safer.
35629         * modules/backupfile (Depends-on): Add dirent-safer.
35630         * modules/savedir (Depends-on): Likewise.
35631         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35632         * modules/chdir-long (Depends-on): Add openat-safer.
35633
35634         openat-safer: new module
35635         * modules/openat-safer: New file.
35636         * lib/openat-safer.c: Likewise.
35637         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35638         * lib/fcntl-safer.h (openat_safer): Declare.
35639         * lib/fcntl--.h (openat): Override.
35640         * MODULES.html.sh (File descriptor based I/O): Mention it.
35641         * lib/openat.h: Add double-inclusion guards.
35642         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35643         "fcntl--.h", so we can implement openat.
35644         * modules/openat-safer-tests: New test.
35645         * tests/test-openat-safer.c: New file.
35646
35647         dirent-safer: new module
35648         * modules/dirent-safer: New file.
35649         * lib/dirent--.h: Likewise.
35650         * lib/dirent-safer.h: Likewise.
35651         * lib/opendir-safer.c: Likewise.
35652         * m4/dirent-safer.m4: Likewise.
35653         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35654         * modules/dirent-safer-tests: New test.
35655         * tests/test-dirent-safer.c: New file.
35656         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35657
35658         fdopendir: optimize on mingw
35659         * lib/unistd.in.h (_gl_directory_name): New prototype.
35660         * lib/fchdir.c (_gl_directory_name): Implement it.
35661         (fchdir): Use it to simplify implementation.
35662         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35663         fchdir, when available, to avoid calling [f]chdir().
35664
35665         fdopendir: split into its own module
35666         * lib/openat.c (fdopendir): Move...
35667         * lib/fdopendir.c: ...into new file.
35668         * modules/fdopendir: New module.
35669         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35670         * modules/openat (Depends-on): Add fdopendir.
35671         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35672         fdopendir here.
35673         * modules/savedir (Depends-on): Only need fdopendir, not full
35674         openat.
35675         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35676         * lib/openat.h (fdopendir): Drop prototype.
35677         * lib/dirent.in.h (fdopendir): Provide prototype.
35678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35679         * modules/dirent (Makefile.am): Substitute them.
35680         * MODULES.html.sh (File system functions): Mention it.
35681         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35682         * modules/fdopendir-tests: New file.
35683         * tests/test-fdopendir.c: Likewise.
35684
35685         fchdir: use more consistent macro convention
35686         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35687         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35688         REPLACE_FCHDIR, rather than relying on config.h macros.
35689         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35690         inside a single make-time REPLACE_FCHDIR block, rather than using
35691         the config.h FCHDIR_REPLACEMENT.
35692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35693         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35694         Manage fstat replacement.
35695         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35696         REPLACE_FCHDIR.
35697         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35698         (Makefile.am): Substitute REPLACE_FCHDIR.
35699         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35700         FCHDIR_REPLACEMENT.
35701         * lib/dup-safer.c (dup_safer): Likewise.
35702         * lib/dup2.c (rpl_dup2): Likewise.
35703         * lib/dup3.c (rpl_dup3): Likewise.
35704         * lib/open.c (rpl_open): Likewise.
35705
35706         fchdir: simplify error handling, and support dup3
35707         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35708         stdbool, malloc-posix, realloc-posix.
35709         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35710         (ensure_dirs_slot): Return false on allocation failure.
35711         (rpl_dup2): Delete.
35712         (_gl_register_dup): New function.
35713         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35714         (_gl_register_fd): Close fd on allocation failure.
35715         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35716         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35717         prototype.
35718         (rpl_dup2_fchdir): Delete prototype.
35719         * lib/open.c (open): Update caller.
35720         * lib/dup2.c (dup2): Track fchdir metadata.
35721         * lib/dup3.c (dup3): Likewise.
35722         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35724
35725 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35726
35727         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35728         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35729         don't pass arguments to AC_OUTPUT.
35730
35731 2009-09-02  Bruno Haible  <bruno@clisp.org>
35732
35733         * modules/mkdtemp (License): Relicense under LGPLv2+.
35734         Reported by Paolo Bonzini.
35735
35736 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35737
35738         Replace uses of obsolete autoconf macros in Jim's modules.
35739         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35740         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35741         can evoke a warning from autoconf when run with -Wobsolete
35742         enabled.  They were declared obsolete for good reasons (see
35743         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35744         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35745         should not continue using the deprecated macros.
35746         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35747         obsolete Autoconf macros with modern counterparts.
35748         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35749         * m4/dos.m4 (gl_AC_DOS): Likewise.
35750         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35751         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35752         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35753         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35754         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35755         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35756         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35757         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35758         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35759         Likewise.
35760         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35761         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35762         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35763         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35764         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35765         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35766
35767 2009-09-01  Eric Blake  <ebb9@byu.net>
35768
35769         fchdir: fix off-by-one bug in previous patch
35770         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35771         (_gl_unregister_fd): Delete useless if.
35772
35773 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35774
35775         maint.mk: sort the list of syntax-check rules
35776         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35777         easier to get a sense of progress when the rules are run sequentially
35778         and take a long time.
35779
35780 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35781
35782         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35783         * modules/netinet_in: Likewise.
35784         * modules/sys_file: Likewise.
35785         * modules/sys_ioctl: Likewise.
35786         * modules/sys_select: Likewise.
35787         * modules/sys_socket: Likewise.
35788         * modules/sys_stat: Likewise.
35789         * modules/sys_time: Likewise.
35790         * modules/sys_times: Likewise.
35791         * modules/sys_utsname: Likewise.
35792         * modules/sys_wait: Likewise.
35793
35794 2009-09-01  Jim Meyering  <meyering@redhat.com>
35795
35796         fts: help ensure that return values are not ignored
35797         * lib/fts_.h (__GNUC_PREREQ): Define.
35798         (__attribute_warn_unused_result__): Define.
35799         (fts_children, fts_close, fts_open, fts_read): Declare with
35800         __attribute_warn_unused_result__.
35801
35802         fts: fts_close now fails also when closing a dir file descriptor fails
35803         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35804         and propagate to caller, along with errno.
35805
35806         announce-gen: correct formatting in --help output
35807         * build-aux/announce-gen (usage): Move the one-line description in
35808         --help output "up", to where it belongs, just after Usage:.
35809
35810 2009-08-31  Eric Blake  <ebb9@byu.net>
35811
35812         fchdir: port to mingw
35813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35814         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35815         opened, then use a substitute.
35816         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35817         replacement.
35818         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35819         (_gl_register_fd): No need to check stat if open already filters
35820         all directories.
35821         (fchdir): Fix error condition to match POSIX.
35822         * modules/fchdir (Depends-on): Add sys_stat.
35823         * doc/posix-functions/open.texi (open): Document the limitation.
35824         * modules/fchdir-tests: New file.
35825         * tests/test-fchdir.c: Likewise.
35826
35827         canonicalize: allow cross-testing from cygwin to mingw
35828         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35829         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35830         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35831         Likewise.
35832         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35833         target does not support symlinks.
35834         * tests/test-canonicalize-lgpl.sh: Likewise.
35835
35836         chown: avoid compilation warning on mingw
35837         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35838         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35839         mingw.
35840         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35841         * modules/chown (Depends-on): Add errno.
35842
35843 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35844
35845         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35846         command.
35847
35848 2009-08-31  Jim Meyering  <meyering@redhat.com>
35849
35850         canonicalize: remove useless initialization
35851         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35852         initialization of local, "end".
35853
35854 2009-08-30  Bruno Haible  <bruno@clisp.org>
35855
35856         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35857         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35858         ENOSYS.
35859
35860 2009-08-30  Bruno Haible  <bruno@clisp.org>
35861
35862         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35863         /usr/xpg4/bin/tr when it exists.
35864         * tests/test-pipe-filter-gi1.sh: Likewise.
35865
35866 2009-08-30  Bruno Haible  <bruno@clisp.org>
35867
35868         Work around deficient /usr/bin/id program on Solaris.
35869         * tests/test-file-has-acl.sh (ID): New variable.
35870         * tests/test-set-mode-acl.sh (ID): Likewise.
35871         * tests/test-copy-acl.sh (ID): Likewise.
35872         * tests/test-copy-file.sh (ID): Likewise.
35873
35874 2009-08-30  Bruno Haible  <bruno@clisp.org>
35875
35876         New module 'xstriconveh'.
35877         * lib/xstriconveh.h: New file.
35878         * lib/xstriconveh.c: New file.
35879         * modules/xstriconveh: New file.
35880
35881 2009-08-30  Bruno Haible  <bruno@clisp.org>
35882
35883         Make it easier to use mem_cd_iconveh.
35884         * lib/striconveh.h (iconveh_t): New type.
35885         (iconveh_open, iconveh_close): New declarations.
35886         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35887         with a single 'const iconveh_t *' argument.
35888         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35889         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35890         with a single 'const iconveh_t *' argument.
35891         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35892         * tests/test-striconveh.c (main): Update.
35893         * NEWS: Mention the change.
35894
35895 2009-08-30  Bruno Haible  <bruno@clisp.org>
35896
35897         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35898         problem.
35899
35900 2009-08-30  Bruno Haible  <bruno@clisp.org>
35901
35902         Work around iconv_open problem on Solaris.
35903         * lib/iconv_open-solaris.gperf: New file.
35904         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35905         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35906         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35907         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35908         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35909         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35910
35911 2009-08-29  Jim Meyering  <meyering@redhat.com>
35912
35913         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35914         * top/maint.mk (cvs-check): Remove target; it was just an alias
35915         to the better-named vc-diff-check.
35916         (maintainer-distcheck): Remove rule.  It was used only from
35917         the (alpha/beta/major) target, and all of its commands but one
35918         were coreutils-specific.
35919         (vc-dist): Remove rule.
35920         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35921         Run vc-diff-check, not vc-dist.
35922         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35923
35924 2009-08-27  Bruno Haible  <bruno@clisp.org>
35925
35926         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35927         of 0.
35928
35929 2009-08-27  Bruno Haible  <bruno@clisp.org>
35930
35931         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35932         compilers.
35933         * doc/func.texi: Document the SunPRO C bug.
35934
35935 2009-08-27  Bruno Haible  <bruno@clisp.org>
35936
35937         Fix link error on Solaris.
35938         * tests/test-parse-duration.c (xstrdup): Remove function.
35939
35940 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35941
35942         ignore-value: handle pointer types, too
35943         * lib/ignore-value.h (__attribute__): Remove definition.
35944         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35945         of a more concise and more-often effective "(void) i" statement.
35946         (ignore_ptr): New function to suppress warnings from functions that
35947         return pointers, and to make it explicit that one function doesn't
35948         handle all cases.
35949
35950 2009-08-25  Bruno Haible  <bruno@clisp.org>
35951
35952         dup2: work around a Linux bug.
35953         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35954         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35955         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35956         Reported by Simon Josefsson.
35957
35958 2009-08-25  Jim Meyering  <meyering@redhat.com>
35959
35960         libguestfs uses gnulib
35961         * users.txt: Add libguestfs.
35962
35963 2009-08-24  Eric Blake  <ebb9@byu.net>
35964
35965         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35966         * lib/pipe2.c (includes): Add binary-io.h.
35967         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35968
35969 2009-08-24  Bruno Haible  <bruno@clisp.org>
35970
35971         Tolerate declared but missing accept4 syscall.
35972         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35973         available.
35974         * lib/sys_socket.in.h (accept4): If the function is already present,
35975         override it.
35976         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35977         * modules/accept4 (Makefile.am): Compile accept4.c always.
35978         Reported by Paolo Bonzini and Eric Blake.
35979
35980 2009-08-23  Bruno Haible  <bruno@clisp.org>
35981
35982         New module 'accept4'.
35983         * lib/sys_socket.in.h (accept4): New declaration.
35984         * lib/accept4.c: New file.
35985         * m4/accept4.m4: New file.
35986         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35987         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35988         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35989         HAVE_ACCEPT4.
35990         * modules/accept4: New file.
35991         * doc/glibc-functions/accept4.texi: Mention the new module.
35992
35993 2009-08-24  Jim Meyering  <meyering@redhat.com>
35994
35995         progname: also set global program_invocation_name, when possible
35996         Before this change, a libtool-enabled program that calls glibc's
35997         error function would report the program name as
35998         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35999         * modules/progname (configure.ac): Check for a declaration of
36000         program_invocation_name.
36001         * lib/progname.c:  Include <errno.h>.
36002         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36003         Set program_invocation_name.
36004
36005 2009-08-23  Bruno Haible  <bruno@clisp.org>
36006
36007         * lib/dup3.c: Include <string.h>.
36008
36009 2009-08-23  Bruno Haible  <bruno@clisp.org>
36010
36011         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36012         * lib/pipe2.c (pipe2): Likewise.
36013         Suggested by Eric Blake.
36014
36015 2009-08-23  Bruno Haible  <bruno@clisp.org>
36016
36017         Tolerate declared but missing dup3 syscall.
36018         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36019         * lib/unistd.in.h (dup3): If the function is already present,
36020         override it.
36021         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36022         * modules/dup3 (Makefile.am): Compile dup3.c always.
36023         Reported by Paolo Bonzini.
36024
36025 2009-08-23  Bruno Haible  <bruno@clisp.org>
36026
36027         Tolerate declared but missing pipe2 syscall.
36028         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36029         available.
36030         * lib/unistd.in.h (pipe2): If the function is already present,
36031         override it.
36032         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36033         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36034         Reported by Paolo Bonzini.
36035
36036 2009-08-23  Bruno Haible  <bruno@clisp.org>
36037
36038         * lib/pipe2.c (pipe2): Move #ifs inside function.
36039
36040 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36041
36042         quotearg: document limitations of quote_these_too
36043         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36044         those limitations are created.
36045         * lib/quotearg.h (set_char_quoting): Document that digits and
36046         letters that are special after backslash are not permitted.
36047         (quotearg_char): Cross-reference set_char_quoting documentation.
36048
36049 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36050
36051         quotearg: implement custom_quoting_style
36052         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36053         right_quote fields.
36054         (set_custom_quoting): New public function.
36055         (quotearg_buffer_restyled): Add left_quote and right_quote
36056         arguments, handle them very much like locale quoting, and update
36057         all uses.
36058         (quotearg_n_custom): New public function.
36059         (quotearg_n_custom_mem): New public function.
36060         (quotearg_custom): New public function.
36061         (quotearg_custom_mem): New public function.
36062         * lib/quotearg.h: Prototype and document new public functions.
36063         (enum quoting_style): For escape_quoting_style and
36064         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36065         ignored even though they're otherwise like c_quoting_style.
36066         Add custom_quoting_style member and document with comparison to
36067         clocale_quoting_style.
36068         * tests/test-quotearg.c (custom_quotes): New array.
36069         (custom_results): New array.
36070         (main): Extend to test custom quoting.
36071
36072 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36073
36074         quotearg: fix right quote escaping when it's in quote_these_too
36075         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36076         quote, be sure to prepend only one backslash.
36077         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36078         (main): Test it.
36079
36080 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36081
36082         quotearg-tests: test escaping of embedded locale quotes
36083         * tests/test-quotearg.c (struct result_strings): Add member for
36084         new input.
36085         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36086         (inputs): Add new input.
36087         (results_g): Add expected results.
36088         (flag_results): Likewise.
36089         (locale_results): Likewise.
36090         (compare_strings): Check those.
36091
36092 2009-08-23  Bruno Haible  <bruno@clisp.org>
36093
36094         Tests for module 'dup3'.
36095         * modules/dup3-tests: New file.
36096         * tests/test-dup3.c: New file.
36097
36098         New module 'dup3'.
36099         * lib/unistd.in.h (dup3): New declaration.
36100         * lib/dup3.c: New file.
36101         * m4/dup3.m4: New file.
36102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36103         HAVE_DUP3.
36104         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36105         * modules/dup3: New file.
36106         * doc/glibc-functions/dup3.texi: Mention the new module.
36107
36108 2009-08-23  Bruno Haible  <bruno@clisp.org>
36109
36110         Tweak the dup2 test.
36111         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36112         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36113         the test file is still empty. Fix argument order of lseek.
36114
36115 2009-08-23  Bruno Haible  <bruno@clisp.org>
36116
36117         Avoid test link errors when the modules getopt-gnu, gettext are used.
36118         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36120
36121 2009-08-23  Bruno Haible  <bruno@clisp.org>
36122
36123         Fix getdtablesize() on mingw.
36124         * lib/getdtablesize.c (getdtablesize): Implement differently.
36125         * lib/unistd.in.h (getdtablesize): Improve comment.
36126
36127 2009-08-23  Bruno Haible  <bruno@clisp.org>
36128
36129         New module 'mkostemp'.
36130         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36131         * lib/stdlib.in.h (mksotemp): New declaration.
36132         * lib/mkostemp.c: New file, from glibc with modifications.
36133         * lib/tempname.h (GT_FILE): Remove outdated comment.
36134         (gen_tempname): Add flags argument.
36135         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36136         (__GT_FILE): Map to 1.
36137         (small_open, large_open): Remove macros.
36138         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36139         * lib/mkstemp.c (mkstemp): Update.
36140         * lib/mkdtemp.c (mkdtemp): Likewise.
36141         * m4/mkostemp.m4: New file.
36142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36143         HAVE_MKOSTEMP.
36144         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36145         HAVE_MKOSTEMP.
36146         * modules/mkostemp: New file, based on modules/mkstemp.
36147         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36148         * NEWS: Mention the change.
36149
36150 2009-08-23  Bruno Haible  <bruno@clisp.org>
36151
36152         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36153         Reported by Eric Blake.
36154
36155 2009-08-23  Bruno Haible  <bruno@clisp.org>
36156
36157         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36158         Reported by Eric Blake.
36159
36160 2009-08-23  Bruno Haible  <bruno@clisp.org>
36161
36162         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36163         * modules/pipe2 (Depends-on): Likewise.
36164
36165 2009-08-23  Eric Blake  <ebb9@byu.net>
36166
36167         fcntl-h: add O_TTY_INIT support
36168         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36169         * tests/test-fcntl-h.c (o): Test it.
36170         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36171
36172         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36173         * modules/fcntl: Move <fcntl.h> header replacement...
36174         * modules/fcntl-h: ...to new name, so as not to collide with
36175         like-named function.
36176         * tests/test-fcntl.c: Rename...
36177         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36178         * modules/fcntl-tests: Rename...
36179         * modules/fcntl-h-tests: ...to this.  Update test file name.
36180         * modules/chdir-long (Depends-on): Update clients.
36181         * modules/chdir-safer (Depends-on): Likewise.
36182         * modules/fcntl-safer (Depends-on): Likewise.
36183         * modules/fts (Depends-on): Likewise.
36184         * modules/mkancesdirs (Depends-on): Likewise.
36185         * modules/mkdir-p (Depends-on): Likewise.
36186         * modules/open (Depends-on): Likewise.
36187         * modules/savewd (Depends-on): Likewise.
36188         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36189         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36190
36191 2009-08-22  Bruno Haible  <bruno@clisp.org>
36192
36193         * modules/binary-io (License): Relicense under LGPL.
36194         * modules/pipe2 (License): Likewise.
36195
36196 2009-08-22  Bruno Haible  <bruno@clisp.org>
36197
36198         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36199         return value.
36200         * lib/pipe-filter-gi.c (filter_init): Likewise.
36201         Reported by Eric Blake.
36202
36203 2009-08-22  Bruno Haible  <bruno@clisp.org>
36204
36205         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36206         * modules/pipe (Depends-on): Add pipe2.
36207
36208 2009-08-22  Bruno Haible  <bruno@clisp.org>
36209
36210         Tests for module 'pipe2'.
36211         * modules/pipe2-tests: New file.
36212         * tests/test-pipe2.c: New file.
36213
36214         New module 'pipe2'.
36215         * lib/unistd.in.h (pipe2): New declaration.
36216         * lib/pipe2.c: New file.
36217         * m4/pipe2.m4: New file.
36218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36219         HAVE_PIPE2.
36220         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36221         * modules/pipe2: New file.
36222         * doc/glibc-functions/pipe2.texi: Mention the new module.
36223
36224 2009-08-22  Bruno Haible  <bruno@clisp.org>
36225
36226         Reference some new glibc functions.
36227         * doc/glibc-functions/accept4.texi: New file.
36228         * doc/glibc-functions/dup3.texi: New file.
36229         * doc/glibc-functions/mkostemp.texi: New file.
36230         * doc/glibc-functions/pipe2.texi: New file.
36231         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36232         (Glibc sys/socket.h): Refer to accept4.
36233         (Glibc unistd.h): Refer to dup3, pipe2.
36234         Reported by Eric Blake.
36235
36236 2009-08-22  Jim Meyering  <meyering@redhat.com>
36237             Bruno Haible  <bruno@clisp.org>
36238
36239         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36240         This makes it so packages using automake-1.11's silent-rules option
36241         can print e.g., a single "GEN    configmake.h" line, rather than
36242         the 30+ statements that perform the job.  If you want to see the
36243         actual commands, you can still run "make V=1".
36244         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36245         so that make output is abbreviated when those variables are defined
36246         appropriately.
36247         * modules/argz: Likewise.
36248         * modules/arpa_inet: Likewise.
36249         * modules/byteswap: Likewise.
36250         * modules/configmake: Likewise.
36251         * modules/dirent: Likewise.
36252         * modules/errno: Likewise.
36253         * modules/fcntl: Likewise.
36254         * modules/float: Likewise.
36255         * modules/fnmatch: Likewise.
36256         * modules/getopt-posix: Likewise.
36257         * modules/glob: Likewise.
36258         * modules/iconv_open: Likewise.
36259         * modules/inttypes: Likewise.
36260         * modules/localcharset: Likewise.
36261         * modules/locale: Likewise.
36262         * modules/math: Likewise.
36263         * modules/netdb: Likewise.
36264         * modules/netinet_in: Likewise.
36265         * modules/poll: Likewise.
36266         * modules/posix_spawnp-tests: Likewise.
36267         * modules/sched: Likewise.
36268         * modules/search: Likewise.
36269         * modules/selinux-h: Likewise.
36270         * modules/signal: Likewise.
36271         * modules/spawn: Likewise.
36272         * modules/stdarg: Likewise.
36273         * modules/stdbool: Likewise.
36274         * modules/stddef: Likewise.
36275         * modules/stdint: Likewise.
36276         * modules/stdio: Likewise.
36277         * modules/stdlib: Likewise.
36278         * modules/string: Likewise.
36279         * modules/strings: Likewise.
36280         * modules/sys_file: Likewise.
36281         * modules/sys_ioctl: Likewise.
36282         * modules/sys_select: Likewise.
36283         * modules/sys_socket: Likewise.
36284         * modules/sys_stat: Likewise.
36285         * modules/sys_time: Likewise.
36286         * modules/sys_times: Likewise.
36287         * modules/sys_utsname: Likewise.
36288         * modules/sys_wait: Likewise.
36289         * modules/sysexits: Likewise.
36290         * modules/time: Likewise.
36291         * modules/unistd: Likewise.
36292         * modules/wchar: Likewise.
36293         * modules/wctype: Likewise.
36294
36295 2009-08-22  Jim Meyering  <meyering@redhat.com>
36296
36297         announce-gen: detect write failure
36298         * build-aux/announce-gen: Add Coda at end.
36299         Remove equivalent-but-more-verbose block at top.
36300
36301 2009-08-19  Akim Demaille  <demaille@gostai.com>
36302
36303         bootstrap: --help to stdout.
36304         * bootstrap (usage): Don't send --help to stderr.
36305         Use a here doc instead of a long string.
36306
36307 2009-08-21  Eric Blake  <ebb9@byu.net>
36308
36309         test-popen-safer: split from test-popen
36310         * tests/test-popen.c (main): Move...
36311         * tests/test-popen.h: ...into new file.
36312         * tests/test-popen-safer2.c: New file.
36313         * modules/popen-tests (Files): Add test-popen.h.
36314         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36315         Suggested by Bruno Haible.
36316
36317         test-fcntl-safer: split from test-open
36318         * tests/test-open.c (main): Move...
36319         * tests/test-open.h: ...into new file.
36320         * tests/test-fcntl-safer.c: New file.
36321         * modules/open-tests (Files): Add test-open.h.
36322         * modules/fcntl-safer-tests: New file.
36323         Suggested by Bruno Haible.
36324
36325         test-fopen-safer: split from test-fopen
36326         * tests/test-fopen.c (main): Move...
36327         * tests/test-fopen.h: ...into new file.
36328         * tests/test-fopen-safer.c: New file.
36329         * modules/fopen-tests (Files): Add test-fopen.h.
36330         * modules/fopen-safer-tests: New file.
36331         Suggested by Bruno Haible.
36332
36333 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36334
36335         popen-safer: test O_CLOEXEC at run-time.
36336         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36337
36338 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36339
36340         fcntl: move more flags to the header
36341         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36342         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36343         * lib/fcntl.in.h: Do both things here.
36344
36345 2009-08-21  Jim Meyering  <meyering@redhat.com>
36346
36347         consistently remove $@-t before redirecting to it
36348         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36349         * modules/alloca-opt: Likewise.
36350         * modules/byteswap: Likewise.
36351         * modules/fnmatch: Likewise.
36352         * modules/getopt-posix: Likewise.
36353         * modules/glob: Likewise.
36354         * modules/poll: Likewise.
36355         * modules/posix_spawnp-tests: Likewise.
36356         * modules/sys_socket: Likewise.
36357         * modules/sysexits: Likewise.
36358
36359 2009-08-21  Eric Blake  <ebb9@byu.net>
36360
36361         popen: simplify access to original popen
36362         * lib/popen.c (rpl_popen): No need to worry about popen being a
36363         macro.
36364         Reported by Bruno Haible.
36365
36366 2009-08-20  Eric Blake  <ebb9@byu.net>
36367
36368         build: avoid some compiler warnings
36369         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36370         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36371         type.
36372         (new_exclude_segment, excluded_file_pattern_p)
36373         (excluded_file_name_p): Reduce scope.
36374         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36375         old-style declaration.
36376
36377 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36378
36379         * tests/test-exclude1.sh: Handle Windows EOL.
36380         * tests/test-exclude2.sh: Likewise.
36381         * tests/test-exclude3.sh: Likewise.
36382         * tests/test-exclude4.sh: Likewise.
36383         * tests/test-exclude5.sh: Likewise.
36384         * tests/test-exclude6.sh: Likewise.
36385         * tests/test-exclude7.sh: Likewise.
36386
36387 2009-08-19  Akim Demaille  <demaille@gostai.com>
36388
36389         bootstrap: find sha1sum when named gsha1sum.
36390         * bootstrap (find_tool): New.
36391         ($SHA1SUM): New.
36392         Use it.
36393
36394 2009-08-20  Jim Meyering  <meyering@redhat.com>
36395
36396         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36397         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36398         expression that converts "." in a file name to "\." in the resulting
36399         regexp.  Start with a dummy statement, so that prior shell variable
36400         definitions are expanded portably.  Reported by Simon Josefsson.
36401
36402 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36403
36404         Fix polling for writeability of a screen buffer.
36405         * lib/poll.c: Distinguish input and screen buffers for the
36406         Win32 implementation.
36407         * lib/select.c: Likewise.
36408
36409 2009-08-19  Eric Blake  <ebb9@byu.net>
36410
36411         popen-safer: prevent popen from clobbering std descriptors
36412         * modules/popen-safer: New file.
36413         * lib/popen-safer.c: Likewise.
36414         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36415         * lib/stdio--.h (popen): Provide override.
36416         * lib/stdio-safer.h (popen_safer): Provide declaration.
36417         * tests/test-popen.c (includes): Partially test this.
36418         * modules/popen-safer-tests: New file, for more tests.
36419         * tests/test-popen-safer.c: Likewise.
36420         * MODULES.html.sh (file stream based Input/Output): Mention it.
36421
36422         tests: test some of the *-safer modules
36423         * modules/fopen-safer (Depends-on): Add fopen.
36424         * modules/fcntl-safer (Depends-on): Add fcntl.
36425         * modules/stdlib-safer (Depends-on): Add stdlib.
36426         (configure.ac): Set indicator.
36427         * modules/unistd-safer (configure.ac): Likewise.
36428         * modules/tmpfile-safer (configure.ac): Likewise.
36429         (Depends-on): Add tmpfile.
36430         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36431         active.
36432         * tests/test-fopen.c (includes): Test safer versions when they are
36433         in use.
36434         * tests/test-open.c (includes): Likewise.
36435
36436         popen: fix cygwin 1.5 bug when stdin closed
36437         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36438         * modules/popen: New file.
36439         * modules/popen-tests: Likewise.
36440         * tests/test-popen.c: Likewise.
36441         * m4/popen.m4: Likewise.
36442         * lib/popen.c: Likewise.
36443         * lib/stdio.in.h (popen): New declaration.
36444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36445         * modules/stdio (Makefile.am): Likewise.
36446         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36447
36448 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36449
36450         maint.mk: give full control over update-copyright exclusions
36451         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36452         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36453         (update-copyright): Don't force inclusion of top-level
36454         ChangeLog.  Don't force exclusion of all COPYING files, but make
36455         them the default exclusion instead.
36456
36457 2009-08-16  Bruno Haible  <bruno@clisp.org>
36458
36459         Fix test failures on Solaris 10.
36460         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36461         tests when Solaris iconv() is used.
36462         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36463         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36464         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36465         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36466         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36467
36468 2009-08-16  Bruno Haible  <bruno@clisp.org>
36469
36470         Fix test failures on Solaris 10.
36471         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36472         'tr' program and pass it as first argument.
36473         * tests/test-pipe-filter-gi1.sh: Likewise.
36474         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36475         program as first argument.
36476         * tests/test-pipe-filter-gi1.c (main): Likewise.
36477
36478 2009-08-16  Eric Blake  <ebb9@byu.net>
36479
36480         fpurge: fix previous commits
36481         * modules/fpurge (Makefile.am): Make replacement conditional,
36482         partially reverting 2007-04-29 change; missed in previous
36483         attempt.
36484         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36485         is missing.
36486
36487 2009-08-16  Bruno Haible  <bruno@clisp.org>
36488
36489         Clarify fpurge's effect on the file position.
36490         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36491         * tests/test-fpurge.c (main): Make a second pass for checking the file
36492         position.
36493
36494 2009-08-16  Bruno Haible  <bruno@clisp.org>
36495
36496         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36497         declaration of fpurge is missing.
36498         * tests/test-fpurge.c (main): Check that the file has not more contents
36499         than expected. Close the file before removing it.
36500
36501 2009-08-15  Eric Blake  <ebb9@byu.net>
36502
36503         fpurge: don't wrap working cygwin implementation
36504         * lib/fpurge.c (fpurge): Fix comment typo.
36505         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36506         1.7 to avoid replacement.
36507         * tests/test-fpurge.c (main): Enhance test.
36508
36509 2009-08-15  Eric Blake  <ebb9@byu.net>
36510         and Jim Meyering  <meyering@redhat.com>
36511
36512         test-update-copyright: skip if perl is insufficient
36513         * tests/test-update-copyright.sh: Failure to run maintainer tool
36514         should not cause testsuite failure on cygwin 1.5.
36515
36516 2009-08-14  Eric Blake  <ebb9@byu.net>
36517
36518         doc: mention more functions added in cygwin 1.7.0
36519         * doc/posix-headers/limits.texi (limits.h): Update for recent
36520         cygwin additions.
36521         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36522         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36523         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36524         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36525         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36526
36527 2009-08-14  Eric Blake  <ebb9@byu.net>
36528
36529         maint.mk: simplify update-copyright rule
36530         * top/maint.mk (update-copyright-local): Delete, and document how
36531         to do it in cfg.mk instead.
36532         (update-copyright-exclude-regexp): Delete, and document how to do
36533         it in .x-update-copyright instead.
36534         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36535         exclude ChangeLog.
36536
36537 2009-08-14  Bruno Haible  <bruno@clisp.org>
36538
36539         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36540
36541 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36542
36543         maint.mk: support update-copyright-env
36544         * top/maint.mk (update-copyright-env): Define place-holder.
36545         (update-copyright): Expand $(update-copyright-env) before
36546         invoking update-copyright.
36547
36548 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36549
36550         update-copyright: implement forced reformatting
36551         * build-aux/update-copyright: Implement and document
36552         UPDATE_COPYRIGHT_FORCE.
36553         * tests/test-update-copyright.sh: Test it.
36554
36555 2009-08-14  Eric Blake  <ebb9@byu.net>
36556         and Bruno Haible  <bruno@clisp.org>
36557
36558         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36559         * tests/test-locale.c: Revert previous patch related to NULL.
36560         * tests/test-stdio.c: Likewise.
36561         * tests/test-stdlib.c: Likewise.
36562         * tests/test-string.c: Likewise.
36563         * tests/test-unistd.c: Likewise.
36564         * modules/time-tests (Depends-on): Add verify.
36565         * modules/wchar-tests (Depends-on): Likewise.
36566         * tests/test-time.c: Test for NULL compliance.
36567         * tests/test-wchar.c: Likewise.
36568         * modules/locale (Depends-on): Add stddef.
36569         * modules/stdio (Depends-on): Likewise.
36570         * modules/stdlib (Depends-on): Likewise.
36571         * modules/string (Depends-on): Likewise.
36572         * modules/time (Depends-on): Likewise.
36573         * modules/unistd (Depends-on): Likewise.
36574         * modules/wchar (Depends-on): Likewise.
36575         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36576         * lib/stdlib.in.h (includes): Likewise.
36577         * lib/string.in.h (includes): Likewise.
36578         * lib/time.in.h (includes): Likewise.
36579         * lib/unistd.in.h (includes): Likewise.
36580         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36581         replaced.
36582         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36583         * m4/stddef_h.m4: New file.
36584         * modules/stddef: Likewise.
36585         * lib/stddef.in.h: Likewise.
36586         * modules/stddef-tests: Likewise.
36587         * tests/test-stddef.c: Likewise.
36588         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36589         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36590         * doc/posix-headers/locale.texi (locale.h): Likewise.
36591         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36592         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36593         * doc/posix-headers/string.texi (string.h): Likewise.
36594         * doc/posix-headers/time.texi (time.h): Likewise.
36595         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36596         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36597
36598 2009-08-14  Eric Blake  <ebb9@byu.net>
36599
36600         doc: improve git diff of texinfo files
36601         * .gitattributes: Add rule for *.texi files, with hint on how to
36602         use it.
36603         Copied from m4, and based on a report by Bruno Haible.
36604
36605 2009-08-14  Bruno Haible  <bruno@clisp.org>
36606
36607         Disable multithread support by default on Cygwin 1.5.x for real.
36608         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36609
36610 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36611
36612         update-copyright: much ado about intervals
36613         * build-aux/update-copyright: Implement and document
36614         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36615         of copyright year intervals.
36616         Also, document UPDATE_COPYRIGHT_YEAR.
36617         * tests/test-update-copyright.sh: Test it.
36618
36619         update-copyright: convert 2-digit to 4-digit years
36620         * build-aux/update-copyright: Implement and document.
36621         * tests/test-update-copyright.sh: Update.
36622
36623 2009-08-14  Jim Meyering  <meyering@redhat.com>
36624
36625         test-exclude: avoid coreutils "make check" failure
36626         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36627         just as in test-argmatch.c.
36628
36629 2009-08-13  Eric Blake  <ebb9@byu.net>
36630
36631         test-dup2: fix bad assumption
36632         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36633         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36634
36635         test-version-etc: fix CRLF portability issue
36636         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36637         recognize \r.
36638         * tests/test-argp-version-etc-1.sh: Likewise.
36639
36640         getopt: update client modules
36641         * modules/argp (Depends-on): Use getopt-gnu.
36642         * modules/git-merge-changelog (Depends-on): Likewise.
36643         * modules/long-options (Depends-on): Likewise.
36644         * modules/xstrtol (Depends-on): Likewise.
36645
36646 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36647
36648         * tests/test-version-etc.sh: Don't fail on different
36649         project/version.  Don't fail on CRLF differences.  Rewrite to use
36650         multiple -e instead of multiple sed forks, suggested by Eric Blake
36651         <ebb9@byu.net>.
36652         * tests/test-argp-version-etc-1.sh: Likewise.
36653
36654 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36655
36656         * tests/test-version-etc.sh: Don't fail on different
36657         project/version.
36658
36659 2009-08-12  Bruno Haible  <bruno@clisp.org>
36660
36661         Tests for modules 'getopt-posix', 'getopt-gnu'.
36662         * modules/getopt-posix-tests: New file.
36663         * tests/test-getopt.c: New file.
36664         * tests/test-getopt.h: New file.
36665         * tests/test-getopt_long.h: New file.
36666
36667         New modules 'getopt-posix', 'getopt-gnu'.
36668         * modules/getopt-gnu: New file, renamed from modules/getopt.
36669         * modules/getopt-posix: New file.
36670         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36671         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36672         (gl_GETOPT): Remove macro.
36673         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36674         Disable the test against BSD systems that declare optreset. Test
36675         against mingw bug. Test against lack of support of optional arguments
36676         on many platforms.
36677         * doc/glibc-headers/getopt.texi: Update module name and list of
36678         relevant platforms.
36679         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36680         'getopt-gnu' and more portability problems.
36681         * NEWS: Mention the changes.
36682
36683 2009-08-12  Bruno Haible  <bruno@clisp.org>
36684
36685         Ensure that optarg etc. get declared by <unistd.h>.
36686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36687         AC_USE_SYSTEM_EXTENSIONS.
36688         * modules/getopt (Depends-on): Add 'extensions'.
36689
36690 2009-08-12  Bruno Haible  <bruno@clisp.org>
36691
36692         Avoid test link errors.
36693         * modules/pipe-filter-ii-tests (Makefile.am): Define
36694         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36695         * modules/pipe-filter-gi-tests (Makefile.am): Define
36696         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36698
36699 2009-08-12  Bruno Haible  <bruno@clisp.org>
36700
36701         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36702         gl_GETOPT_SUBSTITUTE before.
36703         (gl_GETOPT): Use it.
36704         * m4/argp.m4 (gl_ARGP): Update.
36705         Reported by Sergey Poznyakoff.
36706
36707         * m4/getopt.m4: Reorder macros.
36708         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36709         (gl_GETOPT_SUBSTITUTE): Remove macro.
36710
36711 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36712
36713         Minor improvement in gitlog-to-changelog
36714
36715         * build-aux/gitlog-to-changelog: New option `--format' makes
36716         output format string configurable.
36717
36718 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36719
36720         Optimize exclude: use hash tables for non-wildcard patterns.
36721
36722         * lib/exclude.c: Include hash.h and mbuiter.h
36723         (struct exclude_pattern, exclude_segment): New data types.
36724         (struct exclude): Rewrite.
36725         (fnmatch_pattern_has_wildcards): New function.
36726         (new_exclude_segment, free_exclude_segment): New functions.
36727         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36728         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36729         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36730         * modules/exclude: Depend on hash and mbuiter.
36731
36732         * modules/exclude-tests: New file.
36733         * tests/test-exclude.c: New file.
36734         * tests/test-exclude1.sh: New file.
36735         * tests/test-exclude2.sh: New file.
36736         * tests/test-exclude3.sh: New file.
36737         * tests/test-exclude4.sh: New file.
36738         * tests/test-exclude5.sh: New file.
36739         * tests/test-exclude6.sh: New file.
36740         * tests/test-exclude7.sh: New file.
36741
36742 2009-08-12  Bruno Haible  <bruno@clisp.org>
36743
36744         Ensure that getopt() gets declared by <unistd.h>.
36745         * lib/unistd.in.h: Conditionally include getopt.h.
36746         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36747         Set GNULIB_UNISTD_H_GETOPT.
36748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36749         GNULIB_UNISTD_H_GETOPT.
36750         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36751
36752 2009-08-12  Bruno Haible  <bruno@clisp.org>
36753
36754         Clarify logic.
36755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36756         gl_replace_getopt instead of GETOPT_H.
36757
36758 2009-08-12  Bruno Haible  <bruno@clisp.org>
36759
36760         * m4/getopt.m4: Add comments.
36761
36762 2009-08-12  Bruno Haible  <bruno@clisp.org>
36763
36764         Disable multithread support by default on Cygwin 1.5.x.
36765         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36766         set gl_use_threads=no if not specified otherwise.
36767
36768 2009-08-11  Bruno Haible  <bruno@clisp.org>
36769
36770         Avoid compilation error on NetBSD 5.0.
36771         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36772         * tests/test-stdio.c: Likewise.
36773         * tests/test-stdlib.c: Likewise.
36774         * tests/test-string.c: Likewise.
36775         * tests/test-unistd.c: Likewise.
36776         Reported by Greg Troxel <gdt@ir.bbn.com>
36777         at <https://savannah.gnu.org/support/?106973>.
36778
36779 2009-08-11  Bruno Haible  <bruno@clisp.org>
36780
36781         * modules/dup2-tests (Depends-on): Remove close.
36782
36783         Undo 2009-07-19 commit.
36784         * modules/acl-tests (Depends-on): Remove close.
36785         * modules/binary-io-tests (Depends-on): Likewise.
36786         * modules/closein-tests (Depends-on): Likewise.
36787         * modules/flock-tests (Depends-on): Likewise.
36788         * modules/fsync-tests (Depends-on): Likewise.
36789         * modules/lseek-tests (Depends-on): Likewise.
36790         * modules/pipe-tests (Depends-on): Likewise.
36791         * modules/posix_spawn-tests (Depends-on): Likewise.
36792         * modules/posix_spawnp-tests (Depends-on): Likewise.
36793         * modules/stat-time-tests (Depends-on): Likewise.
36794         * modules/yesno-tests (Depends-on): Likewise.
36795
36796 2009-08-10  Bruno Haible  <bruno@clisp.org>
36797
36798         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36799
36800 2009-08-10  Bruno Haible  <bruno@clisp.org>
36801
36802         Fix a gcc warning.
36803         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36804
36805 2009-08-10  Bruno Haible  <bruno@clisp.org>
36806
36807         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36808         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36809         not only the first time.
36810         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36811         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36812         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36813         is 1, not only the the first time.
36814
36815 2009-08-10  Bruno Haible  <bruno@clisp.org>
36816
36817         Make it possible to use module 'gethostname' without module 'close'.
36818         * lib/unistd.in.h (close): Evoke a link error only if
36819         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36821         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36822         * modules/unistd (Makefile.am): Substitute
36823         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36824         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36825         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36826         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36827         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36828         * modules/sys_ioctl (Makefile.am): Substitute
36829         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36830         * modules/socket (configure.ac): On native Windows, set
36831         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36832         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36833         Reported by Sam Steingold <sds@gnu.org>.
36834
36835 2009-08-10  Bruno Haible  <bruno@clisp.org>
36836
36837         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36838         * modules/ioctl (configure.ac): Likewise.
36839
36840 2009-08-10  Bruno Haible  <bruno@clisp.org>
36841
36842         Avoid collision between gnulib wrapper and libintl wrapper.
36843         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36844         already defined in intl/printf.c.
36845         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36846         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36847
36848 2009-08-09  Bruno Haible  <bruno@clisp.org>
36849
36850         Make <sys/select.h> really self-contained, also on Solaris 10.
36851         * lib/sys_select.in.h: Include <string.h>.
36852         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36853         Solaris 10 problem.
36854         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36855         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36856         Reported by Jim Meyering.
36857
36858 2009-08-09  Bruno Haible  <bruno@clisp.org>
36859
36860         Avoid warnings from 'aclocal' that are due to a use of macro name
36861         AM_XGETTEXT_OPTION that is not defined in automake.
36862         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36863         automake.
36864         * modules/error (configure.ac): Likewise.
36865         * modules/propername (configure.ac): Likewise.
36866         * modules/vasprintf (configure.ac): Likewise.
36867         * modules/verror (configure.ac): Likewise.
36868         * modules/xprintf (configure.ac): Likewise.
36869         * modules/xvasprintf (configure.ac): Likewise.
36870
36871 2009-08-08  Bruno Haible  <bruno@clisp.org>
36872
36873         Avoid compilation error in C++ mode.
36874         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36875         Reported by Sam Steingold <sds@gnu.org>.
36876
36877 2009-08-08  Bruno Haible  <bruno@clisp.org>
36878
36879         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36880         for the various Unix platforms.
36881         * doc/posix-headers/limits.texi: Update platforms list regarding
36882         HOST_NAME_MAX.
36883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36884
36885 2009-08-07  Jim Meyering  <meyering@redhat.com>
36886
36887         selinux-at: fix typo in a comment
36888         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36889         Spotted by Paolo Bonzini.
36890
36891         selinux-at: remove redundant m4 code, add documentation
36892         * modules/selinux-at (configure.ac): Remove redundant code.
36893         LIB_SELINUX is already set via the dependent module, selinux-h.
36894         (Include): Add quotes around selinux-at.h.
36895         * lib/selinux-at.h: Add documentation.
36896         Reported by Bruno Haible in
36897         http://marc.info/?l=gnulib-bug&m=124958988300749
36898
36899 2009-08-07  Bruno Haible  <bruno@clisp.org>
36900
36901         Avoid link error on MacOS X 10.3 and 10.4.
36902         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36903         on non-ELF systems.
36904         * lib/argp-pv.c (argp_program_version): Likewise.
36905         Reported by Simon Josefsson.
36906
36907 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36908
36909         * tests/test-version-etc.sh: Use $EXEEXT.
36910
36911 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36912
36913         update-copyright: update documentation to point to maint.mk
36914         * build-aux/update-copyright: Here.
36915
36916 2009-08-06  Jim Meyering  <meyering@redhat.com>
36917
36918         maint.mk: support update-copyright-local
36919         * top/maint.mk (update-copyright-local): Define place-holder.
36920         (update-copyright): Depend on $(update-copyright-local).
36921
36922 2009-08-06  Jim Meyering  <meyering@redhat.com>
36923
36924         selinux-at: new module
36925         Initially written for coreutils, this module will soon be
36926         used by findutils, too.
36927         * MODULES.html.sh [Misc]: Add selinux-at.
36928         * lib/selinux-at.h: New file, from coreutils.
36929         * lib/selinux-at.c: Likewise.
36930         * modules/selinux-at: Likewise.
36931         (License): Change from LGPL to GPL, since it depends
36932         on the GPL'd openat module.
36933
36934         doc: update README
36935         * README: Remove references to cogito.
36936         Remove cvs-repo-updating instructions from 2007.
36937         Don't imply that CVS is better if you have limited disk space.
36938
36939 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36940
36941         update-copyright: support C-style comments
36942         * build-aux/update-copyright: Implement and document.
36943         * tests/test-update-copyright.sh: Test.
36944
36945 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36946
36947         update-copyright: support omitted "(C)"
36948         * build-aux/update-copyright: Implement and document.  Also,
36949         allow variable whitespace before "(C)".
36950         * tests/test-update-copyright.sh: Test.
36951
36952 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36953
36954         update-copyright: don't trip on non-FSF copyright statements
36955         * build-aux/update-copyright: Fix so that the first correctly
36956         formatted FSF copyright statement is recognized no matter what
36957         appears before it.  Update documentation.
36958         * tests/test-update-copyright.sh: Test that.
36959
36960 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36961
36962         update-copyright: clean up code a little
36963         * build-aux/update-copyright: Append "_re" to the name of any
36964         variable holding a regular expression.
36965         Replace "old" and "new" with "stmt" in variable names.
36966         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36967         handled correctly.
36968         Format code more consistently.
36969
36970 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36971
36972         update-copyright-tests: improve portability
36973         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36974         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36975
36976 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36977
36978         update-copyright: support @copyright{} and &copy;
36979         * build-aux/update-copyright: Implement and document.
36980         * tests/test-update-copyright.sh: Test.
36981
36982 2009-08-04  Jim Meyering  <meyering@redhat.com>
36983
36984         update-copyright-tests: correctly test EOL=\r\n handling
36985         * tests/test-update-copyright.sh: Put \r at the end of some lines
36986         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36987
36988         maint.mk: make update-copyright exclusion list more configurable
36989         * top/maint.mk (update-copyright): Default to excluding COPYING,
36990         but allow an override, in case someone does want to update that file.
36991
36992         maint.mk: don't update copyright date in COPYING
36993         * top/maint.mk (update-copyright): Exclude COPYING.
36994
36995         maint.mk: add a copyright-updating rule
36996         * top/maint.mk (update-copyright): New rule.
36997         Derived from coreutils/Makefile.am.
36998
36999         update-copyright: rename some variables
37000         * build-aux/update-copyright: Rename a few variables for clarity.
37001         Tweak syntax.  List Joel E. Denny as coauthor.
37002
37003 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37004
37005         update-copyright: fix bug for 2-digit last year and add tests
37006         * build-aux/update-copyright: Fix bug.
37007         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37008         specified.
37009         * modules/update-copyright-tests: New
37010         * tests/test-update-copyright.sh: New.
37011
37012 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37013
37014         update-copyright: handle leading tabs in line prefix
37015         * build-aux/update-copyright: Count leading tabs as 8 spaces
37016         when computing margin.  This helps with the formatting of
37017         ChangeLogs, for example.
37018         Fix documentation a little.
37019
37020 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37021
37022         update-copyright: support EOL=\r\n
37023         * build-aux/update-copyright: Implement that.
37024
37025 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37026
37027         update-copyright: automatically format copyright statements
37028         * build-aux/update-copyright: Implement that.
37029         Also, be a little more predictable and safer by always failing
37030         when the full copyright format is not perfectly recognized as an
37031         unbroken whole.  Discussed at
37032         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37033         Rewrite documentation.
37034
37035 2009-08-03  Bruno Haible  <bruno@clisp.org>
37036
37037         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37038
37039 2009-08-02  Bruno Haible  <bruno@clisp.org>
37040
37041         Tests for module 'uname'.
37042         * modules/uname-tests: New file.
37043         * tests/test-uname.c: New file.
37044
37045         New module 'uname'.
37046         * lib/uname.c: New file.
37047         * m4/uname.m4: New file.
37048         * modules/uname: New file.
37049         * doc/posix-functions/uname.texi: Mention the new module.
37050
37051 2009-08-02  Bruno Haible  <bruno@clisp.org>
37052
37053         Tests for module 'sys_utsname'.
37054         * modules/sys_utsname-tests: New file.
37055         * tests/test-sys_utsname.c: New file.
37056
37057         New module 'sys_utsname'.
37058         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37059         * m4/sys_utsname_h.m4: New file.
37060         * modules/sys_utsname: New file.
37061         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37062
37063 2009-08-02  Bruno Haible  <bruno@clisp.org>
37064
37065         Implicitly initialize the sockets library.
37066         * lib/gethostname.c: Include sockets.h.
37067         (rpl_gethostname): Invoke gl_sockets_startup.
37068         * lib/socket.c: Include sockets.h.
37069         (rpl_socket): Invoke gl_sockets_startup.
37070         * modules/gethostname (Depends-on): Add sockets.
37071         * modules/socket (Depends-on): Likewise.
37072         * tests/test-poll.c: Don't include sockets.h.
37073         (main): Don't invoke gl_sockets_startup.
37074         * tests/test-select.c: Don't include sockets.h.
37075         (main): Don't invoke gl_sockets_startup.
37076
37077 2009-08-02  Bruno Haible  <bruno@clisp.org>
37078
37079         Allow multiple calls to gl_sockets_startup.
37080         * lib/sockets.c (initialized_sockets_version): New variable.
37081         (gl_sockets_startup): Do nothing if already called for this or a higher
37082         version.
37083         (gl_sockets_cleanup): Reset initialized_sockets_version.
37084
37085 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37086
37087         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37088         different project/version.
37089
37090 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37091             Bruno Haible  <bruno@clisp.org>
37092
37093         Tests for module 'pipe-filter-gi'.
37094         * modules/pipe-filter-gi-tests: New file.
37095         * tests/test-pipe-filter-gi1.sh: New file.
37096         * tests/test-pipe-filter-gi1.c: New file.
37097         * tests/test-pipe-filter-gi2.sh: New file.
37098         * tests/test-pipe-filter-gi2-main.c: New file.
37099         * tests/test-pipe-filter-gi2-child.c: New file.
37100
37101         New module 'pipe-filter-gi'.
37102         * lib/pipe-filter-gi.c: New file.
37103         * modules/pipe-filter-gi: New file.
37104
37105 2009-08-02  Bruno Haible  <bruno@clisp.org>
37106             Paolo Bonzini  <bonzini@gnu.org>
37107
37108         Tests for module 'pipe-filter-ii'.
37109         * modules/pipe-filter-ii-tests: New file.
37110         * tests/test-pipe-filter-ii1.sh: New file.
37111         * tests/test-pipe-filter-ii1.c: New file.
37112         * tests/test-pipe-filter-ii2.sh: New file.
37113         * tests/test-pipe-filter-ii2-main.c: New file.
37114         * tests/test-pipe-filter-ii2-child.c: New file.
37115
37116         New module 'pipe-filter-ii'.
37117         * lib/pipe-filter.h: New file.
37118         * lib/pipe-filter-ii.c: New file.
37119         * lib/pipe-filter-aux.h: New file.
37120         * modules/pipe-filter-ii: New file.
37121
37122 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37123
37124         * lib/gc-libgcrypt.c: Change copyright to FSF.
37125         * lib/gc-gnulib.c: Likewise.
37126
37127 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37128
37129         * lib/gethostname.c: Include limits.h.
37130
37131 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37132             Bruno Haible  <bruno@clisp.org>
37133
37134         Ensure HOST_NAME_MAX as part of the gethostname module.
37135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37136         define also HOST_NAME_MAX.
37137         * tests/test-gethostname.c: Include <limits.h>.
37138         (main): Check also HOST_NAME_MAX.
37139         * doc/posix-headers/limits.texi: Document the mingw problem.
37140
37141 2009-08-02  Bruno Haible  <bruno@clisp.org>
37142
37143         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37144         Add comments.
37145
37146 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37147
37148         * lib/gethostname.c: Add Windows wrapper.
37149         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37150         * modules/gethostname: Depend on sys_socket & errno, for also
37151         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37152         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37153
37154 2009-07-31  Jim Meyering  <meyering@redhat.com>
37155
37156         getloadavg: fix symbol name in comment
37157         * lib/getloadavg.c: Correct a typo I introduced when adding
37158         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37159         Matt Kraai spotted the problem.
37160
37161 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37162
37163         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37164         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37165         code also if ! defined N_NAME_POINTER.
37166         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37167         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37168         but the n_name member is a 12-byte array.
37169
37170 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37171
37172         update-copyright: generalize comment handling
37173         * build-aux/update-copyright: Handle copyright statements
37174         within more comment styles.
37175         Document usage.
37176         Report any file with an external copyright holder or parse failure.
37177
37178 2009-07-29  Jim Meyering  <meyering@redhat.com>
37179
37180         mktime: correct setting of REPLACE_MKTIME
37181         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37182
37183         update-copyright: new module
37184         * modules/update-copyright: New file.
37185         * build-aux/update-copyright: New file.
37186         * MODULES.html.sh (maint+release support): Add update-copyright.
37187
37188 2009-07-27  Bruno Haible  <bruno@clisp.org>
37189
37190         Fix compilation error when <ctime> is used and mktime is replaced.
37191         * lib/time.in.h (mktime): New declaration.
37192         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37193         REPLACE_MKTIME instead of defining mktime in config.h.
37194         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37195         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37196         Reported by Ross McFarland <rwmcfa1@neces.com>.
37197
37198 2009-07-27  Bruno Haible  <bruno@clisp.org>
37199
37200         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37201         Reported by Matt Kraai <mkraai@beckman.com>.
37202
37203 2009-07-25  Jim Meyering  <meyering@redhat.com>
37204
37205         maint.mk: avoid warnings about missing files
37206         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37207         diagnostic when .prev-version does not exist.
37208         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37209         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37210         nonexistent cfg.mk.
37211         Suggestions from Simon Josefsson.
37212
37213 2009-07-25  Bruno Haible  <bruno@clisp.org>
37214
37215         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37216         defined as macros. Needed on QNX 6.4.1.
37217         Reported by Matt Kraai <mkraai@beckman.com>.
37218
37219 2009-07-23  Jim Meyering  <meyering@redhat.com>
37220
37221         maint.mk: invoke "make dist" with a working value of XZ_OPT
37222         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37223
37224 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37225
37226         Make fseeko.c compile on QNX.
37227         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37228
37229 2009-07-22  Peter Simons  <simons@cryp.to>
37230
37231         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37232         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37233         * lib/md4.h: Likewise.
37234         * lib/md5.h: Likewise.
37235         * lib/sha1.h: Likewise.
37236         * lib/sha256.h: Likewise.
37237         * lib/sha512.h: Likewise.
37238
37239         tests-sha1: don't assign literal string to 'char *' variable
37240         * tests/test-sha1.c (main): Declare locals with "const" to match
37241         attributes of the right hand side.
37242
37243 2009-07-21  Eric Blake  <ebb9@byu.net>
37244
37245         dup2: fix more mingw problems
37246         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37247         fd to itself.
37248         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37249         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37250         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37251         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37252         care of mingw bugs.
37253
37254 2009-07-21  Jim Meyering  <meyering@redhat.com>
37255
37256         vc-list-files: avoid failure when /bin/sh is dash
37257         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37258         On some Debian based systems, /bin/sh is a symlink to dash, and running
37259         this command would omit the "/" following each 'tests' prefix:
37260           dash -x build-aux/vc-list-files -C . tests
37261         That is because bash and dash work differently:
37262           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37263           bash ok
37264           dash odd
37265
37266 2009-07-21  Eric Blake  <ebb9@byu.net>
37267
37268         dup2-tests: test previous patch
37269         * modules/dup2-tests: New file.
37270         * tests/test-dup2.c: Likewise.
37271         * tests/test-open.c (main): Avoid unspecified behavior.
37272         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37273         test.
37274
37275         dup2: work around mingw and cygwin 1.5 bug
37276         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37278         * modules/unistd (Makefile.am): Substitute it.
37279         * lib/unistd.in.h (dup2): Declare the replacement.
37280         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37281         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37282         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37283         * modules/execute (Depends-on): Add dup2.
37284         * modules/fseterr (Depends-on): Likewise.
37285         * modules/pipe (Depends-on): Likewise.
37286         * modules/posix_spawn-internal (Depends-on): Likewise.
37287
37288 2009-07-21  Bruno Haible  <bruno@clisp.org>
37289
37290         * modules/.gitattributes: New file.
37291
37292 2009-07-20  Bruno Haible  <bruno@clisp.org>
37293
37294         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37295         (main): Use it.
37296
37297 2009-07-20  Eric Blake  <ebb9@byu.net>
37298
37299         test-pipe: make a bit more robust.
37300         * tests/test-pipe.c (myerr): Allow error messages regardless of
37301         what we do to stderr.
37302         (test_pipe): Rearrange to avoid deadlock.
37303         (child_main): Try a larger read, to ensure we avoided deadlock.
37304         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37305         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37306         if misused.
37307
37308 2009-07-19  Jim Meyering  <meyering@redhat.com>
37309
37310         fts: avoid false-positive cycle-detection
37311         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37312         for each new command line argument.
37313
37314 2009-07-19  Bruno Haible  <bruno@clisp.org>
37315
37316         Fix build error on mingw with the modules sys_select and unistd.
37317         * modules/acl-tests (Depends-on): Add close.
37318         * modules/binary-io-tests (Depends-on): Likewise.
37319         * modules/closein-tests (Depends-on): Likewise.
37320         * modules/flock-tests (Depends-on): Likewise.
37321         * modules/fsync-tests (Depends-on): Likewise.
37322         * modules/lseek-tests (Depends-on): Likewise.
37323         * modules/pipe-tests (Depends-on): Likewise.
37324         * modules/posix_spawn-tests (Depends-on): Likewise.
37325         * modules/posix_spawnp-tests (Depends-on): Likewise.
37326         * modules/stat-time-tests (Depends-on): Likewise.
37327         * modules/yesno-tests (Depends-on): Likewise.
37328
37329 2009-07-19  Bruno Haible  <bruno@clisp.org>
37330
37331         Unify conditionals.
37332         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37333         macros, not at the compiler macros.
37334         * lib/pipe.c: Likewise.
37335         * lib/execute.c: Likewise.
37336         * lib/spawni.c: Likewise.
37337
37338 2009-07-19  Bruno Haible  <bruno@clisp.org>
37339
37340         Fix handling of closed stdin/stdout/stderr on mingw.
37341         * lib/w32spawn.h: Include unistd.h.
37342         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37343         file descriptor with O_NOINHERIT flag.
37344         (fd_safer_noinherit): New function, based on fd-safer.c.
37345         (dup_safer_noinherit): New function, based on dup-safer.c.
37346         (undup_safer_noinherit): New function.
37347         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37348         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37349         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37350         instead of fd_safer.
37351         * tests/test-pipe.c: Include <windows.h>.
37352         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37353         result.
37354
37355         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37356         from main.
37357         (test_pipe): Pass an extra argument for disambiguation.
37358         (main): Invoke parent_main or child_main.
37359
37360         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37361         consistently.
37362
37363 2009-07-18  Eric Blake  <ebb9@byu.net>
37364
37365         test-pipe: fix mingw build
37366         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37367
37368 2009-07-18  Bruno Haible  <bruno@clisp.org>
37369
37370         * modules/pipe-tests (Makefile.am): Fix typo.
37371
37372 2009-07-18  Eric Blake  <ebb9@byu.net>
37373
37374         error: fix mingw build
37375         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37376         Reported by Bruno Haible.
37377
37378         error: avoid undefined use of stdout
37379         * lib/error.c (error, error_at_line): Check that fd 1 is open
37380         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37381         is handling faults and the close_stdout module wants to report the
37382         detection of closed stdout as an error.
37383
37384 2009-07-17  Eric Blake  <ebb9@byu.net>
37385
37386         pipe: be robust in face of closed fds
37387         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37388         should cause child to misbehave.
37389         * modules/pipe-tests: New module.
37390         * tests/test-pipe.c: New file.
37391         * tests/test-pipe.sh: New file.
37392         Reported by Akim Demaille.
37393
37394 2009-07-14  Bruno Haible  <bruno@clisp.org>
37395
37396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37397         Reported by anonymous kc.
37398
37399 2009-07-07  Jim Meyering  <meyering@redhat.com>
37400
37401         maint.mk: don't look for translatable strings in *.m4 or *.mk
37402         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37403         when searching for translatable strings.
37404
37405 2009-07-05  Jim Meyering  <meyering@redhat.com>
37406
37407         remove superfluous parentheses in STREQ definition
37408         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37409         * lib/getugroups.c (STREQ): Likewise.
37410         * lib/fnmatch.c (STREQ): Likewise.
37411         Spotted by Bruno Haible.
37412
37413 2009-07-04  Jim Meyering  <meyering@redhat.com>
37414
37415         argv-iter: new module
37416         * MODULES.html.sh: Add argv-iter.
37417         * lib/argv-iter.c, lib/argv-iter.h: New files.
37418         * modules/argv-iter: New file.
37419         * modules/argv-iter-tests: New file.
37420         * tests/test-argv-iter.c: Test it.
37421
37422 2009-07-04  Bruno Haible  <bruno@clisp.org>
37423
37424         Fix assertion.
37425         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37426         contains more exact copies of a given entry than file2, leave the extra
37427         copies unpaired rather than aborting.
37428         Reported by Eric Blake.
37429
37430 2009-07-02  Bruno Haible  <bruno@clisp.org>
37431
37432         Speedup git-merge-changelog for git cherry-pick.
37433         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37434         (entries_mapping_get): New function, extracted from compute_mapping.
37435         (entries_mapping_reverse_get): New function.
37436         (compute_mapping): Add a 'full' argument. Return the result in a
37437         'struct entries_mapping'.
37438         (main): Update. Access the mappings through entries_mapping_get.
37439         Reported by Eric Blake.
37440
37441 2009-07-02  Bruno Haible  <bruno@clisp.org>
37442
37443         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37444         best_i.
37445
37446 2009-07-02  Bruno Haible  <bruno@clisp.org>
37447
37448         Speed up approximate search for matching ChangeLog entries.
37449         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37450         argument. Call fstrcmp_bounded instead of fstrcmp.
37451         (compute_mapping, try_split_merged_entry, main): Update callers.
37452
37453 2009-07-02  Bruno Haible  <bruno@clisp.org>
37454
37455         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37456
37457 2009-06-30  Bruno Haible  <bruno@clisp.org>
37458
37459         Reduce the number of uc_is_cased calls.
37460         * lib/unicase.h (casing_suffix_context_t): Add
37461         'first_char_except_ignorable' field.
37462         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37463         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37464         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37465         Update initializer.
37466         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37467         case-ignorable characters.
37468         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37469         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37470         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37471         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37472         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37473
37474 2009-06-30  Bruno Haible  <bruno@clisp.org>
37475
37476         Tests for module 'unicase/ignorable'.
37477         * modules/unicase/ignorable-tests: New file.
37478         * tests/unicase/test-ignorable.c: New file, generated by
37479         gen-uni-tables.
37480
37481         Tests for module 'unicase/cased'.
37482         * modules/unicase/cased-tests: New file.
37483         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37484         * tests/unicase/test-predicate-part1.h: New file, derived from
37485         tests/unictype/test-predicate-part1.h.
37486         * tests/unicase/test-predicate-part2.h: New file, same as
37487         tests/unictype/test-predicate-part2.h.
37488
37489         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37490         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37491         (output_casing_properties): New function.
37492         (main): Call it.
37493         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37494         * lib/unicase/cased.c: Include unictype/bitmap.h.
37495         (uc_is_cased): Define through a bitmap lookup.
37496         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37497         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37498         (uc_is_case_ignorable): Define through a bitmap lookup.
37499         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37500         lib/unictype/bitmap.h.
37501         (Depends-on): Add inline. Clean up.
37502         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37503         lib/unictype/bitmap.h.
37504         (Depends-on): Add inline. Clean up.
37505         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37506         recognition.
37507         * tests/unicase/test-u16-tolower.c (main): Likewise.
37508         * tests/unicase/test-u32-tolower.c (main): Likewise.
37509
37510 2009-06-30  Bruno Haible  <bruno@clisp.org>
37511
37512         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37513         * lib/unicase/u16-casemap.c: Likewise.
37514         * lib/unicase/u32-casemap.c: Likewise.
37515
37516 2009-06-29  Bruno Haible  <bruno@clisp.org>
37517
37518         Define u32_casefold as a wrapper around u32_ct_casefold.
37519         * lib/unicase/u32-casefold.c: Update.
37520         * modules/unicase/u32-casefold (Depends-on): Add
37521         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37522         unicase/empty-suffix-context. Clean up.
37523
37524         Define u16_casefold as a wrapper around u16_ct_casefold.
37525         * lib/unicase/u16-casefold.c: Update.
37526         * modules/unicase/u16-casefold (Depends-on): Add
37527         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37528         unicase/empty-suffix-context. Clean up.
37529
37530         Define u8_casefold as a wrapper around u8_ct_casefold.
37531         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37532         * lib/unicase/u8-casefold.c: Update.
37533         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37534         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37535
37536         Define u32_totitle as a wrapper around u32_ct_totitle.
37537         * lib/unicase/u32-totitle.c: Update.
37538         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37539         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37540
37541         Define u16_totitle as a wrapper around u16_ct_totitle.
37542         * lib/unicase/u16-totitle.c: Update.
37543         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37544         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37545
37546         Define u8_totitle as a wrapper around u8_ct_totitle.
37547         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37548         functions.
37549         (FUNC): Delegate to U_CT_TOTITLE.
37550         * lib/unicase/u8-totitle.c: Update.
37551         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37552         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37553
37554         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37555         invocation.
37556         * modules/unicase/u32-tolower (Depends-on): Add
37557         unicase/empty-prefix-context, unicase/empty-suffix-context.
37558
37559         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37560         invocation.
37561         * modules/unicase/u16-tolower (Depends-on): Add
37562         unicase/empty-prefix-context, unicase/empty-suffix-context.
37563
37564         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37565         * modules/unicase/u8-tolower (Depends-on): Add
37566         unicase/empty-prefix-context, unicase/empty-suffix-context.
37567
37568         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37569         invocation.
37570         * modules/unicase/u32-toupper (Depends-on): Add
37571         unicase/empty-prefix-context, unicase/empty-suffix-context.
37572
37573         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37574         invocation.
37575         * modules/unicase/u16-toupper (Depends-on): Add
37576         unicase/empty-prefix-context, unicase/empty-suffix-context.
37577
37578         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37579         * modules/unicase/u8-toupper (Depends-on): Add
37580         unicase/empty-prefix-context, unicase/empty-suffix-context.
37581
37582         New module 'unicase/u32-ct-casefold'.
37583         * lib/unicase/u32-ct-casefold.c: New file.
37584         * modules/unicase/u32-ct-casefold: New file.
37585
37586         New module 'unicase/u16-ct-casefold'.
37587         * lib/unicase/u16-ct-casefold.c: New file.
37588         * modules/unicase/u16-ct-casefold: New file.
37589
37590         New module 'unicase/u8-ct-casefold'.
37591         * lib/unicase/u8-ct-casefold.c: New file.
37592         * lib/unicase/u-ct-casefold.h: New file, derived from
37593         lib/unicase/u-casefold.h.
37594         * modules/unicase/u8-ct-casefold: New file.
37595
37596         New module 'unicase/u32-ct-totitle'.
37597         * lib/unicase/u32-ct-totitle.c: New file.
37598         * modules/unicase/u32-ct-totitle: New file.
37599
37600         New module 'unicase/u16-ct-totitle'.
37601         * lib/unicase/u16-ct-totitle.c: New file.
37602         * modules/unicase/u16-ct-totitle: New file.
37603
37604         New module 'unicase/u8-ct-totitle'.
37605         * lib/unicase/u8-ct-totitle.c: New file.
37606         * lib/unicase/u-ct-totitle.h: New file, derived from
37607         lib/unicase/u-totitle.h.
37608         * modules/unicase/u8-ct-totitle: New file.
37609
37610         New module 'unicase/u32-ct-tolower'.
37611         * lib/unicase/u32-ct-tolower.c: New file.
37612         * modules/unicase/u32-ct-tolower: New file.
37613
37614         New module 'unicase/u16-ct-tolower'.
37615         * lib/unicase/u16-ct-tolower.c: New file.
37616         * modules/unicase/u16-ct-tolower: New file.
37617
37618         New module 'unicase/u8-ct-tolower'.
37619         * lib/unicase/u8-ct-tolower.c: New file.
37620         * modules/unicase/u8-ct-tolower: New file.
37621
37622         New module 'unicase/u32-ct-toupper'.
37623         * lib/unicase/u32-ct-toupper.c: New file.
37624         * modules/unicase/u32-ct-toupper: New file.
37625
37626         New module 'unicase/u16-ct-toupper'.
37627         * lib/unicase/u16-ct-toupper.c: New file.
37628         * modules/unicase/u16-ct-toupper: New file.
37629
37630         New module 'unicase/u8-ct-toupper'.
37631         * lib/unicase/u8-ct-toupper.c: New file.
37632         * modules/unicase/u8-ct-toupper: New file.
37633
37634         Add context arguments to u*_casemap functions.
37635         * lib/unicase/unicasemap.h: Include unicase.h.
37636         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37637         suffix_context arguments.
37638         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37639         functions.
37640         (FUNC): Add prefix_context and suffix_context arguments. Use
37641         uc_is_cased and uc_is_case_ignorable.
37642         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37643         * lib/unicase/u16-casemap.c: Likewise.
37644         * lib/unicase/u32-casemap.c: Likewise.
37645         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37646         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37647         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37648         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37649         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37650         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37651
37652         New module 'unicase/u32-suffix-context'.
37653         * lib/unicase/u32-suffix-context.c: New file.
37654         * modules/unicase/u32-suffix-context: New file.
37655
37656         New module 'unicase/u16-suffix-context'.
37657         * lib/unicase/u16-suffix-context.c: New file.
37658         * modules/unicase/u16-suffix-context: New file.
37659
37660         New module 'unicase/u8-suffix-context'.
37661         * lib/unicase/u8-suffix-context.c: New file.
37662         * lib/unicase/u-suffix-context.h: New file.
37663         * modules/unicase/u8-suffix-context: New file.
37664
37665         New module 'unicase/empty-suffix-context'.
37666         * lib/unicase/empty-suffix-context.c: New file.
37667         * modules/unicase/empty-suffix-context: New file.
37668
37669         New module 'unicase/u32-prefix-context'.
37670         * lib/unicase/u32-prefix-context.c: New file.
37671         * modules/unicase/u32-prefix-context: New file.
37672
37673         New module 'unicase/u16-prefix-context'.
37674         * lib/unicase/u16-prefix-context.c: New file.
37675         * modules/unicase/u16-prefix-context: New file.
37676
37677         New module 'unicase/u8-prefix-context'.
37678         * lib/unicase/u8-prefix-context.c: New file.
37679         * lib/unicase/u-prefix-context.h: New file.
37680         * lib/unicase/context.h: New file.
37681         * modules/unicase/u8-prefix-context: New file.
37682
37683         New module 'unicase/empty-prefix-context'.
37684         * lib/unicase/empty-prefix-context.c: New file.
37685         * modules/unicase/empty-prefix-context: New file.
37686
37687         New module 'unicase/ignorable'.
37688         * lib/unicase/ignorable.c: New file.
37689         * modules/unicase/ignorable: New file.
37690
37691         New module 'unicase/cased'.
37692         * lib/unicase/caseprop.h: New file.
37693         * lib/unicase/cased.c: New file.
37694         * modules/unicase/cased: New file.
37695
37696         New functions for case mapping of substrings.
37697         * lib/unicase.h (casing_prefix_context_t): New type.
37698         (unicase_empty_prefix_context): New variable.
37699         (u8_casing_prefix_context, u16_casing_prefix_context,
37700         u32_casing_prefix_context, u8_casing_prefixes_context,
37701         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37702         declarations.
37703         (casing_suffix_context_t): New type.
37704         (unicase_empty_suffix_context): New variable.
37705         (u8_casing_suffix_context, u16_casing_suffix_context,
37706         u32_casing_suffix_context, u8_casing_suffixes_context,
37707         u16_casing_suffixes_context, u32_casing_suffixes_context,
37708         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37709         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37710         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37711         declarations.
37712
37713 2009-06-28  Jim Meyering  <meyering@redhat.com>
37714
37715         boostrap: indent only with spaces
37716         * build-aux/bootstrap: Indent only with spaces, never TABs.
37717
37718         bootstrap: split long lines
37719         * build-aux/bootstrap: Keep line length < 80.
37720
37721         bootstrap: sync from coreutils
37722         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37723         just as autoreconf does.  Verify a list of prerequisite
37724         package-name,version-number pairs if defined in bootstrap.conf.
37725         Refer to README-prereq, if prerequisites are not satisfied.
37726
37727 2009-06-27  Eric Blake  <ebb9@byu.net>
37728
37729         tests: add test for bogus NULL definition
37730         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37731         * tests/test-stdlib.c: Likewise.
37732         * tests/test-string.c: Likewise.
37733         * tests/test-locale.c: Likewise.
37734         * tests/test-unistd.c: Likewise.
37735         * modules/stdio-tests (Depends-on): Add verify.
37736         * modules/stdlib-tests (Depends-on): Likewise.
37737         * modules/string-tests (Depends-on): Likewise.
37738         * modules/locale-tests (Depends-on): Likewise.
37739         * modules/unistd-tests (Depends-on): Likewise.
37740
37741 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37742
37743         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37744         self-explaining comment.
37745         * m4/selinux-selinux-h: Update serial.
37746         (gl_LIBSELINUX): New macro, adding a warning for missing development
37747         packages to code extracted from...
37748         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37749         Add warning for missing development packages here, too.
37750
37751 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37752
37753         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37754
37755 2009-06-25  Eric Blake  <ebb9@byu.net>
37756
37757         version-etc: fix regression
37758         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37759         gcc.
37760         (version_etc): Use it, to catch bugs with trailing NULL.
37761         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37762         (version_etc_va): Fix logic bug.
37763         * modules/version-etc-tests: Add test.
37764         * tests/test-version-etc.c: New file.
37765         * tests/test-version-etc.sh: Likewise.
37766
37767 2009-06-25  Sam Steingold  <sds@gnu.org>
37768
37769         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37770         mbtowc declaration.
37771
37772 2009-06-25  Eric Blake  <ebb9@byu.net>
37773
37774         fpurge: migrate into <stdio.h>
37775         * lib/fpurge.h: Delete...
37776         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37777         * lib/fpurge.c (fpurge): Change declaring header.
37778         * modules/fpurge (Files): Drop deleted file.
37779         (Depends-on): Add stdio.
37780         (configure.ac): Set witness.
37781         * modules/stdio (Makefile.am): Support fpurge macros.
37782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37783         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37784         * lib/fflush.c: Update client.
37785         * tests/test-fpurge.c: Likewise.
37786         * NEWS: Mention the change.
37787
37788 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37789
37790         * lib/argp-version-etc.c (program_authors): Add const
37791         qualifier.
37792         * lib/version-etc.c: Fix typos in the comments.
37793         * modules/argp-version-etc: Depends on version-etc.
37794
37795 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37796
37797         argp-version-etc: new module.
37798
37799         * lib/argp-version-etc.c: New file.
37800         * lib/argp-version-etc.h: New file.
37801         * modules/argp-version-etc: New file.
37802         * modules/argp-version-etc-tests: New file.
37803         * tests/test-argp-version-etc.c: New test.
37804         * tests/test-argp-version-etc-1.sh: New test.
37805
37806 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37807
37808         Provide additional interfaces and documentation for version-etc
37809         module.
37810
37811         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37812         interfaces.
37813         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37814         prototypes.
37815
37816 2009-06-24  Bruno Haible  <bruno@clisp.org>
37817
37818         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37819         HAVE_LIB${NAME} macro.
37820         Reported by Sam Steingold <sds@gnu.org>.
37821
37822 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37823
37824         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37825         needed.
37826
37827 2009-06-21  Bruno Haible  <bruno@clisp.org>
37828
37829         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37830         work.
37831         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37832         together with LIB${NAME}, LTLIB${NAME}.
37833         Reported by Sam Steingold <sds@gnu.org>.
37834
37835 2009-06-20  Jim Meyering  <meyering@redhat.com>
37836
37837         tests: make sc_require_test_exit_idiom more generic
37838         * top/maint.mk (Exit_witness_file): New overridable variable.
37839         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37840         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37841
37842 2009-06-19  Jim Meyering  <meyering@redhat.com>
37843
37844         hash: reverse order of src/dst parameters in an internal interface
37845         * lib/hash.c (transfer_entries): Reverse order of parameters to
37846         put DST before SRC.  Adjust callers.
37847
37848         tests: test-hash: avoid wholesale duplication
37849         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37850         Instead, use a loop and add a single conditional.
37851
37852         tests: test-hash: allow seed selection via a command line argument
37853         * tests/test-hash.c (get_seed): New function.
37854         (main): Use it.
37855
37856 2009-06-19  Eric Blake  <ebb9@byu.net>
37857
37858         hash: avoid memory leak on allocation failure
37859         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37860         failure.  Factor repeated algorithm...
37861         (transfer_entries): ...into new helper routine.
37862         (hash_delete): React to hash_rehash return value.
37863
37864         hash: reduce memory pressure in hash_rehash no-op case
37865         * lib/hash.c (next_prime): Avoid overflow.
37866         (hash_initialize): Factor bucket size computation...
37867         (compute_bucket_size): ...into new helper function.
37868         (hash_rehash): Use new function and open coding to reduce memory
37869         pressure, and avoid a memory leak in USE_OBSTACK code.
37870         Reported by Jim Meyering.
37871
37872 2009-06-18  Eric Blake  <ebb9@byu.net>
37873
37874         hash: make rotation more obvious
37875         * modules/hash (Depends-on): Add bitrotate and stdint.
37876         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37877         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37878         (SIZE_MAX): Rely on headers for definition.
37879         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37880         (raw_hasher): Use rotr_sz.
37881         Suggested by Jim Meyering.
37882
37883         hash: fix memory leak in last patch
37884         * lib/hash.c (hash_rehash): Avoid memory leak.
37885
37886         hash: avoid no-op rehashing
37887         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37888
37889         hash: provide default callback functions
37890         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37891         (hash_initialize): Use them as defaults.
37892         * tests/test-hash.c (main): Test this.
37893
37894         hash: minor optimization
37895         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37896         when possible.
37897         (hash_initialize): Document this promise.
37898         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37899         * tests/test-hash.c (hash_compare_strings): Test this.
37900
37901 2009-06-18  Bruno Haible  <bruno@clisp.org>
37902
37903         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37904         going to be replaced anyway.
37905
37906 2009-06-18  Bruno Haible  <bruno@clisp.org>
37907
37908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37909         in one place.
37910         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37911         be replaced anyway.
37912
37913 2009-06-18  Eric Blake  <ebb9@byu.net>
37914
37915         hash: check for resize before insertion
37916         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37917         threshold before insertion, so that a pathological hash_rehash
37918         that fills every bucket can still trigger another rehash.
37919
37920 2009-06-18  Jim Meyering  <meyering@redhat.com>
37921
37922         hash-tests: add a loop around the small tests
37923         * tests/test-hash.c (main): Repeat small tests with selected
37924         small initial table sizes.
37925
37926 2009-06-17  Eric Blake  <ebb9@byu.net>
37927
37928         hash: minor cleanups
37929         * lib/hash.h (hash_entry): Make opaque, by moving...
37930         * lib/hash.c (hash_entry): ...here.
37931         (hash_insert): Clarify restrictions on what can be inserted.
37932         (hash_get_next): Clarify when it is safe to remove an element
37933         during traversal.
37934         (check_tuning): Skip verification when tuning is known safe.
37935         (hash_initialize): Clarify restrictions on tuning.
37936
37937 2009-06-17  Jim Meyering  <jim@meyering.net>
37938         and Eric Blake  <ebb9@byu.net>
37939
37940         hash-tests: new module
37941         * modules/hash-tests: New file.
37942         * tests/test-hash.c: New file.
37943
37944 2009-06-17  Eric Blake  <ebb9@byu.net>
37945
37946         strstr-simple: document new module
37947         * MODULES.html.sh: Document new module.
37948
37949         strstr, strcasestr: replace on platforms with broken memchr
37950         * modules/strstr: Split into...
37951         * modules/strstr-simple: ...new module that does not care about
37952         performance, but does care about glibc bug.
37953         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37954         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37955         if platform memchr is broken, per Debian bug 521737.
37956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37957         memchr.
37958         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37959         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37960         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37961         * modules/mountlist (Depends-on): Add strstr-simple.
37962         * modules/gen-uni-tables (Depends-on): Likewise.
37963         * modules/argz (Depends-on): Add strstr.
37964
37965 2009-06-17  Bruno Haible  <bruno@clisp.org>
37966
37967         * modules/posix_spawn-internal (Depends-on): Add errno.
37968
37969 2009-06-17  Bruno Haible  <bruno@clisp.org>
37970
37971         Define missing ESTALE on Interix 3.5.
37972         * lib/errno.in.h (ESTALE): Assign a value if missing.
37973         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37974         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37975         missing.
37976         * doc/posix-headers/errno.texi: Mention the Interix bug.
37977         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37978
37979 2009-06-15  Eric Blake  <ebb9@byu.net>
37980
37981         memchr, memchr2: add valgrind exception
37982         * lib/memchr.valgrind: New file.
37983         * lib/memchr2.valgrind: New file.
37984         * modules/memchr (Files): Distribute valgrind file.
37985         * modules/memchr2 (Files): Likewise.
37986
37987         docs: memchr is no longer obsolete
37988         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37989         * lib/string.in.h (memchr): Simplify logic.
37990
37991 2009-06-14  Jim Meyering  <meyering@redhat.com>
37992
37993         link-follow: fix the "checking..." message to not mention trailing slash
37994         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37995         never considered trailing slashes.
37996
37997 2009-06-14  Bruno Haible  <bruno@clisp.org>
37998
37999         * m4/memchr.m4: Mention also the bug on IA-64.
38000         * doc/posix-functions/memchr.texi: Likewise.
38001
38002 2009-06-12  Eric Blake  <ebb9@byu.net>
38003
38004         memchr: detect broken x86_64 and alpha implementations
38005         * modules/memchr-tests (Depends-on): Move mmap detection...
38006         * modules/memchr (Depends-on): ...here.
38007         (configure.ac): Set indicator.
38008         * lib/string.in.h (memchr): Declare replacement.
38009         * modules/string (Makefile.am): Trigger replacement.
38010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38011         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38012         bugs.
38013         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38014         * modules/getpagesize (License): Relax license.
38015
38016 2009-06-11  Bruno Haible  <bruno@clisp.org>
38017
38018         * lib/idpriv.h: Add more references.
38019
38020 2009-06-08  Bruno Haible  <bruno@clisp.org>
38021
38022         Tests for module 'idpriv-droptemp'.
38023         * modules/idpriv-droptemp-tests: New file.
38024         * tests/test-idpriv-droptemp.sh: New file.
38025         * tests/test-idpriv-droptemp.su.sh: New file.
38026         * tests/test-idpriv-droptemp.c: New file.
38027
38028         New module 'idpriv-droptemp'.
38029         * lib/idpriv-droptemp.c: New file.
38030         * modules/idpriv-droptemp: New file.
38031
38032 2009-06-08  Bruno Haible  <bruno@clisp.org>
38033
38034         Tests for module 'idpriv-drop'.
38035         * modules/idpriv-drop-tests: New file.
38036         * tests/test-idpriv-drop.sh: New file.
38037         * tests/test-idpriv-drop.su.sh: New file.
38038         * tests/test-idpriv-drop.c: New file.
38039
38040         New module 'idpriv-drop'.
38041         * lib/idpriv.h: New file.
38042         * lib-idpriv-drop.c: New file.
38043         * m4/idpriv.m4: New file.
38044         * modules/idpriv-drop: New file.
38045
38046 2009-06-08  Bruno Haible  <bruno@clisp.org>
38047
38048         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38049         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38050         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38051         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38052         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38053         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38054         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38055
38056 2009-06-08  Eric Blake  <ebb9@byu.net>
38057
38058         test-strstr: use memory fence, when possible
38059         * tests/test-strstr.c (main): Use memory fence, in order to be
38060         more likely to trigger Debian bug 521737.
38061         * modules/strstr-tests (Files): Pull in additional files.
38062
38063         memchr: no longer obsolete, for wider field testing
38064         * modules/memchr (Status, Notice): Delete, this module is no
38065         longer obsolete.
38066         * modules/vasnprintf (Depends-on): Add memchr.
38067
38068 2009-06-07  Jim Meyering  <meyering@redhat.com>
38069
38070         hash: declare some functions with the warn_unused_result attribute
38071         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38072
38073 2009-06-07  Bruno Haible  <bruno@clisp.org>
38074
38075         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38076         Reported by Eric Blake.
38077
38078 2009-06-06  Eric Blake  <ebb9@byu.net>
38079
38080         test-alignof: fix typo with long double
38081         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38082         compiler error.
38083
38084 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38085
38086         Escape non-texinfo { and }s.
38087         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38088         markup error.
38089
38090 2009-06-04  Jim Meyering  <meyering@redhat.com>
38091
38092         gitlog-to-changelog: don't infloop on an empty commit log
38093         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38094         Reported by Boris Petersen <transacid@centerim.org>.
38095
38096 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38097
38098         version-etc: extend for packagers
38099         Add three new configure options, intended for packagers:
38100           --with-packager="packager name"
38101           --with-packager-version="packager-specific version"
38102           --with-packager-bug-reports="packager bug reporting"
38103         An example with coreutils:
38104           $ ./configure \
38105             --with-packager=Gentoo \
38106             --with-packager-bug-report=http://bugs.gentoo.org/ \
38107             --with-packager-version="patchset 1.6"
38108           $ ./src/ls --version | head -n2
38109           ls (GNU coreutils) 7.1-dirty
38110           Packaged by Gentoo (patchset 1.6)
38111         Note that the bug reporting info via --help doesn't show up because
38112         coreutils uses its own custom emit_bug_reporting_address() implementation
38113         in src/system.h.  If it didn't, it'd look like:
38114           $ ./src/ls --help | tail -n4
38115           Report bugs to <bug-coreutils@gnu.org>.
38116           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38117           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38118           General help using GNU software: <http://www.gnu.org/gethelp/>.
38119         * lib/version-etc.c: Print new information, if provided.
38120         * m4/version-etc.m4: New file.
38121         * modules/version-etc (Files): Add m4/version-etc.m4.
38122         (configure.ac): Add gl_VERSION_ETC.
38123
38124 2009-05-31  Bruno Haible  <bruno@clisp.org>
38125
38126         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38127         and 'int64_t'.
38128         * modules/alignof-tests (Dependencies): Add stdint.
38129         Reported by Eric Blake.
38130
38131 2009-05-31  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38134         restriction due to compiler bugs.
38135         Reported by Eric Blake.
38136
38137 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38138             Bruno Haible  <bruno@clisp.org>
38139
38140         Fix test-alignof failure.
38141         * lib/alignof.h (alignof_slot): New macro.
38142         (alignof_type): New macro, with the same semantics as the previous
38143         'alignof'.
38144         (alignof): Alias to alignof_slot.
38145         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38146         check that the results are usable as constant expressions.
38147
38148 2009-05-31  Bruno Haible  <bruno@clisp.org>
38149
38150         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38151         * tests/test-memchr.c (main): Check that memchr does not read past the
38152         first occurrence of the byte.
38153         * tests/test-strstr.c (main): Update comment.
38154         Suggested by Eric Blake.
38155
38156 2009-05-30  Bruno Haible  <bruno@clisp.org>
38157
38158         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38159         detail how to use dumpbin.
38160         Reported by David Byron <dbyron@dbyron.com>.
38161
38162 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38163
38164         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38165
38166 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38167
38168         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38169
38170 2009-05-28  Bruno Haible  <bruno@clisp.org>
38171
38172         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38173         build-aux/ files.
38174
38175 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38176
38177         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38178
38179 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38180
38181         * gnulib-tool (sed_transform_main_lib_file)
38182         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38183         regexps.
38184
38185 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38186
38187         * tests/test-strstr.c: Add another self-test.
38188         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38189         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38190
38191 2009-05-23  Bruno Haible  <bruno@clisp.org>
38192
38193         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38194         change.
38195
38196 2009-05-21  Bruno Haible  <bruno@clisp.org>
38197
38198         Simplify use of mode_t varargs.
38199         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38200         uses 'mode_t' or 'int'.
38201         * lib/openat.c (openat): Likewise.
38202         * lib/open-safer.c (open_safer): Likewise.
38203         * m4/mode_t.m4: New file.
38204         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38205         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38206         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38207         * modules/open (Files): Add m4/mode_t.m4.
38208         * modules/openat (Files): Likewise.
38209         * modules/fcntl-safer (Files): Likewise.
38210         Suggested by Eric Blake.
38211
38212 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38213
38214         * doc/glibc-functions/fallocate.texi: New file.
38215         * doc/gnulib.texi: Include it.
38216
38217 2009-05-21  Eric Blake  <ebb9@byu.net>
38218             Bruno Haible  <bruno@clisp.org>
38219
38220         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38221         invocations.
38222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38223
38224 2009-05-21  Eric Blake  <ebb9@byu.net>
38225             Bruno Haible  <bruno@clisp.org>
38226
38227         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38228         include_next. Fix of 2008-11-20 commit.
38229         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38230         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38231         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38232         NEXT_MATH_H.
38233         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38234         instead of NEXT_MATH_H.
38235
38236 2009-05-21  Bruno Haible  <bruno@clisp.org>
38237
38238         Avoid redefinition warnings for SIZE_MAX.
38239         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38240         Reported by Simon Josefsson.
38241
38242 2009-05-21  Bruno Haible  <bruno@clisp.org>
38243
38244         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38245         AC_CACHE_VAL.
38246
38247 2009-05-20  Bruno Haible  <bruno@clisp.org>
38248
38249         Make zeroptr.h work on mingw.
38250         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38251         mprotect.
38252         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38253         * modules/memchr2-tests (configure.ac): Likewise.
38254         * modules/memcmp-tests (configure.ac): Likewise.
38255         * modules/memmem-tests (configure.ac): Likewise.
38256         * modules/memrchr-tests (configure.ac): Likewise.
38257         Reported by Simon Josefsson.
38258
38259 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38260
38261         * tests/test-glob.c: Include string.h for strcmp prototype.
38262
38263 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38264
38265         * modules/getdelim (Depends-on): Add explicit stdint, although it
38266         was implicitly already pulled in via realloc-posix.
38267         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38268
38269 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38270
38271         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38272         G. Christensen" <tgc@jupiterrise.com>.
38273         * m4/sys_socket_h.m4: Check for sa_family_t.
38274         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38275         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38276         * tests/test-sys_socket.c: Check that sa_family_t works.
38277
38278 2009-05-18  Eric Blake  <ebb9@byu.net>
38279
38280         maint.mk: allow gnulib_dir in VPATH build
38281         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38282
38283 2009-05-15  Jim Meyering  <meyering@redhat.com>
38284
38285         maint.mk: Give gnulib_dir a default definition.
38286         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38287         Thus, most packages no longer need to specify this variable in cfg.mk
38288
38289 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38290
38291         rename.m4: fix typos that would make non-mingw cross-configure fail
38292         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38293
38294 2009-05-13  Eric Blake  <ebb9@byu.net>
38295
38296         mmap-anon: avoid out-of-order autoconf expansion
38297         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38298         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38299         * modules/memchr-tests (Depends-on): Add extensions.
38300         * modules/memchr2-tests (Depends-on): Add extensions.
38301         * modules/memcmp-tests (Depends-on): Add extensions.
38302         * modules/memmem-tests (Depends-on): Add extensions.
38303         * modules/memrchr-tests (Depends-on): Add extensions.
38304
38305 2009-05-13  Bruno Haible  <bruno@clisp.org>
38306
38307         Make some tests ISO C 99 compliant.
38308         * tests/zerosize-ptr.h: New file.
38309         * tests/test-memchr.c: Include zerosize-ptr.h.
38310         (main): Use a zero-size object pointer instead of NULL.
38311         * tests/test-memchr2.c: Include zerosize-ptr.h.
38312         (main): Use a zero-size object pointer instead of NULL.
38313         * tests/test-memcmp.c: Include zerosize-ptr.h.
38314         (main): Use a zero-size object pointer instead of NULL.
38315         * tests/test-memmem.c: Include zerosize-ptr.h.
38316         (main): Use a zero-size object pointer instead of NULL.
38317         * tests/test-memrchr.c: Include zerosize-ptr.h.
38318         (main): Use a zero-size object pointer instead of NULL.
38319         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38320         m4/mmap-anon.m4.
38321         (Depends-on): Add getpagesize.
38322         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38323         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38324         m4/mmap-anon.m4.
38325         (Depends-on): Add getpagesize.
38326         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38327         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38328         m4/mmap-anon.m4.
38329         (Depends-on): Add getpagesize.
38330         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38331         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38332         m4/mmap-anon.m4.
38333         (Depends-on): Add getpagesize.
38334         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38335         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38336         m4/mmap-anon.m4.
38337         (Depends-on): Add getpagesize.
38338         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38339
38340 2009-05-12  Bruno Haible  <bruno@clisp.org>
38341
38342         Tests for module 'alignof'.
38343         * modules/alignof-tests: New file.
38344         * tests/test-alignof.c: New file.
38345
38346 2009-05-12  Bruno Haible  <bruno@clisp.org>
38347
38348         Fix alignof macro.
38349         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38350         vendor compilers that are always correct.
38351
38352 2009-05-12  Bruno Haible  <bruno@clisp.org>
38353
38354         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38355         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38356         not whether its fully works.
38357
38358 2009-05-12  Bruno Haible  <bruno@clisp.org>
38359
38360         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38361
38362 2009-05-12  Jim Meyering  <meyering@redhat.com>
38363
38364         * top/maint.mk: Adjust backslash alignment.
38365
38366 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38367
38368         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38369
38370 2009-05-11  Eric Blake  <ebb9@byu.net>
38371
38372         argp: avoid undefined behavior
38373         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38374         macros.
38375
38376 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38377
38378         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38379         user.name to prevent git commit from complaining.
38380
38381 2009-05-10  Bruno Haible  <bruno@clisp.org>
38382
38383         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38384         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38385         it rewrites every file name only once.
38386         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38387
38388 2009-05-08  Bruno Haible  <bruno@clisp.org>
38389
38390         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38391         instead of 'max'.
38392
38393 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38394
38395         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38396         sockaddr_storage test.
38397
38398 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38399
38400         * modules/sys_socket (Makefile.am): Substitute
38401         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38402         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38403         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38404         * tests/test-sys_socket.c: Check sockaddr_storage.
38405
38406 2009-05-08  Bruno Haible  <bruno@clisp.org>
38407
38408         New module 'alignof'.
38409         * lib/alignof.h: New file.
38410         * modules/alignof: New file.
38411
38412 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38413             Bruno Haible  <bruno@clisp.org>
38414
38415         Fix test-file-has-acl on FreeBSD.
38416         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38417         mask is implicitly added.
38418         * tests/test-file-has-acl.c: Include <signal.h>.
38419         (main): Terminate the test after 5 seconds.
38420         * modules/acl-tests (configure.ac): Check for alarm function.
38421
38422 2009-05-04  Bruno Haible  <bruno@clisp.org>
38423
38424         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38425         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38426         * modules/errno (configure.ac): Drop AC_REQUIRE.
38427         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38428         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38429
38430 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38431
38432         * modules/glob-tests: New module.
38433         * tests/test-glob.c: Add.
38434
38435 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38436
38437         * modules/fnmatch-tests: New module.
38438         * tests/test-fnmatch.c: Add.
38439
38440 2009-05-04  Eric Blake  <ebb9@byu.net>
38441
38442         maint: make the new no-submodule-changes rule VPATH-safe
38443         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38444
38445 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38446             Bruno Haible  <bruno@clisp.org>
38447
38448         acl: Fix infinite loop on FreeBSD.
38449         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38450         of return value from acl_get_entry.
38451         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38452         Likewise.
38453
38454 2009-05-03  Bruno Haible  <bruno@clisp.org>
38455
38456         * lib/acl-internal.h (acl_entries): Clarify return value.
38457         * lib/acl_entries.c (acl_entries): Likewise.
38458
38459 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38460
38461         Bug fix in acl module.
38462         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38463
38464 2009-05-03  Bruno Haible  <bruno@clisp.org>
38465
38466         Create gperf-generated file in the source dir, not in the build dir.
38467         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38468         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38469         * modules/unicase/locale-language (unicase/locale-languages.h):
38470         Likewise.
38471         * modules/unicase/special-casing (unicase/special-casing-table.h):
38472         Likewise.
38473         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38474         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38475         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38476         Reported by Ralf Wildenhues.
38477
38478 2009-05-03  Bruno Haible  <bruno@clisp.org>
38479
38480         * modules/fnmatch (Description, configure.ac): Taken from
38481         fnmatch-posix.
38482         * modules/fnmatch-posix: Turn into a symbolic reference to the
38483         'fnmatch' module, and deprecate.
38484         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38485
38486 2009-05-03  Bruno Haible  <bruno@clisp.org>
38487
38488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38489         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38490         Reported by Ralf Wildenhues.
38491
38492 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38493
38494         * m4/fnmatch.m4: Fix fnmatch re-define.
38495
38496 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38497
38498         priv-set: new module and tests; adapt write-any-file
38499         * lib/priv-set.c: New file.
38500         * lib/priv-set.h: New file.
38501         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38502         * lib/write-any-file.c: Simplify by using priv-set module.
38503         * m4/priv-set.m4: New file.
38504         * modules/priv-set: New file.
38505         * modules/unlinkdir: Add dependency on priv-set module.
38506         * modules/write-any-file: Likewise.
38507
38508         Tests for module 'priv-set'.
38509         * modules/priv-set-tests: New file.
38510         * tests/test-priv-set.c: New file.
38511
38512 2009-05-03  Jim Meyering  <meyering@redhat.com>
38513             Bruno Haible  <bruno@clisp.org>
38514
38515         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38516         use the converted UTF-8 variant of the name instead.
38517
38518 2009-05-03  Jim Meyering  <meyering@redhat.com>
38519
38520         tests: tighten some getdate tests
38521         * tests/test-getdate.c (main): Tighten tests: require equality,
38522         not just greater than.  Set TZ envvar to UTC0.
38523
38524 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38525
38526         getdate: correctly interpret "next monday" when run on a Monday
38527         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38528         that e.g., "next tues" (when run on a tuesday) results in a date
38529         that is one week in the future, and not today's date.
38530         I.e., add a week when the wday is the same as the current one.
38531         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38532         and earlier by Martin Bernreuther and Jan Minář.
38533         * tests/test-getdate.c (main): Check that "next DAY" is always in
38534         the future and that "last DAY" is always in the past.
38535
38536 2009-05-02  Jim Meyering  <meyering@redhat.com>
38537
38538         build: ensure that a release build fails when a submodule is unclean
38539         * top/maint.mk (no-submodule-changes): New rule.
38540         (alpha beta major): Depend on it.
38541
38542 2009-05-02  Bruno Haible  <bruno@clisp.org>
38543
38544         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38546         shell variable gl_fnmatch_required to detect which variant is
38547         requested.
38548         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38549         gl_FUNC_FNMATCH_POSIX.
38550         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38551         exclude fnmatch-posix.
38552
38553 2009-05-02  Bruno Haible  <bruno@clisp.org>
38554
38555         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38556         * modules/mbsrtowcs (License): Change to LGPLv2+.
38557         * modules/strnlen1 (License): Likewise.
38558         Reported by Simon Josefsson.
38559
38560 2009-05-02  Bruno Haible  <bruno@clisp.org>
38561
38562         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38563         "cross".
38564         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38565         gnulib-tool was called with option --source-base=lib.
38566
38567 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38568
38569         Use automake *-local hooks without commands, for extensibility.
38570         * modules/localcharset (Makefile.am): Rename install-exec-local
38571         rule to install-exec-localcharset, and make it a prerequisite of
38572         install-exec-local.  Likewise, rename the uninstall-local rule to
38573         uninstall-localcharset, and make it a prerequisite of the former.
38574
38575 2009-05-01  Bruno Haible  <bruno@clisp.org>
38576
38577         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38578         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38579         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38581         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38582         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38583         m4/locale-zh.m4, m4/codeset.m4.
38584
38585         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38586         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38587         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38588         m4/locale-zh.m4.
38589
38590         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38591         REPLACE_WCRTOMB if mbstate_t must be replaced.
38592         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38593         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38594
38595 2009-05-01  Bruno Haible  <bruno@clisp.org>
38596
38597         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38598         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38599         dngettext, dcngettext, textdomain, bindtextdomain,
38600         bind_textdomain_codeset): Undefine before redefining.
38601
38602 2009-04-30  Bruno Haible  <bruno@clisp.org>
38603
38604         Fix bug introduced on 2009-04-25.
38605         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38606         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38607         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38608         is defined.
38609         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38610         is defined.
38611         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38612         is defined.
38613         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38614
38615 2009-04-28  Bruno Haible  <bruno@clisp.org>
38616
38617         Comment tweaks.
38618         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38619         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38620         * lib/unicase.h (u*_casexfrm): Likewise.
38621         Reported by Paolo Bonzini.
38622
38623 2009-04-28  Bruno Haible  <bruno@clisp.org>
38624
38625         Fix a compilation error.
38626         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38627         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38628         Reported by Jim Meyering.
38629
38630 2009-04-27  Bruno Haible  <bruno@clisp.org>
38631
38632         New module 'libunistring'.
38633         * modules/libunistring: New file.
38634         * m4/libunistring.m4: New file.
38635         * MODULES.html.sh (Unicode string functions): Add it.
38636
38637 2009-04-27  Eric Blake  <ebb9@byu.net>
38638
38639         maint.mk: allow package-specific header to provide <config.h>
38640         * top/maint.mk (sc_require_config_h): New variable.
38641         (sc_require_config_h, sc_require_config_h_first): Use it.
38642
38643 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38644
38645         * top/maint.mk (sc_avoid_if_before_free): Except
38646         useless-if-before-free script.
38647
38648 2009-04-27  Eric Blake  <ebb9@byu.net>
38649
38650         maintainer-makefile: depend on all required helper scripts
38651         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38652         useless-if-before-free.
38653         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38654         version, rather than assuming gnulib checkout is available.
38655         Reported by Simen Josefsson.
38656
38657 2009-04-26  Bruno Haible  <bruno@clisp.org>
38658
38659         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38660         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38661         "../" or "..".
38662
38663 2009-04-26  Bruno Haible  <bruno@clisp.org>
38664
38665         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38666         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38667         AC_LIB_HAVE_LINKFLAGS.
38668
38669 2009-04-26  Bruno Haible  <bruno@clisp.org>
38670
38671         Simplify calling convention of u*_conv_from_encoding.
38672         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38673         u32_conv_from_encoding): Expect a resultbuf argument and return the
38674         result directly as a pointer.
38675         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38676         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38677         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38678         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38679         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38680         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38681         Update.
38682         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38683         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38684         * lib/vasnprintf.c (VASNPRINTF): Update.
38685         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38686         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38687         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38688         * NEWS: Mention the change.
38689
38690 2009-04-26  Bruno Haible  <bruno@clisp.org>
38691
38692         Simplify calling convention of u*_conv_to_encoding.
38693         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38694         u32_conv_to_encoding): Expect a resultbuf argument and return the
38695         result directly as a pointer.
38696         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38697         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38698         freeing scaled_offsets if mem_iconveha failed.
38699         * lib/unicase/u-casexfrm.h (FUNC): Update.
38700         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38701         * lib/vasnprintf.c (VASNPRINTF): Update.
38702         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38703         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38704         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38705         * NEWS: Mention the change.
38706
38707 2009-04-26  Bruno Haible  <bruno@clisp.org>
38708
38709         Avoid test failures on AIX and OSF/1.
38710         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38711         malloc(0).
38712         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38713         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38714         Likewise.
38715         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38716         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38717         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38718         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38719         * doc/posix-functions/malloc.texi: Document the portability problem
38720         related to malloc(0).
38721
38722 2009-04-26  Bruno Haible  <bruno@clisp.org>
38723
38724         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38725         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38726         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38727
38728 2009-04-25  Bruno Haible  <bruno@clisp.org>
38729
38730         Avoid link error when creating a namespace clean library.
38731         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38732         as macro with arguments if already defined as an alias.
38733         * lib/signbitf.c (gl_signbitf): Don't undefine.
38734         * lib/signbitd.c (gl_signbitd): Don't undefine.
38735         * lib/signbitl.c (gl_signbitl): Don't undefine.
38736
38737 2009-04-25  Jim Meyering  <meyering@redhat.com>
38738
38739         vc-list-files: fix another quoting bug
38740         * build-aux/vc-list-files: Avoid sed backslash expansion
38741         of pathological directory names.
38742
38743 2009-04-25  Eric Blake  <ebb9@byu.net>
38744
38745         vc-list-files: fix shell quoting error
38746         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38747         timestamp.
38748
38749 2009-04-25  Jim Meyering  <meyering@redhat.com>
38750
38751         vc-list-files: restore lost functionality with subdir argument
38752         * build-aux/vc-list-files: When given a non-"." sub-directory
38753         argument, substitute the $dir/ prefix back onto each resulting name.
38754         Otherwise, coreutils' root_tests check would fail.
38755
38756 2009-04-24  Eric Blake  <ebb9@byu.net>
38757
38758         vc-list-files: ignore git symlinks
38759         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38760         than ls-files, to ignore git symlinks.
38761
38762         maint.mk: import improvements from m4
38763         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38764         (move_if_change): Delete unused macro.
38765         (news-date-check, vc-diff-check): Support VPATH builds.
38766         (announcement): Likewise.  Split --bootstrap-tools list...
38767         (boostrap-tools): ...into separate list, which can be overridden
38768         in cfg.mk.
38769         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38770         requiring dependency on useless-if-before-free module.
38771         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38772         Support VPATH builds.
38773
38774 2009-04-24  Jim Meyering  <meyering@redhat.com>
38775
38776         maint.mk: remove coreutils-specific rules and variables
38777         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38778         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38779         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38780
38781         maint.mk: remove obsolete rule
38782         * top/maint.mk (rel-check): Remove rule.
38783         (WGET, WGETFLAGS): Remove now-unused variables.
38784
38785 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38786
38787         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38788         consistency.
38789
38790         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38791         '$(PATH_SEPARATOR)' instead of ':'.
38792
38793 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38794
38795         * lib/getopt1.c (main): Use 'const' for static array.
38796
38797 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38798
38799         * top/maint.mk: Sync with coreutils.
38800         * NEWS: Explain incompatibilities.
38801
38802 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38803             Bruno Haible  <bruno@clisp.org>
38804
38805         Fix cross-compilation results.
38806         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38807         statement, as third argument of AC_TRY_RUN.
38808         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38809         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38810         Likewise.
38811         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38812         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38813         Likewise.
38814         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38815         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38816         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38817
38818 2009-04-20  Bruno Haible  <bruno@clisp.org>
38819
38820         Avoid test failure on mingw.
38821         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38822
38823 2009-04-20  Bruno Haible  <bruno@clisp.org>
38824
38825         Avoid compilation error on mingw.
38826         * modules/localename-tests (Depends-on): Add locale.
38827
38828 2009-04-19  Bruno Haible  <bruno@clisp.org>
38829
38830         Support for building a shared library on Windows platforms.
38831         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38832         (main): Test the presence of UNINORM_NFC here.
38833         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38834         (main): Test the presence of UNINORM_NFD here.
38835         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38836         (main): Test the presence of UNINORM_NFKC here.
38837         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38838         (main): Test the presence of UNINORM_NFKD here.
38839
38840 2009-04-19  Bruno Haible  <bruno@clisp.org>
38841
38842         Avoid a compiler warning.
38843         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38844         Change type of variable 'sequence'.
38845
38846 2009-04-19  Bruno Haible  <bruno@clisp.org>
38847
38848         * modules/configmake (Makefile.am): When the contents of configmake.h
38849         does not change, arrange to preserve its modification time.
38850
38851 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38852
38853         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38854         gettext domain.
38855
38856 2009-04-16  Jim Meyering  <meyering@redhat.com>
38857
38858         useless-if-before-free: improve conversion code
38859         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38860         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38861
38862 2009-04-14  Bruno Haible  <bruno@clisp.org>
38863
38864         * modules/fcntl (Depends-on): Add extensions.
38865         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38866
38867 2009-04-12  Ben Pfaff  <blp@gnu.org>
38868
38869         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38870         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38871
38872 2009-03-20  Ben Pfaff  <blp@gnu.org>
38873
38874         Make rename replace existing destinations on Windows.
38875         * m4/rename.m4: Add test for Mingw.
38876         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38877         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38878         * doc/posix-functions/rename.texi: Document.
38879
38880 2009-04-10  Bruno Haible  <bruno@clisp.org>
38881
38882         New include file "iconveh.h".
38883         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38884         * lib/striconveh.h: Include it.
38885         (enum iconv_ilseq_handler): Remove definition.
38886         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38887         striconveh.h.
38888         * lib/striconveha.c: Include striconveh.h.
38889         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38890         * modules/striconveh (Files): Add lib/iconveh.h.
38891         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38892         lib/striconveh.h.
38893
38894 2009-04-10  Bruno Haible  <bruno@clisp.org>
38895
38896         * lib/uniconv.h: Update comment.
38897
38898 2009-04-10  Bruno Haible  <bruno@clisp.org>
38899
38900         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38901         always.
38902         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38903         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38904         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38905         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38906         "unistring-notinline.h", so that the function gets defined always.
38907         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38908         * lib/unistr/u8-uctomb.c: Likewise.
38909         * lib/unistr/u16-mbtouc.c: Likewise.
38910         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38911         * lib/unistr/u16-uctomb.c: Likewise.
38912         * lib/unistr/u32-mbtouc.c: Likewise.
38913         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38914         * lib/unistr/u32-uctomb.c: Likewise.
38915
38916 2009-04-10  Bruno Haible  <bruno@clisp.org>
38917
38918         Mark 'utime' obsolete.
38919         * modules/utime (Status, Notice): New sections.
38920         Suggested by Jim Meyering.
38921
38922         Fix cross-compile guess for utime test.
38923         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38924         autoconf.
38925         * doc/posix-functions/utime.texi: Give more precisions.
38926         Reported by Jan <ipif@ymail.com>.
38927
38928 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38929
38930         filevercmp: correct today's change
38931         * lib/filevercmp.c: Also handle coreutils' test inputs.
38932         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38933
38934         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38935         for reporting it.
38936         * lib/filevercmp.c: Special handle for "", "." and "..".
38937         * tests/test-filevercmp.c: Enlarge the set suite.
38938
38939 2009-04-07  Jim Meyering  <meyering@redhat.com>
38940
38941         useless-if-before-free: show how to remove braced useless free, too
38942         * build-aux/useless-if-before-free: still only in a comment, though.
38943
38944 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38945
38946         maint.mk: import changes to syntax-check macros from coreutils
38947         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38948         Use them in the relevant macros.
38949
38950 2009-04-06  Bruno Haible  <bruno@clisp.org>
38951
38952         Fix unportable use of bit-fields.
38953         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38954         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38955         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38956
38957 2009-04-06  Bruno Haible  <bruno@clisp.org>
38958
38959         Avoid test failures on AIX and OSF/1.
38960         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38961         that malloc(0) = NULL.
38962         * tests/unicase/test-u8-tolower.c (check): Likewise.
38963         * tests/unicase/test-u8-totitle.c (check): Likewise.
38964         * tests/unicase/test-u8-toupper.c (check): Likewise.
38965         * tests/unicase/test-u16-casefold.c (check): Likewise.
38966         * tests/unicase/test-u16-tolower.c (check): Likewise.
38967         * tests/unicase/test-u16-totitle.c (check): Likewise.
38968         * tests/unicase/test-u16-toupper.c (check): Likewise.
38969         * tests/unicase/test-u32-casefold.c (check): Likewise.
38970         * tests/unicase/test-u32-tolower.c (check): Likewise.
38971         * tests/unicase/test-u32-totitle.c (check): Likewise.
38972         * tests/unicase/test-u32-toupper.c (check): Likewise.
38973         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38974         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38975         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38976         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38977         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38978         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38979         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38980         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38981         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38982         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38983         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38984         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38985
38986 2009-04-05  Bruno Haible  <bruno@clisp.org>
38987
38988         Work around an autoconf limitation.
38989         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38990         comment line if it would be longer than 3 KB.
38991
38992 2009-04-05  Bruno Haible  <bruno@clisp.org>
38993
38994         Avoid test failure with libiconv-1.13.
38995         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38996         of the expected test results.
38997
38998 2009-04-05  Bruno Haible  <bruno@clisp.org>
38999
39000         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39001         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39002         that it should be installed.
39003
39004 2009-04-05  Bruno Haible  <bruno@clisp.org>
39005
39006         * gnulib-tool: New option --copy-file.
39007         (func_usage): Document it.
39008         (func_dest_tmpfilename): Moved out of func_import.
39009         (func_add_file, func_update_file): New functions, extracted from
39010         func_import.
39011         (func_import): Update.
39012
39013 2009-04-05  Karl Berry  <karl@gnu.org>
39014
39015         * README: prominently mention gnulib-tool.
39016         Rearrange sections so getting the code is near the top.
39017
39018 2009-04-05  Bruno Haible  <bruno@clisp.org>
39019
39020         * lib/unicase.h: Mention u*_cmp2.
39021         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39022         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39023         * lib/unicase/ulc-casecmp.c: Likewise.
39024         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39025         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39026         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39027         unistr/u8-cmp.
39028         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39029         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39030         unistr/u16-cmp.
39031         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39032         unistr/u32-cmp.
39033
39034         * lib/uninorm.h: Mention u*_cmp2.
39035         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39036         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39037         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39038         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39039         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39040         unistr/u8-cmp.
39041         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39042         unistr/u16-cmp.
39043         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39044         unistr/u32-cmp.
39045
39046         New module 'unistr/u32-cmp2'.
39047         * lib/unistr/u32-cmp2.c: New file.
39048         * modules/unistr/u32-cmp2: New file.
39049
39050         New module 'unistr/u16-cmp2'.
39051         * lib/unistr/u16-cmp2.c: New file.
39052         * modules/unistr/u16-cmp2: New file.
39053
39054         New module 'unistr/u8-cmp2'.
39055         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39056         * lib/unistr/u8-cmp2.c: New file.
39057         * lib/unistr/u-cmp2.h: New file.
39058         * modules/unistr/u8-cmp2: New file.
39059
39060 2009-04-05  Bruno Haible  <bruno@clisp.org>
39061
39062         * lib/unictype.h (uc_property_is_valid): New macro.
39063         * tests/unictype/test-pr_byname.c (main): Use it.
39064
39065         * lib/unistr.h: Doc fixes.
39066         * lib/uniconv.h: Doc fixes.
39067         * lib/unictype.h: Doc fixes.
39068
39069 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39070
39071         Port coreutils 7.2 to Solaris 8.
39072
39073         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39074         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39075         for Solaris 8.  This is a bit of a hack, as it means it's the
39076         caller's responsibility to add -lnsl if needed, but most likely it
39077         won't be needed since only getaddrinfo uses this and getaddrinfo
39078         isn't needed on Solaris 8.
39079
39080         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39081         problem to Solaris 8 encountered with coreutils 7.2, which
39082         resulted in a message "fnmatch.c:292: warning: passing argument 4
39083         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39084         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39085
39086 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39087
39088         * m4/ld-version-script.m4: Add FIXME comment.
39089
39090 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39091
39092         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39093         SOVERSION variable.
39094
39095 2009-04-02  Bruno Haible  <bruno@clisp.org>
39096
39097         * Makefile (info, html, dvi, pdf): Combine the rules.
39098         Suggested by Jim Meyering.
39099
39100 2009-04-01  Bruno Haible  <bruno@clisp.org>
39101
39102         * Makefile (info, html, dvi, pdf): New targets.
39103         Reported by Reuben Thomas <rrt@sc3d.org>.
39104
39105 2009-04-01  Bruno Haible  <bruno@clisp.org>
39106
39107         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39108         can be put into PATH.
39109         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39110
39111 2009-04-01  Bruno Haible  <bruno@clisp.org>
39112
39113         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39114
39115 2009-04-01  Bruno Haible  <bruno@clisp.org>
39116
39117         Rename module 'visibility'.
39118         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39119         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39120         * doc/gnulib.texi: Update.
39121         * MODULES.html.sh (Misc): Update.
39122         * NEWS: Mention the change.
39123
39124 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39125
39126         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39127         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39128         Eric Blake <ebb9@byu.net> for review.
39129         * MODULES.html.sh: Add lib-msvc-compat.
39130         * doc/gnulib.texi: Link to new section.
39131         * m4/ld-output-def.m4: New file.
39132         * doc/ld-output-def.texi: New file.
39133
39134 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39135
39136         Rename ld-version-script to lib-symbol-versions.  Suggested by
39137         Bruno Haible <bruno@clisp.org>.
39138         * modules/ld-version-script: Renamed to lib-symbol-versions.
39139         * doc/ld-version-script.texi: Fix module name.
39140         * MODULES.html.sh: Add lib-symbol-versions.
39141
39142 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39143
39144         * modules/u64-tests: New file.
39145         * tests/test-u64.c: New file.
39146
39147 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39148
39149         * MODULES.html.sh: Mention u64.
39150         * modules/u64: New module.
39151         * modules/crypto/sha512: Depend on u64 module instead of providing
39152         u64.h.
39153
39154 2009-03-27  Eric Blake  <ebb9@byu.net>
39155
39156         test-strerror: make debugging EAI_SYSTEM easier
39157         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39158         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39159         failure was EAI_SYSTEM.
39160
39161 2009-03-25  Bruno Haible  <bruno@clisp.org>
39162
39163         Fix a problem with --enable-relocatable on Solaris 7.
39164         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39165         since 2008-02-24.
39166
39167 2009-03-25  Eric Blake  <ebb9@byu.net>
39168
39169         test-sockets: avoid gcc warning
39170         * tests/test-sockets.c (main): Silence compiler warning.
39171
39172 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39173
39174         New modules nproc, pthread, contributed by Glen Lenker.
39175
39176         * MODULES.html.sh: Add pthread, nproc.
39177         * lib/nproc.c: New file.
39178         * lib/nproc.h: New file.
39179         * lib/pthread.in.h: New file.
39180         * m4/pthread.m4: New file.
39181         * modules/nproc: New file.
39182         * modules/pthread: New file.
39183
39184 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39185
39186         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39187         New variable.
39188
39189 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39190
39191         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39192         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39193         * tests/test-filevercmp.c: Add tests for backup suffixes.
39194
39195 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39196
39197         * modules/stdlib (Depends-on): Add stdint, needed when defining
39198         struct random_data on, for example, HP-UX 10.20.  Reported by
39199         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39200
39201 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39202
39203         * lib/readline.c (readline): Call fflush on stdout after printing
39204         prompt.
39205
39206 2009-03-20  Bruno Haible  <bruno@clisp.org>
39207
39208         Remove dependency from 'close' module to -lws2_32 on native Windows.
39209         * lib/close-hook.h: New file.
39210         * lib/close-hook.c: New file.
39211         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39212         w32sock.h.
39213         (_gl_close_fd_maybe_socket): Remove function.
39214         (rpl_close): Invoke execute_all_close_hooks instead of
39215         _gl_close_fd_maybe_socket.
39216         * lib/sockets.c: Include close-hook.h, w32sock.h.
39217         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39218         (close_sockets_hook): New variable.
39219         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39220         (gl_sockets_cleanup): Unregister it.
39221         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39222         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39223         * modules/close-hook: New file.
39224         * modules/close (Files): Remove lib/w32sock.h.
39225         (Depends-on): Add close-hook.
39226         (Link): Remove section.
39227         * modules/sockets (Files): Add lib/w32sock.h.
39228         (Depends-on): Add close-hook.
39229         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39230         invocation.
39231         * NEWS: Mention that LIB_CLOSE is gone.
39232
39233 2009-03-23  Eric Blake  <ebb9@byu.net>
39234
39235         signal-tests: test previous patch
39236         * tests/test-signal.c: New file.
39237         * modules/signal-tests: Likewise.
39238
39239         signal.h: always support 'volatile sig_atomic_t'
39240         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39241         (gl_SIGNAL_H_DEFAULTS): Add a default.
39242         * modules/signal (Makefile.am): Substitute if needed.
39243         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39244         users can blindly add volatile.
39245         * doc/posix-headers/signal.texi (signal.h): Document it.
39246         Reported by Matthew Woehlke.
39247
39248 2009-03-23  Jim Meyering  <meyering@redhat.com>
39249
39250         pathmax: PATH_MAX: use pathconf only when available
39251         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39252         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39253         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39254         This avoids a link failure in a PSP cross-compilation environment
39255         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39256
39257         * lib/vasnprintf.c (divide): Fix typo in comment.
39258
39259 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39260
39261         * gnulib-tool (func_filter_filelist): Fix comment.
39262
39263 2009-03-20  Bruno Haible  <bruno@clisp.org>
39264
39265         Make sockets.h self-contained.
39266         * lib/sockets.c: Include sockets.h first.
39267         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39268
39269 2009-03-19  Eric Blake  <ebb9@byu.net>
39270
39271         doc: mention more functions added in cygwin 1.7.0
39272         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39273         addition.
39274         * doc/posix-functions/log2f.texi: Likewise.
39275
39276 2009-03-19  Jim Meyering  <meyering@redhat.com>
39277
39278         fsusage: avoid syntax error due to statement-before-declaration
39279         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39280         after all declarations.  Reported by Matthew Woehlke in
39281         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39282
39283 2009-03-18  Eric Blake  <ebb9@byu.net>
39284
39285         build-aux/compile: sync from automake
39286         * build-aux/compile: New file, from automake.
39287         * config/srclist.txt: Mention build-aux/compile.
39288
39289 2009-03-17  Bruno Haible  <bruno@clisp.org>
39290
39291         * lib/git-merge-changelog.c: Fix typo in comment.
39292         Reported by Reuben Thomas <rrt@sc3d.org>.
39293
39294 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39295
39296         * m4/regex.m4: update and improve help for
39297         --without-included-regex.
39298
39299 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39300
39301         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39302         failure on missing include files.
39303
39304 2009-03-17  Eric Blake  <ebb9@byu.net>
39305
39306         doc: mention more functions added in cygwin 1.7.0
39307         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39308         addition.
39309         * doc/posix-functions/fwscanf.texi: Likewise.
39310         * doc/posix-functions/swprintf.texi: Likewise.
39311         * doc/posix-functions/swscanf.texi: Likewise.
39312         * doc/posix-functions/vfwprintf.texi: Likewise.
39313         * doc/posix-functions/vfwscanf.texi: Likewise.
39314         * doc/posix-functions/vswprintf.texi: Likewise.
39315         * doc/posix-functions/vswscanf.texi: Likewise.
39316         * doc/posix-functions/vwprintf.texi: Likewise.
39317         * doc/posix-functions/vwscanf.texi: Likewise.
39318         * doc/posix-functions/wcscasecmp.texi: Likewise.
39319         * doc/posix-functions/wcsdup.texi: Likewise.
39320         * doc/posix-functions/wcsftime.texi: Likewise.
39321         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39322         * doc/posix-functions/wprintf.texi: Likewise.
39323         * doc/posix-functions/wscanf.texi: Likewise.
39324         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39325
39326 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39327
39328         maint.mk: really add $(AM_MAKEFLAGS)
39329         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39330         was inadvertently omitted in the last commit.
39331         Spotted by Bruno Haible.
39332
39333         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39334         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39335         $(AM_MAKEFLAGS)' rather than plain `make'.
39336
39337         gnulib-tool: execute $MAKE not make
39338         * gnulib-tool: Default $MAKE to 'make'.
39339         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39340         than make.  Initialize $MAKE in the do-autobuild script.
39341
39342         gnulib-tool: use $MAKE not make in generated files
39343         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39344         make, in generated files.  Initialize $MAKE in the do-autobuild
39345         script.
39346
39347         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39348
39349         GNUmakefile: disable parallelism only for multiple, recursive targets
39350         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39351         additions in the Makefile.
39352         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39353         by Automake.
39354         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39355         are listed on the command line and at least one of them is
39356         listed in $(ALL_RECURSIVE_TARGETS).
39357
39358 2009-03-14  Bruno Haible  <bruno@clisp.org>
39359
39360         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39361         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39362         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39363         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39364         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39365         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39366         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39367         unistr/u8-uctomb.
39368         * modules/unistr/u8-strchr (Depends-on): Likewise.
39369         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39370         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39371         unistr/u16-uctomb.
39372         * modules/unistr/u16-strchr (Depends-on): Likewise.
39373         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39374
39375 2009-03-12  Bruno Haible  <bruno@clisp.org>
39376
39377         Work around select() bug on Interix 3.5.
39378         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39379         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39380         * m4/select.m4: New file.
39381         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39382         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39383         * modules/select (Files): Add m4/select.m4.
39384         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39385         * modules/nanosleep (Depends-on): Add select.
39386         * modules/poll (Depends-on): Likewise.
39387         * doc/posix-functions/select.texi: Mention the Interix bug.
39388         Reported by Markus Duft <mduft@gentoo.org>.
39389
39390         * lib/select.c: Renamed from lib/winsock-select.c.
39391         * modules/select (Files): Add lib/select.c, remove
39392         lib/winsock-select.c.
39393         (configure.ac): Update.
39394
39395 2009-03-12  Jim Meyering  <meyering@redhat.com>
39396
39397         avoid gcc warnings about unused macro definitions
39398         * lib/readtokens.c (STREQ): Remove unused definition.
39399         * lib/xmalloc.c (SIZE_MAX): Likewise.
39400         * lib/openat-die.c (N_): Likewise.
39401         * lib/mountlist.c (SIZE_MAX): Remove definition.
39402         Instead, include <stdint.h>.
39403         * lib/readutmp.c: Likewise.
39404         * modules/readutmp (Depends-on): Add stdint.
39405         * modules/mountlist (Depends-on): Add stdint.
39406         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39407
39408 2009-03-10  Bruno Haible  <bruno@clisp.org>
39409
39410         Tests for module 'mbmemcasecoll'.
39411         * modules/mbmemcasecoll-tests: New file.
39412         * tests/test-mbmemcasecoll1.sh: New file.
39413         * tests/test-mbmemcasecoll2.sh: New file.
39414         * tests/test-mbmemcasecoll3.sh: New file.
39415         * tests/test-mbmemcasecoll.c: New file.
39416
39417         New module 'mbmemcasecoll'.
39418         * lib/mbmemcasecoll.h: New file.
39419         * lib/mbmemcasecoll.c: New file.
39420         * modules/mbmemcasecoll: New file.
39421
39422         * tests/test-mbmemcasecmp.h: New file, extracted from
39423         tests/test-mbmemcasecmp.c.
39424         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39425         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39426         (main): Update.
39427         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39428
39429 2009-03-09  Bruno Haible  <bruno@clisp.org>
39430
39431         Tests for module 'mbmemcasecmp'.
39432         * modules/mbmemcasecmp-tests: New file.
39433         * tests/test-mbmemcasecmp1.sh: New file.
39434         * tests/test-mbmemcasecmp2.sh: New file.
39435         * tests/test-mbmemcasecmp3.sh: New file.
39436         * tests/test-mbmemcasecmp.c: New file.
39437
39438         New module 'mbmemcasecmp'.
39439         * lib/mbmemcasecmp.h: New file.
39440         * lib/mbmemcasecmp.c: New file.
39441         * modules/mbmemcasecmp: New file.
39442
39443 2009-03-09  Bruno Haible  <bruno@clisp.org>
39444
39445         Tests for module 'unicase/ulc-casecoll'.
39446         * modules/unicase/ulc-casecoll-tests: New file.
39447         * tests/unicase/test-ulc-casecoll1.sh: New file.
39448         * tests/unicase/test-ulc-casecoll2.sh: New file.
39449         * tests/unicase/test-ulc-casecoll.c: New file.
39450
39451         New module 'unicase/ulc-casecoll'.
39452         * lib/unicase.h (ulc_casecoll): New declaration.
39453         * lib/unicase/ulc-casecoll.c: New file.
39454         * modules/unicase/ulc-casecoll: New file.
39455
39456         New module 'unicase/ulc-casexfrm'.
39457         * lib/unicase.h (ulc_casexfrm): New declaration.
39458         * lib/unicase/ulc-casexfrm.c: New file.
39459         * modules/unicase/ulc-casexfrm: New file.
39460
39461 2009-03-09  Bruno Haible  <bruno@clisp.org>
39462
39463         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39464         invocations.
39465
39466         * m4/mbscasecmp.m4: Remove file.
39467         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39468         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39469
39470         * m4/mbscasestr.m4: Remove file.
39471         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39472         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39473
39474         * m4/mbschr.m4: Remove file.
39475         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39476         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39477
39478         * m4/mbscspn.m4: Remove file.
39479         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39480         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39481
39482         * m4/mbslen.m4: Remove file.
39483         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39484         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39485
39486         * m4/mbsncasecmp.m4: Remove file.
39487         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39488         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39489
39490         * m4/mbsnlen.m4: Remove file.
39491         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39492         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39493
39494         * m4/mbspbrk.m4: Remove file.
39495         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39496         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39497
39498         * m4/mbspcasecmp.m4: Remove file.
39499         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39500         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39501
39502         * m4/mbsrchr.m4: Remove file.
39503         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39504         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39505
39506         * m4/mbssep.m4: Remove file.
39507         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39508         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39509
39510         * m4/mbsspn.m4: Remove file.
39511         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39512         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39513
39514         * m4/mbsstr.m4: Remove file.
39515         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39516         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39517
39518         * m4/mbstok_r.m4: Remove file.
39519         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39520         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39521
39522         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39523
39524         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39525         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39526
39527         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39528
39529 2009-03-08  Bruno Haible  <bruno@clisp.org>
39530
39531         Tests for module 'unicase/ulc-casecmp'.
39532         * modules/unicase/ulc-casecmp-tests: New file.
39533         * tests/unicase/test-ulc-casecmp1.sh: New file.
39534         * tests/unicase/test-ulc-casecmp2.sh: New file.
39535         * tests/unicase/test-ulc-casecmp.c: New file.
39536
39537         New module 'unicase/ulc-casecmp'.
39538         * lib/unicase.h (ulc_casecmp): New declaration.
39539         * lib/unicase/ulc-casecmp.c: New file.
39540         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39541         'const SRC_UNIT *'.
39542         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39543         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39544         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39545         * modules/unicase/ulc-casecmp: New file.
39546
39547         Tests for module 'unicase/u32-is-cased'.
39548         * modules/unicase/u32-is-cased-tests: New file.
39549         * tests/unicase/test-u32-is-cased.c: New file.
39550
39551         Tests for module 'unicase/u16-is-cased'.
39552         * modules/unicase/u16-is-cased-tests: New file.
39553         * tests/unicase/test-u16-is-cased.c: New file.
39554
39555         Tests for module 'unicase/u8-is-cased'.
39556         * modules/unicase/u8-is-cased-tests: New file.
39557         * tests/unicase/test-u8-is-cased.c: New file.
39558         * tests/unicase/test-is-cased.h: New file.
39559
39560         New module 'unicase/u32-is-cased'.
39561         * lib/unicase/u32-is-cased.c: New file.
39562         * modules/unicase/u32-is-cased: New file.
39563
39564         New module 'unicase/u16-is-cased'.
39565         * lib/unicase/u16-is-cased.c: New file.
39566         * modules/unicase/u16-is-cased: New file.
39567
39568         New module 'unicase/u8-is-cased'.
39569         * lib/unicase/u8-is-cased.c: New file.
39570         * lib/unicase/u-is-cased.h: New file.
39571         * modules/unicase/u8-is-cased: New file.
39572
39573         Tests for module 'unicase/u32-is-casefolded'.
39574         * modules/unicase/u32-is-casefolded-tests: New file.
39575         * tests/unicase/test-u32-is-casefolded.c: New file.
39576
39577         Tests for module 'unicase/u16-is-casefolded'.
39578         * modules/unicase/u16-is-casefolded-tests: New file.
39579         * tests/unicase/test-u16-is-casefolded.c: New file.
39580
39581         Tests for module 'unicase/u8-is-casefolded'.
39582         * modules/unicase/u8-is-casefolded-tests: New file.
39583         * tests/unicase/test-u8-is-casefolded.c: New file.
39584         * tests/unicase/test-is-casefolded.h: New file.
39585
39586         New module 'unicase/u32-is-casefolded'.
39587         * lib/unicase/u32-is-casefolded.c: New file.
39588         * modules/unicase/u32-is-casefolded: New file.
39589
39590         New module 'unicase/u16-is-casefolded'.
39591         * lib/unicase/u16-is-casefolded.c: New file.
39592         * modules/unicase/u16-is-casefolded: New file.
39593
39594         New module 'unicase/u8-is-casefolded'.
39595         * lib/unicase/u8-is-casefolded.c: New file.
39596         * modules/unicase/u8-is-casefolded: New file.
39597
39598         Tests for module 'unicase/u32-is-titlecase'.
39599         * modules/unicase/u32-is-titlecase-tests: New file.
39600         * tests/unicase/test-u32-is-titlecase.c: New file.
39601
39602         Tests for module 'unicase/u16-is-titlecase'.
39603         * modules/unicase/u16-is-titlecase-tests: New file.
39604         * tests/unicase/test-u16-is-titlecase.c: New file.
39605
39606         Tests for module 'unicase/u8-is-titlecase'.
39607         * modules/unicase/u8-is-titlecase-tests: New file.
39608         * tests/unicase/test-u8-is-titlecase.c: New file.
39609         * tests/unicase/test-is-titlecase.h: New file.
39610
39611         New module 'unicase/u32-is-titlecase'.
39612         * lib/unicase/u32-is-titlecase.c: New file.
39613         * modules/unicase/u32-is-titlecase: New file.
39614
39615         New module 'unicase/u16-is-titlecase'.
39616         * lib/unicase/u16-is-titlecase.c: New file.
39617         * modules/unicase/u16-is-titlecase: New file.
39618
39619         New module 'unicase/u8-is-titlecase'.
39620         * lib/unicase/u8-is-titlecase.c: New file.
39621         * modules/unicase/u8-is-titlecase: New file.
39622
39623         Tests for module 'unicase/u32-is-lowercase'.
39624         * modules/unicase/u32-is-lowercase-tests: New file.
39625         * tests/unicase/test-u32-is-lowercase.c: New file.
39626
39627         Tests for module 'unicase/u16-is-lowercase'.
39628         * modules/unicase/u16-is-lowercase-tests: New file.
39629         * tests/unicase/test-u16-is-lowercase.c: New file.
39630
39631         Tests for module 'unicase/u8-is-lowercase'.
39632         * modules/unicase/u8-is-lowercase-tests: New file.
39633         * tests/unicase/test-u8-is-lowercase.c: New file.
39634         * tests/unicase/test-is-lowercase.h: New file.
39635
39636         New module 'unicase/u32-is-lowercase'.
39637         * lib/unicase/u32-is-lowercase.c: New file.
39638         * modules/unicase/u32-is-lowercase: New file.
39639
39640         New module 'unicase/u16-is-lowercase'.
39641         * lib/unicase/u16-is-lowercase.c: New file.
39642         * modules/unicase/u16-is-lowercase: New file.
39643
39644         New module 'unicase/u8-is-lowercase'.
39645         * lib/unicase/u8-is-lowercase.c: New file.
39646         * modules/unicase/u8-is-lowercase: New file.
39647
39648         Tests for module 'unicase/u32-is-uppercase'.
39649         * modules/unicase/u32-is-uppercase-tests: New file.
39650         * tests/unicase/test-u32-is-uppercase.c: New file.
39651
39652         Tests for module 'unicase/u16-is-uppercase'.
39653         * modules/unicase/u16-is-uppercase-tests: New file.
39654         * tests/unicase/test-u16-is-uppercase.c: New file.
39655
39656         Tests for module 'unicase/u8-is-uppercase'.
39657         * modules/unicase/u8-is-uppercase-tests: New file.
39658         * tests/unicase/test-u8-is-uppercase.c: New file.
39659         * tests/unicase/test-is-uppercase.h: New file.
39660
39661         New module 'unicase/u32-is-uppercase'.
39662         * lib/unicase/u32-is-uppercase.c: New file.
39663         * modules/unicase/u32-is-uppercase: New file.
39664
39665         New module 'unicase/u16-is-uppercase'.
39666         * lib/unicase/u16-is-uppercase.c: New file.
39667         * modules/unicase/u16-is-uppercase: New file.
39668
39669         New module 'unicase/u8-is-uppercase'.
39670         * lib/unicase/u8-is-uppercase.c: New file.
39671         * modules/unicase/u8-is-uppercase: New file.
39672
39673         New module 'unicase/u32-is-invariant'.
39674         * lib/unicase/u32-is-invariant.c: New file.
39675         * modules/unicase/u32-is-invariant: New file.
39676
39677         New module 'unicase/u16-is-invariant'.
39678         * lib/unicase/u16-is-invariant.c: New file.
39679         * modules/unicase/u16-is-invariant: New file.
39680
39681         New module 'unicase/u8-is-invariant'.
39682         * lib/unicase/u8-is-invariant.c: New file.
39683         * lib/unicase/invariant.h: New file.
39684         * lib/unicase/u-is-invariant.h: New file.
39685         * modules/unicase/u8-is-invariant: New file.
39686
39687         Tests for module 'unicase/u32-casecoll'.
39688         * modules/unicase/u32-casecoll-tests: New file.
39689         * tests/unicase/test-u32-casecoll.c: New file.
39690
39691         Tests for module 'unicase/u16-casecoll'.
39692         * modules/unicase/u16-casecoll-tests: New file.
39693         * tests/unicase/test-u16-casecoll.c: New file.
39694
39695         Tests for module 'unicase/u8-casecoll'.
39696         * modules/unicase/u8-casecoll-tests: New file.
39697         * tests/unicase/test-u8-casecoll.c: New file.
39698
39699         New module 'unicase/u32-casecoll'.
39700         * lib/unicase/u32-casecoll.c: New file.
39701         * modules/unicase/u32-casecoll: New file.
39702
39703         New module 'unicase/u16-casecoll'.
39704         * lib/unicase/u16-casecoll.c: New file.
39705         * modules/unicase/u16-casecoll: New file.
39706
39707         New module 'unicase/u8-casecoll'.
39708         * lib/unicase/u8-casecoll.c: New file.
39709         * lib/unicase/u-casecoll.h: New file.
39710         * modules/unicase/u8-casecoll: New file.
39711
39712         New module 'unicase/u32-casexfrm'.
39713         * lib/unicase/u32-casexfrm.c: New file.
39714         * modules/unicase/u32-casexfrm: New file.
39715
39716         New module 'unicase/u16-casexfrm'.
39717         * lib/unicase/u16-casexfrm.c: New file.
39718         * modules/unicase/u16-casexfrm: New file.
39719
39720         New module 'unicase/u8-casexfrm'.
39721         * lib/unicase/u8-casexfrm.c: New file.
39722         * lib/unicase/u-casexfrm.h: New file.
39723         * modules/unicase/u8-casexfrm: New file.
39724
39725         Tests for module 'unicase/u32-casecmp'.
39726         * modules/unicase/u32-casecmp-tests: New file.
39727         * tests/unicase/test-u32-casecmp.c: New file.
39728
39729         Tests for module 'unicase/u16-casecmp'.
39730         * modules/unicase/u16-casecmp-tests: New file.
39731         * tests/unicase/test-u16-casecmp.c: New file.
39732
39733         Tests for module 'unicase/u8-casecmp'.
39734         * modules/unicase/u8-casecmp-tests: New file.
39735         * tests/unicase/test-u8-casecmp.c: New file.
39736         * tests/unicase/test-casecmp.h: New file.
39737
39738         New module 'unicase/u32-casecmp'.
39739         * lib/unicase/u32-casecmp.c: New file.
39740         * modules/unicase/u32-casecmp: New file.
39741
39742         New module 'unicase/u16-casecmp'.
39743         * lib/unicase/u16-casecmp.c: New file.
39744         * modules/unicase/u16-casecmp: New file.
39745
39746         New module 'unicase/u8-casecmp'.
39747         * lib/unicase/u8-casecmp.c: New file.
39748         * lib/unicase/u-casecmp.h: New file.
39749         * modules/unicase/u8-casecmp: New file.
39750
39751         Tests for module 'unicase/u32-casefold'.
39752         * modules/unicase/u32-casefold-tests: New file.
39753         * tests/unicase/test-u32-casefold.c: New file.
39754
39755         Tests for module 'unicase/u16-casefold'.
39756         * modules/unicase/u16-casefold-tests: New file.
39757         * tests/unicase/test-u16-casefold.c: New file.
39758
39759         Tests for module 'unicase/u8-casefold'.
39760         * modules/unicase/u8-casefold-tests: New file.
39761         * tests/unicase/test-u8-casefold.c: New file.
39762
39763         New module 'unicase/u32-casefold'.
39764         * lib/unicase/u32-casefold.c: New file.
39765         * modules/unicase/u32-casefold: New file.
39766
39767         New module 'unicase/u16-casefold'.
39768         * lib/unicase/u16-casefold.c: New file.
39769         * modules/unicase/u16-casefold: New file.
39770
39771         New module 'unicase/u8-casefold'.
39772         * lib/unicase/u8-casefold.c: New file.
39773         * lib/unicase/u-casefold.h: New file.
39774         * modules/unicase/u8-casefold: New file.
39775
39776         New module 'unicase/tocasefold'.
39777         * lib/unicase/casefold.h: New file.
39778         * lib/unicase/tocasefold.c: New file.
39779         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39780         * modules/unicase/tocasefold: New file.
39781
39782         Tests for module 'unicase/u32-totitle'.
39783         * modules/unicase/u32-totitle-tests: New file.
39784         * tests/unicase/test-u32-totitle.c: New file.
39785
39786         Tests for module 'unicase/u16-totitle'.
39787         * modules/unicase/u16-totitle-tests: New file.
39788         * tests/unicase/test-u16-totitle.c: New file.
39789
39790         Tests for module 'unicase/u8-totitle'.
39791         * modules/unicase/u8-totitle-tests: New file.
39792         * tests/unicase/test-u8-totitle.c: New file.
39793
39794         New module 'unicase/u32-totitle'.
39795         * lib/unicase/u32-totitle.c: New file.
39796         * modules/unicase/u32-totitle: New file.
39797
39798         New module 'unicase/u16-totitle'.
39799         * lib/unicase/u16-totitle.c: New file.
39800         * modules/unicase/u16-totitle: New file.
39801
39802         New module 'unicase/u8-totitle'.
39803         * lib/unicase/u8-totitle.c: New file.
39804         * lib/unicase/u-totitle.h: New file.
39805         * modules/unicase/u8-totitle: New file.
39806
39807         Tests for module 'unicase/u32-tolower'.
39808         * modules/unicase/u32-tolower-tests: New file.
39809         * tests/unicase/test-u32-tolower.c: New file.
39810
39811         Tests for module 'unicase/u16-tolower'.
39812         * modules/unicase/u16-tolower-tests: New file.
39813         * tests/unicase/test-u16-tolower.c: New file.
39814
39815         Tests for module 'unicase/u8-tolower'.
39816         * modules/unicase/u8-tolower-tests: New file.
39817         * tests/unicase/test-u8-tolower.c: New file.
39818
39819         New module 'unicase/u32-tolower'.
39820         * lib/unicase/u32-tolower.c: New file.
39821         * modules/unicase/u32-tolower: New file.
39822
39823         New module 'unicase/u16-tolower'.
39824         * lib/unicase/u16-tolower.c: New file.
39825         * modules/unicase/u16-tolower: New file.
39826
39827         New module 'unicase/u8-tolower'.
39828         * lib/unicase/u8-tolower.c: New file.
39829         * modules/unicase/u8-tolower: New file.
39830
39831         Tests for module 'unicase/u32-toupper'.
39832         * modules/unicase/u32-toupper-tests: New file.
39833         * tests/unicase/test-u32-toupper.c: New file.
39834
39835         Tests for module 'unicase/u16-toupper'.
39836         * modules/unicase/u16-toupper-tests: New file.
39837         * tests/unicase/test-u16-toupper.c: New file.
39838
39839         Tests for module 'unicase/u8-toupper'.
39840         * modules/unicase/u8-toupper-tests: New file.
39841         * tests/unicase/test-u8-toupper.c: New file.
39842
39843         New module 'unicase/u32-toupper'.
39844         * lib/unicase/u32-toupper.c: New file.
39845         * modules/unicase/u32-toupper: New file.
39846
39847         New module 'unicase/u16-toupper'.
39848         * lib/unicase/u16-toupper.c: New file.
39849         * modules/unicase/u16-toupper: New file.
39850
39851         New module 'unicase/u8-toupper'.
39852         * lib/unicase/u8-toupper.c: New file.
39853         * modules/unicase/u8-toupper: New file.
39854
39855         New module 'unicase/u32-casemap'.
39856         * lib/unicase/u32-casemap.c: New file.
39857         * modules/unicase/u32-casemap: New file.
39858
39859         New module 'unicase/u16-casemap'.
39860         * lib/unicase/u16-casemap.c: New file.
39861         * modules/unicase/u16-casemap: New file.
39862
39863         New module 'unicase/u8-casemap'.
39864         * lib/unicase/unicasemap.h: New file.
39865         * lib/unicase/u8-casemap.c: New file.
39866         * lib/unicase/u-casemap.h: New file.
39867         * modules/unicase/u8-casemap: New file.
39868
39869         New module 'unicase/special-casing'.
39870         * lib/unicase/special-casing.h: New file.
39871         * lib/unicase/special-casing.c: New file.
39872         * lib/unicase/special-casing-table.gperf: New file, generated by
39873         gen-uni-tables.c.
39874         * modules/unicase/special-casing: New file.
39875
39876         Tests for module 'unicase/locale-language'.
39877         * modules/unicase/locale-language-tests: New file.
39878         * tests/unicase/test-locale-language.sh: New file.
39879         * tests/unicase/test-locale-language.c: New file.
39880
39881         New module 'unicase/locale-language'.
39882         * lib/unicase/locale-language.c: New file.
39883         * lib/unicase/locale-languages.gperf: New file.
39884         * modules/unicase/locale-language: New file.
39885
39886         Generate more tables for case conversion and case folding.
39887         * lib/gen-uni-tables.c (SCC_*): New enum items.
39888         (struct special_casing_rule): New type.
39889         (casing_rules, num_casing_rules, allocated_casing_rules): New
39890         variables.
39891         (add_casing_rule, fill_casing_rules): New functions.
39892         (struct casefold_rule): New type.
39893         (casefolding_rules, num_casefolding_rules,
39894         allocated_casefolding_rules): New variables.
39895         (fill_casefolding_rules): New function.
39896         (unicode_casefold): New variable.
39897         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39898         sort_casing_rules, output_casing_rules): New functions.
39899         (main): Accept to more arguments: SpecialCasing.txt and
39900         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39901         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39902         Output mapping for casefolding.
39903
39904         * lib/unicase.h: Include stdbool.h, uninorm.h.
39905         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39906         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39907         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39908         arguments.
39909         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39910         resultp arguments.
39911         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39912         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39913         resultp arguments.
39914         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39915         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39916         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39917         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39918         declarations.
39919         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39920
39921 2009-03-08  Bruno Haible  <bruno@clisp.org>
39922
39923         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39924         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39925         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39926         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39927
39928 2009-03-07  Bruno Haible  <bruno@clisp.org>
39929
39930         Adjust u*_normcmp, u*_normcoll API.
39931         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39932         u16_normcoll, u32_normcoll): Change failure conventions.
39933         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39934         errno and return -1.
39935         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39936
39937 2009-03-07  Bruno Haible  <bruno@clisp.org>
39938
39939         Tests for module 'uninorm/u32-normcoll'.
39940         * modules/uninorm/u32-normcoll-tests: New file.
39941         * tests/uninorm/test-u32-normcoll.c: New file.
39942
39943         Tests for module 'uninorm/u16-normcoll'.
39944         * modules/uninorm/u16-normcoll-tests: New file.
39945         * tests/uninorm/test-u16-normcoll.c: New file.
39946
39947         Tests for module 'uninorm/u8-normcoll'.
39948         * modules/uninorm/u8-normcoll-tests: New file.
39949         * tests/uninorm/test-u8-normcoll.c: New file.
39950
39951 2009-03-07  Bruno Haible  <bruno@clisp.org>
39952
39953         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39954         tests/uninorm/test-u32-normcmp.c.
39955         * tests/uninorm/test-u32-normcmp.c: Include it.
39956         (test_nonascii): New function, extracted from main. Add some more
39957         tests.
39958         (main): Invoke test_ascii and test_nonascii.
39959         * modules/uninorm/u32-normcmp-tests (Files): Add
39960         tests/uninorm/test-u32-normcmp.h.
39961         (Depends-on): Remove uninorm/u32-normcmp.
39962
39963         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39964         tests/uninorm/test-u16-normcmp.c.
39965         * tests/uninorm/test-u16-normcmp.c: Include it.
39966         (test_nonascii): New function, extracted from main. Add some more
39967         tests.
39968         (main): Invoke test_ascii and test_nonascii.
39969         * modules/uninorm/u16-normcmp-tests (Files): Add
39970         tests/uninorm/test-u16-normcmp.h.
39971         (Depends-on): Remove uninorm/u16-normcmp.
39972
39973         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39974         tests/uninorm/test-u8-normcmp.c.
39975         * tests/uninorm/test-u8-normcmp.c: Include it.
39976         (test_nonascii): New function, extracted from main. Add some more
39977         tests.
39978         (main): Invoke test_ascii and test_nonascii.
39979         * modules/uninorm/u8-normcmp-tests (Files): Add
39980         tests/uninorm/test-u8-normcmp.h.
39981         (Depends-on): Remove uninorm/u8-normcmp.
39982
39983 2009-03-07  Bruno Haible  <bruno@clisp.org>
39984
39985         New module 'uninorm/u32-normcoll'.
39986         * lib/uninorm/u32-normcoll.c: New file.
39987         * modules/uninorm/u32-normcoll: New file.
39988
39989         New module 'uninorm/u16-normcoll'.
39990         * lib/uninorm/u16-normcoll.c: New file.
39991         * modules/uninorm/u16-normcoll: New file.
39992
39993         New module 'uninorm/u8-normcoll'.
39994         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39995         declarations.
39996         * lib/uninorm/u8-normcoll.c: New file.
39997         * lib/uninorm/u-normcoll.h: New file.
39998         * modules/uninorm/u8-normcoll: New file.
39999
40000         New module 'uninorm/u32-normxfrm'.
40001         * lib/uninorm/u32-normxfrm.c: New file.
40002         * modules/uninorm/u32-normxfrm: New file.
40003
40004         New module 'uninorm/u16-normxfrm'.
40005         * lib/uninorm/u16-normxfrm.c: New file.
40006         * modules/uninorm/u16-normxfrm: New file.
40007
40008         New module 'uninorm/u8-normxfrm'.
40009         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40010         declarations.
40011         * lib/uninorm/u8-normxfrm.c: New file.
40012         * lib/uninorm/u-normxfrm.h: New file.
40013         * modules/uninorm/u8-normxfrm: New file.
40014
40015 2009-03-07  Bruno Haible  <bruno@clisp.org>
40016
40017         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40018         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40019         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40020
40021 2009-03-07  Bruno Haible  <bruno@clisp.org>
40022
40023         New module 'memxfrm'.
40024         * lib/memxfrm.h: New file.
40025         * lib/memxfrm.c: New file.
40026         * modules/memxfrm: New file.
40027
40028 2009-03-07  Bruno Haible  <bruno@clisp.org>
40029
40030         New module 'memcmp2'.
40031         * lib/memcmp2.h: New file.
40032         * lib/memcmp2.c: New file.
40033         * modules/memcmp2: New file.
40034
40035 2009-03-07  Bruno Haible  <bruno@clisp.org>
40036
40037         Tests for module 'uninorm/decomposing-form'.
40038         * modules/uninorm/decomposing-form-tests: New file.
40039         * tests/uninorm/test-decomposing-form.c: New file.
40040
40041         New module 'uninorm/decomposing-form'.
40042         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40043         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40044         Add 'decomposing_variant' field.
40045         * lib/uninorm/decomposing-form.c: New file.
40046         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40047         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40048         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40049         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40050         * modules/uninorm/decomposing-form: New file.
40051         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40052         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40053
40054 2009-03-07  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40057         strings.
40058
40059 2009-03-06  Bruno Haible  <bruno@clisp.org>
40060
40061         Tests for module 'uninorm/u32-normcmp'.
40062         * tests/uninorm/test-u32-normcmp.c: New file.
40063         * modules/uninorm/u32-normcmp-tests: New file.
40064
40065         Tests for module 'uninorm/u16-normcmp'.
40066         * tests/uninorm/test-u16-normcmp.c: New file.
40067         * modules/uninorm/u16-normcmp-tests: New file.
40068
40069         Tests for module 'uninorm/u8-normcmp'.
40070         * tests/uninorm/test-u8-normcmp.c: New file.
40071         * modules/uninorm/u8-normcmp-tests: New file.
40072
40073         New module 'uninorm/u32-normcmp'.
40074         * lib/uninorm/u32-normcmp.c: New file.
40075         * modules/uninorm/u32-normcmp: New file.
40076
40077         New module 'uninorm/u16-normcmp'.
40078         * lib/uninorm/u16-normcmp.c: New file.
40079         * modules/uninorm/u16-normcmp: New file.
40080
40081         New module 'uninorm/u8-normcmp'.
40082         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40083         declarations.
40084         * lib/uninorm/u8-normcmp.c: New file.
40085         * lib/uninorm/u-normcmp.h: New file.
40086         * modules/uninorm/u8-normcmp: New file.
40087
40088 2009-03-06  Bruno Haible  <bruno@clisp.org>
40089
40090         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40091         Reported by Eric Blake.
40092
40093 2009-03-06  Eric Blake  <ebb9@byu.net>
40094             Bruno Haible  <bruno@clisp.org>
40095
40096         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40097         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40098         condition.
40099         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40100         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40101         condition.
40102         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40103
40104 2009-03-06  Eric Blake  <ebb9@byu.net>
40105
40106         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40107         to avoid compiler warnings.
40108         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40109
40110 2009-03-05  Bruno Haible  <bruno@clisp.org>
40111
40112         * tests/test-ftell.c (main): Disable test beyond end of file on
40113         FreeMiNT.
40114         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40115
40116 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40117
40118         * lib/filevercmp.c: Move hidden files up in ordering.
40119         * tests/test-filevercmp.c: Add tests for hidden files.
40120
40121 2009-03-04  Bruno Haible  <bruno@clisp.org>
40122
40123         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40124         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40125         AM_CFLAGS.
40126         Reported by Simon Josefsson.
40127
40128 2009-03-03  Bruno Haible  <bruno@clisp.org>
40129
40130         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40131         Reported by Simon Josefsson.
40132
40133         * doc/ld-version-script.texi: Update node reference.
40134
40135 2009-03-03  Bruno Haible  <bruno@clisp.org>
40136
40137         * modules/visibility (License): Change to 'unlimited'.
40138         Suggested by Simon Josefsson.
40139
40140 2009-03-03  Jim Meyering  <meyering@redhat.com>
40141
40142         unlinkdir: cannot_unlink_dir may modify process state
40143         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40144         it's neither thread-safe nor appropriate for use in a library.
40145
40146 2009-03-03  Eric Blake  <ebb9@byu.net>
40147
40148         test-closein: silence test under Darwin
40149         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40150         care if it dies from EPIPE or EBADF.
40151
40152 2009-03-03  Bruno Haible  <bruno@clisp.org>
40153
40154         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40155         earlier.
40156         * doc/visibility.texi: Fix @node and @section.
40157
40158 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40159
40160         * doc/gnulib.texi: Link to sections for ld version script and
40161         visibility.
40162         * doc/visibility.texi: Add @node and @section.
40163         * modules/ld-version-script: New module.
40164         * m4/ld-version-script.m4: New file.
40165         * doc/ld-version-script.texi: New file.
40166
40167 2009-03-02  David Lutterkort  <lutter@redhat.com>
40168
40169         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40171
40172 2009-03-02  Bruno Haible  <bruno@clisp.org>
40173
40174         * doc/visibility.texi: Mention libtool's -export-symbols option.
40175
40176 2009-03-02  Jim Meyering  <meyering@redhat.com>
40177
40178         announce-gen: new option: --no-print-checksums
40179         * build-aux/announce-gen (usage): Describe it.
40180         (print_checksums): Print a newline here, not in the [*] footnote.
40181         (main): Honor it.
40182
40183 2009-03-01  Bruno Haible  <bruno@clisp.org>
40184
40185         Use socklen_t in the native Windows replacements prototypes.
40186         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40187         instead of 'int'.
40188         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40189         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40190         * modules/getsockopt (Depends-on): Add socklen.
40191         * modules/setsockopt (Depends-on): Add socklen.
40192
40193 2009-03-01  Bruno Haible  <bruno@clisp.org>
40194
40195         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40196         least 4.2.
40197
40198 2009-03-01  Eric Blake  <ebb9@byu.net>
40199             Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40202         error messages.
40203         * lib/wait-process.c (wait_subprocess): Omit error message about
40204         deadly signal sent to the child of termsigp != NULL.
40205
40206 2009-03-01  Eric Blake  <ebb9@byu.net>
40207
40208         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40209
40210 2009-03-01  Bruno Haible  <bruno@clisp.org>
40211
40212         Avoid a gcc warning.
40213         * tests/test-sched.c (b): Make global.
40214         Reported by Eric Blake.
40215
40216 2009-01-19  Martin Lambers  <marlam@marlam.de>
40217
40218         Provide POSIX semantics for socket timeout options on W32.
40219         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40220         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40221         * modules/setsockopt: Depend on sys_time module for struct timeval.
40222         * modules/getsockopt: Depend on sys_time module for struct timeval.
40223
40224 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40225
40226         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40227         __USE_GNU, for consistency with netdb.in.h.
40228         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40229
40230 2009-03-01  Bruno Haible  <bruno@clisp.org>
40231
40232         More support for FreeMiNT.
40233         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40234         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40235
40236 2009-03-01  Bruno Haible  <bruno@clisp.org>
40237
40238         More support for FreeMiNT.
40239         * lib/fpurge.c (fpurge): Correct last commit.
40240         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40241
40242 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40243
40244         Fix unportable awk script in vc-list-files.
40245         * build-aux/vc-list-files: In the replacement awk script, use
40246         substr with a second argument of 1, not zero.
40247         Report by Simon Josefsson.
40248
40249 2009-02-28  Bruno Haible  <bruno@clisp.org>
40250
40251         More support for FreeMiNT.
40252         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40253         to FreeMiNT today.
40254         * lib/fwriting.c (fwriting): Likewise.
40255         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40256
40257 2009-02-28  Bruno Haible  <bruno@clisp.org>
40258
40259         * tests/test-freadseek.c (main): Disable test beyond end of file on
40260         FreeMiNT.
40261         * tests/test-ftello.c (main): Likewise.
40262         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40263
40264 2009-02-28  Bruno Haible  <bruno@clisp.org>
40265
40266         Add tentative support for FreeMiNT.
40267         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40268         * lib/fpurge.c (fpurge): Likewise.
40269         * lib/freadable.c (freadable): Likewise.
40270         * lib/freading.c (freading): Likewise.
40271         * lib/freadptr.c (freadptr): Likewise.
40272         * lib/freadseek.c (freadptrinc): Likewise.
40273         * lib/fseeko.c (rpl_fseeko): Likewise.
40274         * lib/fseterr.c (fseterr): Likewise.
40275         * lib/fwritable.c (fwritable): Likewise.
40276         * lib/fwriting.c (fwriting): Likewise.
40277         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40278         Hourihane.
40279         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40280
40281 2009-02-28  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40284         SIGCHLD.
40285         Reported by Jim Meyering.
40286
40287 2009-02-28  Bruno Haible  <bruno@clisp.org>
40288
40289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40290         Mention the results of these tests on various platforms.
40291         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40292         order.
40293         * doc/posix-functions/printf.texi: Likewise.
40294         * doc/posix-functions/snprintf.texi: Likewise.
40295         * doc/posix-functions/sprintf.texi: Likewise.
40296         * doc/posix-functions/vfprintf.texi: Likewise.
40297         * doc/posix-functions/vprintf.texi: Likewise.
40298         * doc/posix-functions/vsnprintf.texi: Likewise.
40299         * doc/posix-functions/vsprintf.texi: Likewise.
40300         * doc/glibc-functions/obstack_printf.texi: Likewise.
40301         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40302
40303 2009-02-28  Bruno Haible  <bruno@clisp.org>
40304
40305         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40306         Reported by Loïc Minier <lool@dooz.org>.
40307
40308 2009-02-27  Bruno Haible  <bruno@clisp.org>
40309
40310         * gnulib-tool (func_import): Make the sed expression used to create the
40311         sed script for updating the .gitignore file POSIX compliant.
40312         Reported by Eric Blake.
40313
40314 2009-02-27  Bruno Haible  <bruno@clisp.org>
40315
40316         * gnulib-tool (sed): Don't alias as "sed --posix".
40317         Reported by Eric Blake.
40318
40319 2009-02-27  Bruno Haible  <bruno@clisp.org>
40320
40321         Avoid test link errors.
40322         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40323         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40324         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40325         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40327
40328 2009-02-27  Bruno Haible  <bruno@clisp.org>
40329
40330         Avoid spurious "(cached)" in configure output.
40331         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40332         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40333         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40334         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40335         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40336         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40337         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40338         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40339         Reported by Eric Blake.
40340
40341 2009-02-27  Eric Blake  <ebb9@byu.net>
40342
40343         printf: fix regression in previous patch
40344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40345
40346 2009-02-27  Bruno Haible  <bruno@clisp.org>
40347
40348         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40349         value.
40350         * lib/stdint.in.h: Likewise.
40351         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40352
40353 2009-02-27  Eric Blake  <ebb9@byu.net>
40354
40355         doc: mention more functions added in cygwin 1.7.0
40356         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40357         addition.
40358         * doc/posix-functions/open_wmemstream.texi: Likewise.
40359         * doc/posix-functions/wcsnlen.texi: Likewise.
40360         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40361         * doc/posix-functions/wcstod.texi: Likewise.
40362         * doc/posix-functions/wcstof.texi: Likewise.
40363         * doc/posix-functions/wcstoimax.texi: Likewise.
40364         * doc/posix-functions/wcstok.texi: Likewise.
40365         * doc/posix-functions/wcstoumax.texi: Likewise.
40366
40367         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40368         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40369         * doc/posix-functions/fprintf.texi: Update.
40370         * doc/posix-functions/printf.texi: Update.
40371         * doc/posix-functions/snprintf.texi: Update.
40372         * doc/posix-functions/sprintf.texi: Update.
40373         * doc/posix-functions/vfprintf.texi: Update.
40374         * doc/posix-functions/vprintf.texi: Update.
40375         * doc/posix-functions/vsnprintf.texi: Update.
40376         * doc/posix-functions/vsprintf.texi: Update.
40377         * doc/glibc-functions/obstack_printf.texi: Update.
40378         * doc/glibc-functions/obstack_vprintf.texi: Update.
40379
40380 2009-02-26  Eric Blake  <ebb9@byu.net>
40381
40382         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40383         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40384         compilation bug by using runtime conversion.
40385         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40386         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40387         * modules/ceill-tests (Files): Use nan.h.
40388         * modules/floorl-tests (Files): Likewise.
40389         * modules/frexpl-tests (Files): Likewise.
40390         * modules/isnanl-tests (Files): Likewise.
40391         * modules/ldexpl-tests (Files): Likewise.
40392         * modules/roundl-tests (Files): Likewise.
40393         * modules/truncl-tests (Files): Likewise.
40394         * tests/test-ceill.c (main): Use a working NaN.
40395         * tests/test-floorl.c (main): Likewise.
40396         * tests/test-frexpl.c (main): Likewise.
40397         * tests/test-isnan.c (test_long_double): Likewise.
40398         * tests/test-isnanl.h (main): Likewise.
40399         * tests/test-ldexpl.h (main): Likewise.
40400         * tests/test-roundl.h (main): Likewise.
40401         * tests/test-truncl.h (main): Likewise.
40402         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40403
40404 2009-02-26  Eric Blake  <ebb9@byu.net>
40405             Bruno Haible  <bruno@clisp.org>
40406
40407         Work around a *printf bug with %ls on Solaris.
40408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40409         precision is specified, sprintf stops converting the wide string
40410         argument when the number of bytes that have been produced by this
40411         conversion equals or exceeds the precision.
40412         * doc/posix-functions/fprintf.texi: Update.
40413         * doc/posix-functions/printf.texi: Update.
40414         * doc/posix-functions/snprintf.texi: Update.
40415         * doc/posix-functions/sprintf.texi: Update.
40416         * doc/posix-functions/vfprintf.texi: Update.
40417         * doc/posix-functions/vprintf.texi: Update.
40418         * doc/posix-functions/vsnprintf.texi: Update.
40419         * doc/posix-functions/vsprintf.texi: Update.
40420         * doc/glibc-functions/obstack_printf.texi: Update.
40421         * doc/glibc-functions/obstack_vprintf.texi: Update.
40422
40423 2009-02-26  Eric Blake  <ebb9@byu.net>
40424
40425         stdlib: favor compiler check of random.h
40426         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40427         to avoid an ObjC random.h installed by Swarm.
40428
40429 2009-02-26  Bruno Haible  <bruno@clisp.org>
40430
40431         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40432         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40433         Reported by Gary V. Vaughan <gary@gnu.org>.
40434
40435 2009-02-26  Bruno Haible  <bruno@clisp.org>
40436
40437         Fix *printf behaviour regarding the %ls directive.
40438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40439         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40440         NEED_PRINTF_DIRECTIVE_LS.
40441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40442         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40443         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40444         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40445         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40446         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40447         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40450         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40451         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40452         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40456         * doc/posix-functions/fprintf.texi: Update.
40457         * doc/posix-functions/printf.texi: Update.
40458         * doc/posix-functions/snprintf.texi: Update.
40459         * doc/posix-functions/sprintf.texi: Update.
40460         * doc/posix-functions/vfprintf.texi: Update.
40461         * doc/posix-functions/vprintf.texi: Update.
40462         * doc/posix-functions/vsnprintf.texi: Update.
40463         * doc/posix-functions/vsprintf.texi: Update.
40464         * doc/glibc-functions/obstack_printf.texi: Update.
40465         * doc/glibc-functions/obstack_vprintf.texi: Update.
40466         Reported by Eric Blake.
40467
40468 2009-02-25  Bruno Haible  <bruno@clisp.org>
40469
40470         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40471         with known value.
40472         Reported by Gary V. Vaughan <gary@gnu.org>.
40473
40474 2009-02-25  Bruno Haible  <bruno@clisp.org>
40475
40476         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40477         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40478         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40479         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40480         Reported by Gary V. Vaughan <gary@gnu.org>.
40481
40482 2009-02-25  Bruno Haible  <bruno@clisp.org>
40483
40484         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40485         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40486         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40487         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40488         Reported by Gary V. Vaughan <gary@gnu.org>.
40489
40490 2009-02-25  Eric Blake  <ebb9@byu.net>
40491
40492         tests: skip fseek/ftell tests if ungetc is broken
40493         * m4/ungetc.m4: New file.
40494         * modules/fseek-tests: Split test, so ungetc dependency is
40495         separate from rest of test.
40496         * modules/fseeko-tests: Likewise.
40497         * modules/ftell-tests: Likewise.
40498         * modules/ftello-tests: Likewise.
40499         * tests/test-fseek.c (main): Isolate ungetc dependency.
40500         * tests/test-fseeko.c (main): Likewise.
40501         * tests/test-ftell.c (main): Likewise.
40502         * tests/test-ftello.c (main): Likewise.
40503         * tests/test-fseek2.sh: New file.
40504         * tests/test-fseeko2.sh: Likewise.
40505         * tests/test-ftell2.sh: Likewise.
40506         * tests/test-ftello2.sh: Likewise.
40507
40508 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
40509
40510         test-getaddrinfo: fix usage of skip return code 77
40511         * tests/test-gettaddrinfo.c: Return skip code 77 only
40512         for first occurance of skip (4x77 is not 77)
40513
40514 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40515
40516         strtod: avoid C99 decl-after-statement
40517         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40518
40519 2009-02-24  Eric Blake  <ebb9@byu.net>
40520
40521         strtod: detect HP-UX 11.31 bug
40522         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40523         Reported by Gary V. Vaughan.
40524
40525 2009-02-23  Bruno Haible  <bruno@clisp.org>
40526
40527         Fix invalid read past end of memory block.
40528         * lib/vasnprintf.c (DCHAR_SET): Define.
40529         (local_wcslen): Define only when needed.
40530         (local_strnlen, local_wcsnlen): New functions.
40531         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40532         directives that involve a conversion ourselves.
40533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40534         wcsnlen, mbrtowc, wcrtomb.
40535         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40536         * tests/test-vasprintf-posix.c (test_function): Likewise.
40537         * tests/test-snprintf-posix.h (test_function): Likewise.
40538         * tests/test-sprintf-posix.h (test_function): Likewise.
40539         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40540
40541 2009-02-22  Bruno Haible  <bruno@clisp.org>
40542
40543         Implement new clarified decomposition of Hangul syllables.
40544         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40545         of type LTV, return only a pairwise decomposition.
40546         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40547         Likewise.
40548         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40549         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40550         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40551
40552 2009-02-22  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40555         zero-length results and shrink excess allocated memory.
40556         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40557         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40558         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40559         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40560         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40561         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40562         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40563         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40564         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40565         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40566         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40567         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40568
40569 2009-02-21  Bruno Haible  <bruno@clisp.org>
40570
40571         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40572         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40573         spaces after a period. Put a space between a macro name and its
40574         argument list. Trivial rewordings.
40575         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40576         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40577         (main): Return 0 explicitly.
40578
40579 2009-02-21  Bruno Haible  <bruno@clisp.org>
40580
40581         Tests for module 'uninorm/filter'.
40582         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40583         * modules/uninorm/filter-tests: New file.
40584
40585         New module 'uninorm/filter'.
40586         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40587         uninorm_filter_flush, uninorm_filter_free): New declarations.
40588         * lib/uninorm/uninorm-filter.c: New file.
40589         * modules/uninorm/filter: New file.
40590
40591 2009-02-21  Bruno Haible  <bruno@clisp.org>
40592
40593         Tests for module 'uninorm/nfkc'.
40594         * tests/uninorm/test-nfkc.c: New file.
40595         * tests/uninorm/test-u8-nfkc.c: New file.
40596         * tests/uninorm/test-u16-nfkc.c: New file.
40597         * tests/uninorm/test-u32-nfkc.c: New file.
40598         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40599         * tests/uninorm/test-u32-nfkc-big.c: New file.
40600         * modules/uninorm/nfkc-tests: New file.
40601
40602         New module 'uninorm/nfkc'.
40603         * lib/uninorm/nfkc.c: New file.
40604         * modules/uninorm/nfkc: New file.
40605
40606         Tests for module 'uninorm/nfkd'.
40607         * tests/uninorm/test-nfkd.c: New file.
40608         * tests/uninorm/test-u8-nfkd.c: New file.
40609         * tests/uninorm/test-u16-nfkd.c: New file.
40610         * tests/uninorm/test-u32-nfkd.c: New file.
40611         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40612         * tests/uninorm/test-u32-nfkd-big.c: New file.
40613         * modules/uninorm/nfkd-tests: New file.
40614
40615         New module 'uninorm/nfkd'.
40616         * lib/uninorm/nfkd.c: New file.
40617         * modules/uninorm/nfkd: New file.
40618
40619         Tests for module 'uninorm/nfc'.
40620         * tests/uninorm/test-nfc.c: New file.
40621         * tests/uninorm/test-u8-nfc.c: New file.
40622         * tests/uninorm/test-u16-nfc.c: New file.
40623         * tests/uninorm/test-u32-nfc.c: New file.
40624         * tests/uninorm/test-u32-nfc-big.sh: New file.
40625         * tests/uninorm/test-u32-nfc-big.c: New file.
40626         * modules/uninorm/nfc-tests: New file.
40627
40628         New module 'uninorm/nfc'.
40629         * lib/uninorm/nfc.c: New file.
40630         * modules/uninorm/nfc: New file.
40631
40632         Tests for module 'uninorm/nfd'.
40633         * tests/uninorm/test-nfd.c: New file.
40634         * tests/uninorm/test-u8-nfd.c: New file.
40635         * tests/uninorm/test-u16-nfd.c: New file.
40636         * tests/uninorm/test-u32-nfd.c: New file.
40637         * tests/uninorm/test-u32-nfd-big.sh: New file.
40638         * tests/uninorm/test-u32-nfd-big.c: New file.
40639         * tests/uninorm/test-u32-normalize-big.h: New file.
40640         * tests/uninorm/test-u32-normalize-big.c: New file.
40641         * tests/uninorm/NormalizationTest.txt: New file, created from
40642         Unicode 5.1.0 NormalizationTest.txt.
40643         * modules/uninorm/nfd-tests: New file.
40644
40645         New module 'uninorm/nfd'.
40646         * lib/uninorm/nfd.c: New file.
40647         * modules/uninorm/nfd: New file.
40648
40649         New module 'uninorm/u32-normalize'.
40650         * lib/uninorm/u32-normalize.c: New file.
40651         * modules/uninorm/u32-normalize: New file.
40652
40653         New module 'uninorm/u16-normalize'.
40654         * lib/uninorm/u16-normalize.c: New file.
40655         * modules/uninorm/u16-normalize: New file.
40656
40657         New module 'uninorm/u8-normalize'.
40658         * lib/uninorm/u8-normalize.c: New file.
40659         * lib/uninorm/normalize-internal.h: New file.
40660         * lib/uninorm/u-normalize-internal.h: New file.
40661         * modules/uninorm/u8-normalize: New file.
40662
40663         New module 'uninorm/decompose-internal'.
40664         * lib/uninorm/decompose-internal.c: New file.
40665         * modules/uninorm/decompose-internal: New file.
40666
40667         Tests for module 'uninorm/composition'.
40668         * tests/uninorm/test-composition.c: New file.
40669         * modules/uninorm/composition-tests: New file.
40670
40671         New module 'uninorm/composition'.
40672         * lib/uninorm/composition.c: New file.
40673         * lib/uninorm/composition-table.gperf: New file, generated by
40674         gen-uni-tables.
40675         * modules/uninorm/composition: New file.
40676
40677         Tests for module 'uninorm/compat-decomposition'.
40678         * tests/uninorm/test-compat-decomposition.c: New file.
40679         * modules/uninorm/compat-decomposition-tests: New file.
40680
40681         New module 'uninorm/compat-decomposition'.
40682         * lib/uninorm/decompose-internal.h: New file.
40683         * lib/uninorm/compat-decomposition.c: New file.
40684         * modules/uninorm/compat-decomposition: New file.
40685
40686         Tests for module 'uninorm/canonical-decomposition'.
40687         * tests/uninorm/test-canonical-decomposition.c: New file.
40688         * modules/uninorm/canonical-decomposition-tests: New file.
40689
40690         New module 'uninorm/canonical-decomposition'.
40691         * lib/uninorm/canonical-decomposition.c: New file.
40692         * modules/uninorm/canonical-decomposition: New file.
40693
40694         Tests for module 'uninorm/decomposition'.
40695         * tests/uninorm/test-decomposition.c: New file.
40696         * modules/uninorm/decomposition-tests: New file.
40697
40698         New module 'uninorm/decomposition'.
40699         * lib/uninorm/decomposition.c: New file.
40700         * modules/uninorm/decomposition: New file.
40701
40702         New module 'uninorm/decomposition-table'.
40703         * lib/uninorm/decomposition-table.h: New file.
40704         * lib/uninorm/decomposition-table.c: New file.
40705         * lib/uninorm/decomposition-table1.h: New file, generated by
40706         gen-uni-tables.
40707         * lib/uninorm/decomposition-table2.h: New file, generated by
40708         gen-uni-tables.
40709         * modules/uninorm/decomposition-table: New file.
40710
40711         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40712         (UC_DECOMP_*): New enumeration items.
40713         (get_decomposition): New function.
40714         (struct decomp_table): New type.
40715         (output_decomposition, output_decomposition_tables): New functions.
40716         (unicode_composition_exclusions): New variable.
40717         (fill_composition_exclusions, debug_output_composition_tables): New
40718         functions.
40719         (main): Accept one more argument. Invoke fill_composition_exclusions.
40720         Output decomposition and composition tables.
40721
40722         New module 'uninorm/base'.
40723         * lib/uninorm.h: New file.
40724         * lib/unictype.h: Update comment.
40725         * modules/uninorm/base: New file.
40726
40727 2009-02-21  David Lutterkort  <lutter@redhat.com>
40728
40729         Tests for module 'safe-alloc'.
40730         * tests/test-safe-alloc.c: New file.
40731         * modules/safe-alloc-tests: New file.
40732
40733         New module 'safe-alloc'.
40734         * lib/safe-alloc.h: New file.
40735         * lib/safe-alloc.c: New file.
40736         * m4/safe-alloc.m4: New file.
40737         * modules/safe-alloc: New file.
40738         * doc/safe-alloc.texi: New file.
40739         * doc/gnulib.texi: Include it.
40740         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40741         safe-alloc.
40742
40743 2009-02-18  Bruno Haible  <bruno@clisp.org>
40744
40745         Fix link error on non-glibc systems.
40746         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40747         variable.
40748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40749
40750 2009-02-18  Jim Meyering  <meyering@redhat.com>
40751
40752         fts: avoid used-uninitialized error due to recent change
40753         * lib/fts.c (fts_read): Guard uses of the new member,
40754         parent->fts_n_dirs_remaining, since it's not relevant for
40755         the parent of a directory specified on the command-line.
40756
40757 2009-02-17  James Youngman  <jay@gnu.org>
40758             Bruno Haible  <bruno@clisp.org>
40759
40760         * m4/include_next.m4: Reformulate comment.
40761
40762 2009-02-16  Jim Meyering  <meyering@redhat.com>
40763
40764         fts: add #if guards so that the fts_lgpl module still builds
40765         * lib/fts.c: Guard just-added hash-table-using parts with
40766         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40767         Reported by Simon Josefsson.
40768
40769 2009-02-15  Bruno Haible  <bruno@clisp.org>
40770
40771         * modules/array-mergesort-tests: New file.
40772         * tests/test-array-mergesort.c: New file.
40773
40774         New module 'array-mergesort'.
40775         * modules/array-mergesort: New file.
40776         * lib/array-mergesort.h: New file.
40777
40778 2009-02-15  Bruno Haible  <bruno@clisp.org>
40779
40780         Fix 2009-02-07 commit.
40781         * lib/gen-uni-tables.c (output_predicate, output_category,
40782         output_combclass, output_bidi_category, output_decimal_digit,
40783         output_digit, output_numeric, output_mirror, output_scripts,
40784         output_ident_category, output_simple_mapping): Fix format directives.
40785         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40786
40787 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40788
40789         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40790         fixes are available from IBM.
40791
40792 2009-02-13  Jim Meyering  <meyering@redhat.com>
40793
40794         fts: arrange not to stat non-directories in more cases
40795         This makes GNU find (when it doesn't need to stat each file)
40796         *much* more efficient at traversing reiserfs file systems.
40797         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40798         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40799         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40800         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40801         (leaf_optimization_applies): New function.
40802         (LCO_hash, LCO_compare): New helper functions.
40803         (link_count_optimize_ok): New function.
40804         (fts_stat): Initialize new member (if dir).
40805         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40806         we've just stat'ed a directory.  Skip the stat call when possible.
40807         ---
40808         Note this AFS-related exchange:
40809         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40810         and note find's pioctl call in find/fstype.c.
40811         But that is necessary only if you want to enable the
40812         optimization for AFS, and for now, I don't.
40813
40814         fts: move a function definition "up" (no semantic change)
40815         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40816         "up" to precede upcoming use of a related function.
40817
40818 2009-02-11  Jim Meyering  <meyering@redhat.com>
40819
40820         fts: correct internal computation of nlinks (optimization-related)
40821         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40822         whether the current entry is a directory, so don't test it.
40823
40824 2009-02-10  Bruno Haible  <bruno@clisp.org>
40825
40826         Tests for module 'uniwbrk/ulc-wordbreaks'.
40827         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40828         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40829         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40830
40831         Tests for module 'uniwbrk/u32-wordbreaks'.
40832         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40833         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40834
40835         Tests for module 'uniwbrk/u16-wordbreaks'.
40836         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40837         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40838
40839         Tests for module 'uniwbrk/u8-wordbreaks'.
40840         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40841         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40842
40843 2009-02-10  Bruno Haible  <bruno@clisp.org>
40844
40845         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40846         property.
40847         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40848         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40849         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40850
40851 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40852
40853         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40854         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40855
40856 2009-02-10  Bruno Haible  <bruno@clisp.org>
40857
40858         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40859         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40860         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40861         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40862         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40863         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40864
40865 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40866
40867         * lib/sockets.h (gl_fd_to_handle): New function.
40868
40869         * tests/test-sockets.c: Call gl_fd_to_handle.
40870
40871 2009-02-09  Bruno Haible  <bruno@clisp.org>
40872
40873         * doc/havelib.texi: Document the conventions on bi-arch systems.
40874
40875 2009-02-08  Bruno Haible  <bruno@clisp.org>
40876
40877         Document the AC_LIB_LINKFLAGS macro.
40878         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40879         * doc/gnulib.texi: Include it.
40880
40881 2009-02-08  Bruno Haible  <bruno@clisp.org>
40882
40883         Fix wrong order of sections, compared to TOC.
40884         * doc/gnulib.texi: Include relocatable-maint.texi after the
40885         "Regular expressions" node, not before.
40886
40887 2009-02-08  Bruno Haible  <bruno@clisp.org>
40888
40889         Tests for module 'unicase/totitle'.
40890         * modules/unicase/totitle-tests: New file.
40891
40892         Tests for module 'unicase/tolower'.
40893         * modules/unicase/tolower-tests: New file.
40894
40895         Tests for module 'unicase/toupper'.
40896         * modules/unicase/toupper-tests: New file.
40897         * tests/unicase/test-mapping-part1.h: New file.
40898         * tests/unicase/test-mapping-part2.h: New file.
40899
40900         New module 'unicase/totitle'.
40901         * modules/unicase/totitle: New file.
40902         * lib/unicase/totitle.c: New file.
40903
40904         New module 'unicase/tolower'.
40905         * modules/unicase/tolower: New file.
40906         * lib/unicase/tolower.c: New file.
40907
40908         New module 'unicase/toupper'.
40909         * modules/unicase/toupper: New file.
40910         * lib/unicase/toupper.c: New file.
40911         * lib/unicase/simple-mapping.h: New file.
40912
40913         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40914         (mapping_table): New structure.
40915         (output_simple_mapping): New function.
40916         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40917         * modules/gen-uni-tables (Description): Update.
40918         * lib/unicase/toupper.h: New file, automatically generated by
40919         gen-uni-tables.
40920         * lib/unicase/tolower.h: New file, automatically generated by
40921         gen-uni-tables.
40922         * lib/unicase/totitle.h: New file, automatically generated by
40923         gen-uni-tables.
40924         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40925         gen-uni-tables.
40926         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40927         gen-uni-tables.
40928         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40929         gen-uni-tables.
40930
40931         New module 'unicase/base'.
40932         * modules/unicase/base: New file.
40933         * lib/unicase.h: New file.
40934
40935 2009-02-08  Bruno Haible  <bruno@clisp.org>
40936
40937         New module 'uniwbrk/ulc-wordbreaks'.
40938         * modules/uniwbrk/ulc-wordbreaks: New file.
40939         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40940
40941         New module 'uniwbrk/u32-wordbreaks'.
40942         * modules/uniwbrk/u32-wordbreaks: New file.
40943         * lib/uniwbrk/u32-wordbreaks.c: New file.
40944
40945         New module 'uniwbrk/u16-wordbreaks'.
40946         * modules/uniwbrk/u16-wordbreaks: New file.
40947         * lib/uniwbrk/u16-wordbreaks.c: New file.
40948
40949         New module 'uniwbrk/u8-wordbreaks'.
40950         * modules/uniwbrk/u8-wordbreaks: New file.
40951         * lib/uniwbrk/u8-wordbreaks.c: New file.
40952         * lib/uniwbrk/u-wordbreaks.h: New file.
40953
40954         New module 'uniwbrk/table'.
40955         * modules/uniwbrk/table: New file.
40956         * lib/uniwbrk/wbrktable.h: New file.
40957         * lib/uniwbrk/wbrktable.c: New file.
40958
40959         New module 'uniwbrk/wordbreak-property'.
40960         * modules/uniwbrk/wordbreak-property: New file.
40961         * lib/uniwbrk/wordbreak-property.c: New file.
40962
40963         * lib/gen-uni-tables.c (WBP_*): New enum items.
40964         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40965         (unicode_org_wbp): New variable.
40966         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40967         New functions.
40968         (wbp_table): New structure.
40969         (output_wbp, output_wbrk_tables): New functions.
40970         (main): Accept additional argument. Invoke fill_org_wbp,
40971         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40972         output_wbrk_tables.
40973         * modules/gen-uni-tables (Description): Update.
40974         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40975         gen-uni-tables.
40976
40977         New module 'uniwbrk/base'.
40978         * modules/uniwbrk/base: New file.
40979         * lib/uniwbrk.h: New file.
40980
40981 2009-02-08  Bruno Haible  <bruno@clisp.org>
40982
40983         Update to Unicode 5.1.0.
40984         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40985         U+2185..U+2188.
40986         (is_property_default_ignorable_code_point): Don't include characters
40987         of category Cc or Cs and not-a-characters.
40988         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40989         U+0D79, U+109E, U+109F, U+A60C.
40990         * lib/unictype/bidi_of.h: Regenerated.
40991         * lib/unictype/blocks.h: Regenerated.
40992         * lib/unictype/categ_C.h: Regenerated.
40993         * lib/unictype/categ_Cf.h: Regenerated.
40994         * lib/unictype/categ_Cn.h: Regenerated.
40995         * lib/unictype/categ_L.h: Regenerated.
40996         * lib/unictype/categ_Ll.h: Regenerated.
40997         * lib/unictype/categ_Lm.h: Regenerated.
40998         * lib/unictype/categ_Lo.h: Regenerated.
40999         * lib/unictype/categ_Lu.h: Regenerated.
41000         * lib/unictype/categ_M.h: Regenerated.
41001         * lib/unictype/categ_Mc.h: Regenerated.
41002         * lib/unictype/categ_Me.h: Regenerated.
41003         * lib/unictype/categ_Mn.h: Regenerated.
41004         * lib/unictype/categ_N.h: Regenerated.
41005         * lib/unictype/categ_Nd.h: Regenerated.
41006         * lib/unictype/categ_Nl.h: Regenerated.
41007         * lib/unictype/categ_No.h: Regenerated.
41008         * lib/unictype/categ_P.h: Regenerated.
41009         * lib/unictype/categ_Pd.h: Regenerated.
41010         * lib/unictype/categ_Pe.h: Regenerated.
41011         * lib/unictype/categ_Pf.h: Regenerated.
41012         * lib/unictype/categ_Pi.h: Regenerated.
41013         * lib/unictype/categ_Po.h: Regenerated.
41014         * lib/unictype/categ_Ps.h: Regenerated.
41015         * lib/unictype/categ_S.h: Regenerated.
41016         * lib/unictype/categ_Sk.h: Regenerated.
41017         * lib/unictype/categ_Sm.h: Regenerated.
41018         * lib/unictype/categ_So.h: Regenerated.
41019         * lib/unictype/categ_of.h: Regenerated.
41020         * lib/unictype/combining.h: Regenerated.
41021         * lib/unictype/ctype_alnum.h: Regenerated.
41022         * lib/unictype/ctype_alpha.h: Regenerated.
41023         * lib/unictype/ctype_graph.h: Regenerated.
41024         * lib/unictype/ctype_lower.h: Regenerated.
41025         * lib/unictype/ctype_print.h: Regenerated.
41026         * lib/unictype/ctype_punct.h: Regenerated.
41027         * lib/unictype/ctype_upper.h: Regenerated.
41028         * lib/unictype/decdigit.h: Regenerated.
41029         * lib/unictype/digit.h: Regenerated.
41030         * lib/unictype/mirror.h: Regenerated.
41031         * lib/unictype/numeric.h: Regenerated.
41032         * lib/unictype/pr_alphabetic.h: Regenerated.
41033         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41034         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41035         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41036         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41037         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41038         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41039         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41040         * lib/unictype/pr_combining.h: Regenerated.
41041         * lib/unictype/pr_dash.h: Regenerated.
41042         * lib/unictype/pr_decimal_digit.h: Regenerated.
41043         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41044         * lib/unictype/pr_deprecated.h: Regenerated.
41045         * lib/unictype/pr_diacritic.h: Regenerated.
41046         * lib/unictype/pr_extender.h: Regenerated.
41047         * lib/unictype/pr_format_control.h: Regenerated.
41048         * lib/unictype/pr_grapheme_base.h: Regenerated.
41049         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41050         * lib/unictype/pr_grapheme_link.h: Regenerated.
41051         * lib/unictype/pr_id_continue.h: Regenerated.
41052         * lib/unictype/pr_id_start.h: Regenerated.
41053         * lib/unictype/pr_ideographic.h: Regenerated.
41054         * lib/unictype/pr_ignorable_control.h: Regenerated.
41055         * lib/unictype/pr_lowercase.h: Regenerated.
41056         * lib/unictype/pr_math.h: Regenerated.
41057         * lib/unictype/pr_numeric.h: Regenerated.
41058         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41059         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41060         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41061         * lib/unictype/pr_other_id_continue.h: Regenerated.
41062         * lib/unictype/pr_other_lowercase.h: Regenerated.
41063         * lib/unictype/pr_other_math.h: Regenerated.
41064         * lib/unictype/pr_punctuation.h: Regenerated.
41065         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41066         * lib/unictype/pr_soft_dotted.h: Regenerated.
41067         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41068         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41069         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41070         * lib/unictype/pr_uppercase.h: Regenerated.
41071         * lib/unictype/pr_xid_continue.h: Regenerated.
41072         * lib/unictype/pr_xid_start.h: Regenerated.
41073         * lib/unictype/pr_zero_width.h: Regenerated.
41074         * lib/unictype/scripts.h: Regenerated.
41075         * lib/unictype/scripts_byname.gperf: Regenerated.
41076         * lib/unictype/sy_java_ident.h: Regenerated.
41077         * lib/unilbrk/lbrkprop1.h: Regenerated.
41078         * lib/unilbrk/lbrkprop2.h: Regenerated.
41079         * tests/unictype/test-categ_C.c: Regenerated.
41080         * tests/unictype/test-categ_Cf.c: Regenerated.
41081         * tests/unictype/test-categ_Cn.c: Regenerated.
41082         * tests/unictype/test-categ_L.c: Regenerated.
41083         * tests/unictype/test-categ_Ll.c: Regenerated.
41084         * tests/unictype/test-categ_Lm.c: Regenerated.
41085         * tests/unictype/test-categ_Lo.c: Regenerated.
41086         * tests/unictype/test-categ_Lu.c: Regenerated.
41087         * tests/unictype/test-categ_M.c: Regenerated.
41088         * tests/unictype/test-categ_Mc.c: Regenerated.
41089         * tests/unictype/test-categ_Me.c: Regenerated.
41090         * tests/unictype/test-categ_Mn.c: Regenerated.
41091         * tests/unictype/test-categ_N.c: Regenerated.
41092         * tests/unictype/test-categ_Nd.c: Regenerated.
41093         * tests/unictype/test-categ_Nl.c: Regenerated.
41094         * tests/unictype/test-categ_No.c: Regenerated.
41095         * tests/unictype/test-categ_P.c: Regenerated.
41096         * tests/unictype/test-categ_Pd.c: Regenerated.
41097         * tests/unictype/test-categ_Pe.c: Regenerated.
41098         * tests/unictype/test-categ_Pf.c: Regenerated.
41099         * tests/unictype/test-categ_Pi.c: Regenerated.
41100         * tests/unictype/test-categ_Po.c: Regenerated.
41101         * tests/unictype/test-categ_Ps.c: Regenerated.
41102         * tests/unictype/test-categ_S.c: Regenerated.
41103         * tests/unictype/test-categ_Sk.c: Regenerated.
41104         * tests/unictype/test-categ_Sm.c: Regenerated.
41105         * tests/unictype/test-categ_So.c: Regenerated.
41106         * tests/unictype/test-ctype_alnum.c: Regenerated.
41107         * tests/unictype/test-ctype_alpha.c: Regenerated.
41108         * tests/unictype/test-ctype_graph.c: Regenerated.
41109         * tests/unictype/test-ctype_lower.c: Regenerated.
41110         * tests/unictype/test-ctype_print.c: Regenerated.
41111         * tests/unictype/test-ctype_punct.c: Regenerated.
41112         * tests/unictype/test-ctype_upper.c: Regenerated.
41113         * tests/unictype/test-decdigit.h: Regenerated.
41114         * tests/unictype/test-digit.h: Regenerated.
41115         * tests/unictype/test-numeric.h: Regenerated.
41116         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41117         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41118         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41119         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41120         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41121         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41122         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41123         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41124         * tests/unictype/test-pr_combining.c: Regenerated.
41125         * tests/unictype/test-pr_dash.c: Regenerated.
41126         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41127         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41128         * tests/unictype/test-pr_deprecated.c: Regenerated.
41129         * tests/unictype/test-pr_diacritic.c: Regenerated.
41130         * tests/unictype/test-pr_extender.c: Regenerated.
41131         * tests/unictype/test-pr_format_control.c: Regenerated.
41132         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41133         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41134         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41135         * tests/unictype/test-pr_id_continue.c: Regenerated.
41136         * tests/unictype/test-pr_id_start.c: Regenerated.
41137         * tests/unictype/test-pr_ideographic.c: Regenerated.
41138         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41139         * tests/unictype/test-pr_lowercase.c: Regenerated.
41140         * tests/unictype/test-pr_math.c: Regenerated.
41141         * tests/unictype/test-pr_numeric.c: Regenerated.
41142         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41143         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41144         Regenerated.
41145         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41146         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41147         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41148         * tests/unictype/test-pr_other_math.c: Regenerated.
41149         * tests/unictype/test-pr_punctuation.c: Regenerated.
41150         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41151         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41152         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41153         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41154         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41155         * tests/unictype/test-pr_uppercase.c: Regenerated.
41156         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41157         * tests/unictype/test-pr_xid_start.c: Regenerated.
41158         * tests/unictype/test-pr_zero_width.c: Regenerated.
41159
41160         Update to Unicode 5.1.0.
41161         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41162         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41163         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41164         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41165         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41166         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41167         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41168         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41169         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41170         (nonspacing_table_ind): Update.
41171         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41172
41173         Update to Unicode 5.1.0.
41174         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41175         code transform.
41176         * lib/uniname/uniname.c (unicode_character_name,
41177         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41178         * lib/uniname/uninames.h: Regenerated.
41179         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41180
41181 2009-02-07  Bruno Haible  <bruno@clisp.org>
41182
41183         Merge gen-ctype and gen-lbrk into a single program.
41184         * lib/gen-uni-tables.c: New file, incorporating
41185         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41186         Add directory prefixes to the names of the generated files.
41187         * lib/unictype/gen-ctype.c: Remove file.
41188         * lib/unilbrk/gen-lbrk.c: Remove file.
41189         * modules/gen-uni-tables: New file.
41190         * modules/unictype/gen-ctype: Remove file.
41191         * modules/unilbrk/gen-lbrk: Remove file.
41192
41193 2009-02-07  Bruno Haible  <bruno@clisp.org>
41194
41195         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41196
41197         New module 'unistr/u32-strcoll'.
41198         * modules/unistr/u32-strcoll: New file.
41199         * lib/unistr/u32-strcoll.c: New file.
41200
41201         New module 'unistr/u16-strcoll'.
41202         * modules/unistr/u16-strcoll: New file.
41203         * lib/unistr/u16-strcoll.c: New file.
41204
41205         New module 'unistr/u8-strcoll'.
41206         * modules/unistr/u8-strcoll: New file.
41207         * lib/unistr/u8-strcoll.c: New file.
41208         * lib/unistr/u-strcoll.h: New file.
41209
41210 2009-02-07  Bruno Haible  <bruno@clisp.org>
41211
41212         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41213         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41214         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41215         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41216         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41217         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41218
41219 2009-02-07  Bruno Haible  <bruno@clisp.org>
41220
41221         Make 64-bit clean.
41222         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41223         output_combclass, output_bidi_category, output_decimal_digit,
41224         output_digit, output_numeric, output_mirror, output_scripts,
41225         output_ident_category): Use proper width specifier in format strings.
41226
41227 2009-02-07  Bruno Haible  <bruno@clisp.org>
41228
41229         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41230         failure behaviour.
41231
41232 2009-02-07  Jim Meyering  <meyering@redhat.com>
41233
41234         regex: avoid compilation failure with upcoming gcc-4.4
41235         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41236         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41237         "... error: integer overflow in preprocessor expression".
41238
41239 2009-02-05  Ben Pfaff  <blp@gnu.org>
41240
41241         Fix link errors on Windows when close module is used.
41242         * modules/close: Add $(LIB_CLOSE) to Link section.
41243         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41244         $(LIB_CLOSE) on Windows.
41245
41246 2009-02-05  Jim Meyering  <meyering@redhat.com>
41247
41248         still avoid unused-parameter warnings, but do it cleanly
41249         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41250         (get_fs_usage): Cast to void instead.
41251         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41252         (dev_from_mount_options, read_file_system_list): Cast to void.
41253         Prompted by Bruno Haible.
41254
41255 2009-02-04  Jim Meyering  <meyering@redhat.com>
41256
41257         fsusage.c: correct copyright year
41258         * lib/fsusage.c: Reflect year in which the change is pushed into
41259
41260         avoid misc. warnings
41261         * lib/fsusage.c (UNUSED_PARAM): Define.
41262         (get_fs_usage): Mark parameter "disk" as unused.
41263         * lib/getugroups.c (getgrent): Use "void" in prototype.
41264         * lib/mountlist.c: Mark unused parameters.
41265         (read_file_system_list): Declare a local with "const".
41266         * lib/nanosleep.c (getnow): Declare static.
41267         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41268
41269         dirfd: set errno upon failure
41270         * lib/dirfd.c: Include <errno.h>.
41271         Set errno to ENOTSUP when returning -1.
41272         * modules/dirfd (Depends-on): Add errno.
41273         Suggested by John Kodis <kodis@comcast.net>.
41274
41275 2009-02-01  Bruno Haible  <bruno@clisp.org>
41276
41277         Don't assume sizeof (long) >= sizeof (void *).
41278         * lib/memcmp.c: Include stdint.h.
41279         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41280         srcp2 to 'const byte *'.
41281         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41282         types to uintptr_t.
41283         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41284         * modules/memcmp (Depends-on): Add stdint.
41285         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41286
41287 2009-01-30  Eric Blake  <ebb9@byu.net>
41288
41289         fix more require-before-expand issues
41290         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41291         expand, AC_PROG_AWK.
41292         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41293
41294 2009-01-28  Eric Blake  <ebb9@byu.net>
41295
41296         version-etc: use consistent URL formatting
41297         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41298         Improve formatting.  Use fputs for string without %.
41299
41300 2009-01-28  Jim Meyering  <meyering@redhat.com>
41301
41302         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41303         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41304         "underquoted definition of NAME" from autoconf-2.59.
41305
41306 2009-01-28  Bruno Haible  <bruno@clisp.org>
41307
41308         * doc/gnulib.texi: Add "Obsolete modules" to index.
41309
41310 2009-01-28  Jim Meyering  <meyering@redhat.com>
41311
41312         useless-if-before-free: recognize more variants
41313         * build-aux/useless-if-before-free: Also recognize e.g.,
41314         if (NULL != p) free (p);
41315
41316 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41317
41318         test-getaddrinfo: skip (don't fail) this test when there's no network
41319         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41320         on the presumption that it means you lack network access.
41321
41322 2009-01-26  Jim Meyering  <meyering@redhat.com>
41323
41324         fflush: avoid warnings on modern systems
41325         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41326         pos and result, into scopes where they're used.
41327
41328 2009-01-26  Eric Blake  <ebb9@byu.net>
41329
41330         Silence warning reintroduced by recent extensions patch.
41331         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41332         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41333         autoconf.
41334
41335         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41336         * m4/00gnulib.m4: New file.
41337         * gnulib-tool (func_get_filelist): Always use it.
41338         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41339         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41340
41341 2009-01-25  Bruno Haible  <bruno@clisp.org>
41342
41343         Make test-quotearg work on MacOS X and AIX.
41344         * tests/test-quotearg.sh: New file.
41345         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41346         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41347         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41348         include <libintl.h>.
41349         (fake_locale): Remove variable.
41350         (gettext, dgettext, dcgettext): Remove functions.
41351         (main): Instead of setting a fake locale, set a real locale. Call
41352         textdomain and bindtextdomain.
41353         * modules/quotearg-tests (Files): Add the new files.
41354         (Depends-on): Add gettext, setenv, unsetenv.
41355         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41356         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41357         Augment TESTS_ENVIRONMENT.
41358
41359 2009-01-25  Bruno Haible  <bruno@clisp.org>
41360
41361         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41362         fr_FR.ISO8859-1 locale on MacOS X.
41363         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41364         ja_JP.eucJP locale on MacOS X.
41365         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41366         zh_CN.GB18030 locale on MacOS X.
41367
41368 2009-01-25  Bruno Haible  <bruno@clisp.org>
41369
41370         Avoid link errors on MacOS X 10.3.
41371         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41372         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41373
41374 2009-01-25  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41377         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41378         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41379         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41380         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41381         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41382         posix_spawnattr_init, posix_spawnattr_setsigmask,
41383         posix_spawnattr_setflags, posix_spawnattr_destroy.
41384
41385         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41386         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41387         * modules/execute (Files): Remove m4/posix_spawn.m4.
41388         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41389         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41390         posix_spawnattr_init, posix_spawnattr_setsigmask,
41391         posix_spawnattr_setflags, posix_spawnattr_destroy.
41392
41393 2009-01-25  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/glthread/threadlib.c: Include <stdlib.h>.
41396
41397 2009-01-25  Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/glthread/threadlib.c (dummy): New declaration.
41400
41401 2009-01-25  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41404         multibyte characters also for the GB18030 encoding. Don't crash when
41405         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41406
41407 2009-01-25  Bruno Haible  <bruno@clisp.org>
41408
41409         Avoid redefining 'struct random_data' on OSF/1 5.1.
41410         * lib/stdlib.in.h: Include <random.h> if it exists.
41411         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41412         HAVE_RANDOM_H. Include <random.h> when testing whether
41413         'struct random_data' exists.
41414         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41415
41416 2009-01-25  Bruno Haible  <bruno@clisp.org>
41417
41418         Don't install charset.alias on MacOS X >= 10.3.
41419         * lib/localcharset.c (DARWIN7): New macro.
41420         (get_charset_aliases): Hardcode the result for Darwin7.
41421         * modules/localcharset (install-exec-local): Don't install
41422         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41423
41424 2009-01-25  Bruno Haible  <bruno@clisp.org>
41425
41426         Don't install charset.alias on mingw and Cygwin.
41427         * modules/localcharset (install-exec-local): Don't install
41428         charset.alias on mingw and Cygwin, if the file does not yet exist.
41429         The result for these platforms is hardcoded in localcharset.c.
41430
41431 2009-01-25  Bruno Haible  <bruno@clisp.org>
41432
41433         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41435         before requiring AC_USE_SYSTEM_EXTENSIONS.
41436
41437 2009-01-25  Jim Meyering  <meyering@redhat.com>
41438
41439         c-strtod: avoid warnings
41440         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41441         "assignment discards qualifiers from pointer target type" warnings.
41442
41443 2009-01-24  Bruno Haible  <bruno@clisp.org>
41444
41445         Add support for non-UTF-8 locales on MacOS X.
41446         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41447         canonical encodings. For Darwin 7 and newer, don't map traditional
41448         encodings to UTF-8.
41449         Reported by Vincent Lefevre <vincent@vinc17.org>
41450         at <http://savannah.gnu.org/bugs/?25235>.
41451
41452 2009-01-24  Bruno Haible  <bruno@clisp.org>
41453
41454         * doc/gnulib.texi (Obsolete modules): New section.
41455         Reported by Mike Frysinger <vapier@gentoo.org>.
41456
41457 2009-01-24  Bruno Haible  <bruno@clisp.org>
41458
41459         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41460         (%.dvi): New rule.
41461
41462 2009-01-24  Bruno Haible  <bruno@clisp.org>
41463
41464         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41465         Reported by Eric Blake.
41466
41467 2009-01-24  Bruno Haible  <bruno@clisp.org>
41468
41469         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41470         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41471         Reported by Gary V. Vaughan <gary@gnu.org>.
41472
41473 2009-01-24  Bruno Haible  <bruno@clisp.org>
41474
41475         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41476
41477 2009-01-23  Bruno Haible  <bruno@clisp.org>
41478
41479         Make c-strtod, c-strtold usable in libraries.
41480         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41481         (C_STRTOD): Call strdup instead of xstrdup.
41482         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41483         * modules/c-strtold (Depends-on): Likewise.
41484         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41485         * NEWS: Mention the change.
41486         Reported by Michael Gold <mgold@ncf.ca>.
41487
41488 2009-01-23  Jim Meyering  <meyering@redhat.com>
41489
41490         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41491         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41492         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41493
41494 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41495
41496         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41497         GNU CoreUtils.
41498         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41499         * modules/version-etc (Description): Update.
41500
41501 2009-01-22  Bruno Haible  <bruno@clisp.org>
41502
41503         Cache the C locale object.
41504         * lib/c-strtod.c (c_locale_cache): New variable.
41505         (c_locale): New function.
41506         (C_STRTOD): Use it, and don't call freelocale.
41507         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41508         Suggested by Paolo Bonzini.
41509
41510 2009-01-21  Bruno Haible  <bruno@clisp.org>
41511
41512         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41513         conditions other than overflow.
41514
41515 2009-01-21  Bruno Haible  <bruno@clisp.org>
41516
41517         * lib/c-strtod.c: Include errno.h.
41518         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41519         value from STRTOD_L and STRTOD.
41520
41521 2009-01-21  Bruno Haible  <bruno@clisp.org>
41522         and Jim Meyering  <meyering@redhat.com>
41523
41524         nanosleep: skip configure test (fail it) for apple universal builds
41525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41526         universal builds, assume that nanosleep does not work.
41527         * modules/nanosleep (Depends-on): Add multiarch.
41528
41529         mktime: skip configure test (fail it) for apple universal builds
41530         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41531         universal builds, assume that mktime does not work.
41532         * modules/mktime (Depends-on): Add multiarch.
41533
41534 2009-01-21  Eric Blake  <ebb9@byu.net>
41535
41536         multiarch: avoid expand-before-require warning
41537         * modules/multiarch (configure.ac): Require, rather than expand,
41538         gl_MULTIARCH.
41539         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41540         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41541         enforce that all clients require it.  Partial reversion of
41542         2008-12-29 patch.
41543
41544         error: avoid expand-before-require warning
41545         * modules/errno (configure.ac): Require, rather than expand,
41546         gl_HEADER_ERRNO_H.
41547         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41548         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41549         enforce that all clients require it.
41550
41551         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41552         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41553         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41554         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41555
41556 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41557
41558         Revert:
41559         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41560
41561         regex: do not depend on obsolete modules.
41562         * modules/regex: Remove memcmp and memmove.
41563
41564 2009-01-20  Bruno Haible  <bruno@clisp.org>
41565
41566         Make the 'link' module link on Windows NT 4.
41567         * lib/link.c (_WIN32_WINNT): Don't define.
41568         (CreateHardLinkFuncType): New type.
41569         (CreateHardLinkFunc, initialized): New variables.
41570         (initialize): New function.
41571         (link): Invoke CreateHardLink indirectly through the function pointer.
41572
41573 2009-01-20  Bruno Haible  <bruno@clisp.org>
41574
41575         Fix compilation failure on mingw.
41576         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41577
41578 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41579
41580         * doc/c-strtod.texi: Mention a couple of restrictions.
41581
41582 2009-01-20  Jim Meyering  <meyering@redhat.com>
41583
41584         gettimeofday: move more declarations out of functions
41585         * lib/gettimeofday.c: Move extern declarations of tzset and
41586         gmtime out of containing functions.  Prompted by Bruno Haible.
41587
41588 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41589
41590         regex: do not depend on obsolete modules.
41591         * modules/regex: Remove memcmp and memmove.
41592
41593 2009-01-19  Bruno Haible  <bruno@clisp.org>
41594
41595         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41596         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41597         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41598         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41599         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41600
41601 2009-01-19  Bruno Haible  <bruno@clisp.org>
41602
41603         * tests/test-link.c: Include <errno.h>.
41604         (main): Exit with code 77 when a hard link cannot be created due to
41605         the file system.
41606         * tests/test-link.sh: Skip test when a hard link cannot be created due
41607         to the file system.
41608         Suggested by Eric Blake.
41609
41610 2009-01-19  Martin Lambers  <marlam@marlam.de>
41611
41612         * modules/link-tests: New file.
41613         * tests/test-link.sh: New file.
41614         * tests/test-link.c: New file.
41615
41616 2009-01-19  Eric Blake  <ebb9@byu.net>
41617
41618         doc: mention another function added in cygwin 1.7.0
41619         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41620         Another new function in cygwin 1.7.
41621
41622 2009-01-19  Bruno Haible  <bruno@clisp.org>
41623
41624         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41625         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41626         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41627         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41628         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41629         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41630         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41631         * m4/md4.m4 (gl_MD4): Likewise.
41632         * m4/md5.m4 (gl_MD5): Likewise.
41633         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41634         * m4/sha1.m4 (gl_SHA1): Likewise.
41635         * m4/sha256.m4 (gl_SHA256): Likewise.
41636         * m4/sha512.m4 (gl_SHA512): Likewise.
41637
41638 2009-01-19  Bruno Haible  <bruno@clisp.org>
41639
41640         * modules/uniname/uniname-tests (Depends-on): Add progname.
41641         * tests/uniname/test-uninames.c: Include progname.h.
41642         (main): Call set_program_name.
41643
41644         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41645         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41646         (main): Call set_program_name.
41647
41648         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41649         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41650         (main): Call set_program_name.
41651
41652         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41653         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41654         (main): Call set_program_name.
41655
41656         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41657         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41658         (main): Call set_program_name.
41659
41660         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41661         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41662         (main): Call set_program_name.
41663
41664         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41665         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41666         (main): Call set_program_name.
41667
41668         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41669         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41670         (main): Call set_program_name.
41671
41672         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41673         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41674         (main): Call set_program_name.
41675
41676 2009-01-19  Eric Blake  <ebb9@byu.net>
41677
41678         test-unistd: test previous patch
41679         * tests/test-unistd.c: Test *_FILENO macros.
41680
41681         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41682         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41683         Guarantee a definition.
41684         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41685         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41686         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41687         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41688         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41689         Likewise.
41690         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41691         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41692         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41693         Likewise.
41694         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41695         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41696         (STDERR_FILENO): Likewise.
41697         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41698         (STDERR_FILENO): Likewise.
41699         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41700         (STDERR_FILENO): Likewise.
41701         Reported by Elbert Pol.
41702
41703 2009-01-19  Eric Blake  <ebb9@byu.net>
41704
41705         doc: mention more functions added in cygwin 1.7.0
41706         * doc/posix-functions/abort.texi (abort): Update wording related
41707         to cygwin.
41708         * doc/posix-functions/daylight.texi (daylight): Likewise.
41709         * doc/posix-functions/optarg.texi (optarg): Likewise.
41710         * doc/posix-functions/optarg.texi (opterr): Likewise.
41711         * doc/posix-functions/optarg.texi (optind): Likewise.
41712         * doc/posix-functions/optarg.texi (optopt): Likewise.
41713         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41714         worked in 1.5.x, and was withdrawn in 1.7.
41715         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41716         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41717         cygwin versions.
41718         * doc/posix-functions/perror.texi (perror): Likewise.
41719         * doc/posix-functions/printf.texi (printf): Likewise.
41720         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41721         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41722         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41723         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41724         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41725         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41726         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41727         Likewise.
41728         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41729         Likewise.
41730         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41731         this function.
41732         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41733         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41734         Likewise.
41735         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41736         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41737         * doc/posix-functions/confstr.texi (confstr): Likewise.
41738         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41739         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41740         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41741         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41742         * doc/posix-functions/fputws.texi (fputws): Likewise.
41743         * doc/posix-functions/fwide.texi (fwide): Likewise.
41744         * doc/posix-functions/getwc.texi (getwc): Likewise.
41745         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41746         * doc/posix-functions/putwc.texi (putwc): Likewise.
41747         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41748         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41749         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41750         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41751         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41752         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41753         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41754         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41755         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41756         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41757         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41758
41759 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41760
41761         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41762         * lib/ioctl.c: Include <sys/ioctl.h>.
41763
41764 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41765
41766         * modules/getdate-tests (Depends-on): Add progname.
41767         * tests/test-getdate.c: Use progname module, to avoid link errors
41768         on non-glibc systems.
41769
41770 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41771
41772         * modules/filenamecat-tests (Depends-on): Add progname.
41773         * modules/fstrcmp-tests (Depends-on): Likewise.
41774
41775         * tests/test-filenamecat.c: Use progname module, to avoid link
41776         errors on non-glibc systems.
41777         * tests/test-fstrcmp.c: Likewise.
41778
41779 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41780
41781         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41782         * lib/gettimeofday.c: Move extern declaration out of function.
41783
41784 2009-01-18  Bruno Haible  <bruno@clisp.org>
41785
41786         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41787         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41788         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41789
41790 2009-01-18  Bruno Haible  <bruno@clisp.org>
41791
41792         * lib/strftime.c (MEMPCPY): Remove unused macro.
41793         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41794
41795 2009-01-18  Martin Lambers  <marlam@marlam.de>
41796
41797         New module 'link'.
41798         * lib/unistd.in.h (link): New declaration.
41799         * lib/link.c: New file.
41800         * m4/link.m4: New file.
41801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41802         HAVE_LINK.
41803         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41804         * modules/link: New file.
41805         * doc/posix-functions/link.texi: Mention the new module.
41806
41807 2009-01-18  Bruno Haible  <bruno@clisp.org>
41808
41809         * tests/test-avltree_list.c (main): Call set_program_name.
41810         * tests/test-avltree_oset.c (main): Likewise.
41811         * tests/test-obstack-printf.c: Include progname.h.
41812         (main): Call set_program_name.
41813         * tests/test-quotearg.c: Include progname.h.
41814         (main): Call set_program_name.
41815         * tests/test-xmemdup0.c: Include progname.h.
41816         (main): Call set_program_name.
41817
41818 2009-01-18  Bruno Haible  <bruno@clisp.org>
41819
41820         New module 'alphasort'.
41821         * lib/dirent.in.h (alphasort): New declaration.
41822         * lib/alphasort.c: New file, from glibc with modifications.
41823         * m4/alphasort.m4: New file.
41824         * modules/alphasort: New file.
41825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41826         HAVE_ALPHASORT.
41827         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41828         HAVE_ALPHASORT.
41829         * doc/posix-functions/alphasort.texi: Mention the new module and the
41830         portability problems.
41831
41832 2009-01-18  Bruno Haible  <bruno@clisp.org>
41833
41834         New module 'scandir'.
41835         * lib/dirent.in.h (scandir): New declaration.
41836         * lib/scandir.c: New file, from glibc with modifications.
41837         * m4/scandir.m4: New file.
41838         * modules/scandir: New file.
41839         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41840         HAVE_SCANDIR.
41841         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41842         HAVE_SCANDIR.
41843         * doc/posix-functions/scandir.texi: Mention the new module and the
41844         portability problems.
41845
41846 2009-01-17  Bruno Haible  <bruno@clisp.org>
41847
41848         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41849         Update documentation.
41850         (func_remove_suffix): Escape all dots in the suffix. Update
41851         documentation.
41852         (func_filter_filelist): Update documentation.
41853         Reported by Ralf Wildenhues.
41854
41855 2009-01-17  Bruno Haible  <bruno@clisp.org>
41856
41857         * modules/dprintf-posix-tests: New file.
41858         * tests/test-dprintf-posix.sh: New file.
41859         * tests/test-dprintf-posix.c: New file.
41860
41861         New modules 'dprintf', 'dprintf-posix'.
41862         * lib/stdio.in.h (dprintf): New declaration.
41863         * lib/dprintf.c: New file.
41864         * m4/dprintf.m4: New file.
41865         * m4/dprintf-posix.m4: New file.
41866         * modules/dprintf: New file.
41867         * modules/dprintf-posix: New file.
41868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41869         HAVE_DPRINTF, REPLACE_DPRINTF.
41870         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41871         HAVE_DPRINTF, REPLACE_DPRINTF.
41872         * doc/posix-functions/dprintf.texi: Mention the new modules.
41873
41874 2009-01-17  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/vdprintf-posix-tests: New file.
41877         * tests/test-vdprintf-posix.sh: New file.
41878         * tests/test-vdprintf-posix.c: New file.
41879
41880         New modules 'vdprintf', 'vdprintf-posix'.
41881         * lib/stdio.in.h (vdprintf): New declaration.
41882         * lib/vdprintf.c: New file.
41883         * m4/vdprintf.m4: New file.
41884         * m4/vdprintf-posix.m4: New file.
41885         * modules/vdprintf: New file.
41886         * modules/vdprintf-posix: New file.
41887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41888         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41889         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41890         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41891         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41892
41893 2009-01-17  Bruno Haible  <bruno@clisp.org>
41894
41895         Fix replacement of fopen on mingw.
41896         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41897         mingw.
41898
41899 2009-01-17  Bruno Haible  <bruno@clisp.org>
41900
41901         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41902         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41903
41904 2009-01-17  Bruno Haible  <bruno@clisp.org>
41905
41906         Avoid test-fflush2.sh failure on mingw.
41907         * tests/test-fflush2.c: Include binary-io.h.
41908         (main): Put standard input into binary mode.
41909         * modules/fflush-tests (Depends-on): Add binary-io.
41910
41911 2009-01-17  Bruno Haible  <bruno@clisp.org>
41912
41913         * lib/wchar.in.h: In another particular situation, include only the
41914         system's <wchar.h> file.
41915         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41916         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41917         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41918
41919 2009-01-17  Bruno Haible  <bruno@clisp.org>
41920
41921         Support for stripping executables in --enable-relocatable.
41922         * build-aux/install-reloc: Expect one more argument, or an environment
41923         variable RELOC_STRIP_PROG. If set, strip the destination program and
41924         its wrapper.
41925         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41926         RELOC_STRIP_PROG.
41927         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41928         to set RELOCATABLE_STRIP.
41929         * NEWS: Mention the new Makefile requirement.
41930
41931 2009-01-17  Bruno Haible  <bruno@clisp.org>
41932
41933         * build-aux/install-reloc: Remove debugging information left over by
41934         C compiler on MacOS X.
41935
41936 2009-01-17  Bruno Haible  <bruno@clisp.org>
41937
41938         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41939         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41940         _NSGetExecutablePath.
41941
41942 2009-01-16  Jim Meyering  <meyering@redhat.com>
41943
41944         strerror: avoid warnings about discarding "const"
41945         * lib/strerror.c (rpl_strerror): Instead of returning a const
41946         string from each and every "case", use a variable, and add a single
41947         cast after the switch.
41948
41949 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41950
41951         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41952
41953 2009-01-16  Bruno Haible  <bruno@clisp.org>
41954
41955         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41956         array initializer syntax that also works in C++ mode.
41957         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41958
41959 2009-01-16  Jim Meyering  <meyering@redhat.com>
41960
41961         poll: suppress a warning
41962         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41963         to ignore "...unsigned expression < 0 is always false" warnings.
41964
41965 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41966
41967         poll: remove declarations of unused variables
41968         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41969         sockbuf and optlen.
41970
41971 2009-01-15  Bruno Haible  <bruno@clisp.org>
41972
41973         Make fflush-after-ungetc POSIX compliant on BSD systems.
41974         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41975         (clear_ungetc_buffer): Implement also for other systems.
41976         (rpl_fflush): On glibc systems, invoke
41977         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41978         clear_ungetc_buffer after fetching the stream's position, not before.
41979
41980 2009-01-15  Bruno Haible  <bruno@clisp.org>
41981
41982         Make fflush-after-ungetc POSIX compliant on glibc systems.
41983         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41984         after ungetc.
41985         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41986         (rpl_fflush): On glibc systems, simply call the system's fflush
41987         function after clearing the ungetc buffer.
41988         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41989         Instead, lseek only to the end of file, then use the system's fseeko
41990         for the rest. On glibc systems, reset the EOF indicator bit.
41991
41992 2009-01-15  Jim Meyering  <meyering@redhat.com>
41993
41994         openmp.m4: revert quote-adding change, for portability to older autoconf
41995         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41996         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41997         Simon Josefsson noticed the problem when using autoconf-2.61.
41998
41999 2009-01-15  Bruno Haible  <bruno@clisp.org>
42000
42001         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42002         * tests/test-fflush2.c (ASSERT): Always fail.
42003         (main): Add two tests for fflush() after ungetc(), taking into account
42004         the Austin Group's clarification.
42005         Suggested by Eric Blake.
42006
42007 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42008
42009         mktime.m4: remove K&R-style function prototypes
42010         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42011         for the Sun C++ compiler.
42012
42013 2009-01-14  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42016         while including <wchar.h>.
42017         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42018         the system's <wchar.h> file.
42019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42020
42021 2009-01-14  Bruno Haible  <bruno@clisp.org>
42022
42023         * m4/csharp.m4: Don't mention gettext on the serial number line.
42024         * m4/csharpexec.m4: Likewise.
42025         * m4/eaccess.m4: Likewise.
42026         * m4/javaexec.m4: Likewise.
42027         * m4/sig_atomic_t.m4: Likewise.
42028         * m4/tmpdir.m4: Likewise.
42029         * m4/intldir.m4: Bump gettext version.
42030         * m4/lib-ld.m4: Likewise.
42031
42032 2009-01-14  Bruno Haible  <bruno@clisp.org>
42033
42034         * lib/progname.c (set_program_name): Add more comments.
42035         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42036
42037 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42038
42039         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42040         were sys/stat.h does not define it.
42041
42042 2009-01-14  Jim Meyering  <meyering@redhat.com>
42043
42044         many *.m4 files: improve m4 quoting
42045         99% of this change was performed by running the following commands:
42046         git ls-files | grep '\.m4$' | xargs perl -pi \
42047           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42048           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42049           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42050           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42051         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42052         The remainder were to add Copyright dates, increment serial numbers,
42053         undo some changes in comments, exclude m4/intl.m4, and add quotes
42054         around the "1" in ",1" where the unusual spacing prohibited the
42055         above regexps from doing the job.  For more details, see
42056         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42057         * m4/acl.m4: Modified.
42058         * m4/afs.m4: Likewise.
42059         * m4/alloca.m4: Likewise.
42060         * m4/argp.m4: Likewise.
42061         * m4/argz.m4: Likewise.
42062         * m4/atexit.m4: Likewise.
42063         * m4/bison-i18n.m4: Likewise.
42064         * m4/bison.m4: Likewise.
42065         * m4/byteswap.m4: Likewise.
42066         * m4/c-stack.m4: Likewise.
42067         * m4/c-strtod.m4: Likewise.
42068         * m4/calloc.m4: Likewise.
42069         * m4/canonicalize-lgpl.m4: Likewise.
42070         * m4/chown.m4: Likewise.
42071         * m4/clock_time.m4: Likewise.
42072         * m4/codeset.m4: Likewise.
42073         * m4/copy-file.m4: Likewise.
42074         * m4/csharp.m4: Likewise.
42075         * m4/csharpcomp.m4: Likewise.
42076         * m4/csharpexec.m4: Likewise.
42077         * m4/d-ino.m4: Likewise.
42078         * m4/d-type.m4: Likewise.
42079         * m4/dirfd.m4: Likewise.
42080         * m4/double-slash-root.m4: Likewise.
42081         * m4/eaccess.m4: Likewise.
42082         * m4/eealloc.m4: Likewise.
42083         * m4/environ.m4: Likewise.
42084         * m4/errno_h.m4: Likewise.
42085         * m4/euidaccess.m4: Likewise.
42086         * m4/execute.m4: Likewise.
42087         * m4/fatal-signal.m4: Likewise.
42088         * m4/fchdir.m4: Likewise.
42089         * m4/fcntl_h.m4: Likewise.
42090         * m4/fileblocks.m4: Likewise.
42091         * m4/filenamecat.m4: Likewise.
42092         * m4/findprog.m4: Likewise.
42093         * m4/flexmember.m4: Likewise.
42094         * m4/fnmatch.m4: Likewise.
42095         * m4/fopen.m4: Likewise.
42096         * m4/fpending.m4: Likewise.
42097         * m4/fprintf-posix.m4: Likewise.
42098         * m4/free.m4: Likewise.
42099         * m4/frexp.m4: Likewise.
42100         * m4/frexpl.m4: Likewise.
42101         * m4/fsusage.m4: Likewise.
42102         * m4/ftruncate.m4: Likewise.
42103         * m4/gc-camellia.m4: Likewise.
42104         * m4/gc-random.m4: Likewise.
42105         * m4/gc.m4: Likewise.
42106         * m4/getaddrinfo.m4: Likewise.
42107         * m4/getcwd-abort-bug.m4: Likewise.
42108         * m4/getcwd-path-max.m4: Likewise.
42109         * m4/getdate.m4: Likewise.
42110         * m4/getdomainname.m4: Likewise.
42111         * m4/getgroups.m4: Likewise.
42112         * m4/gethostname.m4: Likewise.
42113         * m4/gethrxtime.m4: Likewise.
42114         * m4/getline.m4: Likewise.
42115         * m4/getloadavg.m4: Likewise.
42116         * m4/getndelim2.m4: Likewise.
42117         * m4/getpass.m4: Likewise.
42118         * m4/gettext.m4: Likewise.
42119         * m4/gettime.m4: Likewise.
42120         * m4/gettimeofday.m4: Likewise.
42121         * m4/gnulib-common.m4: Likewise.
42122         * m4/group-member.m4: Likewise.
42123         * m4/host-os.m4: Likewise.
42124         * m4/iconv.m4: Likewise.
42125         * m4/iconv_open.m4: Likewise.
42126         * m4/inet_ntop.m4: Likewise.
42127         * m4/inet_pton.m4: Likewise.
42128         * m4/inline.m4: Likewise.
42129         * m4/intldir.m4: Likewise.
42130         * m4/intlmacosx.m4: Likewise.
42131         * m4/intmax.m4: Likewise.
42132         * m4/intmax_t.m4: Likewise.
42133         * m4/inttypes.m4: Likewise.
42134         * m4/inttypes_h.m4: Likewise.
42135         * m4/inttypes-pri.m4: Likewise.
42136         * m4/isapipe.m4: Likewise.
42137         * m4/isnand.m4: Likewise.
42138         * m4/isnanf.m4: Likewise.
42139         * m4/isnanl.m4: Likewise.
42140         * m4/javacomp.m4: Likewise.
42141         * m4/javaexec.m4: Likewise.
42142         * m4/jm-winsz1.m4: Likewise.
42143         * m4/jm-winsz2.m4: Likewise.
42144         * m4/lchown.m4: Likewise.
42145         * m4/lcmessage.m4: Likewise.
42146         * m4/ldexpl.m4: Likewise.
42147         * m4/lib-ld.m4: Likewise.
42148         * m4/lib-link.m4: Likewise.
42149         * m4/libsigsegv.m4: Likewise.
42150         * m4/link-follow.m4: Likewise.
42151         * m4/localcharset.m4: Likewise.
42152         * m4/locale-fr.m4: Likewise.
42153         * m4/locale-ja.m4: Likewise.
42154         * m4/locale-tr.m4: Likewise.
42155         * m4/locale-zh.m4: Likewise.
42156         * m4/lock.m4: Likewise.
42157         * m4/longlong.m4: Likewise.
42158         * m4/ls-mntd-fs.m4: Likewise.
42159         * m4/lstat.m4: Likewise.
42160         * m4/malloc.m4: Likewise.
42161         * m4/mathl.m4: Likewise.
42162         * m4/mbrtowc.m4: Likewise.
42163         * m4/mbstate_t.m4: Likewise.
42164         * m4/mbswidth.m4: Likewise.
42165         * m4/memchr.m4: Likewise.
42166         * m4/memcmp.m4: Likewise.
42167         * m4/memcpy.m4: Likewise.
42168         * m4/memmem.m4: Likewise.
42169         * m4/memmove.m4: Likewise.
42170         * m4/mempcpy.m4: Likewise.
42171         * m4/memrchr.m4: Likewise.
42172         * m4/memset.m4: Likewise.
42173         * m4/minmax.m4: Likewise.
42174         * m4/mkdir-slash.m4: Likewise.
42175         * m4/mkdtemp.m4: Likewise.
42176         * m4/mktime.m4: Likewise.
42177         * m4/mmap-anon.m4: Likewise.
42178         * m4/mountlist.m4: Likewise.
42179         * m4/nanosleep.m4: Likewise.
42180         * m4/nls.m4: Likewise.
42181         * m4/nocrash.m4: Likewise.
42182         * m4/open.m4: Likewise.
42183         * m4/openat.m4: Likewise.
42184         * m4/openmp.m4: Likewise.
42185         * m4/pathmax.m4: Likewise.
42186         * m4/perl.m4: Likewise.
42187         * m4/physmem.m4: Likewise.
42188         * m4/pipe.m4: Likewise.
42189         * m4/po.m4: Likewise.
42190         * m4/poll.m4: Likewise.
42191         * m4/posixtm.m4: Likewise.
42192         * m4/posixver.m4: Likewise.
42193         * m4/printf-frexp.m4: Likewise.
42194         * m4/printf-frexpl.m4: Likewise.
42195         * m4/printf-posix.m4: Likewise.
42196         * m4/printf-posix-rpl.m4: Likewise.
42197         * m4/printf.m4: Likewise.
42198         * m4/progtest.m4: Likewise.
42199         * m4/putenv.m4: Likewise.
42200         * m4/readline.m4: Likewise.
42201         * m4/readlink.m4: Likewise.
42202         * m4/readutmp.m4: Likewise.
42203         * m4/realloc.m4: Likewise.
42204         * m4/regex.m4: Likewise.
42205         * m4/relocatable.m4: Likewise.
42206         * m4/relocatable-lib.m4: Likewise.
42207         * m4/rename-dest-slash.m4: Likewise.
42208         * m4/rename.m4: Likewise.
42209         * m4/rmdir-errno.m4: Likewise.
42210         * m4/rmdir.m4: Likewise.
42211         * m4/roundf.m4: Likewise.
42212         * m4/roundl.m4: Likewise.
42213         * m4/rpmatch.m4: Likewise.
42214         * m4/save-cwd.m4: Likewise.
42215         * m4/selinux-selinux-h.m4: Likewise.
42216         * m4/setenv.m4: Likewise.
42217         * m4/settime.m4: Likewise.
42218         * m4/sig2str.m4: Likewise.
42219         * m4/sig_atomic_t.m4: Likewise.
42220         * m4/signalblocking.m4: Likewise.
42221         * m4/signbit.m4: Likewise.
42222         * m4/sigpipe.m4: Likewise.
42223         * m4/sockets.m4: Likewise.
42224         * m4/sockpfaf.m4: Likewise.
42225         * m4/st_dm_mode.m4: Likewise.
42226         * m4/stat-time.m4: Likewise.
42227         * m4/stdbool.m4: Likewise.
42228         * m4/stdint.m4: Likewise.
42229         * m4/stdint_h.m4: Likewise.
42230         * m4/stpcpy.m4: Likewise.
42231         * m4/stpncpy.m4: Likewise.
42232         * m4/strcase.m4: Likewise.
42233         * m4/strchrnul.m4: Likewise.
42234         * m4/strcspn.m4: Likewise.
42235         * m4/strdup.m4: Likewise.
42236         * m4/strftime.m4: Likewise.
42237         * m4/strndup.m4: Likewise.
42238         * m4/strnlen.m4: Likewise.
42239         * m4/strpbrk.m4: Likewise.
42240         * m4/strptime.m4: Likewise.
42241         * m4/strsep.m4: Likewise.
42242         * m4/strtod.m4: Likewise.
42243         * m4/strtoimax.m4: Likewise.
42244         * m4/strtok_r.m4: Likewise.
42245         * m4/strtol.m4: Likewise.
42246         * m4/strtoll.m4: Likewise.
42247         * m4/strtoul.m4: Likewise.
42248         * m4/strtoull.m4: Likewise.
42249         * m4/strtoumax.m4: Likewise.
42250         * m4/strverscmp.m4: Likewise.
42251         * m4/threadlib.m4: Likewise.
42252         * m4/timegm.m4: Likewise.
42253         * m4/tm_gmtoff.m4: Likewise.
42254         * m4/tmpdir.m4: Likewise.
42255         * m4/tmpfile.m4: Likewise.
42256         * m4/tzset.m4: Likewise.
42257         * m4/uintmax_t.m4: Likewise.
42258         * m4/unlinkdir.m4: Likewise.
42259         * m4/unlocked-io.m4: Likewise.
42260         * m4/uptime.m4: Likewise.
42261         * m4/userspec.m4: Likewise.
42262         * m4/utimbuf.m4: Likewise.
42263         * m4/utime.m4: Likewise.
42264         * m4/utimes-null.m4: Likewise.
42265         * m4/utimes.m4: Likewise.
42266         * m4/vararrays.m4: Likewise.
42267         * m4/vasnprintf.m4: Likewise.
42268         * m4/vfprintf-posix.m4: Likewise.
42269         * m4/vprintf-posix.m4: Likewise.
42270         * m4/wait-process.m4: Likewise.
42271         * m4/wchar_t.m4: Likewise.
42272         * m4/wint_t.m4: Likewise.
42273         * m4/write-any-file.m4: Likewise.
42274         * m4/yield.m4: Likewise.
42275
42276 2009-01-13  Bruno Haible  <bruno@clisp.org>
42277
42278         Avoid test-copy-file.sh failures when ACL support insufficient.
42279         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42280         TESTS_ENVIRONMENT.
42281         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42282         Reported by Jim Meyering.
42283
42284 2009-01-13  Bruno Haible  <bruno@clisp.org>
42285
42286         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42287         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42288         * modules/unistdio/u8-printf-parse (Files): Likewise.
42289         * modules/unistdio/u32-printf-parse (Files): Likewise.
42290         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42291
42292 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42293
42294         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42295         and m4/inttypes_h.m4 too.
42296
42297 2009-01-12  Eric Blake  <ebb9@byu.net>
42298
42299         tests: IRIX 6.2 cc can't compile -0.0 into .data
42300         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42301         rather than at compile-time.
42302         * tests/test-floorl.c (minus_zero): Likewise.
42303         * tests/test-frexpl.c (minus_zero): Likewise.
42304         * tests/test-isnan.c (minus_zerol): Likewise.
42305         * tests/test-isnanl.h (minus_zero): Likewise.
42306         * tests/test-ldexpl.c (minus_zero): Likewise.
42307         * tests/test-roundl.c (minus_zero): Likewise.
42308         * tests/test-signbit.c (minus_zerol): Likewise.
42309         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42310         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42311         * tests/test-truncl.c (minus_zero): Likewise.
42312         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42313         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42314         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42315
42316 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42317
42318         regex: fix glibc bug 9697
42319         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42320         handling.
42321
42322 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42323
42324         regex: fix glibc bug 697
42325         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42326         being NULL also if there are no backreferences.
42327
42328 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42329
42330         regex: merge glibc changes
42331         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42332         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42333         re_string_skip_chars, re_string_reconstruct): Likewise.
42334         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42335
42336 2009-01-07  Jim Meyering  <meyering@redhat.com>
42337
42338         poll: filter through cppi
42339         * lib/poll.c: Indent cpp directives to reflect nesting.
42340
42341 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42342
42343         poll: don't return uninitialized
42344         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42345
42346 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42347
42348         avoid compile failure on AIX 6.1
42349         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42350         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42351
42352 2009-01-04  Jim Meyering  <meyering@redhat.com>
42353
42354         remove duplicate inclusion of <stdio.h>
42355         * tests/test-fprintf-posix.c: Likewise.
42356         * tests/test-printf-posix.c: Likewise.
42357         * tests/test-snprintf-posix.c: Likewise.
42358         * tests/test-sprintf-posix.c: Likewise.
42359         * tests/test-vasprintf-posix.c: Likewise.
42360         * tests/test-vfprintf-posix.c: Likewise.
42361         * tests/test-vprintf-posix.c: Likewise.
42362         * tests/test-vsnprintf-posix.c: Likewise.
42363         * tests/test-vsprintf-posix.c: Likewise.
42364
42365 2009-01-03  Jim Meyering  <meyering@redhat.com>
42366
42367         gnulib-tool: fix sed-based filtering
42368         * gnulib-tool (func_filter_filelist): Remove extra backslash
42369         in sed_fff_filter definition.
42370
42371 2009-01-02  Jim Meyering  <meyering@redhat.com>
42372
42373         strftime: avoid compilation failure on Solaris 2.6
42374         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42375         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42376         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42377         be available.  Reported by Tom G. Christensen.  Details in
42378         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42379
42380 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42381             Bruno Haible  <bruno@clisp.org>
42382
42383         Speed up gnulib-tool by doing more string processing through shell
42384         built-ins.
42385         * gnulib-tool (fast_func_append): New variable.
42386         (func_remove_prefix, func_remove_suffix): New functions.
42387         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42388         (func_filter_filelist): New function.
42389         (func_get_dependencies): Use func_remove_suffix instead of sed.
42390         (func_get_automake_snippet): Use func_filter_filelist instead of a
42391         subshell and sed invocation.
42392
42393 2009-01-01  Bruno Haible  <bruno@clisp.org>
42394
42395         Fix a security bug.
42396         * gnulib-tool (func_import, import, update): Don't allow the characters
42397         '"', '$', '`', '\' in macro arguments that become part of commands that
42398         are evaluated.
42399
42400 2009-01-01  Bruno Haible  <bruno@clisp.org>
42401
42402         * gnulib-tool (func_reset_sigpipe): Add more comments.
42403
42404 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42405
42406         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42407         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42408         already know the answer.
42409
42410 2009-01-01  Jim Meyering  <meyering@redhat.com>
42411
42412         * lib/version-etc.c (version_etc_va): Update copyright year.
42413
42414 2008-12-30  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42417         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42418         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42419
42420 2008-12-29  Eric Blake  <ebb9@byu.net>
42421
42422         multiarch: avoid autoconf AC_REQUIRE bug
42423         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42424         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42425         2.63 and older.
42426         Reported by Bruno Haible, and analyzed in
42427         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42428
42429 2008-12-29  Bruno Haible  <bruno@clisp.org>
42430
42431         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42432         files in subdirectories correctly.
42433         Reported by Ralf Wildenhues.
42434
42435 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42436
42437         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42438         rather than 'join FILE -', for Solaris join.
42439
42440 2008-12-29  Bruno Haible  <bruno@clisp.org>
42441
42442         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42443         quoting.
42444         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42445         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42446         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42447         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42448         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42449         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42450         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42451         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42452         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42453         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42454         * m4/nls.m4 (AM_NLS): Likewise.
42455         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42456         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42457         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42458         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42459         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42460         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42461         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42462         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42463         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42464         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42465         * m4/xsize.m4 (gl_XSIZE): Likewise.
42466         Suggested by Jim Meyering.
42467
42468 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42469
42470         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42471         * lib/parse-duration.c: use a switch instead of cascading if's.
42472
42473 2008-12-29  Eric Blake  <ebb9@byu.net>
42474
42475         wchar.h: supply WEOF on Irix 5.3
42476         * lib/wchar.in.h (wint_t): Also supply WEOF.
42477         * lib/wctype.in.h (wint_t): Likewise.
42478         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42479         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42480         Reported by Tom G. Christensen.
42481
42482 2008-12-26  Bruno Haible  <bruno@clisp.org>
42483
42484         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42485         i486, i586, i686.
42486
42487 2008-12-26  Bruno Haible  <bruno@clisp.org>
42488
42489         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42490
42491 2008-12-26  Bruno Haible  <bruno@clisp.org>
42492
42493         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42494         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42495         not __STDC_CONSTANT_MACROS.
42496         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42497
42498 2008-12-25  Bruno Haible  <bruno@clisp.org>
42499
42500         Add support for universal builds to vasnprintf.
42501         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42502         universal builds, guess no.
42503         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42504         * modules/vasprintf-posix (Depends-on): Likewise.
42505         * modules/fprintf-posix (Depends-on): Likewise.
42506         * modules/vfprintf-posix (Depends-on): Likewise.
42507         * modules/snprintf-posix (Depends-on): Likewise.
42508         * modules/vsnprintf-posix (Depends-on): Likewise.
42509         * modules/sprintf-posix (Depends-on): Likewise.
42510         * modules/vsprintf-posix (Depends-on): Likewise.
42511         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42512         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42513         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42514         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42515         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42516         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42517         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42518
42519         Add support for universal builds to <inttypes.h>.
42520         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42521         _SCNu64_PREFIX): In Apple
42522         universal builds, define directly, using _LP64.
42523         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42524         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42525         * modules/inttypes (Depends-on): Add multiarch.
42526         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42527
42528         Add support for universal builds to <stdint.h>.
42529         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42530         universal builds, define directly, using _LP64.
42531         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42532         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42533         and size_t.
42534         * modules/stdint (Depends-on): Add multiarch.
42535         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42536
42537         New module 'multiarch'.
42538         * modules/multiarch: New file.
42539         * m4/multiarch.m4: New file.
42540
42541 2008-12-25  Bruno Haible  <bruno@clisp.org>
42542
42543         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42544
42545 2008-12-25  Bruno Haible  <bruno@clisp.org>
42546
42547         * modules/btowc (License): Relicense under LGPLv2+.
42548         * modules/mbsinit (License): Likewise.
42549         * modules/mbrtowc (License): Likewise.
42550         * modules/wcrtomb (License): Likewise.
42551         * modules/streq (License): Likewise.
42552         Reported by David Lutterkort <lutter@redhat.com>.
42553
42554 2008-12-23  Bruno Haible  <bruno@clisp.org>
42555
42556         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42557
42558 2008-12-23  Bruno Haible  <bruno@clisp.org>
42559
42560         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42562         GETADDRINFO_LIB, not in LIBS.
42563         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42564         * modules/canon-host (Link): Likewise.
42565         * NEWS: Mention the change.
42566         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42567         GETADDRINFO_LIB.
42568
42569 2008-12-22  Bruno Haible  <bruno@clisp.org>
42570
42571         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42572         * doc/posix-functions/iswalpha_l.texi: Likewise.
42573         * doc/posix-functions/iswblank_l.texi: Likewise.
42574         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42575         * doc/posix-functions/iswctype_l.texi: Likewise.
42576         * doc/posix-functions/iswdigit_l.texi: Likewise.
42577         * doc/posix-functions/iswgraph_l.texi: Likewise.
42578         * doc/posix-functions/iswlower_l.texi: Likewise.
42579         * doc/posix-functions/iswprint_l.texi: Likewise.
42580         * doc/posix-functions/iswpunct_l.texi: Likewise.
42581         * doc/posix-functions/iswspace_l.texi: Likewise.
42582         * doc/posix-functions/iswupper_l.texi: Likewise.
42583         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42584         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42585         * doc/posix-functions/open_wmemstream.texi: Likewise.
42586         * doc/posix-functions/swscanf.texi: Likewise.
42587         * doc/posix-functions/towctrans_l.texi: Likewise.
42588         * doc/posix-functions/towlower.texi: Likewise.
42589         * doc/posix-functions/towlower_l.texi: Likewise.
42590         * doc/posix-functions/towupper.texi: Likewise.
42591         * doc/posix-functions/towupper_l.texi: Likewise.
42592         * doc/posix-functions/vfwprintf.texi: Likewise.
42593         * doc/posix-functions/vfwscanf.texi: Likewise.
42594         * doc/posix-functions/vswscanf.texi: Likewise.
42595         * doc/posix-functions/vwprintf.texi: Likewise.
42596         * doc/posix-functions/vwscanf.texi: Likewise.
42597         * doc/posix-functions/wcpcpy.texi: Likewise.
42598         * doc/posix-functions/wcpncpy.texi: Likewise.
42599         * doc/posix-functions/wcscasecmp.texi: Likewise.
42600         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42601         * doc/posix-functions/wcscoll_l.texi: Likewise.
42602         * doc/posix-functions/wcsdup.texi: Likewise.
42603         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42604         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42605         * doc/posix-functions/wcsnlen.texi: Likewise.
42606         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42607         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42608         * doc/posix-functions/wctrans_l.texi: Likewise.
42609         * doc/posix-functions/wctype_l.texi: Likewise.
42610         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42611         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42612         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42613         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42614         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42615         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42616         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42617         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42618         * doc/glibc-functions/wcschrnul.texi: Likewise.
42619         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42620         * doc/glibc-functions/wcstod_l.texi: Likewise.
42621         * doc/glibc-functions/wcstof_l.texi: Likewise.
42622         * doc/glibc-functions/wcstol_l.texi: Likewise.
42623         * doc/glibc-functions/wcstold_l.texi: Likewise.
42624         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42625         * doc/glibc-functions/wcstoq.texi: Likewise.
42626         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42627         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42628         * doc/glibc-functions/wcstouq.texi: Likewise.
42629         * doc/glibc-functions/wmempcpy.texi: Likewise.
42630
42631 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42632             Eric Blake  <ebb9@byu.net>
42633             Paolo Bonzini  <bonzini@gnu.org>
42634             Bruno Haible  <bruno@clisp.org>
42635
42636         Make c-stack work on Haiku.
42637         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42638         (c_stack_action): Use SA_ONSTACK flag.
42639
42640 2008-12-22  Bruno Haible  <bruno@clisp.org>
42641
42642         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42643
42644 2008-12-22  Bruno Haible  <bruno@clisp.org>
42645
42646         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42647         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42648         being overridden.
42649         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42650         New macros.
42651         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42652         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42653         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42654         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42655
42656 2008-12-22  Bruno Haible  <bruno@clisp.org>
42657
42658         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42659         from test code.
42660
42661 2008-12-22  Eric Blake  <ebb9@byu.net>
42662
42663         Avoid gcc warnings on cygwin.
42664         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42665         Avoid unused variable.
42666         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42667         Likewise.
42668
42669 2008-12-22  Bruno Haible  <bruno@clisp.org>
42670
42671         Remove HAVE_MBRTOWC conditionals.
42672         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42673         (mbscasecmp): Assume mbrtowc function.
42674         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42675         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42676         * lib/mbschr.c: Include mbuiter.h unconditionally.
42677         (mbschr): Assume mbrtowc function.
42678         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42679         (mbscspn): Assume mbrtowc function.
42680         * lib/mbslen.c: Include mbuiter.h unconditionally.
42681         (mbslen): Assume mbrtowc function.
42682         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42683         (mbsncasecmp): Assume mbrtowc function.
42684         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42685         (mbsnlen): Assume mbrtowc function.
42686         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42687         (mbspbrk): Assume mbrtowc function.
42688         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42689         (mbspcasecmp): Assume mbrtowc function.
42690         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42691         (mbsrchr): Assume mbrtowc function.
42692         * lib/mbssep.c: Include mbuiter.h unconditionally.
42693         (mbssep): Assume mbrtowc function.
42694         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42695         (mbsspn): Assume mbrtowc function.
42696         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42697         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42698         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42699         (mbstok_r): Assume mbrtowc function.
42700         * lib/propername.c: Include mbuiter.h unconditionally.
42701         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42702         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42703         (trim2): Assume mbrtowc function.
42704         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42705         (mbsnwidth): Assume mbrtowc function.
42706         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42707         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42708         fallback definitions.
42709         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42710
42711 2008-12-22  Bruno Haible  <bruno@clisp.org>
42712
42713         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42714
42715 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42716
42717         * modules/regex: Request emulations for the mb*/wc* functions we need.
42718         * m4/regex.m4: Don't look for those functions here.
42719         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42720
42721 2008-12-22  Bruno Haible  <bruno@clisp.org>
42722
42723         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42724
42725 2008-12-21  Bruno Haible  <bruno@clisp.org>
42726
42727         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42728         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42729         (Include): Remove conditionalization.
42730         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42731         (Include): Remove conditionalization.
42732         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42733         (Include): Remove conditionalization.
42734         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42735         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42736         * NEWS: Mention the change.
42737         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42738         via Sergey Poznyakoff <gray@gnu.org.ua>.
42739
42740 2008-12-21  Bruno Haible  <bruno@clisp.org>
42741
42742         * MODULES.html.sh (Extended multibyte and wide character utilities
42743         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42744         wcrtomb, wcsrtombs.
42745         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42746         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42747         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42748         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42749
42750 2008-12-21  Bruno Haible  <bruno@clisp.org>
42751
42752         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42753
42754 2008-12-21  Bruno Haible  <bruno@clisp.org>
42755
42756         * modules/wcsnrtombs-tests: New file.
42757         * tests/test-wcsnrtombs1.sh: New file.
42758         * tests/test-wcsnrtombs2.sh: New file.
42759         * tests/test-wcsnrtombs3.sh: New file.
42760         * tests/test-wcsnrtombs4.sh: New file.
42761         * tests/test-wcsnrtombs.c: New file.
42762
42763         New module 'wcsnrtombs'.
42764         * lib/wchar.in.h (wcsnrtombs): New declaration.
42765         * lib/wcsnrtombs.c: New file.
42766         * lib/wcsrtombs-state.c: New file.
42767         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42768         (internal_state): Remove variable.
42769         * m4/wcsnrtombs.m4: New file.
42770         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42771         compilation units.
42772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42773         HAVE_WCSNRTOMBS.
42774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42775         HAVE_WCSNRTOMBS.
42776         * modules/wcsnrtombs: New file.
42777         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42778         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42779
42780 2008-12-21  Bruno Haible  <bruno@clisp.org>
42781
42782         * modules/wcsrtombs-tests: New file.
42783         * tests/test-wcsrtombs1.sh: New file.
42784         * tests/test-wcsrtombs2.sh: New file.
42785         * tests/test-wcsrtombs3.sh: New file.
42786         * tests/test-wcsrtombs4.sh: New file.
42787         * tests/test-wcsrtombs.c: New file.
42788
42789         New module 'wcsrtombs'.
42790         * lib/wchar.in.h (wcsrtombs): New declaration.
42791         * lib/wcsrtombs.c: New file.
42792         * m4/wcsrtombs.m4: New file.
42793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42794         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42796         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42797         * modules/wcsrtombs: New file.
42798         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42799         bugs.
42800
42801 2008-12-21  Bruno Haible  <bruno@clisp.org>
42802
42803         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42804         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42805         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42806         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42807         if not correct.
42808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42809         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42810         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42811         m4/locale-zh.m4, m4/codeset.m4.
42812         * doc/posix-functions/wcrtomb.texi: Document the bug.
42813
42814 2008-12-21  Bruno Haible  <bruno@clisp.org>
42815
42816         Work around a btowc() bug on IRIX 6.5.
42817         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42818         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42819         REPLACE_WTOBC if not.
42820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42821         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42822         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42823
42824 2008-12-21  Bruno Haible  <bruno@clisp.org>
42825
42826         * modules/wcrtomb-tests: New file.
42827         * tests/test-wcrtomb.sh: New file.
42828         * tests/test-wcrtomb.c: New file.
42829
42830         New module 'wcrtomb'.
42831         * lib/wchar.in.h (wcrtomb): New declaration.
42832         * lib/wcrtomb.c: New file.
42833         * m4/wcrtomb.m4: New file.
42834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42835         HAVE_WCRTOMB.
42836         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42837         HAVE_WCRTOMB.
42838         * modules/wcrtomb: New file.
42839         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42840
42841 2008-12-21  Bruno Haible  <bruno@clisp.org>
42842
42843         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42844         * modules/mbsrtowcs (Files): Likewise.
42845         * modules/wctob (Files): Likewise.
42846         * modules/c-strcase-tests (Files): Likewise.
42847         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42848         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42849         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42850         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42851         * modules/vasnprintf-posix-tests (Files): Likewise.
42852
42853 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42854
42855         gitlog-to-changelog: pass all command-line arguments to git-log
42856         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42857         it is sometimes convenient to filter the commits in various ways.
42858         gitlog-to-changelog only allows --since to specify a start date,
42859         but git-log itself supports many other filtering mechanisms.
42860         At the moment, I want to filter by branch name.  Rather than
42861         adding a --branch option to gitlog-to-changelog, it seems more
42862         flexible to simply pass all options directly to git-log and let
42863         git do the work.  Notice that this effectively makes --since a
42864         redundant option for gitlog-to-changelog, but removing it would
42865         require current usage to change since calls would then require
42866         an additional '--'.
42867
42868 2008-12-21  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/mbsnrtowcs-tests: New file.
42871         * tests/test-mbsnrtowcs1.sh: New file.
42872         * tests/test-mbsnrtowcs2.sh: New file.
42873         * tests/test-mbsnrtowcs3.sh: New file.
42874         * tests/test-mbsnrtowcs4.sh: New file.
42875         * tests/test-mbsnrtowcs.c: New file.
42876
42877         New module 'mbsnrtowcs'.
42878         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42879         * lib/mbsnrtowcs.c: New file.
42880         * lib/mbsrtowcs-state.c: New file.
42881         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42882         (internal_state): Remove variable.
42883         * m4/mbsnrtowcs.m4: New file.
42884         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42885         compilation units.
42886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42887         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42888         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42889         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42890         * modules/mbsnrtowcs: New file.
42891         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42892         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42893         portability problem.
42894
42895 2008-12-21  Bruno Haible  <bruno@clisp.org>
42896
42897         Work around mbsrtowcs bug.
42898         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42899         (gl_FUNC_MBSRTOWCS): Invoke it.
42900         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42901         m4/locale-zh.m4.
42902         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42903
42904 2008-12-21  Bruno Haible  <bruno@clisp.org>
42905
42906         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42907
42908 2008-12-21  Bruno Haible  <bruno@clisp.org>
42909
42910         Update doc for AIX.
42911         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42912         16-bit wchar_t type.
42913         * doc/posix-functions/btowc.texi: Likewise.
42914         * doc/posix-functions/fgetwc.texi: Likewise.
42915         * doc/posix-functions/fgetws.texi: Likewise.
42916         * doc/posix-functions/fputwc.texi: Likewise.
42917         * doc/posix-functions/fputws.texi: Likewise.
42918         * doc/posix-functions/fwide.texi: Likewise.
42919         * doc/posix-functions/fwprintf.texi: Likewise.
42920         * doc/posix-functions/fwscanf.texi: Likewise.
42921         * doc/posix-functions/getwchar.texi: Likewise.
42922         * doc/posix-functions/getwc.texi: Likewise.
42923         * doc/posix-functions/iswalnum.texi: Likewise.
42924         * doc/posix-functions/iswalpha.texi: Likewise.
42925         * doc/posix-functions/iswblank.texi: Likewise.
42926         * doc/posix-functions/iswcntrl.texi: Likewise.
42927         * doc/posix-functions/iswctype.texi: Likewise.
42928         * doc/posix-functions/iswdigit.texi: Likewise.
42929         * doc/posix-functions/iswgraph.texi: Likewise.
42930         * doc/posix-functions/iswlower.texi: Likewise.
42931         * doc/posix-functions/iswprint.texi: Likewise.
42932         * doc/posix-functions/iswpunct.texi: Likewise.
42933         * doc/posix-functions/iswspace.texi: Likewise.
42934         * doc/posix-functions/iswupper.texi: Likewise.
42935         * doc/posix-functions/iswxdigit.texi: Likewise.
42936         * doc/posix-functions/mbrtowc.texi: Likewise.
42937         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42938         * doc/posix-functions/mbstowcs.texi: Likewise.
42939         * doc/posix-functions/mbtowc.texi: Likewise.
42940         * doc/posix-functions/putwchar.texi: Likewise.
42941         * doc/posix-functions/putwc.texi: Likewise.
42942         * doc/posix-functions/swprintf.texi: Likewise.
42943         * doc/posix-functions/tolower.texi: Likewise.
42944         * doc/posix-functions/toupper.texi: Likewise.
42945         * doc/posix-functions/towctrans.texi: Likewise.
42946         * doc/posix-functions/ungetwc.texi: Likewise.
42947         * doc/posix-functions/vswprintf.texi: Likewise.
42948         * doc/posix-functions/wcrtomb.texi: Likewise.
42949         * doc/posix-functions/wcscat.texi: Likewise.
42950         * doc/posix-functions/wcschr.texi: Likewise.
42951         * doc/posix-functions/wcscmp.texi: Likewise.
42952         * doc/posix-functions/wcscoll.texi: Likewise.
42953         * doc/posix-functions/wcscpy.texi: Likewise.
42954         * doc/posix-functions/wcscspn.texi: Likewise.
42955         * doc/posix-functions/wcsftime.texi: Likewise.
42956         * doc/posix-functions/wcslen.texi: Likewise.
42957         * doc/posix-functions/wcsncat.texi: Likewise.
42958         * doc/posix-functions/wcsncmp.texi: Likewise.
42959         * doc/posix-functions/wcsncpy.texi: Likewise.
42960         * doc/posix-functions/wcspbrk.texi: Likewise.
42961         * doc/posix-functions/wcsrchr.texi: Likewise.
42962         * doc/posix-functions/wcsrtombs.texi: Likewise.
42963         * doc/posix-functions/wcsspn.texi: Likewise.
42964         * doc/posix-functions/wcsstr.texi: Likewise.
42965         * doc/posix-functions/wcstod.texi: Likewise.
42966         * doc/posix-functions/wcstof.texi: Likewise.
42967         * doc/posix-functions/wcstoimax.texi: Likewise.
42968         * doc/posix-functions/wcstok.texi: Likewise.
42969         * doc/posix-functions/wcstold.texi: Likewise.
42970         * doc/posix-functions/wcstoll.texi: Likewise.
42971         * doc/posix-functions/wcstol.texi: Likewise.
42972         * doc/posix-functions/wcstombs.texi: Likewise.
42973         * doc/posix-functions/wcstoull.texi: Likewise.
42974         * doc/posix-functions/wcstoul.texi: Likewise.
42975         * doc/posix-functions/wcstoumax.texi: Likewise.
42976         * doc/posix-functions/wcswidth.texi: Likewise.
42977         * doc/posix-functions/wcsxfrm.texi: Likewise.
42978         * doc/posix-functions/wctob.texi: Likewise.
42979         * doc/posix-functions/wctomb.texi: Likewise.
42980         * doc/posix-functions/wctrans.texi: Likewise.
42981         * doc/posix-functions/wctype.texi: Likewise.
42982         * doc/posix-functions/wcwidth.texi: Likewise.
42983         * doc/posix-functions/wmemchr.texi: Likewise.
42984         * doc/posix-functions/wmemcmp.texi: Likewise.
42985         * doc/posix-functions/wmemcpy.texi: Likewise.
42986         * doc/posix-functions/wmemmove.texi: Likewise.
42987         * doc/posix-functions/wmemset.texi: Likewise.
42988         * doc/posix-functions/wprintf.texi: Likewise.
42989         * doc/posix-functions/wscanf.texi: Likewise.
42990
42991 2008-12-21  Bruno Haible  <bruno@clisp.org>
42992
42993         Update doc for HP-UX 11.11.
42994         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42995         in HP-UX version 11.00, not in all versions of HP-UX 11.
42996         * doc/posix-functions/fwide.texi: Likewise.
42997         * doc/posix-functions/fwprintf.texi: Likewise.
42998         * doc/posix-functions/fwscanf.texi: Likewise.
42999         * doc/posix-functions/inet_ntop.texi: Likewise.
43000         * doc/posix-functions/inet_pton.texi: Likewise.
43001         * doc/posix-functions/mbrlen.texi: Likewise.
43002         * doc/posix-functions/mbrtowc.texi: Likewise.
43003         * doc/posix-functions/mbsinit.texi: Likewise.
43004         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43005         * doc/posix-functions/swprintf.texi: Likewise.
43006         * doc/posix-functions/swscanf.texi: Likewise.
43007         * doc/posix-functions/towctrans.texi: Likewise.
43008         * doc/posix-functions/vfwprintf.texi: Likewise.
43009         * doc/posix-functions/vswprintf.texi: Likewise.
43010         * doc/posix-functions/vwprintf.texi: Likewise.
43011         * doc/posix-functions/wcrtomb.texi: Likewise.
43012         * doc/posix-functions/wcsrtombs.texi: Likewise.
43013         * doc/posix-functions/wcsstr.texi: Likewise.
43014         * doc/posix-functions/wctob.texi: Likewise.
43015         * doc/posix-functions/wctrans.texi: Likewise.
43016         * doc/posix-functions/wmemchr.texi: Likewise.
43017         * doc/posix-functions/wmemcmp.texi: Likewise.
43018         * doc/posix-functions/wmemcpy.texi: Likewise.
43019         * doc/posix-functions/wmemmove.texi: Likewise.
43020         * doc/posix-functions/wmemset.texi: Likewise.
43021         * doc/posix-functions/wprintf.texi: Likewise.
43022         * doc/posix-functions/wscanf.texi: Likewise.
43023
43024 2008-12-21  Bruno Haible  <bruno@clisp.org>
43025
43026         Work around a portability problem.
43027         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43028         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43029
43030 2008-12-20  Bruno Haible  <bruno@clisp.org>
43031
43032         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43033         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43034         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43036         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43037
43038         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43039         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43040         set.
43041         (GNULIB_defined_mbstate_t): New macro.
43042         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43043         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43044         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43045         reuses the system's mbrtowc function but works around the bugs.
43046         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43047         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43048         macros.
43049         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43050         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43051         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43052         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43053         REPLACE_MBSINIT if mbsinit needs to be overridden.
43054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43055         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43056         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43057         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43058         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43059         m4/locale-zh.m4.
43060         (Depends): Add mbsinit.
43061         * modules/mbsinit (Depends): Add mbrtowc.
43062         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43063
43064 2008-12-20  Bruno Haible  <bruno@clisp.org>
43065
43066         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43067         so that there are no conversion errors on AIX.
43068         * tests/test-mbsrtowcs.c (main): LIkewise.
43069
43070 2008-12-20  Bruno Haible  <bruno@clisp.org>
43071
43072         Work around wctob bug on Solaris <= 9.
43073         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43074         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43075         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43076         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43077         * modules/wctob (Files): Add m4/locale-fr.m4.
43078         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43079
43080 2008-12-20  Bruno Haible  <bruno@clisp.org>
43081
43082         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43083         /dev/null.
43084         * tests/test-select-in.sh: Likewise.
43085         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43086
43087 2008-12-20  Bruno Haible  <bruno@clisp.org>
43088
43089         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43090         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43091         Cygwin 1.5.x.
43092
43093 2008-12-20  Bruno Haible  <bruno@clisp.org>
43094
43095         Ensure mbstate_t is defined on HP-UX 11.11.
43096         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43097         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43098         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43099         AC_USE_SYSTEM_EXTENSIONS.
43100         * modules/fnmatch (Depends-on): Add extensions.
43101         * modules/mbrlen (Depends-on): Likewise.
43102         * modules/mbrtowc (Depends-on): Likewise.
43103         * modules/mbsinit (Depends-on): Likewise.
43104         * modules/mbsrtowcs (Depends-on): Likewise.
43105         * modules/mbswidth (Depends-on): Likewise.
43106         * modules/quotearg (Depends-on): Likewise.
43107         * modules/strftime (Depends-on): Likewise.
43108
43109 2008-12-20  Bruno Haible  <bruno@clisp.org>
43110
43111         Ensure wctob is declared on IRIX 6.5.
43112         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43113         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43114         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43116         of HAVE_WCTOB.
43117         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43118         HAVE_WCTOB.
43119         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43120
43121 2008-12-19  Bruno Haible  <bruno@clisp.org>
43122
43123         * modules/mbsrtowcs-tests: New file.
43124         * tests/test-mbsrtowcs1.sh: New file.
43125         * tests/test-mbsrtowcs2.sh: New file.
43126         * tests/test-mbsrtowcs3.sh: New file.
43127         * tests/test-mbsrtowcs4.sh: New file.
43128         * tests/test-mbsrtowcs.c: New file.
43129
43130         New module 'mbsrtowcs'.
43131         * lib/wchar.in.h (mbsrtowcs): New declaration.
43132         * lib/mbsrtowcs.c: New file.
43133         * m4/mbsrtowcs.m4: New file.
43134         * modules/mbsrtowcs: New file.
43135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43136         HAVE_MBSRTOWCS.
43137         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43138         HAVE_MBSRTOWCS.
43139         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43140
43141 2008-12-19  Bruno Haible  <bruno@clisp.org>
43142
43143         New module 'mbrlen'.
43144         * lib/wchar.in.h (mbrlen): New declaration.
43145         * lib/mbrlen.c: New file.
43146         * m4/mbrlen.m4: New file.
43147         * modules/mbrlen: New file.
43148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43149         HAVE_MBRLEN.
43150         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43151         HAVE_MBRLEN.
43152         * doc/posix-functions/mbrlen.texi: Document the new module.
43153
43154 2008-12-19  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43157         * modules/mbrtowc (Depends-on): Add verify.
43158         Suggested by Paul Eggert.
43159
43160 2008-12-18  Bruno Haible  <bruno@clisp.org>
43161
43162         * modules/mbsinit-tests: New file.
43163         * tests/test-mbsinit.sh: New file.
43164         * tests/test-mbsinit.c: New file.
43165
43166 2008-12-18  Bruno Haible  <bruno@clisp.org>
43167
43168         * modules/mbrtowc-tests: New file.
43169         * tests/test-mbrtowc1.sh: New file.
43170         * tests/test-mbrtowc2.sh: New file.
43171         * tests/test-mbrtowc3.sh: New file.
43172         * tests/test-mbrtowc4.sh: New file.
43173         * tests/test-mbrtowc.c: New file.
43174
43175         New module 'mbrtowc'.
43176         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43177         mbsinit and mbrtowc.
43178         (mbrtowc): New declaration.
43179         * lib/mbrtowc.c: New file.
43180         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43181         * modules/mbrtowc: New file.
43182         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43183         HAVE_MBRTOWC.
43184         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43185         HAVE_MBRTOWC.
43186         * doc/posix-functions/mbrtowc.texi: Document the new module.
43187
43188 2008-12-18  Bruno Haible  <bruno@clisp.org>
43189
43190         New module 'wctob'.
43191         * lib/wchar.in.h (wctob): New declaration.
43192         * lib/wctob.c: New file.
43193         * m4/wctob.m4: New file.
43194         * modules/wctob: New file.
43195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43196         HAVE_WCTOB.
43197         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43198         * doc/posix-functions/wctob.texi: Document the new module.
43199
43200 2008-12-18  Bruno Haible  <bruno@clisp.org>
43201
43202         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43203         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43204
43205 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43206
43207         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43208         G. Christensen" <tgc@jupiterrise.com>.
43209
43210         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43211         G. Christensen" <tgc@jupiterrise.com>.
43212
43213         * lib/flock.c: Need to include string.h.  Reported by "Tom
43214         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43215         <ebb9@byu.net>.
43216
43217 2008-12-18  Bruno Haible  <bruno@clisp.org>
43218
43219         * m4/locale-ja.m4: New file, from GNU gettext.
43220
43221 2008-12-17  Bruno Haible  <bruno@clisp.org>
43222
43223         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43224         Suggested by Eric Blake.
43225
43226 2008-12-17  Bruno Haible  <bruno@clisp.org>
43227
43228         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43229
43230 2008-12-17  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43233         * modules/mbsinit (Depends-on): Add verify.
43234         Suggested by Paul Eggert.
43235
43236 2008-12-17  Bruno Haible  <bruno@clisp.org>
43237
43238         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43239         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43240         gl_FUNC_MBRTOWC.
43241         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43242         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43243         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43244         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43245         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43246         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43247         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43248         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43249         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43250         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43251         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43252         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43253         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43254         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43255         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43256         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43257         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43258         * modules/trim (configure.ac): Likewise.
43259
43260 2008-12-17  Bruno Haible  <bruno@clisp.org>
43261
43262         * modules/btowc-tests: New file.
43263         * tests/test-btowc1.sh: New file.
43264         * tests/test-btowc2.sh: New file.
43265         * tests/test-btowc.c: New file.
43266
43267         New module 'btowc'.
43268         * lib/wchar.in.h (btowc): New declaration.
43269         * lib/btowc.c: New file.
43270         * m4/btowc.m4: New file.
43271         * modules/btowc: New file.
43272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43273         HAVE_BTOWC.
43274         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43275         * doc/posix-functions/btowc.texi: Document the new module.
43276
43277 2008-12-17  Bruno Haible  <bruno@clisp.org>
43278
43279         New module 'mbsinit'.
43280         * lib/wchar.in.h (mbsinit): New declaration.
43281         * lib/mbsinit.c: New file.
43282         * m4/mbsinit.m4: New file.
43283         * modules/mbsinit: New file.
43284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43285         HAVE_MBSINIT.
43286         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43287         HAVE_MBSINIT.
43288         * doc/posix-functions/mbsinit.texi: Document the new module.
43289
43290 2008-12-16  Bruno Haible  <bruno@clisp.org>
43291
43292         * lib/unistd.in.h: Add comment.
43293         * tests/test-environ.c: Don't include <stdlib.h>.
43294
43295 2008-12-16  Bruno Haible  <bruno@clisp.org>
43296
43297         * lib/parse-duration.h (parse_duration): Document return value
43298         convention.
43299         * lib/parse-duration.c: Include specification header first. Add
43300         comments.
43301         (_): Remove macro.
43302         (parse_year_month_day, parse_hour_minute_second): Move side effects
43303         outside of strchr call.
43304         (parse_non_iso8601): Move side effects outside of isspace call.
43305         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43306         call.
43307
43308 2008-12-16  Bruno Haible  <bruno@clisp.org>
43309
43310         * tests/test-parse-duration.sh: Produce no output when the test
43311         succeeds.
43312
43313 2008-12-16  Bruno Haible  <bruno@clisp.org>
43314
43315         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43316         expressions.
43317
43318 2008-12-15  Bruno Haible  <bruno@clisp.org>
43319
43320         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43321         * doc/glibc-functions/flistxattr.texi: Likewise.
43322         * doc/glibc-functions/fopencookie.texi: Likewise.
43323         * doc/glibc-functions/fremovexattr.texi: Likewise.
43324         * doc/glibc-functions/fsetxattr.texi: Likewise.
43325         * doc/glibc-functions/getxattr.texi: Likewise.
43326         * doc/glibc-functions/lgetxattr.texi: Likewise.
43327         * doc/glibc-functions/listxattr.texi: Likewise.
43328         * doc/glibc-functions/llistxattr.texi: Likewise.
43329         * doc/glibc-functions/lremovexattr.texi: Likewise.
43330         * doc/glibc-functions/lsetxattr.texi: Likewise.
43331         * doc/glibc-functions/removexattr.texi: Likewise.
43332         * doc/glibc-functions/setxattr.texi: Likewise.
43333         * doc/posix-functions/open_memstream.texi: Likewise.
43334
43335 2008-12-15  Eric Blake  <ebb9@byu.net>
43336
43337         Update doc for cygwin 1.7.
43338         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43339         functions.
43340         * doc/posix-functions/fchmodat.texi: Likewise.
43341         * doc/posix-functions/fchownat.texi: Likewise.
43342         * doc/posix-functions/fdopendir.texi: Likewise.
43343         * doc/posix-functions/fmemopen.texi: Likewise.
43344         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43345         * doc/posix-functions/fstatat.texi: Likewise.
43346         * doc/posix-functions/futimens.texi: Likewise.
43347         * doc/posix-functions/gai_strerror.texi: Likewise.
43348         * doc/posix-functions/getaddrinfo.texi: Likewise.
43349         * doc/posix-functions/getnameinfo.texi: Likewise.
43350         * doc/posix-functions/if_freenameindex.texi: Likewise.
43351         * doc/posix-functions/if_indextoname.texi: Likewise.
43352         * doc/posix-functions/if_nameindex.texi: Likewise.
43353         * doc/posix-functions/if_nametoindex.texi: Likewise.
43354         * doc/posix-functions/insque.texi: Likewise.
43355         * doc/posix-functions/linkat.texi: Likewise.
43356         * doc/posix-functions/llrint.texi: Likewise.
43357         * doc/posix-functions/llrintf.texi: Likewise.
43358         * doc/posix-functions/llrintl.texi: Likewise.
43359         * doc/posix-functions/lockf.texi: Likewise.
43360         * doc/posix-functions/lrintl.texi: Likewise.
43361         * doc/posix-functions/mkdirat.texi: Likewise.
43362         * doc/posix-functions/mkfifoat.texi: Likewise.
43363         * doc/posix-functions/mknodat.texi: Likewise.
43364         * doc/posix-functions/mq_close.texi: Likewise.
43365         * doc/posix-functions/mq_getattr.texi: Likewise.
43366         * doc/posix-functions/mq_notify.texi: Likewise.
43367         * doc/posix-functions/mq_open.texi: Likewise.
43368         * doc/posix-functions/mq_receive.texi: Likewise.
43369         * doc/posix-functions/mq_send.texi: Likewise.
43370         * doc/posix-functions/mq_setattr.texi: Likewise.
43371         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43372         * doc/posix-functions/mq_timedsend.texi: Likewise.
43373         * doc/posix-functions/mq_unlink.texi: Likewise.
43374         * doc/posix-functions/open_memstream.texi: Likewise.
43375         * doc/posix-functions/openat.texi: Likewise.
43376         * doc/posix-functions/posix_fadvise.texi: Likewise.
43377         * doc/posix-functions/posix_fallocate.texi: Likewise.
43378         * doc/posix-functions/posix_madvise.texi: Likewise.
43379         * doc/posix-functions/posix_memalign.texi: Likewise.
43380         * doc/posix-functions/posix_openpt.texi: Likewise.
43381         * doc/posix-functions/readlinkat.texi: Likewise.
43382         * doc/posix-functions/remque.texi: Likewise.
43383         * doc/posix-functions/renameat.texi: Likewise.
43384         * doc/posix-functions/rintl.texi: Likewise.
43385         * doc/posix-functions/sem_unlink.texi: Likewise.
43386         * doc/posix-functions/shm_open.texi: Likewise.
43387         * doc/posix-functions/shm_unlink.texi: Likewise.
43388         * doc/posix-functions/signgam.texi: Likewise.
43389         * doc/posix-functions/sigset.texi: Likewise.
43390         * doc/posix-functions/stpcpy.texi: Likewise.
43391         * doc/posix-functions/stpncpy.texi: Likewise.
43392         * doc/posix-functions/strerror.texi: Likewise.
43393         * doc/posix-functions/strtod.texi: Likewise.
43394         * doc/posix-functions/symlinkat.texi: Likewise.
43395         * doc/posix-functions/unlinkat.texi: Likewise.
43396         * doc/posix-functions/utimensat.texi: Likewise.
43397         * doc/glibc-functions/bindresvport.texi: Likewise.
43398         * doc/glibc-functions/dn_expand.texi: Likewise.
43399         * doc/glibc-functions/exp10.texi: Likewise.
43400         * doc/glibc-functions/exp10f.texi: Likewise.
43401         * doc/glibc-functions/fgetxattr.texi: Likewise.
43402         * doc/glibc-functions/flistxattr.texi: Likewise.
43403         * doc/glibc-functions/fopencookie.texi: Likewise.
43404         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43405         * doc/glibc-functions/fremovexattr.texi: Likewise.
43406         * doc/glibc-functions/fsetxattr.texi: Likewise.
43407         * doc/glibc-functions/getifaddrs.texi: Likewise.
43408         * doc/glibc-functions/getxattr.texi: Likewise.
43409         * doc/glibc-functions/lgetxattr.texi: Likewise.
43410         * doc/glibc-functions/listxattr.texi: Likewise.
43411         * doc/glibc-functions/llistxattr.texi: Likewise.
43412         * doc/glibc-functions/lremovexattr.texi: Likewise.
43413         * doc/glibc-functions/lsetxattr.texi: Likewise.
43414         * doc/glibc-functions/pow10.texi: Likewise.
43415         * doc/glibc-functions/pow10f.texi: Likewise.
43416         * doc/glibc-functions/rcmd_af.texi: Likewise.
43417         * doc/glibc-functions/removexattr.texi: Likewise.
43418         * doc/glibc-functions/res_init.texi: Likewise.
43419         * doc/glibc-functions/res_mkquery.texi: Likewise.
43420         * doc/glibc-functions/res_query.texi: Likewise.
43421         * doc/glibc-functions/res_querydomain.texi: Likewise.
43422         * doc/glibc-functions/res_send.texi: Likewise.
43423         * doc/glibc-functions/rresvport_af.texi: Likewise.
43424         * doc/glibc-functions/setxattr.texi: Likewise.
43425         * doc/glibc-functions/strcasestr.texi: Likewise.
43426
43427 2008-12-15  Bruno Haible  <bruno@clisp.org>
43428
43429         Fix compilation error on OSF/1 4.0.
43430         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43431         <sys/time.h>, simply delegate to the system header.
43432         Reported by Daniel Richard G. <oss@teragram.com>.
43433
43434 2008-12-15  Bruno Haible  <bruno@clisp.org>
43435
43436         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43437         * doc/posix-functions/fchmodat.texi: Likewise.
43438         * doc/posix-functions/fchownat.texi: Likewise.
43439         * doc/posix-functions/fdopendir.texi: Likewise.
43440         * doc/posix-functions/fstatat.texi: Likewise.
43441         * doc/posix-functions/mkdirat.texi: Likewise.
43442         * doc/posix-functions/unlinkat.texi: Likewise.
43443
43444 2008-12-14  Bruno Haible  <bruno@clisp.org>
43445
43446         Update doc for POSIX:2008.
43447         * doc/posix-functions/faccessat.texi: New file.
43448         * doc/posix-functions/fchmodat.texi: New file.
43449         * doc/posix-functions/fchownat.texi: New file.
43450         * doc/posix-functions/fdopendir.texi: New file.
43451         * doc/posix-functions/fstatat.texi: New file.
43452         * doc/posix-functions/futimens.texi: New file.
43453         * doc/posix-functions/linkat.texi: New file.
43454         * doc/posix-functions/mkdirat.texi: New file.
43455         * doc/posix-functions/mkfifoat.texi: New file.
43456         * doc/posix-functions/mknodat.texi: New file.
43457         * doc/posix-functions/open_wmemstream.texi: New file.
43458         * doc/posix-functions/openat.texi: New file.
43459         * doc/posix-functions/psiginfo.texi: New file.
43460         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43461         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43462         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43463         * doc/posix-functions/readlinkat.texi: New file.
43464         * doc/posix-functions/renameat.texi: New file.
43465         * doc/posix-functions/strerror_l.texi: New file.
43466         * doc/posix-functions/symlinkat.texi: New file.
43467         * doc/posix-functions/unlinkat.texi: New file.
43468         * doc/posix-functions/utimensat.texi: New file.
43469         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43470
43471 2008-12-14  Bruno Haible  <bruno@clisp.org>
43472
43473         Update doc for POSIX:2008.
43474         * doc/posix-functions/alphasort.texi: Renamed from
43475         doc/glibc-functions/alphasort.texi.
43476         * doc/posix-functions/dirfd.texi: Renamed from
43477         doc/glibc-functions/dirfd.texi.
43478         * doc/posix-functions/dprintf.texi: Renamed from
43479         doc/glibc-functions/dprintf.texi.
43480         * doc/posix-functions/duplocale.texi: Renamed from
43481         doc/glibc-functions/duplocale.texi.
43482         * doc/posix-functions/fexecve.texi: Renamed from
43483         doc/glibc-functions/fexecve.texi.
43484         * doc/posix-functions/fmemopen.texi: Renamed from
43485         doc/glibc-functions/fmemopen.texi.
43486         * doc/posix-functions/freelocale.texi: Renamed from
43487         doc/glibc-functions/freelocale.texi.
43488         * doc/posix-functions/getdate_err.texi: Renamed from
43489         doc/glibc-functions/getdate_err.texi.
43490         * doc/posix-functions/isalnum_l.texi: Renamed from
43491         doc/glibc-functions/isalnum_l.texi.
43492         * doc/posix-functions/isalpha_l.texi: Renamed from
43493         doc/glibc-functions/isalpha_l.texi.
43494         * doc/posix-functions/isblank_l.texi: Renamed from
43495         doc/glibc-functions/isblank_l.texi.
43496         * doc/posix-functions/iscntrl_l.texi: Renamed from
43497         doc/glibc-functions/iscntrl_l.texi.
43498         * doc/posix-functions/isdigit_l.texi: Renamed from
43499         doc/glibc-functions/isdigit_l.texi.
43500         * doc/posix-functions/isgraph_l.texi: Renamed from
43501         doc/glibc-functions/isgraph_l.texi.
43502         * doc/posix-functions/islower_l.texi: Renamed from
43503         doc/glibc-functions/islower_l.texi.
43504         * doc/posix-functions/isprint_l.texi: Renamed from
43505         doc/glibc-functions/isprint_l.texi.
43506         * doc/posix-functions/ispunct_l.texi: Renamed from
43507         doc/glibc-functions/ispunct_l.texi.
43508         * doc/posix-functions/isspace_l.texi: Renamed from
43509         doc/glibc-functions/isspace_l.texi.
43510         * doc/posix-functions/isupper_l.texi: Renamed from
43511         doc/glibc-functions/isupper_l.texi.
43512         * doc/posix-functions/iswalnum_l.texi: Renamed from
43513         doc/glibc-functions/iswalnum_l.texi.
43514         * doc/posix-functions/iswalpha_l.texi: Renamed from
43515         doc/glibc-functions/iswalpha_l.texi.
43516         * doc/posix-functions/iswblank_l.texi: Renamed from
43517         doc/glibc-functions/iswblank_l.texi.
43518         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43519         doc/glibc-functions/iswcntrl_l.texi.
43520         * doc/posix-functions/iswctype_l.texi: Renamed from
43521         doc/glibc-functions/iswctype_l.texi.
43522         * doc/posix-functions/iswdigit_l.texi: Renamed from
43523         doc/glibc-functions/iswdigit_l.texi.
43524         * doc/posix-functions/iswgraph_l.texi: Renamed from
43525         doc/glibc-functions/iswgraph_l.texi.
43526         * doc/posix-functions/iswlower_l.texi: Renamed from
43527         doc/glibc-functions/iswlower_l.texi.
43528         * doc/posix-functions/iswprint_l.texi: Renamed from
43529         doc/glibc-functions/iswprint_l.texi.
43530         * doc/posix-functions/iswpunct_l.texi: Renamed from
43531         doc/glibc-functions/iswpunct_l.texi.
43532         * doc/posix-functions/iswspace_l.texi: Renamed from
43533         doc/glibc-functions/iswspace_l.texi.
43534         * doc/posix-functions/iswupper_l.texi: Renamed from
43535         doc/glibc-functions/iswupper_l.texi.
43536         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43537         doc/glibc-functions/iswxdigit_l.texi.
43538         * doc/posix-functions/isxdigit_l.texi: Renamed from
43539         doc/glibc-functions/isxdigit_l.texi.
43540         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43541         doc/glibc-functions/mbsnrtowcs.texi.
43542         * doc/posix-functions/mkdtemp.texi: Renamed from
43543         doc/glibc-functions/mkdtemp.texi.
43544         * doc/posix-functions/newlocale.texi: Renamed from
43545         doc/glibc-functions/newlocale.texi.
43546         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43547         doc/glibc-functions/nl_langinfo_l.texi.
43548         * doc/posix-functions/open_memstream.texi: Renamed from
43549         doc/glibc-functions/open_memstream.texi.
43550         * doc/posix-functions/opterr.texi: Renamed from
43551         doc/glibc-functions/opterr.texi.
43552         * doc/posix-functions/optind.texi: Renamed from
43553         doc/glibc-functions/optind.texi.
43554         * doc/posix-functions/optopt.texi: Renamed from
43555         doc/glibc-functions/optopt.texi.
43556         * doc/posix-functions/psignal.texi: Renamed from
43557         doc/glibc-functions/psignal.texi.
43558         * doc/posix-functions/scandir.texi: Renamed from
43559         doc/glibc-functions/scandir.texi.
43560         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43561         doc/glibc-functions/sched_get_priority_min.texi.
43562         * doc/posix-functions/signgam.texi: Renamed from
43563         doc/glibc-functions/signgam.texi.
43564         * doc/posix-functions/stpcpy.texi: Renamed from
43565         doc/glibc-functions/stpcpy.texi.
43566         * doc/posix-functions/stpncpy.texi: Renamed from
43567         doc/glibc-functions/stpncpy.texi.
43568         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43569         doc/glibc-functions/strcasecmp_l.texi.
43570         * doc/posix-functions/strcoll_l.texi: Renamed from
43571         doc/glibc-functions/strcoll_l.texi.
43572         * doc/posix-functions/strfmon_l.texi: Renamed from
43573         doc/glibc-functions/strfmon_l.texi.
43574         * doc/posix-functions/strftime_l.texi: Renamed from
43575         doc/glibc-functions/strftime_l.texi.
43576         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43577         doc/glibc-functions/strncasecmp_l.texi.
43578         * doc/posix-functions/strndup.texi: Renamed from
43579         doc/glibc-functions/strndup.texi.
43580         * doc/posix-functions/strnlen.texi: Renamed from
43581         doc/glibc-functions/strnlen.texi.
43582         * doc/posix-functions/strsignal.texi: Renamed from
43583         doc/glibc-functions/strsignal.texi.
43584         * doc/posix-functions/strxfrm_l.texi: Renamed from
43585         doc/glibc-functions/strxfrm_l.texi.
43586         * doc/posix-functions/timer_gettime.texi: Renamed from
43587         doc/glibc-functions/timer_gettime.texi.
43588         * doc/posix-functions/tolower_l.texi: Renamed from
43589         doc/glibc-functions/tolower_l.texi.
43590         * doc/posix-functions/toupper_l.texi: Renamed from
43591         doc/glibc-functions/toupper_l.texi.
43592         * doc/posix-functions/towctrans_l.texi: Renamed from
43593         doc/glibc-functions/towctrans_l.texi.
43594         * doc/posix-functions/towlower_l.texi: Renamed from
43595         doc/glibc-functions/towlower_l.texi.
43596         * doc/posix-functions/towupper_l.texi: Renamed from
43597         doc/glibc-functions/towupper_l.texi.
43598         * doc/posix-functions/uselocale.texi: Renamed from
43599         doc/glibc-functions/uselocale.texi.
43600         * doc/posix-functions/vdprintf.texi: Renamed from
43601         doc/glibc-functions/vdprintf.texi.
43602         * doc/posix-functions/wcpcpy.texi:
43603         Renamed from doc/glibc-functions/wcpcpy.texi.
43604         * doc/posix-functions/wcpncpy.texi: Renamed from
43605         doc/glibc-functions/wcpncpy.texi.
43606         * doc/posix-functions/wcscasecmp.texi: Renamed from
43607         doc/glibc-functions/wcscasecmp.texi.
43608         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43609         doc/glibc-functions/wcscasecmp_l.texi.
43610         * doc/posix-functions/wcscoll_l.texi: Renamed from
43611         doc/glibc-functions/wcscoll_l.texi.
43612         * doc/posix-functions/wcsdup.texi: Renamed from
43613         doc/glibc-functions/wcsdup.texi.
43614         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43615         doc/glibc-functions/wcsncasecmp.texi.
43616         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43617         doc/glibc-functions/wcsncasecmp_l.texi.
43618         * doc/posix-functions/wcsnlen.texi: Renamed from
43619         doc/glibc-functions/wcsnlen.texi.
43620         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43621         doc/glibc-functions/wcsnrtombs.texi.
43622         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43623         doc/glibc-functions/wcsxfrm_l.texi.
43624         * doc/posix-functions/wctrans_l.texi: Renamed from
43625         doc/glibc-functions/wctrans_l.texi.
43626         * doc/posix-functions/wctype_l.texi: Renamed from
43627         doc/glibc-functions/wctype_l.texi.
43628         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43629         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43630         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43631         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43632         these subsections.
43633         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43634         Remove sections.
43635
43636 2008-12-14  Bruno Haible  <bruno@clisp.org>
43637
43638         Update doc for POSIX:2008.
43639         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43640
43641 2008-12-14  Bruno Haible  <bruno@clisp.org>
43642
43643         Update doc for POSIX:2008.
43644         * doc/pastposix-functions/bcmp.texi: Renamed from
43645         doc/posix-functions/bcmp.texi.
43646         * doc/pastposix-functions/bcopy.texi: Renamed from
43647         doc/posix-functions/bcopy.texi.
43648         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43649         doc/posix-functions/bsd_signal.texi.
43650         * doc/pastposix-functions/bzero.texi: Renamed from
43651         doc/posix-functions/bzero.texi.
43652         * doc/pastposix-functions/ecvt.texi: Renamed from
43653         doc/posix-functions/ecvt.texi.
43654         * doc/pastposix-functions/fcvt.texi: Renamed from
43655         doc/posix-functions/fcvt.texi.
43656         * doc/pastposix-functions/ftime.texi: Renamed from
43657         doc/posix-functions/ftime.texi.
43658         * doc/pastposix-functions/gcvt.texi: Renamed from
43659         doc/posix-functions/gcvt.texi.
43660         * doc/pastposix-functions/getcontext.texi: Renamed from
43661         doc/posix-functions/getcontext.texi.
43662         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43663         doc/posix-functions/gethostbyaddr.texi.
43664         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43665         doc/posix-functions/gethostbyname.texi.
43666         * doc/pastposix-functions/getwd.texi: Renamed from
43667         doc/posix-functions/getwd.texi.
43668         * doc/pastposix-functions/h_errno.texi: Renamed from
43669         doc/posix-functions/h_errno.texi.
43670         * doc/pastposix-functions/index.texi: Renamed from
43671         doc/posix-functions/index.texi.
43672         * doc/pastposix-functions/makecontext.texi: Renamed from
43673         doc/posix-functions/makecontext.texi.
43674         * doc/pastposix-functions/mktemp.texi: Renamed from
43675         doc/posix-functions/mktemp.texi.
43676         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43677         doc/posix-functions/pthread_attr_getstackaddr.texi.
43678         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43679         doc/posix-functions/pthread_attr_setstackaddr.texi.
43680         * doc/pastposix-functions/rindex.texi: Renamed from
43681         doc/posix-functions/rindex.texi.
43682         * doc/pastposix-functions/scalb.texi: Renamed from
43683         doc/posix-functions/scalb.texi.
43684         * doc/pastposix-functions/setcontext.texi: Renamed from
43685         doc/posix-functions/setcontext.texi.
43686         * doc/pastposix-functions/swapcontext.texi: Renamed from
43687         doc/posix-functions/swapcontext.texi.
43688         * doc/pastposix-functions/ualarm.texi: Renamed from
43689         doc/posix-functions/ualarm.texi.
43690         * doc/pastposix-functions/usleep.texi: Renamed from
43691         doc/posix-functions/usleep.texi.
43692         * doc/pastposix-functions/vfork.texi: Renamed from
43693         doc/posix-functions/vfork.texi.
43694         * doc/pastposix-functions/wcswcs.texi: Renamed from
43695         doc/posix-functions/wcswcs.texi.
43696         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43697         (Function Substitutes): Update.
43698
43699 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43700
43701         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43702         m4/strerror.m4.
43703
43704 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43705             Bruno Haible  <bruno@clisp.org>
43706
43707         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43708
43709 2008-12-13  Bruno Haible  <bruno@clisp.org>
43710
43711         * modules/strtoull (Depends-on): Remove unistd.
43712
43713 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43714
43715         * modules/strtoull (Depends-on): Add stdlib.
43716
43717 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43718
43719         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43720
43721 2008-12-10  Jim Meyering  <meyering@redhat.com>
43722
43723         gl_ASSERT: don't say assertions are disabled when they're not
43724         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43725         "checking whether to enable assertions... no", when they are in
43726         fact enabled.  This is solely a bug in the output of configure.
43727         In spite of saying "no", NDEBUG was not defined in that case.
43728         Also, as noted by Eric Blake, leave assertions enabled upon
43729         --enable-assert=INVALID.
43730
43731 2008-12-10  Bruno Haible  <bruno@clisp.org>
43732
43733         Change MODULES.html to refer to POSIX:2008 where possible.
43734         * MODULES.html.sh (POSIX2008_URL): New variable.
43735         (posix_headers): Remove sys/timeb, ucontext.
43736         (posix2001_headers): New variable.
43737         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43738         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43739         index, makecontext, mktemp, pthread_attr_getstackaddr,
43740         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43741         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43742         (posix2001_functions): New variable.
43743         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43744         otherwise.
43745
43746 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43747
43748         add missing include to parse-duration.c
43749         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43750         * modules/parse-duration (Depends-on): Add xalloc.
43751
43752         fix sed script reading maint.mk
43753         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43754         (syntax-check-rules): Use it.
43755
43756 2008-12-09  Bruno Haible  <bruno@clisp.org>
43757
43758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43759         MacOS X 10.4/PowerPC.
43760         Reported by Simon Josefsson.
43761
43762 2008-12-08  Jim Meyering  <meyering@redhat.com>
43763
43764         work around mingw's lack of some S_IF definitions
43765         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43766         Reported by Simon Josefsson.
43767
43768 2008-12-08  Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43771         applied to variables. Needed on MacOS X 10.4/PowerPC.
43772         Reported by Simon Josefsson.
43773
43774 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43775         and Eric Blake  <ebb9@byu.net>
43776
43777         assert: honor --enable-assert
43778         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43779         order to honor --enable-assert, rather than treating it as a
43780         synonym for --disable-assert.
43781
43782 2008-12-08  Jim Meyering  <meyering@redhat.com>
43783
43784         * lib/posixtm.c: Remove now-useless declaration of mktime.
43785
43786         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43787
43788 2008-12-07  Bruno Haible  <bruno@clisp.org>
43789
43790         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43791         test_once): Mark functions as static.
43792         * tests/test-tls.c (test_tls): Likewise.
43793
43794 2008-12-07  Bruno Haible  <bruno@clisp.org>
43795
43796         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43797         iconv_register_autodetect.
43798
43799 2008-12-07  Jim Meyering  <meyering@redhat.com>
43800
43801         posixtm.c: avoid a warning
43802         * lib/posixtm.c (posixtime): Don't initialize tm0.
43803         It's no longer needed to placate gcc4's -Wuninitialized,
43804         and the attempt to placate would elicit a new warning.
43805
43806         unicodeio.c: mark unused parameters
43807         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43808         (fallback_failure_callback): Likewise.
43809
43810 2008-12-07  Bruno Haible  <bruno@clisp.org>
43811
43812         * gnulib-tool (func_create_testdir): When building the tests
43813         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43814         Reported by Simon Josefsson.
43815
43816 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43817
43818         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43819
43820 2008-12-06  Bruno Haible  <bruno@clisp.org>
43821
43822         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43823         Suggested by Eric Blake.
43824
43825 2008-12-06  Bruno Haible  <bruno@clisp.org>
43826
43827         Fix a c-stack test failure on MacOS X.
43828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43829         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43830         handler for SIGBUS as well.
43831         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43832         install a signal handler for SIGBUS as well.
43833         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43834
43835 2008-12-06  Bruno Haible  <bruno@clisp.org>
43836
43837         Advocacy documentation.
43838         * doc/gnulib-intro.texi (Benefits): New section.
43839         * doc/gnulib.texi: Update.
43840
43841 2008-12-06  Bruno Haible  <bruno@clisp.org>
43842
43843         Document the 'manywarnings' module.
43844         * doc/manywarnings.texi: New file.
43845         * doc/gnulib.texi: Include it.
43846
43847 2008-12-05  Eric Blake  <ebb9@byu.net>
43848
43849         tests: silence some gcc warnings
43850         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43851         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43852         type mismatches.
43853
43854 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43855             Bruno Haible  <bruno@clisp.org>
43856
43857         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43858
43859 2008-11-29  Jim Meyering  <meyering@redhat.com>
43860
43861         unicodeio.c: mark unused parameters
43862         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43863         (fallback_failure_callback): Likewise.
43864
43865         fts: fix a thinko
43866         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43867         (set_stat_type): Return S_IF*-valued "type" directly.
43868         Prompted by James Youngman's spotting a related bug.
43869         Confirmed by further testing through find.
43870
43871         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43872         * lib/fts.c (D_TYPE): Define.
43873         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43874         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43875         (s_ifmt_shift_bits): New function.
43876         (set_stat_type): New function.
43877         (fts_build): When not calling fts_stat, call set_stat_type
43878         to propagate dirent.d_type info to fts_read caller.
43879         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43880         fts_statp->st_mode type information may be valid.
43881
43882 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43883
43884         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43885         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43886         <sds@gnu.org>.
43887
43888 2008-11-20  Bruno Haible  <bruno@clisp.org>
43889
43890         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43891         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43892         INCLUDE_NEXT.
43893         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43894         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43895         * modules/math (Makefile.am): Substitute
43896         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43897         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43898
43899 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43900             Bruno Haible  <bruno@clisp.org>
43901
43902         * lib/stdint.in.h: Define all type macros so that their expansion is
43903         a single typedef'ed token. Fixes a compilation failure in Boost which
43904         does "using ::int8_t;".
43905
43906 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43907
43908         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43909         gl_MANYWARN_ALL_GCC.
43910         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43911         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43912         * modules/manywarnings: New file.
43913         * MODULES.html.sh: Mention manywarnings module.
43914
43915 2008-11-18  Bruno Haible  <bruno@clisp.org>
43916
43917         * doc/gnulib-tool.texi (Unit tests): New section.
43918
43919 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43920
43921         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43922         paths like 'lib/po/foo.po'.
43923
43924 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43925
43926         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43927         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43928
43929 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43930
43931         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43932         parameter works.
43933
43934 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43935
43936         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43937
43938 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43939
43940         * modules/parse-duration-tests: New file.
43941         * tests/test-parse-duration.sh: New file.
43942         * tests/test-parse-duration.c: New file.
43943
43944         New module 'parse-duration'.
43945         * lib/parse-duration.h: New file.
43946         * lib/parse-duration.c: New file.
43947         * modules/parse-duration: New file.
43948
43949 2008-11-17  Bruno Haible  <bruno@clisp.org>
43950
43951         * tests/test-select-out.sh: Comment out the first pipe test.
43952         Reported by Simon Josefsson.
43953
43954 2008-11-17  Bruno Haible  <bruno@clisp.org>
43955
43956         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43958         gl_HOSTENT.
43959
43960 2008-11-17  Bruno Haible  <bruno@clisp.org>
43961
43962         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43963         -lnetwork and -lnet. Needed for Haiku and BeOS.
43964
43965 2008-11-16  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43968
43969 2008-11-16  Bruno Haible  <bruno@clisp.org>
43970
43971         Avoid test failure on Haiku.
43972         * tests/test-fsync.c: Include <errno.h>.
43973         (main): Don't require that fsync (0) fails.
43974
43975 2008-11-15  Bruno Haible  <bruno@clisp.org>
43976
43977         New module 'hostent'.
43978         * modules/hostent: New file.
43979         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43980
43981 2008-11-15  Bruno Haible  <bruno@clisp.org>
43982
43983         New module 'servent'.
43984         * modules/servent: New file.
43985         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43986
43987 2008-11-15  Bruno Haible  <bruno@clisp.org>
43988
43989         Avoid generating same test program with two different rules.
43990         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43991         test-frexp to test-frexp-nolibm.
43992         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43993         test-frexpl to test-frexpl-nolibm.
43994
43995 2008-11-15  Bruno Haible  <bruno@clisp.org>
43996
43997         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43998         $(FREXPL_LIBM).
43999
44000 2008-11-15  Bruno Haible  <bruno@clisp.org>
44001
44002         * lib/netdb.in.h: Activate the definitions also when the system's
44003         <netdb.h> has 'struct addrinfo'.
44004         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44005         EAI_OVERFLOW or AI_NUMERICSERV.
44006         * doc/posix-headers/netdb.texi: Document the problem.
44007
44008 2008-11-15  Bruno Haible  <bruno@clisp.org>
44009
44010         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44011
44012         Make the 'sched' module work on platforms where <sched.h> exists but
44013         is incomplete (such as Haiku).
44014         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44015         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44016         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44017         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44018         HAVE_STRUCT_SCHED_PARAM.
44019         * modules/sched (Depends-on): Add include_next.
44020         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44021         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44022         * doc/posix-headers/sched.texi: Document the issue.
44023
44024 2008-11-13  Jim Meyering  <meyering@redhat.com>
44025
44026         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44027         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44028         test would fail due to the difference in the Report bugs to ...
44029         line.  The expected address is empty, "<>", while the actual
44030         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44031
44032 2008-11-12  Bruno Haible  <bruno@clisp.org>
44033
44034         lstat: don't compile lstat.c on systems lacking lstat
44035         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44036         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44037         Reported by Daniel P. Berrange via Jim Meyering.
44038
44039 2008-11-12  Jim Meyering  <meyering@redhat.com>
44040
44041         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44042
44043 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44044
44045         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44046         instead.
44047
44048 2008-11-12  Bruno Haible  <bruno@clisp.org>
44049
44050         * lib/unicodeio.c: Include unistr.h.
44051         (utf8_wctomb): Remove function.
44052         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44053
44054 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44055
44056         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44057         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44058         <bruno@clisp.org>.
44059         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44060
44061 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44062
44063         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44064         * doc/gnulib.texi: Add section for warnings.
44065
44066 2008-11-11  Bruno Haible  <bruno@clisp.org>
44067
44068         * lib/sockets.h: Add a comment.
44069
44070 2008-11-11  Karl Berry  <karl@gnu.org>
44071
44072         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44073
44074 2008-11-11  Eric Blake  <ebb9@byu.net>
44075
44076         fdl.texi: avoid git symlinks
44077         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44078
44079 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44080
44081         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44082
44083 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44084
44085         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44086         (gl_WARN_ADD): Substitute $2 if literal.
44087
44088 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44089
44090         * m4/warning.m4: Remove.
44091
44092 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44093
44094         * m4/warnings.m4: Almost complete rewrite. :-)
44095
44096 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44097
44098         * modules/warnings: New module.
44099         * m4/warnings.m4: New file.
44100         * MODULES.html.sh: Mention warnings module.
44101         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44102         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44103
44104 2008-11-10  Eric Blake  <ebb9@byu.net>
44105
44106         fdl.texi: make a symlink to the latest version
44107         * doc/standards.texi: Revert today's earlier change.
44108         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44109         * doc/fdl.texi: ...and replace this with a symlink to the newer
44110         fdl-1.3.texi.
44111
44112 2008-11-10  Bruno Haible  <bruno@clisp.org>
44113
44114         * tests/test-select-fd.c (main): Accept the result file name as fourth
44115         argument.
44116         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44117         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44118
44119 2008-11-10  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44122         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44123         as autoconf-substituted macros.
44124         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44126         gl_NETDB_H_DEFAULTS. Set these variables.
44127         * modules/netdb (Makefile.am): Substitute these variables.
44128
44129 2008-11-10  Eric Blake  <ebb9@byu.net>
44130
44131         standards.texi: include correct file for FDL 1.3
44132         * doc/standards.texi (GNU Free Documentation License): Change
44133         include file to pull in FDL 1.3, not 1.2.
44134
44135         fdl.texi: revert accidental change to license
44136         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44137
44138 2008-11-10  Bruno Haible  <bruno@clisp.org>
44139
44140         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44141         cross-compiling guesses also when the native compile gives no result.
44142
44143 2008-11-10  Bruno Haible  <bruno@clisp.org>
44144
44145         * lib/spawni.c (__spawni): Force variable into the stack.
44146
44147 2008-11-10  Bruno Haible  <bruno@clisp.org>
44148
44149         Add support for Haiku.
44150         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44151         glibc and BeOS, but also on Haiku.
44152         * lib/fpurge.c (fpurge): Likewise.
44153         * lib/freadable.c (freadable): Likewise.
44154         * lib/freadahead.c (freadahead): Likewise.
44155         * lib/freading.c (freading): Likewise.
44156         * lib/freadptr.c (freadptr): Likewise.
44157         * lib/freadseek.c (freadptrinc): Likewise.
44158         * lib/fseeko.c (rpl_fseeko): Likewise.
44159         * lib/fseterr.c (fseterr): Likewise.
44160         * lib/fwritable.c (fwritable): Likewise.
44161         * lib/fwriting.c (fwriting): Likewise.
44162         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44163
44164 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44165
44166         * lib/config.charset: Treat Haiku like BeOS.
44167
44168 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44169
44170         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44171         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44172
44173 2008-11-08  Bruno Haible  <bruno@clisp.org>
44174
44175         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44176         AC_CACHE_CHECK.
44177
44178 2008-11-08  Bruno Haible  <bruno@clisp.org>
44179
44180         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44181
44182 2008-11-08  Bruno Haible  <bruno@clisp.org>
44183
44184         * tests/test-select-fd.c: New file.
44185         * tests/test-select-in.sh: New file.
44186         * tests/test-select-out.sh: New file.
44187         * tests/test-select-stdin.c: New file.
44188         * modules/select-tests (Files): Add the new files.
44189         (Depends-on): Add gettimeofday.
44190         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44191         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44192         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44193
44194 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44195             Bruno Haible  <bruno@clisp.org>
44196
44197         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44198
44199 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44200
44201         * build-aux/pmccabe2html: Added support for C++ source files.
44202
44203 2008-11-05  Ben Pfaff  <blp@gnu.org>
44204
44205         Fix lib/close.c build on Windows.
44206         * modules/close (Files): Add lib/w32sock.h.
44207
44208 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44209
44210         Accept Bison's NEWS format.
44211         * build-aux/announce-gen (print_news_deltas): Tweak
44212         $re_prefix.
44213
44214 2008-11-04  Bruno Haible  <bruno@clisp.org>
44215
44216         * modules/random_r (Maintainer): Add glibc.
44217
44218 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44219
44220         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44221         by karl@freefriends.org (Karl Berry).
44222         * doc/alloca.texi: Likewise.
44223         * doc/c-ctype.texi: Likewise.
44224         * doc/c-strcase.texi: Likewise.
44225         * doc/c-strcaseeq.texi: Likewise.
44226         * doc/c-strcasestr.texi: Likewise.
44227         * doc/c-strstr.texi: Likewise.
44228         * doc/c-strtod.texi: Likewise.
44229         * doc/c-strtold.texi: Likewise.
44230         * doc/ctime.texi: Likewise.
44231         * doc/error.texi: Likewise.
44232         * doc/fdl.texi: Likewise.
44233         * doc/gcd.texi: Likewise.
44234         * doc/getdate.texi: Likewise.
44235         * doc/gnulib-intro.texi: Likewise.
44236         * doc/gnulib-tool.texi: Likewise.
44237         * doc/gnulib.texi: Likewise.
44238         * doc/inet_ntoa.texi: Likewise.
44239         * doc/maintain.texi: Likewise.
44240         * doc/make-stds.texi: Likewise.
44241         * doc/quote.texi: Likewise.
44242         * doc/regexprops-generic.texi: Likewise.
44243         * doc/standards.texi: Likewise.
44244         * doc/verify.texi: Likewise.
44245         * doc/visibility.texi: Likewise.
44246         * doc/gnulib.texi (GNU Free Documentation License): Include
44247         fdl-1.3.texi instead of fdl.texi.
44248
44249 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44250
44251         * doc/fdl-1.3.texi: New file, from
44252         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44253         * modules/fdl-1.3: Add.
44254         * MODULES.html.sh: Add fdl-1.3.
44255
44256 2008-11-03  Bruno Haible  <bruno@clisp.org>
44257
44258         Make determination of absolute name of header file work with AIX xlc.
44259         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44260         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44261         preprocessing.
44262         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44263         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44264
44265 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44266
44267         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44268         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44269         <ludo@gnu.org>.
44270
44271 2008-11-02  Bruno Haible  <bruno@clisp.org>
44272
44273         Mark 'strpbrk' obsolete.
44274         * modules/strpbrk (Status, Notice): New sections.
44275         * modules/strtok_r (Depends-on): Add strpbrk.
44276
44277 2008-11-02  Bruno Haible  <bruno@clisp.org>
44278
44279         Mark 'strdup' obsolete.
44280         * modules/strdup (Status, Notice): New sections.
44281         * modules/findprog (Depends-on): Add strdup.
44282         * modules/getaddrinfo (Depends-on): Likewise.
44283         * modules/localename (Depends-on): Likewise.
44284         * modules/relocatable-lib (Depends-on): Likewise.
44285         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44286         * modules/relocatable-prog (Depends-on): Likewise.
44287         * modules/trim (Depends-on): Likewise.
44288         * modules/unictype/gen-ctype (Depends-on): Likewise.
44289         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44290
44291 2008-11-02  Bruno Haible  <bruno@clisp.org>
44292
44293         Mark 'strcspn' obsolete.
44294         * modules/strcspn (Status, Notice): New sections.
44295
44296 2008-11-02  Bruno Haible  <bruno@clisp.org>
44297
44298         Mark 'rmdir' obsolete.
44299         * modules/rmdir (Status, Notice): New sections.
44300         * modules/clean-temp (Depends-on): Add rmdir.
44301         * modules/openat (Depends-on): Likewise.
44302
44303 2008-11-02  Bruno Haible  <bruno@clisp.org>
44304
44305         Mark 'raise' obsolete.
44306         * modules/raise (Status, Notice): New sections.
44307         (Include): Specify <signal.h>.
44308         * modules/stdio (Depends-on): Add raise.
44309         * modules/write (Depends-on): Likewise.
44310
44311 2008-11-02  Bruno Haible  <bruno@clisp.org>
44312
44313         Mark 'memset' obsolete.
44314         * modules/memset (Status, Notice): New sections.
44315
44316 2008-11-02  Bruno Haible  <bruno@clisp.org>
44317
44318         Mark 'memmove' obsolete.
44319         * modules/memmove (Status, Notice): New sections.
44320         * modules/argp (Depends-on): Add memmove.
44321         * modules/argz (Depends-on): Likewise.
44322         * modules/canonicalize (Depends-on): Likewise.
44323         * modules/canonicalize-lgpl (Depends-on): Likewise.
44324         * modules/fts (Depends-on): Likewise.
44325         * modules/getcwd (Depends-on): Likewise.
44326         * modules/human (Depends-on): Likewise.
44327         * modules/regex (Depends-on): Likewise.
44328         * modules/striconveh (Depends-on): Likewise.
44329         * modules/trim (Depends-on): Likewise.
44330         * modules/unistr/u8-move (Depends-on): Likewise.
44331         * modules/unistr/u16-move (Depends-on): Likewise.
44332         * modules/unistr/u32-move (Depends-on): Likewise.
44333
44334 2008-11-02  Bruno Haible  <bruno@clisp.org>
44335
44336         Mark 'memcpy' obsolete.
44337         * modules/memcpy (Status, Notice): New sections.
44338
44339 2008-11-02  Bruno Haible  <bruno@clisp.org>
44340
44341         Mark 'memcmp' obsolete.
44342         * modules/memcmp (Status, Notice): New sections.
44343         * modules/argmatch (Depends-on): Add memchr.
44344         * modules/backupfile (Depends-on): Likewise.
44345         * modules/c-strcasestr (Depends-on): Likewise.
44346         * modules/crypto/des (Depends-on): Likewise.
44347         * modules/csharpcomp (Depends-on): Likewise.
44348         * modules/fnmatch (Depends-on): Likewise.
44349         * modules/git-merge-changelog (Depends-on): Likewise.
44350         * modules/isnand (Depends-on): Likewise.
44351         * modules/isnand-nolibm (Depends-on): Likewise.
44352         * modules/isnanf (Depends-on): Likewise.
44353         * modules/isnanf-nolibm (Depends-on): Likewise.
44354         * modules/isnanl (Depends-on): Likewise.
44355         * modules/isnanl-nolibm (Depends-on): Likewise.
44356         * modules/mbchar (Depends-on): Likewise.
44357         * modules/memcoll (Depends-on): Likewise.
44358         * modules/quotearg (Depends-on): Likewise.
44359         * modules/regex (Depends-on): Likewise.
44360         * modules/relocatable-prog (Depends-on): Likewise.
44361         * modules/same (Depends-on): Likewise.
44362         * modules/signbit (Depends-on): Likewise.
44363         * modules/strcasestr-simple (Depends-on): Likewise.
44364         * modules/unictype/gen-ctype (Depends-on): Likewise.
44365         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44366         * modules/uniname/uniname (Depends-on): Likewise.
44367         * modules/unistr/u8-cmp (Depends-on): Likewise.
44368
44369 2008-11-02  Bruno Haible  <bruno@clisp.org>
44370
44371         Mark 'memchr' obsolete.
44372         * modules/memchr (Status, Notice): New sections.
44373         * modules/argp (Depends-on): Add memchr.
44374         * modules/base64 (Depends-on): Likewise.
44375         * modules/c-strcasestr (Depends-on): Likewise.
44376         * modules/chdir-long (Depends-on): Likewise.
44377         * modules/fnmatch (Depends-on): Likewise.
44378         * modules/getsubopt (Depends-on): Likewise.
44379         * modules/git-merge-changelog (Depends-on): Likewise.
44380         * modules/glob (Depends-on): Likewise.
44381         * modules/strcasestr-simple (Depends-on): Likewise.
44382         * modules/strnlen (Depends-on): Likewise.
44383
44384 2008-11-02  Bruno Haible  <bruno@clisp.org>
44385
44386         Mark 'atexit' obsolete.
44387         * modules/atexit (Status, Notice): New sections.
44388         * modules/chdir-long (Depends-on): Add atexit.
44389         * modules/wait-process (Depends-on): Likewise.
44390
44391 2008-11-02  Bruno Haible  <bruno@clisp.org>
44392
44393         * gnulib-tool: New option --with-obsolete.
44394         (func_usage): Document it.
44395         (func_modules_transitive_closure): Drop obsolete dependencies if
44396         incobsolete is not true.
44397         (func_import): Read and save the incobsolete variable to the cache.
44398
44399 2008-11-02  Bruno Haible  <bruno@clisp.org>
44400
44401         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44402         * gnulib-tool: New option --extract-status.
44403         (func_usage): Document it.
44404         (sed_extract_prog): Recognize it.
44405         (func_get_status): New function.
44406
44407 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44408
44409         * modules/sockets (License): Change from LGPL to LGPLv2+.
44410
44411 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44412
44413         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44414
44415 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44416
44417         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44418         Mention times and sys_times.
44419         * modules/sys_times, modules/sys_times-tests: New modules.
44420         * modules/times, modules/times-tests: Likewise
44421         * m4/sys_times_h.m4: New file.
44422         * lib/sys_times.in.h: Likewise
44423         * lib/times.c: Likewise.
44424         * tests/test-sys_times.c: Likewise.
44425         * tests/test-times.c: Likewise.
44426         * doc/posix-headers/sys_times.texi: Update.
44427         * doc/posix-functions/times.texi: Update.
44428
44429 2008-10-28  Jim Meyering  <meyering@redhat.com>
44430
44431         * modules/tempname (Depends-on): Add lstat.
44432
44433         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44434
44435 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44436
44437         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44438         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44439         using idiom used elsewhere in gnulib.
44440
44441 2008-10-27  Jim Meyering  <meyering@redhat.com>
44442
44443         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44444
44445 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44446
44447         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44448         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44449         programs.
44450         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44451
44452 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44453
44454         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44455
44456 2008-10-27  Bruno Haible  <bruno@clisp.org>
44457
44458         * tests/test-lstat.c: Include <stdio.h>.
44459
44460 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44461
44462         * modules/lstat-tests: New module.
44463         * tests/test-lstat.c: New file.
44464
44465 2008-10-26  Jim Meyering  <meyering@redhat.com>
44466
44467         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44468
44469 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44470             Bruno Haible  <bruno@clisp.org>
44471
44472         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44473         * modules/configmake (Include): Add a note that the include must come
44474         after all system headers.
44475         * lib/javaversion.c: Include configmake.h after all other includes.
44476
44477 2008-10-26  Bruno Haible  <bruno@clisp.org>
44478
44479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44480         HAVE_STRUCT_RANDOM_DATA to 1.
44481         (gl_STDLIB_H): Simplify.
44482
44483 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44484
44485         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44486         substitute HAVE_STRUCT_RANDOM_DATA.
44487         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44488         random_data.
44489         * modules/stdlib (Makefile.am): Substitute
44490         HAVE_STRUCT_RANDOM_DATA.
44491
44492 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44493
44494         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44495         * doc/gnulib-intro.texi (Copyright): Likewise.
44496
44497 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44498
44499         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44500         findings.
44501
44502 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44503             Bruno Haible  <bruno@clisp.org>
44504
44505         * lib/unistd.in.h: Include <winsock2.h>.
44506         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44507         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44508         Provide dummy declarations.
44509         (gethostname): Override.
44510         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44511         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44512         gl_PREREQ_SYS_H_WINSOCK2.
44513         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44514         * doc/posix-functions/gethostname.texi: More details.
44515
44516 2008-10-25  Bruno Haible  <bruno@clisp.org>
44517
44518         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44519         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44520         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44521
44522         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44523         here ...
44524         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44525         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44526         gl_UNISTD_H_DEFAULTS.
44527
44528 2008-10-25  Eric Blake  <ebb9@byu.net>
44529
44530         signbit: avoid spurious compiler failure
44531         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44532         declarations inside function.
44533
44534 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44535             Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44538         * modules/random_r (Depends-on): Add stdint.
44539
44540 2008-10-24  Bruno Haible  <bruno@clisp.org>
44541
44542         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44543         Eggert.
44544         * modules/strerror (License): Likewise.
44545
44546 2008-10-24  Jim Meyering  <meyering@redhat.com>
44547
44548         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44549         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44550
44551 2008-10-24  Eric Blake  <ebb9@byu.net>
44552
44553         getgroups: fix compilation when getgroups is available
44554         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44555         but with <config.h> override of getgroups disabled.
44556
44557 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44558
44559         * doc/gnulib.texi (Header files): Add note about C++ problems.
44560         Explained by Bruno Haible <bruno@clisp.org>.
44561
44562 2008-10-23  Bruno Haible  <bruno@clisp.org>
44563
44564         Define a dummy SA_NODEFER macro on Interix.
44565         * lib/signal.in.h (SA_NODEFER): Define fallback.
44566         Reported by Aleksey Cheusov <cheusov@tut.by> via
44567         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44568
44569 2008-10-23  Bruno Haible  <bruno@clisp.org>
44570
44571         * modules/freadahead (License): Change to LGPLv2+.
44572         Suggested by Simon Josefsson.
44573
44574 2008-10-23  Jim Meyering  <meyering@redhat.com>
44575
44576         random_r: new module
44577         * modules/random_r: New file.
44578         * m4/random_r.m4: New file.
44579         * lib/random_r.c: New file, from glibc.
44580         * modules/random_r-tests: New file.
44581         * tests/test-random_r.c: New file.
44582         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44583          Declare.
44584         (RAND_MAX): Define.
44585         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44586         * modules/stdlib: Substitute them, too.
44587         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44588         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44589         * doc/glibc-functions/random_r.texi: Likewise.
44590         * doc/glibc-functions/setstate_r.texi: Likewise.
44591         * doc/glibc-functions/srandom_r.texi: Likewise.
44592         * config/srclist.txt: Mention it.
44593
44594 2008-10-23  David Lutterkort  <lutter@redhat.com>
44595
44596         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44597         link requirement
44598
44599 2008-10-23  Jim Meyering  <meyering@redhat.com>
44600
44601         selinux-h: mark parameters of stub functions as intentionally unused
44602         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44603         * lib/se-context.in.h: Likewise.
44604
44605 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44606
44607         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44608
44609 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44610
44611         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44612
44613 2008-10-22  Eric Blake  <ebb9@byu.net>
44614
44615         glthread/thread: avoid compiler warning
44616         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44617         Add unreachable abort to silence compiler.
44618
44619 2008-10-22  Eric Blake  <ebb9@byu.net>
44620
44621         netdb: also supply struct addrinfo for cygwin 1.5.x
44622         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44623         older cygwin.
44624         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44625         cygwin.
44626         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44627
44628 2008-10-22  Bruno Haible  <bruno@clisp.org>
44629
44630         * users.txt: Update entry about pspp.
44631
44632 2008-10-21  Bruno Haible  <bruno@clisp.org>
44633
44634         Simplification.
44635         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44636         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44637
44638         Simplification.
44639         * lib/ioctl.c (ioctl): Don't undefine.
44640         * lib/socket.c (socket): Don't undefine.
44641
44642         Remove unused module indicator macros.
44643         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44644         GNULIB_$1 as a C macro.
44645
44646         * doc/posix-functions/close.texi: Undo last change.
44647         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44648         Windows platforms.
44649
44650 2008-10-21  Bruno Haible  <bruno@clisp.org>
44651
44652         Add gethostname() declaration to <unistd.h>.
44653         * lib/unistd.in.h (gethostname): New declaration.
44654         * lib/gethostname.c: Include <unistd.h>.
44655         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44656         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44658         and HAVE_GETHOSTNAME.
44659         * modules/gethostname (Depends-on): Add unistd.
44660         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44661         (Include): Specify <unistd.h>.
44662         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44663         HAVE_GETHOSTNAME.
44664         * tests/test-gethostname.c: Include <unistd.h> first.
44665
44666 2008-10-21  Bruno Haible  <bruno@clisp.org>
44667
44668         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44669         * modules/select-tests (Depends-on): Likewise.
44670         Reported by Simon Josefsson.
44671
44672 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44673
44674         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44675         * lib/accept.c: New file, based on winsock.c.
44676         * lib/bind.c: New file, based on winsock.c.
44677         * lib/connect.c: New file, based on winsock.c.
44678         * lib/getpeername.c: New file, based on winsock.c.
44679         * lib/getsockname.c: New file, based on winsock.c.
44680         * lib/getsockopt.c: New file, based on winsock.c.
44681         * lib/ioctl.c: New file, based on winsock.c.
44682         * lib/listen.c: New file, based on winsock.c.
44683         * lib/recv.c: New file, based on winsock.c.
44684         * lib/recvfrom.c: New file, based on winsock.c.
44685         * lib/send.c: New file, based on winsock.c.
44686         * lib/sendto.c: New file, based on winsock.c.
44687         * lib/setsockopt.c: New file, based on winsock.c.
44688         * lib/shutdown.c: New file, based on winsock.c.
44689         * lib/socket.c: New file, based on winsock.c.
44690         * lib/w32sock.h: New file, based on winsock.c.
44691         * lib/winsock.c: Remove file.
44692         * modules/accept: Likewise.
44693         * modules/bind: Likewise.
44694         * modules/connect: Likewise.
44695         * modules/getpeername: Likewise.
44696         * modules/getsockname: Likewise.
44697         * modules/getsockopt: Likewise.
44698         * modules/ioctl: Likewise.
44699         * modules/listen: Likewise.
44700         * modules/recv: Likewise.
44701         * modules/recvfrom: Likewise.
44702         * modules/send: Likewise.
44703         * modules/sendto: Likewise.
44704         * modules/setsockopt: Likewise.
44705         * modules/shutdown: Likewise.
44706         * modules/socket: Use socket.c instead of winsock.c.
44707         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44708         * doc/posix-functions/accept.texi: Doc fix.
44709         * doc/posix-functions/bind.texi: Doc fix.
44710         * doc/posix-functions/close.texi: Doc fix.
44711         * doc/posix-functions/connect.texi: Doc fix.
44712         * doc/posix-functions/getpeername.texi: Doc fix.
44713         * doc/posix-functions/getsockname.texi: Doc fix.
44714         * doc/posix-functions/getsockopt.texi: Doc fix.
44715         * doc/posix-functions/ioctl.texi: Doc fix.
44716         * doc/posix-functions/listen.texi: Doc fix.
44717         * doc/posix-functions/recv.texi: Doc fix.
44718         * doc/posix-functions/recvfrom.texi: Doc fix.
44719         * doc/posix-functions/send.texi: Doc fix.
44720         * doc/posix-functions/sendto.texi: Doc fix.
44721         * doc/posix-functions/setsockopt.texi: Doc fix.
44722         * doc/posix-functions/shutdown.texi: Doc fix.
44723         * doc/posix-functions/socket.texi: Doc fix.
44724
44725 2008-10-20  Bruno Haible  <bruno@clisp.org>
44726
44727         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44728         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44729         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44730         as an alias for SIGABRT.
44731         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44732         (sigaction): Map it to SIGABRT.
44733         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44734
44735 2008-10-20  Bruno Haible  <bruno@clisp.org>
44736
44737         * lib/fts.c: Don't include lstat.h.
44738         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44739
44740         Move the lstat() declaration to <sys/stat.h>.
44741         * lib/lstat.h: Remove file.
44742         * lib/sys_stat.in.h: Add special invocation convention.
44743         (lstat): New declaration.
44744         * lib/lstat.c (orig_lstat): New function.
44745         (rpl_lstat): Use orig_lstat instead of lstat.
44746         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44747         AC_C_INLINE. Set REPLACE_LSTAT.
44748         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44749         and REPLACE_LSTAT.
44750         * modules/lstat (Files): Remove lib/lstat.h.
44751         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44752         (Include): Specify <sys/stat.h> instead of lstat.h.
44753         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44754         REPLACE_LSTAT.
44755         * NEWS: Mention the change.
44756
44757 2008-10-20  Bruno Haible  <bruno@clisp.org>
44758
44759         * modules/posix_spawn-tests: New file.
44760         * tests/test-posix_spawn3.c: New file.
44761
44762 2008-10-20  Bruno Haible  <bruno@clisp.org>
44763
44764         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44765         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44766         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44767         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44768         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44769
44770 2008-10-20  Bruno Haible  <bruno@clisp.org>
44771
44772         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44773         of posix_spawn on AIX 5.3.
44774
44775 2008-10-20  Bruno Haible  <bruno@clisp.org>
44776
44777         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44778
44779 2008-10-20  Bruno Haible  <bruno@clisp.org>
44780
44781         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44782         of AC_LANG_PROGRAM.
44783
44784 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44785
44786         * lib/netdb.in.h: Don't define GNU specific constants until they
44787         are supported or needed.  Reported by Bruno Haible
44788         <bruno@clisp.org>.
44789
44790 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44791
44792         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44793
44794 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44795
44796         * lib/getaddrinfo.h: Remove file.
44797         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44798         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44799         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44800         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44801         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44802         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44803         * tests/test-getaddrinfo.c: Likewise.
44804         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44805         * NEWS: Mention change.
44806
44807 2008-10-19  Bruno Haible  <bruno@clisp.org>
44808
44809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44810
44811 2008-10-19  Bruno Haible  <bruno@clisp.org>
44812
44813         * lib/wait-process.c: Include simply <sys/wait.h>.
44814         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44815         WIFSTOPPED): Remove fallback definitions.
44816         * modules/wait-process (Depends-on): Add sys_wait.
44817
44818         New module 'sys_wait'.
44819         * modules/sys_wait: New file.
44820         * lib/sys_wait.in.h: New file, partially copied from
44821         lib/wait-process.c.
44822         * m4/sys_wait_h.m4: New file.
44823         * doc/posix-headers/sys_wait.texi: Mention the new module.
44824
44825 2008-10-19  Bruno Haible  <bruno@clisp.org>
44826
44827         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44828
44829 2008-10-19  Bruno Haible  <bruno@clisp.org>
44830
44831         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44832         * lib/wait-process.c (WAIT_T): Remove type.
44833         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44834         (wait_subprocess): Update.
44835
44836 2008-10-19  Bruno Haible  <bruno@clisp.org>
44837
44838         New module 'atoll'.
44839         * modules/atoll: New file.
44840         * lib/stdlib.in.h (atoll): New declaration.
44841         * lib/atoll.c: New file, from glibc with modifications.
44842         * m4/atoll.m4: New file.
44843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44844         HAVE_ATOLL.
44845         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44846         * doc/posix-functions/atoll.texi: Mention the new module.
44847
44848 2008-10-19  Bruno Haible  <bruno@clisp.org>
44849
44850         Add strtoull() declaration to <stdlib.h>.
44851         * lib/stdlib.in.h (strtoull): New declaration.
44852         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44853         Set HAVE_STRTOULL.
44854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44855         HAVE_STRTOULL.
44856         * modules/strtoull (Depends-on): Add stdlib.
44857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44858         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44859         HAVE_STRTOULL.
44860
44861 2008-10-19  Bruno Haible  <bruno@clisp.org>
44862
44863         Add strtoll() declaration to <stdlib.h>.
44864         * lib/stdlib.in.h (strtoll): New declaration.
44865         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44866         Set HAVE_STRTOLL.
44867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44868         HAVE_STRTOLL.
44869         * modules/strtoll (Depends-on): Add stdlib.
44870         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44871         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44872
44873 2008-10-19  Bruno Haible  <bruno@clisp.org>
44874
44875         * modules/bcopy (Depends-on): Add strings.
44876         (Include): Specify <strings.h>.
44877
44878 2008-10-19  Bruno Haible  <bruno@clisp.org>
44879
44880         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44881
44882 2008-10-19  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44885         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44886         mingw.
44887
44888 2008-10-19  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/atanl.c: Don't include isnanl.h.
44891         * lib/cosl.c: Likewise.
44892         * lib/ldexpl.c: Likewise.
44893         * lib/logl.c: Likewise.
44894         * lib/sinl.c: Likewise.
44895         * lib/sqrtl.c: Likewise.
44896         * lib/tanl.c: Likewise.
44897
44898         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44899         * lib/isnanf.h: Remove file.
44900         * lib/isnand.h: Remove file.
44901         * lib/isnanl.h: Remove file.
44902         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44903         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44904         macros.
44905         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44906         HAVE_ISNANF, don't define it as a C macro.
44907         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44908         HAVE_ISNAND, don't define it as a C macro.
44909         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44910         HAVE_ISNANL, don't define it as a C macro.
44911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44912         HAVE_ISNAN[FDL].
44913         * modules/isnanf (Files): Remove lib/isnanf.h.
44914         (Depends-on): Add math.
44915         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44916         (Include): Specify <math.h> instead of isnanf.h.
44917         * modules/isnand (Files): Remove lib/isnand.h.
44918         (Depends-on): Add math.
44919         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44920         (Include): Specify <math.h> instead of isnand.h.
44921         * modules/isnanl (Files): Remove lib/isnanl.h.
44922         (Depends-on): Add math.
44923         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44924         (Include): Specify <math.h> instead of isnanl.h.
44925         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44926         HAVE_ISNAN[FDL].
44927         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44928         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44929         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44930         * NEWS: Mention the change.
44931
44932 2008-10-18  Bruno Haible  <bruno@clisp.org>
44933
44934         Add getusershell(), setusershell(), endusershell() declarations to
44935         <unistd.h>.
44936         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44937         declarations.
44938         * lib/getusershell.c: Include unistd.h.
44939         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44940         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44941         HAVE_GETUSERSHELL.
44942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44943         and HAVE_GETUSERSHELL.
44944         * modules/getusershell (Depends-on): Add unistd, extensions.
44945         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44946         (Include): Specify <unistd.h>.
44947         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44948         HAVE_GETUSERSHELL.
44949
44950 2008-10-18  Bruno Haible  <bruno@clisp.org>
44951
44952         Add a getloadavg() declaration to <stdlib.h>.
44953         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44954         getloadavg declaration.
44955         (getloadavg): New declaration.
44956         * lib/getloadavg.c: Include <stdlib.h> first.
44957         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44958         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44959         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44961         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44962         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44963         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44964         (Include): Specify <stdlib.h>.
44965         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44966         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44967
44968 2008-10-18  Bruno Haible  <bruno@clisp.org>
44969
44970         * lib/dirchownmod.c: Don't include lchmod.h.
44971
44972         Move the lchmod() declaration to <sys/stat.h>.
44973         * lib/lchmod.h: Remove file.
44974         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44975         (lchmod): New declaration, moved here from lib/lchown.h.
44976         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44977         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44979         and HAVE_LCHMOD.
44980         * modules/lchmod (Files): Remove lib/lchmod.h.
44981         (Depends-on): Add sys_stat, extensions.
44982         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44983         (Include): Specify <sys/stat.h> instead of lchmod.h.
44984         * modules/sys_stat (Depends-on): Add link-warning.
44985         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44986         definition of GL_LINK_WARNING.
44987         * NEWS: Mention the change.
44988
44989 2008-10-18  Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/fchdir.c: Don't include dirfd.h.
44992         * lib/fts.c: Likewise.
44993         * lib/getcwd.c: Likewise.
44994         * lib/glob.c: Likewise.
44995
44996         Move the dirfd() declaration to <dirent.h>.
44997         * lib/dirfd.h: Remove file.
44998         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44999         (dirfd): New declaration.
45000         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45001         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45002         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45003         HAVE_DECL_DIRFD.
45004         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45005         HAVE_DECL_DIRFD.
45006         * modules/dirfd (Files): Remove lib/dirfd.h.
45007         (Depends-on): Add dirent, extensions.
45008         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45009         (Include): Specify <dirent.h> instead of dirfd.h.
45010         * modules/dirent (Depends-on): Add link-warning.
45011         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45012         definition of GL_LINK_WARNING.
45013         * NEWS: Mention the change.
45014
45015 2008-10-18  Bruno Haible  <bruno@clisp.org>
45016
45017         Move the euidaccess() declaration to <unistd.h>.
45018         * lib/euidaccess.h: Remove file.
45019         * lib/unistd.in.h (euidaccess): New declaration.
45020         * lib/euidaccess.c: Don't include euidaccess.h.
45021         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45022         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45024         and HAVE_EUIDACCESS.
45025         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45026         (Depends-on): Add unistd.
45027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45028         (Include): Specify <unistd.h> instead of euidaccess.h.
45029         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45030         HAVE_EUIDACCESS.
45031         * NEWS: Mention the change.
45032
45033 2008-10-18  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45036
45037         Move the getdomainname() declaration to <unistd.h>.
45038         * lib/getdomainname.h: Remove file.
45039         * lib/unistd.in.h (getdomainname): New declaration.
45040         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45041         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45042         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45043         HAVE_GETDOMAINNAME.
45044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45045         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45046         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45047         (Depends-on): Add unistd, extensions.
45048         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45049         (Includes): Specify <unistd.h> instead of getdomainname.h.
45050         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45051         HAVE_GETDOMAINNAME.
45052         * NEWS: Mention the change.
45053
45054 2008-10-18  Bruno Haible  <bruno@clisp.org>
45055
45056         * modules/dirent: New file.
45057         * m4/dirent_h.m4: New file.
45058         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45059         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45060         * modules/fchdir (Files): Remove lib/dirent.in.h.
45061         (Depends-on): Add dirent.
45062         (Makefile.am): Move rules to modules/dirent.
45063         * doc/posix-headers/dirent.texi: Mention the new module.
45064
45065 2008-10-18  Bruno Haible  <bruno@clisp.org>
45066
45067         Avoid -Wunused-parameter warnings in public gnulib header files.
45068         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45069         macro.
45070         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45071
45072 2008-10-18  Bruno Haible  <bruno@clisp.org>
45073
45074         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45075         * doc/glibc-functions/error.texi: Mention the module 'error'.
45076         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45077         * doc/glibc-functions/getdomainname.texi: Mention the module
45078         'getdomainname'.
45079         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45080         * doc/glibc-functions/getpagesize.texi: Mention the module
45081         'getpagesize'.
45082         * doc/glibc-functions/getusershell.texi: Mention the module
45083         'getusershell'.
45084         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45085         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45086         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45087         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45088         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45089         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45090         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45091         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45092         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45093         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45094         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45095         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45096         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45097         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45098
45099 2008-10-17  Bruno Haible  <bruno@clisp.org>
45100
45101         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45102         HP-UX and IRIX, use -0.0L.
45103         * tests/test-ceill.c (minus_zero): Likewise.
45104         * tests/test-floorl.c (minus_zero): Likewise.
45105         * tests/test-frexpl.c (minus_zero): Likewise.
45106         * tests/test-isnan.c (minus_zerol): Likewise.
45107         * tests/test-isnanl.h (minus_zero): Likewise.
45108         * tests/test-ldexpl.c (minus_zero): Likewise.
45109         * tests/test-roundl.c (minus_zero): Likewise.
45110         * tests/test-signbit.c (minus_zerol): Likewise.
45111         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45112         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45113         * tests/test-truncl.c (minus_zero): Likewise.
45114         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45115         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45116         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45117         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45118
45119 2008-10-17  Bruno Haible  <bruno@clisp.org>
45120
45121         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45122         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45123         that it gets activated only for gcc >= 3.0.
45124         * lib/dirent.in.h: Likewise.
45125         * lib/errno.in.h: Likewise.
45126         * lib/fcntl.in.h: Likewise.
45127         * lib/float.in.h: Likewise.
45128         * lib/iconv.in.h: Likewise.
45129         * lib/inttypes.in.h: Likewise.
45130         * lib/locale.in.h: Likewise.
45131         * lib/math.in.h: Likewise.
45132         * lib/netdb.in.h: Likewise.
45133         * lib/netinet_in.in.h: Likewise.
45134         * lib/search.in.h: Likewise.
45135         * lib/signal.in.h: Likewise.
45136         * lib/spawn.in.h: Likewise.
45137         * lib/stdarg.in.h: Likewise.
45138         * lib/stdint.in.h: Likewise.
45139         * lib/stdio.in.h: Likewise.
45140         * lib/stdlib.in.h: Likewise.
45141         * lib/string.in.h: Likewise.
45142         * lib/strings.in.h: Likewise.
45143         * lib/sys_file.in.h: Likewise.
45144         * lib/sys_ioctl.in.h: Likewise.
45145         * lib/sys_select.in.h: Likewise.
45146         * lib/sys_socket.in.h: Likewise.
45147         * lib/sys_stat.in.h: Likewise.
45148         * lib/sys_time.in.h: Likewise.
45149         * lib/sysexits.in.h: Likewise.
45150         * lib/time.in.h: Likewise.
45151         * lib/unistd.in.h: Likewise.
45152         * lib/wchar.in.h: Likewise.
45153         * lib/wctype.in.h: Likewise.
45154         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45155
45156 2008-10-17  Jim Meyering  <meyering@redhat.com>
45157
45158         ignore-value: don't depend on inline module
45159         * modules/ignore-value (Depends-on): Remove 'inline'.
45160         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45161         Suggestion from Bruno Haible.
45162
45163 2008-10-17  Bruno Haible  <bruno@clisp.org>
45164
45165         New implementation of condition variables for Win32.
45166         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45167         (gl_linked_waitqueue_t): New type.
45168         (gl_cond_t): Use it.
45169         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45170         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45171         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45172         (glthread_cond_init_func, glthread_cond_wait_func,
45173         glthread_cond_timedwait_func, glthread_cond_signal_func,
45174         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45175         Reimplemented on the basis of gl_linked_waitqueue_t.
45176         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45177         gl_waitqueue_t.
45178         (gl_rwlock_t): Update.
45179         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45180
45181 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45182
45183         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45184         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45185
45186 2008-10-17  Jim Meyering  <meyering@redhat.com>
45187
45188         ignore-value: new module
45189         * modules/ignore-value: New file.
45190         * lib/ignore-value.h: New file.
45191         * MODULES.html.sh (Compiler warning management): New section,
45192         just for this module.  More to come.
45193
45194 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45195
45196         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45197         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45198         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45199
45200 2008-10-16  Jim Meyering  <meyering@redhat.com>
45201
45202         openat-die.c: avoid 'no previous prototype' warning
45203         * lib/openat-die.c: Include "openat.h".
45204         Reported by Reuben Thomas <rrt@sc3d.org>.
45205
45206 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45207
45208         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45209         * lib/netdb.in.h: Fix typo.
45210         Reported by Bruno Haible  <bruno@clisp.org>
45211
45212         * lib/netdb.in.h: Include sys/socket.h for platforms without
45213         netdb.h, to get structures like hostent on MinGW.
45214         * modules/netdb (Depends-on): Add sys_socket.
45215
45216 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45217
45218         * modules/netdb, modules/netdb-tests: New file.
45219         * m4/netdb_h.m4: New file.
45220         * lib/netdb.in.h: Add, currently just an empty file pending
45221         definitions.
45222         * tests/test-netdb.c: New file.
45223         * doc/posix-headers/netdb.texi: Mention that we replace it if
45224         needed.
45225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45226         netdb.
45227
45228 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45229
45230         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45231         with code.
45232
45233 2008-10-13  Bruno Haible  <bruno@clisp.org>
45234
45235         * lib/glthread/cond.c (glthread_cond_wait_func,
45236         glthread_cond_timedwait_func): Add a comment.
45237
45238 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45239
45240         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45241         * tests/test-select.c: Likewise,
45242
45243 2008-10-13  Bruno Haible  <bruno@clisp.org>
45244
45245         * lib/glthread/cond.c (glthread_cond_wait_func,
45246         glthread_cond_timedwait_func): Fix variable name.
45247         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45248
45249 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45250
45251         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45253         struct sockaddr.sa_len.
45254         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45255
45256 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45257
45258         * build-aux/pmccabe2html: Add css and css_url parameters.
45259
45260 2008-10-12  Bruno Haible  <bruno@clisp.org>
45261
45262         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45263         calling aclx_get.
45264         Reported by Rainer Tammer <tammer@tammer.net>.
45265
45266 2008-10-12  Bruno Haible  <bruno@clisp.org>
45267
45268         Use msvcrt aware primitives for creation/termination of Win32 threads.
45269         * lib/glthread/thread.c: Include <process.h>.
45270         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45271         (wrapper_func): Update signature.
45272         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45273
45274 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45275             Bruno Haible  <bruno@clisp.org>
45276
45277         Provide a Win32 implementation of the 'cond' module.
45278         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45279         * lib/glthread/cond.c (glthread_cond_init_func,
45280         glthread_cond_wait_func, glthread_cond_timedwait_func,
45281         glthread_cond_signal_func, glthread_cond_broadcast_func,
45282         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45283         * modules/cond (Dependencies): Add gettimeofday.
45284
45285 2008-10-11  Bruno Haible  <bruno@clisp.org>
45286
45287         Make sleep work on older versions of mingw.
45288         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45289         only whether it exists.
45290         * doc/posix-functions/sleep.texi: Mention the problem with older
45291         versions of mingw.
45292
45293 2008-10-11  Bruno Haible  <bruno@clisp.org>
45294
45295         New module 'shutdown'.
45296         * modules/shutdown: New file.
45297         * lib/sys_socket.in.h (shutdown): New declaration.
45298         * lib/winsock.c (shutdown): New function.
45299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45300         GNULIB_SHUTDOWN.
45301         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45302         * doc/posix-functions/shutdown.texi: Document the new module.
45303
45304 2008-10-11  Jim Meyering  <meyering@redhat.com>
45305
45306         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45307
45308 2008-10-11  Bruno Haible  <bruno@clisp.org>
45309
45310         New module 'fclose'.
45311         * modules/fclose: New file.
45312         * lib/stdio.in.h (fclose): New declaration.
45313         * lib/fclose.c: New file.
45314         * m4/fclose.m4: New file.
45315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45316         REPLACE_FCLOSE.
45317         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45318         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45319         REPLACE_FCLOSE.
45320         * modules/close (Depends-on): fclose.
45321         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45322
45323 2008-10-11  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45326         set errno and don't call _close.
45327
45328 2008-10-10  Bruno Haible  <bruno@clisp.org>
45329
45330         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45331         ACL, not afterwards. Fixes test failure on Cygwin.
45332
45333 2008-10-09  Ben Pfaff  <blp@gnu.org>
45334
45335         * build-aux/announce-gen: Fix gnulib version related part of usage
45336         message.  Die with a useful error message if no tarballs are
45337         found.
45338
45339 2008-10-10  Jim Meyering  <meyering@redhat.com>
45340
45341         bootstrap: use git's --depth=N option only if it's supported
45342         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45343         recognize the --depth option.  Reported by Pádraig Brady.
45344
45345 2008-10-09  Bruno Haible  <bruno@clisp.org>
45346
45347         New module 'ioctl'.
45348         * modules/ioctl: New file.
45349         * lib/sys_socket.in.h (ioctl): Remove declaration.
45350         * lib/winsock.c: Include <sys/ioctl.h>.
45351         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45353         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45354         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45355         * doc/posix-functions/ioctl.texi: Mention the new module.
45356
45357 2008-10-09  Bruno Haible  <bruno@clisp.org>
45358
45359         New module 'sys_ioctl'.
45360         * lib/sys_ioctl.in.h: New file.
45361         * m4/sys_ioctl_h.m4: New file.
45362         * modules/sys_ioctl: New file.
45363         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45364
45365 2008-10-09  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45368         * lib/winsock.c: Include <stdarg.h>.
45369         (rpl_ioctl): Change to second argument 'int' and then varargs.
45370
45371 2008-10-09  Bruno Haible  <bruno@clisp.org>
45372
45373         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45374         when the sys_socket module is present and the system has <winsock2.h>.
45375
45376 2008-10-09  Bruno Haible  <bruno@clisp.org>
45377
45378         * doc/posix-functions/close.texi: Mention module 'close' instead of
45379         module 'sys_socket'.
45380
45381 2008-10-09  Bruno Haible  <bruno@clisp.org>
45382
45383         * doc/glibc-headers/sys_ioctl.texi: New file.
45384         * doc/gnulib.texi: Include it.
45385
45386 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45387             Bruno Haible  <bruno@clisp.org>
45388
45389         Combine the two replacements of 'close'.
45390         * lib/sys_socket.in.h (close): Define to a reminder to include
45391         <unistd.h>.
45392         (_gl_close_fd_maybe_socket): New declaration.
45393         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45394         * lib/winsock.c (close): Remove undefinition.
45395         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45396         needed for the gnulib module 'close'.
45397         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45398         define to an error symbol or to a warning, if suitable.
45399         * lib/close.c: Include <sys/socket.h>.
45400         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45401         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45402         UNISTD_H_HAVE_WINSOCK2_H.
45403         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45405         UNISTD_H_HAVE_WINSOCK2_H.
45406         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45407         (configure.ac): Set a module indicator.
45408         (Makefile.am): Substitute GNULIB_CLOSE.
45409         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45410         * modules/poll-tests (Depends-on): Add close.
45411         * modules/select-tests (Depends-on): Likewise.
45412
45413 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45414             Bruno Haible  <bruno@clisp.org>
45415
45416         New module 'close'.
45417         * modules/close: New file.
45418         * lib/unistd.in.h (close): Move declaration out of the
45419         FCHDIR_REPLACEMENT scope.
45420         (_gl_unregister_fd): New declaration.
45421         * lib/close.c: New file.
45422         * lib/fchdir.c (rpl_close): Remove function.
45423         * m4/close.m4: New file.
45424         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45425         close.
45426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45427         REPLACE_CLOSE.
45428         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45429         REPLACE_CLOSE.
45430         * modules/fchdir (Depends-on): Add close.
45431
45432 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45433             Bruno Haible  <bruno@clisp.org>
45434
45435         * lib/fcntl.in.h (open): Simplify conditionals.
45436         (_gl_register_fd): New declaration.
45437         * lib/fchdir.c (rpl_open): Remove function.
45438         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45439         also.
45440         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45442         open.
45443
45444 2008-10-09  Jim Meyering  <meyering@redhat.com>
45445
45446         GNUmakefile: use the more name-space-friendly "_version"
45447         * top/GNUmakefile (_dummy): Update.
45448         (_version): Rename from "version".
45449
45450 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45451             Bruno Haible  <bruno@clisp.org>
45452
45453         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45454         rpl_close.
45455         (_gl_register_fd): New function, extracted from rpl_open.
45456         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45457         (rpl_open, rpl_opendir): Use _gl_register_fd.
45458
45459 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45460
45461         Fix organization of 'open' replacement.
45462         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45463         (gl_FUNC_OPEN): Use it.
45464         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45465
45466 2008-10-08  Bruno Haible  <bruno@clisp.org>
45467
45468         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45469
45470 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45471
45472         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45473         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45474         listen).
45475
45476 2008-10-08  Eric Blake  <ebb9@byu.net>
45477
45478         GNUmakefile: add 'make version' target
45479         * top/GNUmakefile (_curr-ver): Split version update rules...
45480         (version): ...into a target.
45481
45482 2008-10-07  Bruno Haible  <bruno@clisp.org>
45483
45484         Use a more portable replacement expression for -0.0L.
45485         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45486         instead of -0.0L. Fix m4 quotation.
45487
45488         * tests/test-signbit.c: Include <float.h>.
45489         (minus_zero): New variable.
45490         (test_signbitl): Use minus_zero instead of -zero.
45491         * modules/signbit-tests (Depends-on): Add float.
45492
45493         * tests/test-ceill.c: Include <float.h>.
45494         (zero): Remove variable.
45495         (minus_zero): New variable.
45496         (main): Use minus_zero instead of -zero.
45497         * modules/ceill-tests (Depends-on): Add float.
45498
45499         * tests/test-floorl.c: Include <float.h>.
45500         (zero): Remove variable.
45501         (minus_zero): New variable.
45502         (main): Use minus_zero instead of -zero.
45503         * modules/floorl-tests (Depends-on): Add float.
45504
45505         * tests/test-roundl.c: Include <float.h>.
45506         (zero): Remove variable.
45507         (minus_zero): New variable.
45508         (main): Use minus_zero instead of -zero.
45509         * modules/roundl-tests (Depends-on): Add float.
45510
45511         * tests/test-truncl.c: Include <float.h>.
45512         (zero): Remove variable.
45513         (minus_zero): New variable.
45514         (main): Use minus_zero instead of -zero.
45515         * modules/truncl-tests (Depends-on): Add float.
45516
45517         * tests/test-frexpl.c (zero): Remove variable.
45518         (minus_zero): New variable.
45519         (main): Use minus_zero instead of -zero.
45520         * modules/frexpl-tests (Depends-on): Add float.
45521
45522         * tests/test-isnan.c (zerol): Remove variable.
45523         (minus_zerol): New variable.
45524         (test_long_double): Use minus_zerol instead of -zerol.
45525         * modules/isnan-tests (Depends-on): Add float.
45526
45527         * tests/test-isnanl.h (zero): Remove variable.
45528         (minus_zero): New variable.
45529         (main): Use minus_zero instead of -zero.
45530         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45531         * modules/isnanl-tests (Depends-on): Add float.
45532
45533         * tests/test-ldexpl.c (zero): Remove variable.
45534         (minus_zero): New variable.
45535         (main): Use minus_zero instead of -zero.
45536         * modules/ldexpl-tests (Depends-on): Add float.
45537
45538         * tests/test-snprintf-posix.h (zerol): Remove variable.
45539         (minus_zerol): New variable.
45540         (test_function): Use minus_zerol instead of -zerol.
45541         * modules/snprintf-posix-tests (Depends-on): Add float.
45542         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45543
45544         * tests/test-sprintf-posix.h (zerol): Remove variable.
45545         (minus_zerol): New variable.
45546         (test_function): Use minus_zerol instead of -zerol.
45547         * modules/sprintf-posix-tests (Depends-on): Add float.
45548         * modules/vsprintf-posix-tests (Depends-on): Add float.
45549
45550         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45551         (minus_zerol): New variable.
45552         (test_function): Use minus_zerol instead of -zerol.
45553         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45554
45555         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45556         (minus_zerol): New variable.
45557         (test_function): Use minus_zerol instead of -zerol.
45558         * modules/vasprintf-posix-tests (Depends-on): Add float.
45559
45560 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45561
45562         * MODULES.html.sh (Support for building documentation): Mention
45563         pmccabe2html.  Sort entries.
45564
45565         Add pmccabe2html module, from gnupdf.
45566         * build-aux/pmccabe.css: New file.
45567         * build-aux/pmccabe2html: New file.
45568         * m4/pmccabe2html.m4: New file.
45569         * modules/pmccabe2html: New file.
45570
45571 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45572
45573         flock: new module
45574         * MODULES.html.sh: Add to list of modules.
45575         * lib/flock.c: flock implementation for Windows and Unix systems
45576         which have fcntl.
45577         * doc/glibc-functions/flock.texi: Update documentation.
45578         * lib/sys_file.in.h: <sys/file.h> header file.
45579         * m4/flock.m4: M4 macros.
45580         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45581         * modules/flock: flock module.
45582         * modules/flock-tests: flock tests module.
45583         * modules/sys_file: sys/file.h module.
45584         * tests/test-flock.c: test suite for flock.
45585
45586 2008-10-06  Jim Meyering  <meyering@redhat.com>
45587
45588         bootstrap: check for LT_INIT more portably still ;-)
45589         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45590         Spotted by Bruno Haible.
45591
45592 2008-10-06  Eric Blake  <ebb9@byu.net>
45593
45594         test-signbit: avoid tripping Irix cc bug on -0.0L
45595         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45596         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45597         entire testsuite consistent and avoids an Irix 6.2 bug.
45598
45599 2008-10-05  Bruno Haible  <bruno@clisp.org>
45600             Jim Meyering  <jim@meyering.net>
45601
45602         Add an option for ignoring EPIPE during close_stdout.
45603         * lib/closeout.h: Include <stdbool.h>.
45604         (close_stdout_set_ignore_EPIPE): New declaration.
45605         * lib/closeout.c: Include <stdbool.h>.
45606         (ignore_EPIPE): New variable.
45607         (close_stdout_set_ignore_EPIPE): New function.
45608         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45609         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45610         failure.
45611         * modules/closeout (Depends-on): Add stdbool.
45612
45613 2008-10-05  Bruno Haible  <bruno@clisp.org>
45614
45615         * modules/accept: New file.
45616         * modules/bind: New file.
45617         * modules/connect: New file.
45618         * modules/getpeername: New file.
45619         * modules/getsockname: New file.
45620         * modules/getsockopt: New file.
45621         * modules/listen: New file.
45622         * modules/recv: New file.
45623         * modules/recvfrom: New file.
45624         * modules/send: New file.
45625         * modules/sendto: New file.
45626         * modules/setsockopt: New file.
45627         * modules/socket: New file.
45628         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45629         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45630         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45631         the particular module is requested. Add a link warning when the
45632         particular module is not requested.
45633         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45634         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45635         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45636         the particular module is requested.
45637         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45638         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45639         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45640         * modules/sys_socket (Depends-on): Add link-warning.
45641         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45642         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45643         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45644         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45645         GL_LINK_WARNING.
45646         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45647         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45648         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45649         * doc/posix-functions/getpeername.texi: Mention the new module
45650         'getpeername'.
45651         * doc/posix-functions/getsockname.texi: Mention the new module
45652         'getsockname'.
45653         * doc/posix-functions/getsockopt.texi: Mention the new module
45654         'getsockopt'.
45655         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45656         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45657         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45658         * doc/posix-functions/send.texi: Mention the new module 'send'.
45659         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45660         * doc/posix-functions/setsockopt.texi: Mention the new module
45661         'setsockopt'.
45662         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45663         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45664         listen, connect, accept.
45665         * modules/select-tests (Depends-on): Likewise.
45666
45667 2008-10-05  Bruno Haible  <bruno@clisp.org>
45668
45669         * lib/winsock.c (strerror): Remove unused #undef.
45670         (rpl_close): Remove unused local variable.
45671
45672         * modules/sys_socket (Depends-on); Add errno.
45673
45674 2008-10-05  Bruno Haible  <bruno@clisp.org>
45675
45676         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45677         (select): Add a link warning when the 'select' module is not used.
45678         * modules/sys_select (Depends-on): Add link-warning.
45679         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45680         Suggested by Paolo Bonzini.
45681
45682 2008-10-05  Jim Meyering  <meyering@redhat.com>
45683
45684         bootstrap: check for LT_INIT more portably
45685         * build-aux/bootstrap: Avoid using grep -E, since it's not
45686         portable enough.  Suggestion from Bruno Haible.
45687
45688 2008-10-05  Bruno Haible  <bruno@clisp.org>
45689
45690         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45691         as being fixed by gnulib.
45692
45693 2008-10-05  Bruno Haible  <bruno@clisp.org>
45694
45695         * modules/select-tests: New file, mostly copied from
45696         modules/sys_select-tests.
45697         * tests/test-select.c: New file, mostly copied from
45698         tests/test-sys_select.c.
45699         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45700         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45701         (Makefile.am): Remove test_sys_select_LDADD.
45702
45703         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45704         to an undefined symbol, for an error message.
45705         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45706         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45707         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45708         winsock-select.c here.
45709         * modules/sys_select (Files): Remove lib/winsock-select.c.
45710         (Depends-on): Remove alloca.
45711         (Makefile.am): Substitute GNULIB_SELECT.
45712         * modules/select: New file.
45713         * doc/posix-functions/select.texi: Update.
45714
45715 2008-10-05  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45718         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45719         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45720         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45721         getdtablesize.
45722         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45723         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45724
45725 2008-10-05  Bruno Haible  <bruno@clisp.org>
45726
45727         * modules/getdtablesize-tests: New file.
45728         * tests/test-getdtablesize.c: New file.
45729
45730         New module 'getdtablesize'.
45731         * lib/unistd.in.h (getdtablesize): New declaration.
45732         * lib/getdtablesize.c: New file.
45733         * m4/getdtablesize.m4: New file.
45734         * modules/getdtablesize: New file.
45735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45736         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45737         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45738         HAVE_GETDTABLESIZE.
45739         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45740
45741 2008-10-05  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/sched (Makefile.am): Fix typo.
45744         Reported by Simon Josefsson.
45745
45746 2008-10-05  Jim Meyering  <meyering@redhat.com>
45747
45748         bootstrap: check for LT_INIT, too
45749         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45750         are deprecated.  Suggestion from Ralf Wildenhues.
45751
45752 2008-10-05  Bruno Haible  <bruno@clisp.org>
45753
45754         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45755         overriding them by ours.
45756         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45757
45758 2008-10-05  Jim Meyering  <meyering@redhat.com>
45759
45760         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45761         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45762         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45763
45764 2008-10-04  Bruno Haible  <bruno@clisp.org>
45765
45766         * modules/dup2 (License): Change to LGPLv2+.
45767         * modules/sleep (License): Likewise.
45768         * modules/perror (License): Likewise.
45769         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45770         Blake.
45771         * modules/signal (License): Likewise.
45772         * modules/sigprocmask (License): Likewise.
45773         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45774         Meyering.
45775
45776 2008-10-04  Bruno Haible  <bruno@clisp.org>
45777
45778         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45779         Reported by Rainer Tammer <tammer@tammer.net>.
45780
45781 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45782             Bruno Haible  <bruno@clisp.org>
45783
45784         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45785         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45786         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45787
45788 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45789
45790         filevercmp: new module
45791         * lib/filevercmp.h: New function filevercmp comparing version strings.
45792         * lib/filevercmp.c: Implementation of filevercmp function.
45793         * modules/filevercmp: Module metadata.
45794         * tests/test-filevercmp.c: Unit test for new module.
45795         * modules/filevercmp-tests: Unit test metadata.
45796         * MODULES.html.sh: Add filevercmp module.
45797
45798 2008-10-03  Bruno Haible  <bruno@clisp.org>
45799
45800         * lib/c-ctype.h: Add comment.
45801         Reported by Jim Meyering.
45802
45803 2008-10-02  Bruno Haible  <bruno@clisp.org>
45804
45805         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45806
45807 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45808
45809         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45810         name of bootstrap.conf accordingly.
45811
45812 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45813
45814         * build-aux/bootstrap: Install git-merge-changelog configuration
45815         items into .gitconfig if needed.
45816
45817 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45818
45819         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45820         git repository, and initialize/update it accordingly.
45821
45822 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45823
45824         * modules/fsync-tests: New file.
45825         * tests/test-fsync.c: New file.
45826
45827         New module 'fsync'.
45828         * lib/fsync.c: New file.
45829         * m4/fsync.m4: New file.
45830         * modules/fsync: New file.
45831         * lib/unistd.in.h (fsync): New declaration.
45832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45833         GNULIB_FSYNC and HAVE_FSYNC.
45834         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45835         * MODULES.html.sh (posix_functions): Add fsync.
45836         * doc/posix-functions/fsync.texi: Mention the new module.
45837
45838 2008-10-02  Jim Meyering  <meyering@redhat.com>
45839
45840         fts.c: sync with similar code from coreutils' remove.c
45841         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45842         Guard also with "#if defined __linux__", since for now at least,
45843         this code is Linux-kernel-specific.
45844
45845 2008-10-02  Jim Meyering  <meyering@redhat.com>
45846
45847         fts: bug fixes
45848         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45849         Include <sys/vfs.h>, not <sys/statfs.h>.
45850
45851         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45852         Include <sys/vfs.h>, not <sys/statfs.h>.
45853
45854 2008-10-01  Bruno Haible  <bruno@clisp.org>
45855
45856         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45857         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45858         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45859         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45860         * doc/posix-functions/posix_spawnp.texi: Likewise.
45861         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45862         whether posix_spawn actually works.
45863         * m4/pipe.m4 (gl_PIPE): Likewise.
45864         * modules/execute (Files): Add m4/posix_spawn.m4.
45865         * modules/pipe (Files): Add m4/posix_spawn.m4.
45866         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45867
45868 2008-10-01  Jim Meyering  <meyering@redhat.com>
45869
45870         remove trailing spaces
45871         * NEWS: Likewise.
45872         * lib/poll.c (poll): Likewise.
45873         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45874         * lib/winsock.c (rpl_close): Likewise.
45875         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45876         * modules/yield: Likewise.
45877         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45878         * tests/test-sys_select.c (connect_to_socket): Likewise.
45879
45880         fts.c: adjust a new interface to be more generally useful
45881         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45882         (fts_build): Adjust caller.
45883
45884 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45885
45886         * modules/cond-tests: New file.
45887         * tests/test-cond.c: New file.
45888
45889 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45890             Bruno Haible  <bruno@clisp.org>
45891
45892         * modules/cond (Dependencies): Add errno, time.
45893         * lib/glthread/cond.h: Include <time.h>.
45894         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45895         across platforms.
45896
45897 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45898             Bruno Haible  <bruno@clisp.org>
45899
45900         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45901
45902 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45903             Bruno Haible  <bruno@clisp.org>
45904
45905         * modules/tls-tests (Depends-on): Add thread, yield.
45906         (configure.ac): Remove all checks.
45907         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45908         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45909         gl_thread_self): Remove definitions. Include glthread/thread.h and
45910         glthread/yield.h instead.
45911         (test_tls): Pass an additional NULL argument to gl_thread_join.
45912
45913 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45914             Bruno Haible  <bruno@clisp.org>
45915
45916         * modules/lock-tests (Depends-on): Add thread, yield.
45917         (configure.ac): Remove all checks.
45918         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45919         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45920         gl_thread_self): Remove definitions. Include glthread/thread.h and
45921         glthread/yield.h instead.
45922         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45923         additional NULL argument to gl_thread_join.
45924
45925 2008-09-30  Bruno Haible  <bruno@clisp.org>
45926
45927         Fix the Win32 implementation of the 'thread' module.
45928         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45929         pointer type.
45930         (gl_thread_self): Invoke gl_thread_self_func.
45931         (gl_thread_self_func): New declaration.
45932         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45933         (do_init_self_key, init_self_key): New functions.
45934         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45935         Remove some fields.
45936         (running_threads, running_lock): Remove variables.
45937         (get_current_thread_handle): New function.
45938         (gl_thread_self_func, wrapper_func, glthread_create_func,
45939         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45940         simplified.
45941
45942 2008-09-30  Bruno Haible  <bruno@clisp.org>
45943
45944         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45945         files.
45946
45947 2008-09-30  Jim Meyering  <meyering@redhat.com>
45948
45949         fts.m4: correct the test for statfs.f_type
45950         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45951         when checking for statfs.f_type.
45952
45953 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45954
45955         tests: avoid some compiler warnings
45956         * tests/test-memchr.c (main): Pass NULL indirectly.
45957         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45958
45959 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
45960
45961         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45962         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45963         exactly specified dayshifts.
45964         (dayshift): New rule.
45965         (rel): Add dayshift.
45966         (relative_time_table) [tomorrow, yesterday, today, now]:
45967         Use tDAY_SHIFT in place of tDAY_UNIT.
45968         * tests/test-getdate.c: Add tests for now-disallowed countable
45969         dayshifts, e.g., "4 yesterday ago".
45970
45971 2008-09-29  Bruno Haible  <bruno@clisp.org>
45972
45973         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45974         * tests/test-posix_spawn1.in.sh: Renamed from
45975         tests/test-posix_spawn.in.sh.
45976         * tests/test-posix_spawn2.c: New file.
45977         * tests/test-posix_spawn2.in.sh: New file.
45978         * modules/posix_spawnp-tests (Files): Update.
45979         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45980
45981 2008-09-29  Bruno Haible  <bruno@clisp.org>
45982
45983         Propagate effects of putenv/setenv/unsetenv to child processes.
45984         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45985         * lib/pipe.c (create_pipe): Likewise.
45986
45987 2008-09-29  Bruno Haible  <bruno@clisp.org>
45988
45989         Enable use of shell scripts as executables in mingw.
45990         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45991         run the program as a shell script.
45992         * lib/pipe.c (create_pipe): Likewise.
45993         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45994         resulting array.
45995
45996 2008-09-29  Eric Blake  <ebb9@byu.net>
45997
45998         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45999
46000 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46001
46002         * doc/posix-functions/accept.texi: Update mingw problems.
46003         * doc/posix-functions/bind.texi: Update mingw problems.
46004         * doc/posix-functions/close.texi: Update mingw problems.
46005         * doc/posix-functions/connect.texi: Update mingw problems.
46006         * doc/posix-functions/getpeername.texi: Update mingw problems.
46007         * doc/posix-functions/getsockname.texi: Update mingw problems.
46008         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46009         * doc/posix-functions/ioctl.texi: Update mingw problems.
46010         * doc/posix-functions/listen.texi: Update mingw problems.
46011         * doc/posix-functions/recv.texi: Update mingw problems.
46012         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46013         * doc/posix-functions/select.texi: Update mingw problems.
46014         * doc/posix-functions/send.texi: Update mingw problems.
46015         * doc/posix-functions/sendto.texi: Update mingw problems.
46016         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46017         * doc/posix-functions/socket.texi: Update mingw problems.
46018
46019 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46020             Bruno Haible  <bruno@clisp.org>
46021
46022         * lib/sys_select.in.h: Include sys/time.h.
46023         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46024         * modules/sys_select: Depend on sys_time.
46025         * tests/test-sys_select.c: Test that sys/select.h defines struct
46026         timeval fully.
46027
46028 2008-09-29  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46031         * lib/sys_select.in.h: Likewise.
46032
46033 2008-09-29  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46036
46037 2008-09-29  Bruno Haible  <bruno@clisp.org>
46038
46039         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46040         Set LIBSOCKET instead of augmenting LIBS.
46041         * modules/sockets (Link): New section.
46042         * modules/sockets-tests (test_sockets_LDADD): New variable.
46043         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46044         * modules/poll-tests (test_poll_LDADD): New variable.
46045         * NEWS: Document the change.
46046
46047 2008-09-29  Bruno Haible  <bruno@clisp.org>
46048
46049         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46050         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46051         ARPA_INET_H directly.
46052         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46053
46054 2008-09-28  Bruno Haible  <bruno@clisp.org>
46055
46056         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46057         from gl_HEADER_SYS_SOCKET.
46058         (gl_HEADER_SYS_SOCKET): Invoke it.
46059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46060
46061 2008-09-28  Bruno Haible  <bruno@clisp.org>
46062
46063         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46064         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46065         Needed on OSF/1 4.0.
46066
46067 2008-09-28  Bruno Haible  <bruno@clisp.org>
46068
46069         Override open more carefully.
46070         * lib/open.c (orig_open): New function.
46071         (rpl_open): Use orig_open instead of open.
46072         * lib/fcntl.in.h: Add special invocation convention.
46073         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46074         (gl_FUNC_OPEN): Invoke it.
46075
46076         Override freopen more carefully.
46077         * lib/freopen.c (orig_freopen): New function.
46078         (rpl_freopen): Use orig_freopen instead of freopen.
46079         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46080         (gl_FUNC_FREOPEN): Invoke it.
46081
46082         Override fopen more carefully.
46083         * lib/fopen.c (orig_fopen): New function.
46084         (rpl_fopen): Use orig_fopen instead of fopen.
46085         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46086         (gl_FUNC_FOPEN): Invoke it.
46087         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46088
46089 2008-09-28  Bruno Haible  <bruno@clisp.org>
46090
46091         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46092         SIGPIPE.
46093
46094 2008-09-28  Bruno Haible  <bruno@clisp.org>
46095
46096         * tests/test-sigaction.c (handler, main): Disable the check whether
46097         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46098         glibc systems with LinuxThreads.
46099
46100 2008-09-28  Bruno Haible  <bruno@clisp.org>
46101
46102         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46103
46104         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46105         with AIX xlc.
46106         * lib/fcntl.in.h (open): Likewise.
46107         Reported by Rainer Tammer <tammer@tammer.net>.
46108
46109 2008-09-28  Bruno Haible  <bruno@clisp.org>
46110
46111         * modules/posix_spawnp-tests: New file.
46112         * tests/test-posix_spawn.c: New file.
46113         * tests/test-posix_spawn.in.sh: New file.
46114
46115         New module 'posix_spawnp'.
46116         * modules/posix_spawnp: New file.
46117         * lib/spawnp.c: New file, from GNU libc with modifications.
46118         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46119
46120         New module 'posix_spawn'.
46121         * modules/posix_spawn: New file.
46122         * lib/spawn.c: New file, from GNU libc with modifications.
46123         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46124
46125         New module 'posix_spawnattr_destroy'.
46126         * modules/posix_spawnattr_destroy: New file.
46127         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46128         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46129         module.
46130
46131         New module 'posix_spawnattr_setsigmask'.
46132         * modules/posix_spawnattr_setsigmask: New file.
46133         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46134         modifications.
46135         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46136         new module.
46137
46138         New module 'posix_spawnattr_getsigmask'.
46139         * modules/posix_spawnattr_getsigmask: New file.
46140         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46141         modifications.
46142         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46143         new module.
46144
46145         New module 'posix_spawnattr_setsigdefault'.
46146         * modules/posix_spawnattr_setsigdefault: New file.
46147         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46148         modifications.
46149         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46150         new module.
46151
46152         New module 'posix_spawnattr_getsigdefault'.
46153         * modules/posix_spawnattr_getsigdefault: New file.
46154         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46155         modifications.
46156         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46157         new module.
46158
46159         New module 'posix_spawnattr_setschedpolicy'.
46160         * modules/posix_spawnattr_setschedpolicy: New file.
46161         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46162         modifications.
46163         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46164         new module.
46165
46166         New module 'posix_spawnattr_getschedpolicy'.
46167         * modules/posix_spawnattr_getschedpolicy: New file.
46168         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46169         modifications.
46170         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46171         new module.
46172
46173         New module 'posix_spawnattr_setschedparam'.
46174         * modules/posix_spawnattr_setschedparam: New file.
46175         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46176         modifications.
46177         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46178         new module.
46179
46180         New module 'posix_spawnattr_getschedparam'.
46181         * modules/posix_spawnattr_getschedparam: New file.
46182         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46183         modifications.
46184         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46185         new module.
46186
46187         New module 'posix_spawnattr_setpgroup'.
46188         * modules/posix_spawnattr_setpgroup: New file.
46189         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46190         modifications.
46191         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46192         module.
46193
46194         New module 'posix_spawnattr_getpgroup'.
46195         * modules/posix_spawnattr_getpgroup: New file.
46196         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46197         modifications.
46198         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46199         module.
46200
46201         New module 'posix_spawnattr_setflags'.
46202         * modules/posix_spawnattr_setflags: New file.
46203         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46204         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46205         module.
46206
46207         New module 'posix_spawnattr_getflags'.
46208         * modules/posix_spawnattr_getflags: New file.
46209         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46210         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46211         module.
46212
46213         New module 'posix_spawnattr_init'.
46214         * modules/posix_spawnattr_init: New file.
46215         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46216         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46217         module.
46218
46219         New module 'posix_spawn_file_actions_destroy'.
46220         * modules/posix_spawn_file_actions_destroy: New file.
46221         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46222         modifications.
46223         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46224         the new module.
46225
46226         New module 'posix_spawn_file_actions_addopen'.
46227         * modules/posix_spawn_file_actions_addopen: New file.
46228         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46229         modifications.
46230         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46231         the new module.
46232
46233         New module 'posix_spawn_file_actions_adddup2'.
46234         * modules/posix_spawn_file_actions_adddup2: New file.
46235         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46236         modifications.
46237         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46238         the new module.
46239
46240         New module 'posix_spawn_file_actions_addclose'.
46241         * modules/posix_spawn_file_actions_addclose: New file.
46242         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46243         modifications.
46244         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46245         the new module.
46246
46247         New module 'posix_spawn_file_actions_init'.
46248         * modules/posix_spawn_file_actions_init: New file.
46249         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46250         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46251         new module.
46252
46253         New module 'posix_spawn-internal'.
46254         * modules/posix_spawn-internal: New file.
46255         * lib/spawn_int.h: New file, from GNU libc with modifications.
46256         * lib/spawni.c: New file, from GNU libc with modifications.
46257         * m4/posix_spawn.m4: New file.
46258
46259         New module 'spawn'.
46260         * modules/spawn: New file.
46261         * lib/spawn.in.h: New file, from GNU libc with modifications.
46262         * m4/spawn_h.m4: New file.
46263         * doc/posix-headers/spawn.texi: Mention the new module.
46264
46265 2008-09-28  Bruno Haible  <bruno@clisp.org>
46266
46267         * modules/sched-tests: New file.
46268         * tests/test-sched.c: New file.
46269
46270         New module 'sched'.
46271         * modules/sched: New file.
46272         * lib/sched.in.h: New file.
46273         * m4/sched_h.m4: New file.
46274         * doc/posix-headers/sched.texi: Mention the new module.
46275
46276 2008-09-27  Eric Blake  <ebb9@byu.net>
46277
46278         Fix previous patch, and tweak references to $0.
46279         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46280         (func_version, func_gnulib_dir): Don't call this program
46281         gnulib-tool.
46282         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46283         with using $0 in function.
46284         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46285         (func_fatal_error): Reuse the name the user invoked us with.
46286
46287 2008-09-27  Bruno Haible  <bruno@clisp.org>
46288
46289         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46290         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46291         (gl_ICONV_H): Not here.
46292         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46293         instead of assigning ICONV_H directly.
46294
46295         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46297         WCHAR_H directly.
46298
46299 2008-09-27  Bruno Haible  <bruno@clisp.org>
46300
46301         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46302         * modules/arpa_inet (Depends-on): Add link-warning.
46303         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46304         * modules/unistd (Makefile.am): Likewise.
46305
46306 2008-09-26  Bruno Haible  <bruno@clisp.org>
46307
46308         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46309         variables.
46310         (func_version): Essentially copied from gnulib-tool.
46311         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46312         func_readlink): Copied from gnulib-tool.
46313
46314 2008-09-26  Bruno Haible  <bruno@clisp.org>
46315
46316         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46317         invoking git-version-gen.
46318
46319 2008-09-26  Bruno Haible  <bruno@clisp.org>
46320
46321         * posix-modules: Update to directory names changed on 2008-01-19.
46322         Remove commas in output before splitting into words. No more need to
46323         avoid 'ftruncate' since 2007-02-19.
46324
46325 2008-09-26  Bruno Haible  <bruno@clisp.org>
46326
46327         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46328
46329 2008-09-26  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46332         * modules/fwriteerror (Depends-on): Add errno.
46333
46334 2008-09-26  Bruno Haible  <bruno@clisp.org>
46335
46336         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46337         * tests/test-vc-list-files-cvs.sh: Likewise.
46338
46339 2008-09-26  Bruno Haible  <bruno@clisp.org>
46340
46341         * doc/posix-headers/sys_resource.texi: Reorder items.
46342
46343 2008-09-26  Jim Meyering  <meyering@redhat.com>
46344
46345         fts: tweak inode comparison function
46346         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46347         inode numbers, as documented.
46348
46349         fts: sort dirent entries on inode number before traversing
46350         This avoids a quadratic, seek-related performance penalty when
46351         operating on a directory containing many entries (measurable at 10k;
46352         3.5 hours at 2 million entries with a cold cache) on certain types
46353         of file systems, including ext3 and ext4, but not tmpfs.
46354         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46355         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46356         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46357         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46358         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46359         (fts_build): Set the stat.st_ino member from D_INO.
46360         If it is likely to be useful, sort dirent entries on inode number.
46361
46362         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46363         and the struct statfs.f_type member.
46364         * modules/fts (Depends-on): Add d-ino.
46365
46366 2008-09-26  Bruno Haible  <bruno@clisp.org>
46367
46368         * modules/sigpipe-die (Depends-on): Add sigpipe.
46369
46370         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46371         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46372         and GNULIB_STDIO_H_SIGPIPE are set.
46373         * lib/stdio-write.c: New file.
46374         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46375         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46376         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46377         REPLACE_STDIO_WRITE_FUNCS.
46378         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46379         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46380         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46381         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46382         * modules/stdio (Files): Add lib/stdio-write.c.
46383         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46384         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46385         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46386         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46387         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46388         REPLACE_FPRINTF_POSIX.
46389         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46390         REPLACE_PRINTF_POSIX.
46391         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46392         REPLACE_VFPRINTF_POSIX.
46393         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46394         REPLACE_VPRINTF_POSIX.
46395         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46396         SIGPIPE issue.
46397         * doc/posix-functions/fputc.texi: Likewise.
46398         * doc/posix-functions/fputs.texi: Likewise.
46399         * doc/posix-functions/fwrite.texi: Likewise.
46400         * doc/posix-functions/printf.texi: Likewise.
46401         * doc/posix-functions/putc.texi: Likewise.
46402         * doc/posix-functions/putchar.texi: Likewise.
46403         * doc/posix-functions/puts.texi: Likewise.
46404         * doc/posix-functions/vfprintf.texi: Likewise.
46405         * doc/posix-functions/vprintf.texi: Likewise.
46406
46407         * modules/safe-write (Depends-on): Add write.
46408
46409         * modules/sigpipe-tests: New file.
46410         * tests/test-sigpipe.c: New file.
46411         * tests/test-sigpipe.sh: New file.
46412
46413         * modules/write: New file.
46414         * lib/unistd.in.h: Include <sys/types.h>.
46415         (write): New declaration.
46416         * lib/write.c: New file.
46417         * m4/write.m4: New file.
46418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46419         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46420         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46421         GNULIB_WRITE, REPLACE_WRITE.
46422         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46423         and the SIGPIPE issue.
46424
46425         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46426         (raise): New declaration.
46427         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46428         (ext_signal): New function.
46429         (rpl_raise): New function.
46430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46431         GNULIB_SIGNAL_H_SIGPIPE.
46432         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46433         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46434
46435         * modules/sigpipe: New file.
46436         * m4/sigpipe.m4: New file.
46437
46438 2008-09-25  Derek Price  <derek@ximbiot.com>
46439             Bruno Haible  <bruno@clisp.org>
46440
46441         * gnulib-tool (func_import): Report all license incompatibilities, not
46442         just the first one.
46443
46444 2008-09-25  Bruno Haible  <bruno@clisp.org>
46445
46446         * gnulib-tool (func_import): When computing the edits, consider not
46447         only the Makefile.ams that exist but also those that will be generated.
46448
46449 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46450
46451         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46452         fixes gnulib-tool --test warning about duplicate dependency.
46453
46454 2008-09-25  Bruno Haible  <bruno@clisp.org>
46455
46456         * gnulib-tool: Don't ask the user to perform edits in the generated
46457         Makefile.ams.
46458         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46459         apply to the Makefile.am being generated.
46460         (func_emit_tests_Makefile_am): Execute edits that apply to the
46461         Makefile.am being generated.
46462         (func_import): Setup list of Makefile.am edits before emitting the
46463         Makefile.ams, not at the end.
46464         (func_create_testdir): Update.
46465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46466
46467 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46468
46469         * gnulib-tool (func_import): Store the --tests-base option in the
46470         comment in gnulib-cache.m4.
46471
46472 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46473
46474         * NEWS: Document increased portability that sys_select now provides.
46475
46476         * lib/sys_select.in.h: Install select wrapper.
46477         * lib/sys_socket.in.h: Use more descriptive name when there is no
46478         select wrapper.
46479         * lib/winsock-select.c: New.
46480         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46481         Require gl_HEADER_SYS_SOCKET.
46482         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46483         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46484         * tests/test-sys_select.c: Add functional tests.
46485
46486 2008-09-24  Eric Blake  <ebb9@byu.net>
46487
46488         open, fopen: close fd leak in last patch
46489         * lib/open.c (rpl_open): Close fd before returning error.
46490         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46491         * doc/posix-functions/open.texi (open): Document that Irix also
46492         has the bug.
46493         * doc/posix-functions/fopen.texi (fopen): Likewise.
46494         Reported by Paolo Bonzini.
46495
46496 2008-09-24  Bruno Haible  <bruno@clisp.org>
46497
46498         Ensure that a filename ending in a slash cannot be used to access a
46499         non-directory.
46500         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46501         to check whether it's really a directory.
46502         * lib/fopen.c: Include fcntl.h, unistd.h.
46503         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46504         and fdopen().
46505         * modules/fopen (Depends-on): Add unistd.
46506         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46507         * tests/test-fopen.c (main): Likewise.
46508         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46509         * doc/posix-functions/fopen.texi: Likewise.
46510         Reported by Eric Blake.
46511
46512 2008-09-23  Eric Blake  <ebb9@byu.net>
46513
46514         c-stack: avoid compiler optimizations when provoking overflow
46515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46516         recursion harder to optimize, to ensure a stack overflow occurs.
46517         * tests/test-c-stack.c (recurse): Likewise.
46518         Borrowed from libsigsegv.
46519
46520         c-stack: work around Irix sigaltstack bug
46521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46522         whether sigaltstack uses wrong end of stack_t (copied in part from
46523         libsigsegv).
46524         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46525         Irix bug, without requiring an over-allocation.
46526         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46527         bug.
46528
46529         fopen: document mingw bug on directories
46530         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46531         not allowing a stream visiting a directory, even though reading
46532         from such a stream is not portable.
46533
46534 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46535
46536         * lib/poll.c: Rewrite.
46537         * modules/poll: Depend on alloca.
46538
46539 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46540
46541         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46542         instead define prototypes for a full set of wrappers.  Ensure
46543         that Cygwin does not use the compatibility code, which is only
46544         for MinGW.
46545         * lib/winsock.c: New.
46546         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46547         * modules/sys_socket: Add lib/winsock.c.
46548
46549         * modules/poll-tests: Add errno and perror.
46550         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46551
46552 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46553
46554         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46555
46556 2008-09-23  Bruno Haible  <bruno@clisp.org>
46557
46558         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46559         * doc/glibc-functions/*: Likewise.
46560
46561 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46562
46563         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46564         success.
46565
46566 2008-09-22  Eric Blake  <ebb9@byu.net>
46567             Bruno Haible  <bruno@clisp.org>
46568
46569         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46570         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46571         supply %A but mishandle pseudo-NaN.
46572         Reported by Simon Josefsson.
46573
46574 2008-09-21  Bruno Haible  <bruno@clisp.org>
46575
46576         * tests/test-lock.c (main): Tweak skip message.
46577         * tests/test-tls.c (main): Likewise.
46578
46579 2008-09-21  Bruno Haible  <bruno@clisp.org>
46580
46581         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46582         whether 'struct sigaction' has sa_sigaction here...
46583         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46584         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46585
46586 2008-09-21  Bruno Haible  <bruno@clisp.org>
46587
46588         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46589         section.
46590         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46591         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46592         the new section.
46593         (Support for obsolete systems lacking POSIX:2001): New section.
46594         (String handling <string.h>): Move strdup to the new section.
46595         Suggested by Simon Josefsson and Paolo Bonzini.
46596
46597 2008-09-21  Bruno Haible  <bruno@clisp.org>
46598
46599         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46600         exponents in %e and %g results on 'long double'. Needed for mingw's
46601         improved *printf functions.
46602         * tests/test-vasprintf-posix.c (test_function): Likewise.
46603         * tests/test-snprintf-posix.h (test_function): Likewise.
46604         * tests/test-sprintf-posix.h (test_function): Likewise.
46605         Reported by Eric Blake.
46606
46607 2008-09-21  Bruno Haible  <bruno@clisp.org>
46608
46609         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46610         * tests/test-sprintf-posix.h (test_function): Likewise.
46611
46612 2008-09-21  Bruno Haible  <bruno@clisp.org>
46613
46614         * modules/getpass (Depends-on): Add strdup-posix.
46615
46616         New module 'strdup-posix'.
46617         * modules/strdup-posix: New file.
46618         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46619         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46621         REPLACE_STRDUP.
46622         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46623         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46625         strdup-posix.
46626
46627         * modules/strdup (Depends-on): Remove malloc-posix.
46628
46629 2008-09-20  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46632         Wildenhues.
46633
46634 2008-09-20  Bruno Haible  <bruno@clisp.org>
46635
46636         Ensure that wint_t gets defined on IRIX 5.3.
46637         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46638         * lib/wctype.in.h (wint_t): Likewise.
46639         (__wctype_wint_t): Remove type.
46640         (isw*): Use wint_t instead of __wctype_wint_t.
46641         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46642         * modules/wchar (Files): Add m4/wint_t.m4.
46643         (Makefile.am): Substitute HAVE_WINT_T.
46644         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46645         * tests/test-wctype.c: Check that wint_t is defined.
46646         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46647         * doc/posix-headers/wctype.texi: Likewise.
46648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46649
46650 2008-09-18  Bruno Haible  <bruno@clisp.org>
46651
46652         * gnulib-tool (func_exit): Update comment.
46653
46654 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46655
46656         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46657         assumes strdup exists and does not depend on strdup to return
46658         ENOMEM on out of memory conditions.
46659
46660 2008-09-18  Bruno Haible  <bruno@clisp.org>
46661
46662         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
46663         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46664         digits for the exponent.
46665
46666 2008-09-18  Jim Meyering  <meyering@redhat.com>
46667             Bruno Haible  <bruno@clisp.org>
46668
46669         * lib/vasnprintf.c (decimal_point_char): Define also if
46670         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46671
46672 2008-09-16  Bruno Haible  <bruno@clisp.org>
46673         and Eric Blake  <ebb9@byu.net>
46674
46675         vasnprintf: support Irix 5.3
46676         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46677         that mishandle long double infinity.
46678         Reported by Tom G. Christensen.
46679
46680 2008-09-16  Bruno Haible  <bruno@clisp.org>
46681
46682         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46683         Solaris 9.
46684         * doc/glibc-functions/alphasort.texi: Likewise.
46685         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46686
46687 2008-09-16  Jim Meyering  <meyering@redhat.com>
46688
46689         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46690         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46691         a umask modification leak out of a subshell.  Otherwise, the
46692         opensolaris /bin/sh would be accepted and thus cause unwarranted
46693         failures in the coreutils test suite.
46694
46695 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46696
46697         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46698         to succeed.
46699
46700 2008-09-16  Jim Meyering  <meyering@redhat.com>
46701
46702         avoid spurious test failure when library is built without ACL support
46703         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46704         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46705         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46706         * tests/test-copy-acl.sh: Likewise.
46707
46708 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46709
46710         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46711         based on character occurrence counts.
46712
46713 2008-09-15  Eric Blake  <ebb9@byu.net>
46714
46715         tests: avoid some compiler warnings
46716         * tests/test-memchr.c (main): Pass NULL indirectly.
46717         * tests/test-closein.c (main): Avoid unused variable.
46718
46719 2008-09-15  Bruno Haible  <bruno@clisp.org>
46720
46721         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46722         are missing on OpenBSD 4.0 individually.
46723         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46724
46725 2008-09-15  Bruno Haible  <bruno@clisp.org>
46726
46727         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46728         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46729         * doc/posix-functions/perror.texi: Likewise.
46730         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46731         is missing.
46732         Reported by Eric Blake.
46733
46734         * lib/errno.in.h: Use replacement values >= 2000.
46735         Reported by Eric Blake.
46736
46737 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46738
46739         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46740         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46741         limit.
46742         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46743         compareseq was aborted.
46744
46745 2008-09-14  Bruno Haible  <bruno@clisp.org>
46746
46747         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46748         yvec_edit_count.
46749         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46750         (fstrcmp_bounded): Simplify result computation accordingly.
46751
46752 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46753
46754         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46755         (fstrcmp): Define in terms of fstrcmp_bounded.
46756         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46757         lower_bound argument.
46758         Return quickly if the result is certainly < lower_bound.
46759         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46760
46761 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46762
46763         * lib/diffseq.h (EARLY_ABORT): New macro.
46764         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46765         evaluates to true.
46766
46767 2008-09-14  Bruno Haible  <bruno@clisp.org>
46768
46769         * modules/perror-tests: New file.
46770         * tests/test-perror.sh: New file.
46771         * tests/test-perror.c: New file.
46772
46773         New module 'perror'.
46774         * lib/stdio.in.h (perror): New declaration.
46775         * lib/perror.c: New file.
46776         * m4/perror.m4: New file.
46777         * modules/perror: New file.
46778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46779         * doc/posix-functions/perror.texi: Mention the perror module.
46780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46781         REPLACE_PERROR.
46782         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46783         REPLACE_PERROR.
46784
46785 2008-09-14  Bruno Haible  <bruno@clisp.org>
46786
46787         * modules/stdio (Makefile.am): Reorder to match the order in
46788         lib/stdio.in.h.
46789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46790
46791 2008-09-13  Bruno Haible  <bruno@clisp.org>
46792
46793         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46794
46795 2008-09-13  Bruno Haible  <bruno@clisp.org>
46796
46797         Extend strerror to cover the added errno values.
46798         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46799         (rpl_strerror): Provide error messages for the added errno values and
46800         for the WSA* values.
46801         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46802         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46803         strerror.
46804         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46805         * modules/strerror (Depends-on): Add errno.
46806         * doc/posix-functions/strerror.texi: Document the change.
46807         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46808         and EOVERFLOW.
46809
46810 2008-09-13  Bruno Haible  <bruno@clisp.org>
46811
46812         * modules/EOVERFLOW: Remove file.
46813         * m4/eoverflow.m4: Remove file.
46814         * modules/EOVERFLOW-tests: Remove file.
46815         * tests/test-EOVERFLOW.c: Remove file.
46816         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46817         * modules/ftell (Depends-on): Likewise.
46818         * modules/getdelim (Depends-on): Likewise.
46819         * modules/getugroups (Depends-on): Likewise.
46820         * modules/poll (Depends-on): Likewise.
46821         * modules/snprintf (Depends-on): Likewise.
46822         * modules/sprintf-posix (Depends-on): Likewise.
46823         * modules/vasnprintf (Depends-on): Likewise.
46824         * modules/vasprintf (Depends-on): Likewise.
46825         * modules/vfprintf-posix (Depends-on): Likewise.
46826         * modules/vsnprintf (Depends-on): Likewise.
46827         * modules/vsprintf-posix (Depends-on): Likewise.
46828         * modules/xvasprintf (Depends-on): Likewise.
46829         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46830         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46831         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46832         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46833         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46834         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46835         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46836         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46837         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46838         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46839         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46840         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46841         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46842         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46843         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46844         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46845         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46846         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46847         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46848         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46849         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46850         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46851         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46852         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46853         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46854         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46855         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46856         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46857         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46858         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46859         * MODULES.html.sh: Remove EOVERFLOW.
46860         * NEWS: Mention the change.
46861
46862 2008-09-13  Bruno Haible  <bruno@clisp.org>
46863
46864         * modules/errno-tests: New file.
46865         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46866
46867         * lib/errno.in.h: New file.
46868         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46869         * modules/errno: New file.
46870         * doc/posix-headers/errno.texi: Update documentation.
46871         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46872
46873 2008-09-13  Bruno Haible  <bruno@clisp.org>
46874
46875         * tests/test-poll.c: Use #if for native Windows, rather than testing
46876         __MSVCRT__.
46877
46878 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46879             Bruno Haible  <bruno@clisp.org>
46880
46881         * lib/glob.c: Don't include <pwd.h> on native Windows.
46882         (WINDOWS32): New macro.
46883         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46884
46885 2008-09-13  Bruno Haible  <bruno@clisp.org>
46886
46887         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46888         (ETIMEDOUT): Remove macro.
46889         (glthread_cond_timedwait_multithreaded): New declaration.
46890         (glthread_cond_timedwait): Use it.
46891         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46892         (glthread_cond_timedwait_multithreaded): New function.
46893
46894 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46895
46896         * modules/poll-tests: Do not check for io.h.
46897         * tests/test-poll.c: Check for __MSVCRT__ instead.
46898
46899 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46900
46901         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46902         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46903         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46904
46905 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46906
46907         * modules/poll-tests: New.
46908         * tests/test-poll.c: New.
46909
46910 2008-09-12  Eric Blake  <ebb9@byu.net>
46911
46912         frexp: test for NetBSD failure on -0.0
46913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46914         not all, bugs from NetBSD 3.0 have been fixed.
46915         * doc/posix-functions/frexp.texi (frexp): Document bug.
46916         Reported by Thomas Klausner.
46917
46918         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46919         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46920         literal -0.0.
46921         Reported by Jonathan C. Patschke <jp@centtech.com>.
46922
46923 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46924
46925         * lib/glthread/cond.h: Use dummy implementation also if
46926         USE_WIN32_THREADS.
46927
46928 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46929
46930         * modules/fnmatch-posix (License): Change to LGPLv2+.
46931         * modules/fnmatch-gnu (License): Likewise.
46932
46933 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46934
46935         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46936
46937 2008-09-11  Jim Meyering  <meyering@redhat.com>
46938
46939         * users.txt: Add gtk-vnc.
46940
46941 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46942
46943         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46944         rotate amounts.
46945
46946         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46947         required for 16-bit and 8-bit rotates.
46948         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46949         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46950         UINT8_MAX instead of hard-coded constants.
46951         Suggested by Paul Eggert.
46952
46953 2008-09-07  Bruno Haible  <bruno@clisp.org>
46954
46955         * tests/test-striconveh.c (main): Check behaviour when converting from
46956         UTF-7.
46957
46958         Make striconveh work better with stateful encodings.
46959         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46960         that iconv does not increment the inptr when returning -1/EINVAL.
46961
46962 2008-09-07  Bruno Haible  <bruno@clisp.org>
46963
46964         * build-aux/config.rpath: Update according to libtool-2.2.6.
46965         * build-aux/config.libpath: Likewise.
46966
46967 2008-09-06  Bruno Haible  <bruno@clisp.org>
46968
46969         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46970         * lib/freadptr.c (freadptr): Likewise.
46971         * lib/freadseek.c (freadptrinc): Likewise.
46972         Reported by Simon Josefsson.
46973
46974 2008-09-06  Bruno Haible  <bruno@clisp.org>
46975
46976         * modules/freadptr (License): Change to LGPLv2+.
46977         * modules/freadseek (License): Likewise.
46978         Suggested by Eric Blake.
46979
46980         * modules/memchr2 (License): Change to LGPLv2+.
46981         Approved by Eric Blake.
46982
46983 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46984             Bruno Haible  <bruno@clisp.org>
46985
46986         Make gnulib-tool work with native 'sed' on AIX.
46987         * gnulib-tool (sed_noop): New variable.
46988         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46989         func_add_or_update, func_create_testdir): Use it to initialize sed
46990         script variables.
46991         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46992
46993 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46994             Bruno Haible  <bruno@clisp.org>
46995
46996         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46997         also works after #include directives.
46998
46999 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47000
47001         getdate.y: reject an out-of-range timezone value
47002         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47003         the range [-24...+24].  When specified with only one or two digits,
47004         * tests/test-getdate.c: Tests for the fix.
47005         * doc/getdate.texi: Document this change.
47006
47007 2008-09-03  Bruno Haible  <bruno@clisp.org>
47008
47009         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47010
47011 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47012
47013         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47014         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47015         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47016         Blake <ebb9@byu.net>.
47017
47018         * tests/test-bitrotate.c: Add more test vectors.
47019
47020 2008-09-02  Eric Blake  <ebb9@byu.net>
47021
47022         vasnprintf-posix: handle large precision via %.*d
47023         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47024         when handling it ourselves.
47025         * tests/test-vasnprintf-posix.c (test_function): Add test.
47026         * tests/test-snprintf-posix.h (test_function): Likewise.
47027         * tests/test-sprintf-posix.h (test_function): Likewise.
47028         * tests/test-vasprintf-posix.c (test_function): Likewise.
47029         Reported by Alain Guibert.
47030
47031 2008-09-01  Eric Blake  <ebb9@byu.net>
47032
47033         c-stack: make configure-time check more robust
47034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47035         successful sigaction call.
47036         Reported by Tom G. Christensen.
47037
47038 2008-09-01  Bruno Haible  <bruno@clisp.org>
47039
47040         New module 'findprog-lgpl'.
47041         * modules/findprog-lgpl: New file.
47042         * lib/findprog-lgpl.c: New file.
47043         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47044         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47045         to decide whether to use strdup or xstrdup, concatenated_filename or
47046         xconcatenated_filename.
47047
47048 2008-09-01  Bruno Haible  <bruno@clisp.org>
47049
47050         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47051         'xconcat-filename' (GPL).
47052         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47053         (License): Change to LGPLv2+.
47054         * modules/xconcat-filename: New file.
47055         * lib/concat-filename.h (concatenated_filename): Change specification.
47056         (xconcatenated_filename): New declaration.
47057         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47058         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47059         memory situations.
47060         * lib/xconcat-filename.c: New file.
47061         * NEWS: Mention the change.
47062         * lib/findprog.c: Include concat-filename.h, not filename.h.
47063         (find_in_path): Use xconcatenated_filename instead of
47064         concatenated_filename.
47065         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47066         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47067         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47068         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47069         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47070         instead of concatenated_filename.
47071         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47072         (execute_java_class): Use xconcatenated_filename instead of
47073         concatenated_filename.
47074         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47075         * modules/javacomp (Depends-on): Likewise.
47076         * modules/javaexec (Depends-on): Likewise.
47077
47078 2008-09-01  Bruno Haible  <bruno@clisp.org>
47079
47080         Split module 'filename' into 'filename' and 'concat-filename'.
47081         * modules/filename: Keep only lib/filename.h.
47082         (License): Change to LGPLv2+.
47083         * modules/concat-filename: New file, extracted from modules/filename.
47084         * lib/filename.h (concatenated_filename): Remove declaration.
47085         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47086         * lib/concat-filename.c: Include concat-filename.h.
47087         * NEWS: Mention the change.
47088
47089 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47090
47091         * lib/bitrotate.h (rotl8, rotr8): Add.
47092
47093         * modules/bitrotate (configure.ac): Need
47094         AC_REQUIRE([AC_C_INLINE]).
47095         (Description): Mention stdint.h.  Reported by Bruno Haible
47096         <bruno@clisp.org>.
47097
47098         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47099         Paolo Bonzini <bonzini@gnu.org>.
47100
47101 2008-08-31  Bruno Haible  <bruno@clisp.org>
47102
47103         Assume Solaris specific bi-arch conventions on Solaris systems.
47104         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47105         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47106         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47107         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47108         like acl_libdirstem.
47109         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47110         acl_libdirstem.
47111         * NEWS: Mention the change.
47112         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47113
47114 2008-08-31  Jim Meyering  <meyering@redhat.com>
47115
47116         * lib/strftime.h: Add comments describing the two added arguments.
47117
47118         remove duplicate #include directives
47119         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47120         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47121
47122 2008-08-31  Bruno Haible  <bruno@clisp.org>
47123
47124         New module 'sigpipe-die'.
47125         * modules/sigpipe-die: New file.
47126         * lib/sigpipe-die.h: New file.
47127         * lib/sigpipe-die.c: New file.
47128         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47129
47130 2008-08-31  Bruno Haible  <bruno@clisp.org>
47131
47132         Don't override previously installed signal handlers.
47133         * lib/fatal-signal.c (saved_sigactions): New variable.
47134         (uninstall_handlers): Reset the signal to the saved handler, not
47135         to SIG_DFL (except when ignored).
47136         (install_handlers): Save the previous handlers.
47137
47138 2008-08-30  Bruno Haible  <bruno@clisp.org>
47139
47140         * gnulib-tool (func_reset_sigpipe): New function.
47141         (func_get_automake_snippet, func_modules_transitive_closure,
47142         func_import): Invoke it before a join command that reads from stdin,
47143         to avoid "echo: write error: Broken pipe" error messages on stderr.
47144         Reported by Sam Steingold <sds@gnu.org>.
47145
47146 2008-08-30  Bruno Haible  <bruno@clisp.org>
47147
47148         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47149         Code copied from m4/open.m4.
47150         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47151         access and the filename ends in a slash. Code copied from lib/open.c.
47152         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47153         * tests/test-fopen.c (main): Check against bug with trailing slash.
47154
47155 2008-08-29  Bruno Haible  <bruno@clisp.org>
47156
47157         Avoid some "gcc -pedantic" warnings.
47158         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47159         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47160         * lib/dirent.in.h: Likewise.
47161         * lib/fcntl.in.h: Likewise.
47162         * lib/float.in.h: Likewise.
47163         * lib/iconv.in.h: Likewise.
47164         * lib/inttypes.in.h: Likewise.
47165         * lib/locale.in.h: Likewise.
47166         * lib/math.in.h: Likewise.
47167         * lib/netinet_in.in.h: Likewise.
47168         * lib/search.in.h: Likewise.
47169         * lib/signal.in.h: Likewise.
47170         * lib/stdarg.in.h: Likewise.
47171         * lib/stdint.in.h: Likewise.
47172         * lib/stdio.in.h: Likewise.
47173         * lib/stdlib.in.h: Likewise.
47174         * lib/string.in.h: Likewise.
47175         * lib/strings.in.h: Likewise.
47176         * lib/sys_select.in.h: Likewise.
47177         * lib/sys_socket.in.h: Likewise.
47178         * lib/sys_stat.in.h: Likewise.
47179         * lib/sys_time.in.h: Likewise.
47180         * lib/sysexits.in.h: Likewise.
47181         * lib/time.in.h: Likewise.
47182         * lib/unistd.in.h: Likewise.
47183         * lib/wchar.in.h: Likewise.
47184         * lib/wctype.in.h: Likewise.
47185         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47186         * modules/fchdir (Makefile.am): Likewise.
47187         * modules/fcntl (Makefile.am): Likewise.
47188         * modules/float (Makefile.am): Likewise.
47189         * modules/iconv_open (Makefile.am): Likewise.
47190         * modules/inttypes (Makefile.am): Likewise.
47191         * modules/locale (Makefile.am): Likewise.
47192         * modules/math (Makefile.am): Likewise.
47193         * modules/netinet_in (Makefile.am): Likewise.
47194         * modules/search (Makefile.am): Likewise.
47195         * modules/signal (Makefile.am): Likewise.
47196         * modules/stdarg (Makefile.am): Likewise.
47197         * modules/stdint (Makefile.am): Likewise.
47198         * modules/stdio (Makefile.am): Likewise.
47199         * modules/stdlib (Makefile.am): Likewise.
47200         * modules/string (Makefile.am): Likewise.
47201         * modules/strings (Makefile.am): Likewise.
47202         * modules/sys_select (Makefile.am): Likewise.
47203         * modules/sys_socket (Makefile.am): Likewise.
47204         * modules/sys_stat (Makefile.am): Likewise.
47205         * modules/sys_time (Makefile.am): Likewise.
47206         * modules/sysexits (Makefile.am): Likewise.
47207         * modules/time (Makefile.am): Likewise.
47208         * modules/unistd (Makefile.am): Likewise.
47209         * modules/wchar (Makefile.am): Likewise.
47210         * modules/wctype (Makefile.am): Likewise.
47211         Reported by Reuben Thomas <rrt@sc3d.org>.
47212
47213 2008-08-29  Bruno Haible  <bruno@clisp.org>
47214
47215         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47216         any more.
47217
47218 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47219
47220         * MODULES.html.sh (Misc): Add bitrotate.
47221
47222         * modules/bitrotate: New file.
47223
47224         * lib/bitrotate.h: New file.
47225
47226         * modules/bitrotate-tests: New file.
47227
47228         * tests/test-bitrotate.c: New file.
47229
47230         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47231         on the bitrotate module.
47232
47233         * lib/arctwo.c: Use new bitrotate module.
47234
47235 2008-08-29  Jim Meyering  <meyering@redhat.com>
47236
47237         bootstrap: merge changes from coreutils
47238         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47239         of copied files.  Remove a kludge, now that this is fixed.
47240         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47241         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47242         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47243
47244 2008-08-29  Bruno Haible  <bruno@clisp.org>
47245
47246         * MODULES.html.sh: Remove --cvs-urls option.
47247
47248 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47249
47250         maint.mk: adjust to file name change
47251         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47252
47253 2008-08-28  Jim Meyering  <meyering@redhat.com>
47254
47255         * modules/getndelim2 (License): Relicense to LGPLv2+.
47256         Approved by Richard Stallman for the version of 1995, and by
47257         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47258
47259 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47260
47261         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47262         dummy if one is not available.  Do not touch them if
47263         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47264         (getc_maybe_unlocked): New.
47265         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47266
47267 2008-08-26  Eric Blake  <ebb9@byu.net>
47268
47269         doc/INSTALL: resync from autoconf
47270         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47271         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47272         moving...
47273         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47274         * INSTALL: Regenerate.
47275         * INSTALL.ISO: New file.
47276         * INSTALL.UTF-8: Likewise.
47277
47278 2008-08-26  Jim Meyering  <meyering@redhat.com>
47279
47280         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47281         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47282         these definitions conditional, so that they may be overridden, too.
47283
47284 2008-08-26  Bruno Haible  <bruno@clisp.org>
47285
47286         Generate INSTALL file variants with prettier quotes.
47287         * doc/Makefile (INSTALL_PRELUDE): New macro.
47288         (INSTALL): Use it.
47289         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47290
47291 2008-08-26  Bruno Haible  <bruno@clisp.org>
47292
47293         Run makeinfo in an English locale.
47294         * doc/Makefile (MAKEINFO): New variable.
47295
47296 2008-08-26  Bruno Haible  <bruno@clisp.org>
47297
47298         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47299         Suggested by Eric Blake.
47300
47301 2008-08-25  Bruno Haible  <bruno@clisp.org>
47302
47303         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47304
47305 2008-08-25  Eric Blake  <ebb9@byu.net>
47306
47307         c-stack: test that stack overflow can be caught
47308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47309         that platform allows handling stack overflow; at least OS/2 EMX
47310         has sigaltstack, but crashes before transferring control to
47311         handler on stack overflow.
47312         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47313         check for HAVE_STACK_OVERFLOW_HANDLING.
47314         Reported by Elbert Pol.
47315
47316 2008-08-25  Bruno Haible  <bruno@clisp.org>
47317
47318         * doc/posix-functions/strftime.texi: Fix description of strftime
47319         module.
47320
47321 2008-08-24  Bruno Haible  <bruno@clisp.org>
47322
47323         * tests/uniwidth/test-uc_width2.c: New file.
47324         * tests/uniwidth/test-uc_width2.sh: New file.
47325         * modules/uniwidth/width-tests (Files): Add the new files.
47326         (TESTS): Add uniwidth/test-uc_width2.sh.
47327         (TESTS_ENVIRONMENT): New variable.
47328         (check_PROGRAMS): Add test-uc_width2.
47329         (test_uc_width2_SOURCES): New variable.
47330
47331         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47332         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47333         not 0x00AB.
47334         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47335
47336 2008-08-22  Eric Blake  <ebb9@byu.net>
47337
47338         test-lock, test-tls: mention why a test is skipped
47339         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47340         skipped.
47341         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47342
47343         count-one-bits: relax license
47344         * modules/count-one-bits (License): Relicense to LGPLv2+.
47345         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47346
47347 2008-08-22  Andreas Schwab  <schwab@suse.de>
47348
47349         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47350         Remove spurious space in assignment.
47351
47352 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47353
47354         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47355         Paul Eggert <eggert@CS.UCLA.EDU>.
47356
47357 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47358
47359         * modules/gettext: Add m4/threadlib.m4.
47360
47361 2008-08-19  Eric Blake  <ebb9@byu.net>
47362
47363         test-c-stack: fix compilation failure on FreeBSD 5.0
47364         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47365         headers before <sys/resource.h>.
47366         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47367         the bug.
47368         Reported by Nelson H. F. Beebe.
47369
47370         strverscmp: migrate from "strverscmp.h" to <string.h>
47371         * modules/string (Makefile.am): Add new hooks.
47372         * modules/strverscmp (Files): Remove strverscmp.h.
47373         (Depends-on): Add string.
47374         (configure.ac): Add indicator.
47375         (Include): Mention new header.
47376         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47377         defaults.
47378         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47379         results.
47380         * lib/strverscmp.h: Delete.
47381         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47382         * tests/test-strverscmp.c (includes): Adjust client.
47383         * lib/check-version.c (includes): Likewise.
47384         * NEWS: Document the change.
47385
47386         strverscmp: add unit test
47387         * modules/strverscmp-tests: New file.
47388         * tests/test-strverscmp.c: Likewise.
47389
47390 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47391
47392         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47393         regarding Windows crypto stuff, from Mono.
47394
47395 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47396
47397         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47398         if present, for intel RND.  Return error on failures.
47399
47400 2008-08-18  Ben Pfaff  <blp@gnu.org>
47401
47402         gitlog-to-changelog: give better diagnostic for failed pipe-open
47403         * build-aux/gitlog-to-changelog: Improve error message: suggest
47404         that the version of Git may be too old.
47405
47406 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47407
47408         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47409         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47410
47411 2008-08-18  Bruno Haible  <bruno@clisp.org>
47412
47413         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47414         pthread_in_use().
47415
47416 2008-08-18  Bruno Haible  <bruno@clisp.org>
47417
47418         * lib/glthread/threadlib.c: Include <pthread.h>.
47419
47420 2008-08-18  Bruno Haible  <bruno@clisp.org>
47421
47422         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47423         glthread_recursive_lock_* macros.
47424         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47425         Fix syntax error.
47426
47427 2008-08-18  Bruno Haible  <bruno@clisp.org>
47428
47429         * lib/glthread/thread.c: Avoid forcing a context switch right after
47430         thread creation.
47431
47432 2008-08-17  Bruno Haible  <bruno@clisp.org>
47433
47434         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47435         * lib/glthread/thread.h: Provide Win32 specific implementation.
47436         * modules/thread (Files): Add lib/glthread/thread.c.
47437         (Depends-on): Add lock.
47438         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47439
47440 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47441
47442         New module 'yield'.
47443         * modules/yield: New file.
47444         * lib/glthread/yield.h: New file.
47445         * m4/yield.m4: New file.
47446         * MODULES.html.sh (Multithreading): Add yield.
47447
47448 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47449
47450         New module 'thread'.
47451         * modules/thread: New file.
47452         * lib/glthread/thread.h: New file.
47453         * m4/thread.m4: New file.
47454         * MODULES.html.sh (Multithreading): Add thread.
47455
47456 2008-08-17  Bruno Haible  <bruno@clisp.org>
47457
47458         * lib/glthread/lock.h: Include <stdlib.h> always.
47459         * lib/glthread/tls.h: Likewise.
47460         * lib/glthread/cond.h: Likewise.
47461
47462 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47463
47464         New module 'cond'.
47465         * modules/cond: New file.
47466         * lib/glthread/cond.h: New file.
47467         * lib/glthread/cond.c: New file.
47468         * m4/cond.m4: New file.
47469         * MODULES.html.sh (Multithreading): Add cond.
47470
47471 2008-08-16  Eric Blake  <ebb9@byu.net>
47472
47473         c-stack: fix regression on Irix 5.3 from 2008-06-21
47474         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47475         sa_sigaction...
47476         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47477         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47478         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47479         * modules/signal (Makefile.am): Use the value.
47480         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47481         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47482         * doc/posix-headers/signal.texi (signal.h): Document this
47483         portability issue.
47484         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47485         Reported by Tom G. Christensen.
47486
47487 2008-08-17  Bruno Haible  <bruno@clisp.org>
47488
47489         New module 'threadlib'.
47490         * modules/threadlib: New file.
47491         * lib/glthread/threadlib.c: New file, extracted from
47492         lib/glthread/lock.c.
47493         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47494         functions.
47495         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47496         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47497         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47498         macros.
47499         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47500         (gl_DISABLE_THREADS): Remove macro.
47501         * modules/lock (Files): Remove build-aux/config.rpath.
47502         (Depends-on): Remove havelib. Add threadlib.
47503         (configure.ac-early): Remove section.
47504         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47505         * modules/tls (Depends-on): Remove lock. Add threadlib.
47506         (Link): New section, copied from threadlib.
47507         * MODULES.html.sh (Multithreading): Add threadlib.
47508
47509 2008-08-14  Bruno Haible  <bruno@clisp.org>
47510
47511         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47512         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47513         glthread_rwlock_unlock, glthread_rwlock_destroy,
47514         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47515         glthread_recursive_lock_destroy): Define as macros always.
47516         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47517         glthread_lock_lock.
47518         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47519         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47520         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47521         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47522         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47523         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47524         (glthread_recursive_lock_lock_func): Renamed from
47525         glthread_recursive_lock_lock.
47526         (glthread_recursive_lock_unlock_func): Renamed from
47527         glthread_recursive_lock_unlock.
47528         (glthread_recursive_lock_destroy_func): Renamed from
47529         glthread_recursive_lock_destroy.
47530
47531 2008-08-14  Bruno Haible  <bruno@clisp.org>
47532
47533         * lib/glthread/lock.h: Renamed from lib/lock.h.
47534         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47535         * lib/glthread/tls.h: Renamed from lib/tls.h.
47536         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47537         * lib/fstrcmp.c: Update includes.
47538         * lib/strsignal.c: Update includes.
47539         * modules/lock (Files, Makefile.am): Update.
47540         (Include): Change to "glthread/lock.h".
47541         * modules/tls (Files, Makefile.am): Update.
47542         (Include): Change to "glthread/tls.h".
47543         * tests/test-lock.c: Update includes.
47544         * tests/test-tls.c: Update includes.
47545         * NEWS: Mention the renamed header files.
47546
47547 2008-08-11  Jim Meyering  <meyering@redhat.com>
47548
47549         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47550
47551 2008-08-11  Eric Blake  <ebb9@byu.net>
47552
47553         test-c-stack: avoid C99-ism
47554         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47555         before statement.
47556         Reported by Alain Guibert.
47557
47558 2008-08-10  Jim Meyering  <meyering@redhat.com>
47559
47560         ensure that return value of uinttostr et al are not ignored
47561         * lib/inttostr.h (__GNUC_PREREQ): Define.
47562         (__attribute_warn_unused_result__): Define.
47563         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47564
47565 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47566
47567         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47568         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47569
47570 2008-08-07  Jim Meyering  <meyering@redhat.com>
47571
47572         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47573
47574         * modules/mkstemp (License): Relicense under LGPLv2+.
47575         * modules/tempname (License): Likewise.
47576
47577 2008-08-06  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/poll.c (poll): Further micro-optimization.
47580
47581 2008-08-06  Jim Meyering  <meyering@redhat.com>
47582
47583         inet_pton.c: use locale-independent tolower
47584         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47585         (inet_pton6): Use c_tolower rather than tolower.
47586         * modules/inet_pton (Depends-on): Add c-ctype.
47587
47588 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47589
47590         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47591         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47592
47593 2008-08-06  Jim Meyering  <meyering@redhat.com>
47594
47595         * modules/inet_pton (License): Relicense under LGPLv2+.
47596
47597 2008-08-03  Bruno Haible  <bruno@clisp.org>
47598
47599         Additional non-aborting API for lock and tls.
47600         * lib/lock.h: Include <errno.h>.
47601         (glthread_lock_init): New macro/function.
47602         (gl_lock_init): Define as wrapper around glthread_lock_init.
47603         (glthread_lock_lock): New macro/function.
47604         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47605         (glthread_lock_unlock): New macro/function.
47606         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47607         (glthread_lock_destroy): New macro/function.
47608         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47609         (glthread_rwlock_init): New macro/function.
47610         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47611         (glthread_rwlock_rdlock): New macro/function.
47612         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47613         (glthread_rwlock_wrlock): New macro/function.
47614         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47615         (glthread_rwlock_unlock): New macro/function.
47616         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47617         (glthread_rwlock_destroy): New macro/function.
47618         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47619         (glthread_recursive_lock_init): New macro/function.
47620         (gl_recursive_lock_init): Define as wrapper around
47621         glthread_recursive_lock_init.
47622         (glthread_recursive_lock_lock): New macro/function.
47623         (gl_recursive_lock_lock): Define as wrapper around
47624         glthread_recursive_lock_lock.
47625         (glthread_recursive_lock_unlock): New macro/function.
47626         (gl_recursive_lock_unlock): Define as wrapper around
47627         glthread_recursive_lock_unlock.
47628         (glthread_recursive_lock_destroy): New macro/function.
47629         (gl_recursive_lock_destroy): Define as wrapper around
47630         glthread_recursive_lock_destroy.
47631         (glthread_once): New macro/function.
47632         (gl_once): Define as wrapper around glthread_once.
47633         Update function declarations.
47634         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47635         glthread_rwlock_init. Return error code.
47636         (glthread_rwlock_rdlock_multithreaded): Renamed from
47637         glthread_rwlock_rdlock. Return error code.
47638         (glthread_rwlock_wrlock_multithreaded): Renamed from
47639         glthread_rwlock_wrlock. Return error code.
47640         (glthread_rwlock_unlock_multithreaded): Renamed from
47641         glthread_rwlock_unlock. Return error code.
47642         (glthread_rwlock_destroy_multithreaded): Renamed from
47643         glthread_rwlock_destroy. Return error code.
47644         (glthread_recursive_lock_init_multithreaded): Renamed from
47645         glthread_recursive_lock_init. Return error code.
47646         (glthread_recursive_lock_lock_multithreaded): Renamed from
47647         glthread_recursive_lock_lock. Return error code.
47648         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47649         glthread_recursive_lock_unlock. Return error code.
47650         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47651         glthread_recursive_lock_destroy. Return error code.
47652         (glthread_once_call): Make static.
47653         (glthread_once_multithreaded): Renamed from glthread_once.
47654         * lib/tls.h: Include <errno.h>.
47655         (glthread_tls_key_init): New macro/function.
47656         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47657         (glthread_tls_set): New macro/function.
47658         (gl_tls_set): Define as wrapper around glthread_tls_set.
47659         (glthread_tls_key_destroy): New macro/function.
47660         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47661         Update function declarations.
47662         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47663         glthread_tls_get.
47664         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47665
47666 2008-08-04  Eric Blake  <ebb9@byu.net>
47667
47668         gnumakefile: use space, not TAB, outside of targets
47669         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47670
47671 2008-08-02  Jim Meyering  <meyering@redhat.com>
47672
47673         getdate.y: avoid locale-dependent date parsing failure
47674         In Turkish locales, getdate would fail to recognize keywords
47675         containing a lowercase "i".  The solution is not to rely on
47676         locale-sensitive case-conversion.
47677         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47678         (lookup_word): Use c_toupper in place of toupper.
47679         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47680         Reported by Vefa Bicakci <bicave@superonline.com> in
47681         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47682         * modules/getdate (Depends-on): Add c-ctype.
47683
47684 2008-08-02  Bruno Haible  <bruno@clisp.org>
47685
47686         * gnulib-tool (func_import): When updating or creating a .gitignore
47687         file, prepend each added line with a slash, and ignore leading slashes
47688         from the existing lines.
47689         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47690
47691 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47692
47693         Portability fix for GNU make 3.79.1.
47694         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47695         versions do not understand.
47696
47697 2008-08-01  Bruno Haible  <bruno@clisp.org>
47698
47699         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47700         * tests/test-isnanf.h (zero): New variable.
47701         (main): Avoid literal -0.0f.
47702         * tests/test-isnand.h (zero): New variable.
47703         (main): Avoid literal -0.0.
47704         * tests/test-isnanl.h (zero): New variable.
47705         (main): Avoid literal -0.0L.
47706         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47707         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47708         -0.0, -0.0L.
47709         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47710         (test_signbitd): Avoid literal -0.0.
47711         (test_signbitl): Avoid literal -0.0L.
47712         * tests/test-ceilf1.c (zero): New variable.
47713         (main): Avoid literal -0.0f.
47714         * tests/test-ceill.c (zero): New variable.
47715         (main): Avoid literal -0.0L.
47716         * tests/test-floorf1.c (zero): New variable.
47717         (main): Avoid literal -0.0f.
47718         * tests/test-floorl.c (zero): New variable.
47719         (main): Avoid literal -0.0L.
47720         * tests/test-roundf1.c (zero): New variable.
47721         (main): Avoid literal -0.0f.
47722         * tests/test-round1.c (zero): New variable.
47723         (main): Avoid literal -0.0.
47724         * tests/test-roundl.c (zero): New variable.
47725         (main): Avoid literal -0.0L.
47726         * tests/test-truncf1.c (zero): New variable.
47727         (main): Avoid literal -0.0f.
47728         * tests/test-trunc1.c (zero): New variable.
47729         (main): Avoid literal -0.0.
47730         * tests/test-truncl.c (zero): New variable.
47731         (main): Avoid literal -0.0L.
47732         * tests/test-frexp.c (zero): New variable.
47733         (main): Avoid literal -0.0.
47734         * tests/test-frexpl.c (zero): New variable.
47735         (main): Avoid literal -0.0L.
47736         * tests/test-ldexpl.c (zero): New variable.
47737         (main): Avoid literal -0.0L.
47738         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47739         (zerod, zerol): New variables.
47740         (test_function): Avoid literals -0.0, -0.0L.
47741         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47742         (zerod, zerol): New variables.
47743         (test_function): Avoid literals -0.0, -0.0L.
47744         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47745         (zerod, zerol): New variables.
47746         (test_function): Avoid literals -0.0, -0.0L.
47747         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47748         (zerod, zerol): New variables.
47749         (test_function): Avoid literals -0.0, -0.0L.
47750         * tests/test-strtod.c (zero): New variable.
47751         (main): Avoid literal -0.0.
47752         Reported by Jonathan C. Patschke <jp@centtech.com>.
47753
47754 2008-07-31  Jim Meyering  <meyering@redhat.com>
47755
47756         sha256.h: correct definition of SHA224_DIGEST_SIZE
47757         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47758         Reported by Paulie Pena IV <paulie4@gmail.com>.
47759         Define as 224 / 8, rather than as a literal.
47760         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47761         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47762         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47763
47764 2008-07-31  Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47767         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47768         Reported by Jonathan Patschke <jp@centtech.com>.
47769
47770 2008-07-31  Bruno Haible  <bruno@clisp.org>
47771
47772         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47773         Reported by Paolo Bonzini <bonzini@gnu.org>.
47774
47775 2008-07-30  Eric Blake  <ebb9@byu.net>
47776
47777         test-strtod: allow compilation without -lm
47778         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47779         Reported by Dennis Clarke <blastwave@gmail.com>.
47780
47781 2008-07-28  Jim Meyering  <meyering@redhat.com>
47782
47783         bootstrap: work also when there are no .po files in po/
47784         * build-aux/bootstrap (update_po_files): Complete the change
47785         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47786
47787 2008-07-27  Jim Meyering  <meyering@redhat.com>
47788
47789         * users.txt: Add zile.
47790
47791 2008-07-26  Ben Pfaff  <blp@gnu.org>
47792
47793         Add missing dependencies on new m4/exponent[fdl].m4 files.
47794         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47795         * modules/isnand-nolibm: Add m4/exponentd.m4.
47796         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47797         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47798         m4/isnan[fdl].m4, because the macros actually used moved.
47799         Reported by Jim Meyering.
47800
47801 2008-07-14  Ben Pfaff  <blp@gnu.org>
47802
47803         Add isinf module.
47804         * lib/isinf.c: New file.
47805         * lib/math.in.h: Define isinf macro if we have decided to replace
47806         it.
47807         * m4/isinf.m4: New file.
47808         * m4/math_h.m4: Initialize and substitute variables for isinf
47809         module.
47810         * modules/isinf: New file.
47811         * modules/isinf-tests: New file.
47812         * modules/math: Add substitutions for new module.
47813         * tests/test-isinf.c: New file.
47814         * doc/posix-functions/isinf.texi: Mention new module.
47815         * MODULES.html.sh: Mention new module.
47816
47817 2008-07-14  Ben Pfaff  <blp@gnu.org>
47818
47819         Factor out some macros for use by additional modules.
47820         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47821         exponentf.m4.
47822         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47823         exponentd.m4.
47824         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47825         file exponentl.m4.
47826         * m4/exponentf.m4: New file.
47827         * m4/exponentd.m4: New file.
47828         * m4/exponentl.m4: New file.
47829         * modules/isnanf: Use new file m4/exponentf.m4.
47830         * modules/isnand: Use new file m4/exponentd.m4.
47831         * modules/isnanl: Use new file m4/exponentl.m4.
47832
47833 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47834
47835         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47836         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47837         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47838         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47839
47840         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47841         readlink on platforms without PATH_MAX.
47842
47843 2008-07-21  Eric Blake  <ebb9@byu.net>
47844
47845         Warn, not fail, on stale version.
47846         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47847
47848         Don't allow installation with stale devel version number.
47849         * top/GNUmakefile (_is-install-target): New macro.
47850         (_curr-ver): Forbid installation with stale version number.
47851
47852 2008-07-20  Bruno Haible  <bruno@clisp.org>
47853
47854         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47855         TESTS_ENVIRONMENT.
47856         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47857
47858 2008-07-20  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/c-stack.h (c_stack_action): Add documentation.
47861         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47862
47863 2008-07-20  Bruno Haible  <bruno@clisp.org>
47864
47865         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47866         * modules/readlink (License): Likewise.
47867
47868 2008-07-17  Eric Blake  <ebb9@byu.net>
47869
47870         * modules/c-stack (Link): Fix typo.
47871
47872         Make c-stack use libsigsegv, when available.
47873         * modules/c-stack (Depends-on): Add libsigsegv.
47874         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47875         needed.
47876         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47877         (segv_handler, overflow_handler, c_stack_action)
47878         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47879         implementation when libsigsegv is available, but only when using
47880         the library is necessary.
47881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47882         comment, explaining why XSI check fails on Linux.
47883         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47884         * tests/test-c-stack2.sh: Tweak skip message.
47885         * NEWS: Document new link-time requirements.
47886
47887 2008-07-16  Eric Blake  <ebb9@byu.net>
47888
47889         c-stack: Expose false positives when not using libsigsegv.
47890         * modules/c-stack-tests (Files): Expand test.
47891         * tests/test-c-stack.c (main): Add means to conditionally trigger
47892         non-overflow SIGSEGV.
47893         * tests/test-c-stack2.sh: New file.
47894
47895 2008-07-14  Bruno Haible  <bruno@clisp.org>
47896
47897         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47898         Reported by Eric Blake.
47899
47900 2008-07-14  Sam Steingold  <sds@gnu.org>
47901             Bruno Haible  <bruno@clisp.org>
47902
47903         New module libsigsegv.
47904         * modules/libsigsegv: New file.
47905         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47906         modifications.
47907         * MODULES.html.sh (Signal handling): New section.
47908
47909 2008-07-14  Bruno Haible  <bruno@clisp.org>
47910
47911         * modules/unictype/ctype-* (Description): Add the word "function".
47912         Improves the resulting doc in MODULES.html.
47913
47914 2008-07-12  Ben Pfaff  <blp@gnu.org>
47915
47916         Add longlong module.
47917         * modules/longlong: New file.
47918
47919 2008-07-12  Bruno Haible  <bruno@clisp.org>
47920
47921         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47922         to empty.
47923
47924 2008-07-10  Ben Pfaff  <blp@gnu.org>
47925
47926         Add isnan module.
47927         * doc/posix-functions/isnan.texi: Mention new module.
47928         * lib/math.in.h: Define isnan macro if we have decided to replace
47929         it.
47930         * m4/isnan.m4: New file.
47931         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47932         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47933         also.
47934         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47935         redundancy.
47936         * m4/math_h.m4: Initialize and substitute variables for isnan
47937         module.
47938         * modules/isnan: New file.
47939         * modules/isnan-tests: New file.
47940         * modules/math: Add substitutions for new module.
47941         * tests/test-isnan.c: New file.
47942         * MODULES.html.sh: Mention new module.
47943
47944 2008-07-10  Ben Pfaff  <blp@gnu.org>
47945
47946         Add isnanf module.
47947         * lib/isnanf.m4: New file.
47948         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47949         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47950         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47951         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47952         * modules/isnanf: New file.
47953         * modules/isnanf-tests: New file.
47954         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47955         files.
47956         * tests/test-isnanf-nolibm.c: factored most of its contents into
47957         new file tests/test-isnanf.h.
47958         * tests/test-isnanf.h: New file.
47959         * tests/test-isnanf.c: New file.
47960         * MODULES.html.sh: Mention new module.
47961         * doc/glibc-functions/isnanf.texi: Mention new module.
47962
47963 2008-07-10  Ben Pfaff  <blp@gnu.org>
47964
47965         Add isnand module.
47966         * lib/isnand.h: New file.
47967         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47968         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47969         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47970         functionality also.
47971         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47972         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47973         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47974         * modules/isnand: New file.
47975         * modules/isnand-tests: New file.
47976         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47977         files.
47978         * tests/test-isnand-nolibm.c: factored most of its contents into
47979         new file tests/test-isnand.h.
47980         * tests/test-isnand.h: New file.
47981         * tests/test-isnand.c: New file.
47982         * MODULES.html.sh: Mention new module.
47983
47984 2008-07-10  Ben Pfaff  <blp@gnu.org>
47985
47986         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47987         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47988         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47989         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47990         * modules/isnanf-nolibm: Update references to renamed files.
47991         * modules/isnand-nolibm: Likewise.
47992         * modules/isnanf-nolibm-tests: Likewise.
47993         * modules/isnand-nolibm-tests: Likewise.
47994         * lib/frexp.c: Likewise.
47995         * lib/isfinite.c: Likewise.
47996         * lib/signbitd.c: Likewise.
47997         * lib/signbitf.c: Likewise.
47998         * lib/vasnprintf.c: Likewise.
47999         * tests/test-ceilf1.c: Likewise.
48000         * tests/test-ceilf2.c: Likewise.
48001         * tests/test-floorf1.c: Likewise.
48002         * tests/test-floorf2.c: Likewise.
48003         * tests/test-frexp.c: Likewise.
48004         * tests/test-round1.c: Likewise.
48005         * tests/test-round2.c: Likewise.
48006         * tests/test-roundf1.c: Likewise.
48007         * tests/test-strtod.c: Likewise.
48008         * tests/test-trunc1.c: Likewise.
48009         * tests/test-trunc2.c: Likewise.
48010         * tests/test-truncf1.c: Likewise.
48011         * tests/test-truncf2.c: Likewise.
48012         * NEWS: Mention the renamed header files.
48013
48014 2008-07-11  Jim Meyering  <meyering@redhat.com>
48015
48016         vc-list-files: make the last-resort awk code more portable
48017         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48018         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48019         does not support it.
48020
48021 2008-07-10  Eric Blake  <ebb9@byu.net>
48022
48023         Work with tar's bootstrap.
48024         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48025         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48026         an m4 comment.
48027
48028 2008-07-09  Jim Meyering  <meyering@redhat.com>
48029
48030         posix-shell.m4: fix typo that made this test malfunction
48031         * m4/posix-shell.m4: Remove capitalization in variable name.
48032
48033 2008-07-08  Bruno Haible  <bruno@clisp.org>
48034
48035         * m4/onceonly.m4: Update comments.
48036         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48037
48038 2008-07-04  Jim Meyering  <meyering@redhat.com>
48039
48040         * users.txt: Add vc-dwim.
48041         (bison, coreutils): Use the gitweb URL.
48042
48043 2008-07-03  Jim Meyering  <meyering@redhat.com>
48044
48045         * users.txt: Add libffcall.  From Sam Steingold.
48046
48047 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48048
48049         getdate.y: do not ignore TZ with relative day, month or year offset
48050         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48051         relative-date-handling, since otherwise, the latter would clobber the
48052         sole output (an updated Start value) of the tz-handling block.
48053         * tests/test-getdate.c: Tests for the fix
48054
48055 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48056
48057         Recognize 'foo_LIBRARIES += libgnu.a'.
48058         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48059         makefile snippet has already specified an installation location,
48060         also using '+='.
48061
48062 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48063
48064         getdate.y: factor out common actions
48065         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48066         Use them in place of open-coded actions.
48067
48068 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48069
48070         Add self-test for getdate module.
48071         * modules/getdate-tests: New file.
48072         * tests/test-getdate.c: New file.
48073
48074 2008-06-29  Bruno Haible  <bruno@clisp.org>
48075
48076         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48077         .gitignore.
48078         Reported by Sylvain Beucler <beuc@beuc.net>.
48079
48080 2008-06-29  Bruno Haible  <bruno@clisp.org>
48081
48082         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48083         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48084
48085 2008-06-29  Bruno Haible  <bruno@clisp.org>
48086
48087         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48088         EXTRA_DIST.
48089         Reported by Sylvain Beucler <beuc@beuc.net>.
48090
48091 2008-06-26  Jim Meyering  <meyering@redhat.com>
48092
48093         make several modules depend on the "open" module
48094         This provides slightly increased consistency when opening-for-write
48095         the name of a non-directory spelled with a trailing slash.
48096         * modules/chdir-safer: Likewise.
48097         * modules/chown: Likewise.
48098         * modules/clean-temp: Likewise.
48099         * modules/copy-file: Likewise.
48100         * modules/fchdir: Likewise.
48101         * modules/fcntl-safer: Likewise.
48102         * modules/pipe: Likewise.
48103         * modules/utime: Likewise.
48104         Prompted by Eric Blake and Bruno Haible.
48105
48106 2008-06-24  Andreas Schwab  <schwab@suse.de>
48107
48108         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48109         literals can be used as initializers for global variables.
48110
48111 2008-06-23  Eric Blake  <ebb9@byu.net>
48112
48113         Make gnulib-cache.m4 easier to diff.
48114         * gnulib-tool (func_import): Allow newlines when reading cached
48115         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48116
48117 2008-06-23  Bruno Haible  <bruno@clisp.org>
48118
48119         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48120         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48121         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48122         m4/signalblocking.m4.
48123         (gl_PREREQ_SIGACTION): Don't invoke it.
48124         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48125         gl_PREREQ_SIG_HANDLER_H.
48126         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48127         Don't check for sigaction here.
48128
48129 2008-06-23  Bruno Haible  <bruno@clisp.org>
48130
48131         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48132         (install_handlers): Don't set the SA_RESETHAND flag.
48133
48134 2008-06-23  Bruno Haible  <bruno@clisp.org>
48135
48136         * m4/sigaction.m4: Comment fixes.
48137         * lib/signal.in.h: Likewise.
48138
48139 2008-06-23  Eric Blake  <ebb9@byu.net>
48140
48141         Fix typo.
48142         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48143
48144         Avoid SA_ namespace.
48145         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48146         Reported by Ralf Wildenhues.
48147
48148         Avoid test failure due to SA_RESTORER.
48149         * tests/test-sigaction.c (SA_MASK): New macro.
48150         (main): Avoid failing due to extension flags being set.
48151         Reported by Jim Meyering.
48152
48153         Revert use of sig-handler.h in sigprocmask.c.
48154         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48155         it requires the existence of struct sigaction.
48156         * lib/sigprocmask.c (handler_t): Restore typedef.
48157         (rpl_signal, old_handlers): Use local type.
48158
48159 2008-06-22  Bruno Haible  <bruno@clisp.org>
48160
48161         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48162         conditionally.
48163         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48164
48165 2008-06-22  Bruno Haible  <bruno@clisp.org>
48166
48167         * doc/posix-functions/siginterrupt.texi: Move note.
48168
48169         * lib/signal.in.h (SA_RESTART): New macro.
48170         * lib/sigaction.c: Update comment.
48171
48172         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48173
48174         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48175         (gl_PREREQ_SIGPROCMASK): Invoke it.
48176         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48177
48178         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48179
48180         * lib/sigprocmask.c: Update a comment.
48181
48182 2008-06-21  Eric Blake  <ebb9@byu.net>
48183
48184         Use sigaction module rather than signal().
48185         * modules/c-stack (Depends-on): Add sigaction.
48186         * modules/fatal-signal (Depends-on): Likewise.
48187         * modules/nanosleep (Depends-on): Likewise.
48188         * modules/sigprocmask (Files): Add sig-handler.h.
48189         * modules/sigaction (Files): Likewise.
48190         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48191         Eggert.
48192         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48193         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48194         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48195         (init_fatal_signals): Likewise.
48196         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48197         (siginterrupt): Delete fallback.
48198         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48199         instead.
48200         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48201         siginterrupt.
48202
48203         New module sigaction, for mingw.
48204         * modules/sigaction: New module...
48205         * modules/sigaction-tests: ...and its test.
48206         * m4/sigaction.m4: New file.
48207         * lib/sigaction.c: Likewise.
48208         * tests/test-sigaction.c: Likewise.
48209         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48210         * modules/signal (Makefile.am): Likewise.
48211         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48212         needed.
48213         * doc/posix-headers/signal.texi (signal.h): Mention provided
48214         types.
48215         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48216         that sigaction is preferable.
48217         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48218         module.
48219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48220         sigaction.
48221
48222         Improve robustness of sigprocmask by overriding signal.
48223         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48224         is in use.
48225         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48226         (SIGKILL, SIGSTOP): Provide fallbacks.
48227         (rpl_signal): Implement.
48228         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48229         signal can be called inside handlers.
48230
48231         Fix nanosleep module on mingw.
48232         * modules/nanosleep (Depends-on): Add sys_select.
48233         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48234
48235         Fix licensing of sigprocmask.
48236         * modules/raise (License): Relicense as LGPL.
48237
48238 2008-06-21  Bruno Haible  <bruno@clisp.org>
48239
48240         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48241         result if it contains question marks.
48242         Reported by Michael Geng <linux@michaelgeng.de>.
48243
48244 2008-06-19  Bruno Haible  <bruno@clisp.org>
48245
48246         Fix CVS-ism.
48247         * doc/gnulib.texi: Include updated-stamp.texi.
48248         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48249         (updated-stamp.texi): New rule.
48250         (gnulib.info): Depend on it.
48251         * doc/.gitignore: Add updated-stamp.texi.
48252         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48253
48254 2008-06-19  Bruno Haible  <bruno@clisp.org>
48255
48256         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48257         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48258
48259 2008-06-19  Eric Blake  <ebb9@byu.net>
48260
48261         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48262         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48263         Reported by Stepan Kasal.
48264
48265 2008-06-18  Bruno Haible  <bruno@clisp.org>
48266
48267         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48268         Reported by Eric Blake.
48269
48270 2008-06-18  Eric Blake  <ebb9@byu.net>
48271
48272         Work around cygwin 1.5.25 strsignal bug.
48273         * tests/test-strsignal.c: Allow for const char *.
48274         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48275
48276 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48277
48278         * users.txt: Update URL to article and add author/date
48279         information.
48280
48281 2008-06-17  Bruno Haible  <bruno@clisp.org>
48282
48283         New macro gl_DISABLE_THREADS.
48284         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48285         if the user did not pass --enable-threads or --disable-threads option.
48286         (gl_DISABLE_THREADS): New macro.
48287         Reported by Eric Blake <ebb9@byu.net>.
48288
48289 2008-06-17  Bruno Haible  <bruno@clisp.org>
48290
48291         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48292         when the macro ignores it.
48293         Based on a patch by Eric Blake <ebb9@byu.net>.
48294
48295 2008-06-17  Bruno Haible  <bruno@clisp.org>
48296
48297         * modules/tls (License): Change to LGPLv2+.
48298         Reported by Eric Blake.
48299
48300 2008-06-17  Eric Blake  <ebb9@byu.net>
48301
48302         Simplify c-stack prerequisites.
48303         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48304         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48305         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48306         check.
48307         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48308         <sys/resource.h>.
48309
48310         Move c-stack test into testsuite.
48311         * modules/c-stack-tests: New file.
48312         * lib/c-stack.c [DEBUG]: Move test program...
48313         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48314         fail test if sigaltstack is lacking.
48315         * tests/test-c-stack.sh: New driver file.
48316
48317 2008-06-16  Eric Blake  <ebb9@byu.net>
48318
48319         Use raise module consistently.
48320         * modules/fatal-signal (Depends-on): Add raise.
48321         * modules/sigprocmask (Depends-on): Likewise.
48322         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48323         * lib/sigprocmask.c (sigprocmask): Likewise.
48324         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48325         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48326
48327         Fix compliance bug in sigpending.
48328         * lib/sigprocmask.c (sigpending): Return pending array via
48329         parameter, not return value.
48330
48331 2008-06-14  Eric Blake  <ebb9@byu.net>
48332
48333         Improve obstack-printf test code.
48334         * tests/test-obstack-printf.c (test_function): Fix comment, and
48335         simplify usage of obstack_* in macros.  Add a test for coverage.
48336         Reported by Bruno Haible.
48337
48338 2008-06-14  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48341         array size as a constant, not as a const variable.
48342         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48343         AC_USE_SYSTEM_EXTENSIONS.
48344         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48345         Test whether the obstack_printf function actually exists.
48346         * modules/obstack-printf (Depends-on): Add extensions.
48347         (Include): Remove obstack.h.
48348         * modules/obstack-printf-posix (Depends-on): Add extensions.
48349         (Include): Remove obstack.h.
48350
48351 2008-06-13  Eric Blake  <ebb9@byu.net>
48352
48353         Add obstack-printf and obstack-printf-posix modules.
48354         * modules/obstack-printf: New file.
48355         * modules/obstack-printf-posix: Likewise.
48356         * MODULES.html.sh (Misc): Mention them.
48357         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48358         Likewise.
48359         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48360         Likewise.
48361         * modules/stdio (Makefile.am): Accomodate new modules.
48362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48363         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48364         Declare.
48365         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48366         functions.
48367         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48368         (gl_REPLACE_OBSTACK_PRINTF): New macros
48369         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48370         * tests/test-obstack-printf.c: New file.
48371         * modules/obstack-printf-tests: Likewise.
48372         * modules/obstack-printf-posix-tests: Likewise.
48373
48374 2008-06-11  Bruno Haible  <bruno@clisp.org>
48375
48376         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48377         * lib/open.c: Include errno.h.
48378         (open): Fail when attempting to write to a file that has a trailing
48379         slash.
48380         * tests/test-open.c (main): Test against trailing slash bug.
48381         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48382
48383 2008-06-10  Bruno Haible  <bruno@clisp.org>
48384
48385         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48386         for $? to work inside the trap command, with various /bin/sh-s.
48387         * tests/test-vc-list-files-cvs.sh: Likewise.
48388
48389 2008-06-10  Bruno Haible  <bruno@clisp.org>
48390
48391         * lib/acl-internal.h: Don't include gettext.h here.
48392         * lib/set-mode-acl.c: Include gettext.h here.
48393         * lib/copy-acl.c: Likewise.
48394
48395 2008-06-10  Bruno Haible  <bruno@clisp.org>
48396
48397         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48398         * lib/wait-process.c (wait_subprocess): Likewise.
48399         * lib/execute.h (execute): Add termsigp argument.
48400         * lib/execute.c (execute): Likewise.
48401         * lib/csharpcomp.c (compile_csharp_using_pnet,
48402         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48403         * lib/csharpexec.c (execute_csharp_using_pnet,
48404         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48405         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48406         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48407         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48408         is_jikes_present): Update.
48409         * lib/javaexec.c (execute_java_class): Update.
48410         * lib/javaversion.c (execute_and_read_line): Update.
48411         * NEWS: Document the changes.
48412         Reported by Eric Blake.
48413
48414 2008-06-10  Eric Blake  <ebb9@byu.net>
48415
48416         Add missing include.
48417         * tests/test-strstr.c (includes): Add <signal.h>.
48418         * tests/test-strcasestr.c (includes): Likewise.
48419         * tests/test-memmem.c (includes): Likewise.
48420
48421 2008-06-10  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/wait-process.c (wait_subprocess): Add an assertion.
48424
48425 2008-06-10  Bruno Haible  <bruno@clisp.org>
48426
48427         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48428
48429 2008-06-10  Bruno Haible  <bruno@clisp.org>
48430
48431         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48432         using alarm().
48433         * tests/test-strcasestr.c (main): Likewise.
48434         * tests/test-strstr.c (main): Likewise.
48435
48436 2008-06-09  Bruno Haible  <bruno@clisp.org>
48437
48438         Work around the Solaris 10 ACE ACLs ABI change.
48439         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48440         declare if ACL_NO_TRIVIAL is present.
48441         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48442         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48443         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48444         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48445         define if ACL_NO_TRIVIAL is present.
48446         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48447         and use the current ABI.
48448         (file_has_acl): Use same #if condition as elsewhere.
48449         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48450         in use, and use the current ABI.
48451         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48452         Reported by Jim Meyering.
48453
48454 2008-06-09  Eric Blake  <ebb9@byu.net>
48455
48456         Work around environments that (stupidly) ignore SIGALRM.
48457         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48458         before using alarm().
48459         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48460         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48461         Reported by Ian Beckwith <ianb@erislabs.net>.
48462
48463         Produce autobuild blurb earlier in log.
48464         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48465
48466 2008-06-09  Jim Meyering  <meyering@redhat.com>
48467         and Ondřej Vašík  <ovasik@redhat.com>
48468
48469         utimens.c: correct kernel bug work-around
48470         Ondřej Vašík found that the invalid return value of 280 indicates
48471         failure, not success, and the kernel bug we're trying to work
48472         around affects not just the utimensat call, but also the fallback
48473         futimens call.
48474         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48475         not success.
48476         [HAVE_FUTIMENS]: Use the same work-around, here.
48477
48478 2008-06-09  Jim Meyering  <meyering@redhat.com>
48479
48480         add more guards around definition of ACE_-related code
48481         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48482         ALLOW and ACE_OWNER are also defined.
48483
48484 2008-06-08  Bruno Haible  <bruno@clisp.org>
48485
48486         * lib/acl-internal.h: Add me as co-author.
48487         * lib/file-has-acl.c: Likewise.
48488         * lib/set-mode-acl.c: Likewise.
48489         * lib/copy-acl.c: Likewise.
48490
48491 2008-06-08  Bruno Haible  <bruno@clisp.org>
48492
48493         Add support for AIX ACLs.
48494         * lib/acl-internal.h (acl_nontrivial): New declaration.
48495         * lib/file-has-acl.c (acl_nontrivial): New function.
48496         (file_has_acl): Add implementation using AIX 4 ACL API.
48497         * lib/set-mode-acl.c (qset_acl): Likewise.
48498         * lib/copy-acl.c (qcopy_acl): Likewise.
48499
48500 2008-06-08  Bruno Haible  <bruno@clisp.org>
48501
48502         Add support for HP-UX ACLs.
48503         * lib/acl-internal.h (acl_nontrivial): New declaration.
48504         * lib/file-has-acl.c (acl_nontrivial): New function.
48505         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48506         * lib/set-mode-acl.c (qset_acl): Likewise.
48507         * lib/copy-acl.c (qcopy_acl): Likewise.
48508
48509 2008-06-08  Bruno Haible  <bruno@clisp.org>
48510
48511         Add support for Cygwin ACLs.
48512         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48513         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48514         the chmod_or_fchmod call.
48515         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48516
48517 2008-06-08  Bruno Haible  <bruno@clisp.org>
48518
48519         Fix bug with setuid modes in Solaris 10+ code.
48520         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48521         succeeded, when the mode contains some special bits.
48522
48523 2008-06-08  Bruno Haible  <bruno@clisp.org>
48524
48525         Add support for Solaris 7..10 ACLs.
48526         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48527         declarations.
48528         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48529         functions.
48530         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48531         * lib/set-mode-acl.c (qset_acl): Likewise.
48532         * lib/copy-acl.c (qcopy_acl): Likewise.
48533
48534 2008-06-08  Bruno Haible  <bruno@clisp.org>
48535
48536         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48537         declaration.
48538         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48539         (acl_access_nontrivial): Remove MacOS X case.
48540         (file_has_acl): Use acl_extended_nontrivial.
48541         * lib/copy-acl.c (qcopy_acl): Likewise.
48542
48543 2008-06-08  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48546
48547 2008-06-08  Jim Meyering  <meyering@redhat.com>
48548
48549         * modules/acl (Maintainer): Add Bruno Haible.
48550
48551 2008-06-07  Bruno Haible  <bruno@clisp.org>
48552
48553         Improve support for Tru64 ACLs.
48554         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48555         ACL on OSF/1.
48556
48557 2008-06-07  Bruno Haible  <bruno@clisp.org>
48558
48559         Add support for MacOS X ACLs.
48560         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48561         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48562         * lib/set-mode-acl.c (qset_acl): Likewise.
48563         * lib/copy-acl.c (qcopy_acl): Likewise.
48564
48565 2008-06-07  Bruno Haible  <bruno@clisp.org>
48566
48567         Fix memory leak introduced on 2008-05-22.
48568         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48569         use.
48570
48571 2008-06-07  Bruno Haible  <bruno@clisp.org>
48572
48573         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48574         to construct an empty ACL.
48575
48576 2008-06-07  Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48579         precisely.
48580         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48581
48582 2008-06-07  Bruno Haible  <bruno@clisp.org>
48583
48584         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48585         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48586
48587 2008-06-07  Bruno Haible  <bruno@clisp.org>
48588
48589         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48590         regardless of POSIX.
48591         * doc/posix-functions/_longjmp.texi: Likewise.
48592         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48593         SystemV platform in this case.
48594
48595 2008-06-06  Eric Blake  <ebb9@byu.net>
48596
48597         Document abort() bugs.
48598         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48599
48600         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48601         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48602         sigsetjmp.
48603         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48604         siglongjmp, but only as a macro.
48605         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48606         is obsolete.
48607         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48608
48609         Tweak documentation to cover cygwin argz bugs.
48610         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48611         argz bug fix; no code change needed since no cygwin releases
48612         occurred between the last fix and the bug being tested.
48613         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48614         module and recently fixed cygwin bugs.
48615         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48616         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48617         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48618         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48619         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48620         Likewise.
48621         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48622         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48623         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48624         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48625         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48626         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48627         Likewise.
48628
48629         Avoid gcc warning on cygwin.
48630         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48631         !ACL_NO_TRIVIAL]: Avoid unused variable.
48632
48633 2008-06-05  Eric Blake  <ebb9@byu.net>
48634
48635         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48636         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48637         git-version-gen fails to come up with a version.
48638         Reported by Simon Josefsson.
48639
48640 2008-06-05  Jim Meyering  <meyering@redhat.com>
48641             Paul Eggert  <eggert@cs.ucla.edu>
48642
48643         utimens.c: work around a probable Linux kernel bug
48644         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48645         appears to be a kernel bug that causes utimensat to return 280
48646         instead of 0, indicating success.
48647
48648 2008-06-04  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48651         2008-06-01 commit.
48652
48653 2008-06-04  Bruno Haible  <bruno@clisp.org>
48654
48655         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48656         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48657         (file_has_acl): Use it. Save errno afterwards.
48658         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48659
48660 2008-06-03  Bruno Haible  <bruno@clisp.org>
48661
48662         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48663         draft code. Simplify #ifs.
48664         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48665         Put Solaris code after POSIX-draft code. Fix comments regarding
48666         Solaris 10, HP-UX. Mention Cygwin.
48667         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48668
48669 2008-06-03  Eric Blake  <ebb9@byu.net>
48670
48671         Provide fallback for older kernels.
48672         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48673         Provide runtime fallback if kernel lacks support.
48674         Reported by Mike Frysinger.
48675
48676 2008-06-02  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48679         it exists.
48680
48681 2008-06-02  Bruno Haible  <bruno@clisp.org>
48682
48683         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48684         * lib/copy-acl.c (qcopy_acl): Update comment.
48685
48686 2008-06-02  Bruno Haible  <bruno@clisp.org>
48687
48688         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48689         like ACL APIs.
48690
48691 2008-06-02  Bruno Haible  <bruno@clisp.org>
48692
48693         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48694         * tests/test-set-mode-acl.sh: Likewise.
48695         * tests/test-copy-acl.sh: Likewise.
48696         * tests/test-copy-file.sh: Likewise.
48697
48698 2008-06-02  Bruno Haible  <bruno@clisp.org>
48699
48700         * tests/test-file-has-acl.sh: Remove unused code.
48701
48702 2008-06-01  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48705         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48706         messages.
48707         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48708
48709 2008-06-01  Bruno Haible  <bruno@clisp.org>
48710
48711         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48712         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48713         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48714         APIs.
48715         * modules/acl-tests (configure.ac): Remove tests now contained in
48716         m4/acl.m4.
48717
48718 2008-06-02  Jim Meyering  <meyering@redhat.com>
48719
48720         announce-gen: use a better key-server host name
48721         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48722         it may be more consistently reliable.  Suggested by Werner Koch
48723         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48724
48725 2008-06-01  Bruno Haible  <bruno@clisp.org>
48726
48727         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48728         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48729
48730 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48731
48732         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48733
48734 2008-06-01  Bruno Haible  <bruno@clisp.org>
48735
48736         New ACL tests.
48737         * tests/test-file-has-acl.sh: New file.
48738         * tests/test-file-has-acl.c: New file.
48739         * tests/test-set-mode-acl.sh: New file.
48740         * tests/test-set-mode-acl.c: New file.
48741         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48742         * tests/test-copy-acl.c: New file.
48743         * modules/acl-tests: New file, based on modules/copy-file-tests.
48744         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48745         (Depends-on): Add acl-tests.
48746         (configure.ac): Remove checks.
48747         (Makefile.am): Don't create test-sameacls program here any more.
48748
48749 2008-06-01  Bruno Haible  <bruno@clisp.org>
48750
48751         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48752         * tests/test-sameacls.c: Include progname.h.
48753         (main): Invoke set_program_name. Portability fixes for MacOS X,
48754         Solaris, HP-UX.
48755
48756 2008-06-01  Bruno Haible  <bruno@clisp.org>
48757
48758         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48759         function.
48760         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48761
48762 2008-06-01  Bruno Haible  <bruno@clisp.org>
48763
48764         * modules/rpmatch (Depends-on): Add strdup.
48765
48766 2008-06-01  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/pipe.c: Include unistd-safer.h.
48769         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48770         * modules/pipe (Depends-on): Add unistd-safer.
48771
48772 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48773
48774         * modules/autobuild (configure.ac): Call AB_INIT.
48775
48776 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48777
48778         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48779         Suggested by Bruno Haible <bruno@clisp.org>.
48780
48781 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48782
48783         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48784         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48785         <bruno@clisp.org>.
48786
48787 2008-05-29  Eric Blake  <ebb9@byu.net>
48788
48789         Prefer new POSIX 200x interfaces over futimesat.
48790         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48791         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48792         when available.
48793         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48794
48795 2008-05-28  Bruno Haible  <bruno@clisp.org>
48796
48797         * modules/stpcpy (License): Change to LGPLv2+.
48798         Requested by David Lutterkort <dlutter@redhat.com>.
48799
48800 2008-05-27  Bruno Haible  <bruno@clisp.org>
48801
48802         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48803         current mingw.
48804         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48805
48806 2008-05-27  Bruno Haible  <bruno@clisp.org>
48807
48808         * modules/iconv_open (Link): New section, from module 'iconv'.
48809         * modules/striconv (Link): Likewise.
48810         * modules/striconveh (Link): Likewise.
48811         * modules/xstriconv (Link): Likewise.
48812         * modules/unicodeio (Link): Likewise.
48813         * modules/propername (Link): Likewise.
48814         Reported by Jim Meyering.
48815
48816 2008-05-26  Jim Meyering  <meyering@redhat.com>
48817
48818         sha256: do not artificially restrict buffer length to be < 2^32
48819         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48820         uint32_t to size_t.
48821         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48822         to match.
48823
48824         avoid unaligned access errors, e.g., on sparc
48825         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48826         direct access through a possibly-unaligned uint64* pointer.
48827         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48828         direct access through a possibly-unaligned uint32* pointer.
48829         Prompted by this patch from Tom "spot" Callaway:
48830         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48831
48832         sha512.c: fix typo in comment
48833         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48834
48835 2008-05-25  Bruno Haible  <bruno@clisp.org>
48836
48837         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48838         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48839         (Makefile.am): Update lib_SOURCES.
48840
48841 2008-05-25  Bruno Haible  <bruno@clisp.org>
48842
48843         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48844
48845 2008-05-25  Jim Meyering  <meyering@redhat.com>
48846
48847         useless-if-before-free: freed expr may have white-space differences
48848         * build-aux/useless-if-before-free: Recognize cases in which the
48849         freed expression differs from the tested one in embedded white
48850         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48851         $1 was used, so we can't make any regexp shy.  Improved tests now
48852         detect this.
48853
48854         useless-if-before-free: accept white space in the expression.
48855         * build-aux/useless-if-before-free: For now, any white space
48856         in the expression must be identical in the free argument.
48857
48858         useless-if-before-free: efficiency tweak
48859         * build-aux/useless-if-before-free: Make the expression-matching
48860         regexp "shy".
48861         Make the *outer* regexp shy, not the expr-matching one.
48862
48863         update code-in-comment to accept cast of free arg
48864         * build-aux/useless-if-before-free: Update regexp.
48865
48866 2008-05-25  Bruno Haible  <bruno@clisp.org>
48867
48868         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48869         * modules/copy-file-tests (Files, Makefile.am): Update.
48870         * tests/test-copy-file.c (func_test_copy): Update.
48871
48872 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48873
48874         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48875
48876 2008-05-23  Bruno Haible  <bruno@clisp.org>
48877
48878         Improve support for ACLs on OSF/1.
48879         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48880         Remove fallback for unknown flavors of ACLs.
48881
48882 2008-05-22  Bruno Haible  <bruno@clisp.org>
48883
48884         Add support for ACLs on OSF/1.
48885         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48886         replacements.
48887         (acl_free_text): New macro fallback.
48888         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48889         acl_free.
48890         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48891         acl_free_text function. Require AC_C_INLINE.
48892
48893 2008-05-22  Bruno Haible  <bruno@clisp.org>
48894
48895         Make copy_acl work on MacOS X 10.5.
48896         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48897         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48898         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48899         If MODE_INSIDE_ACL, don't assume that every system has the same text
48900         representation for ACLs as FreeBSD.
48901         * lib/copy-acl.c (copy_acl): Add support for platforms with
48902         !MODE_INSIDE_ACL.
48903         * lib/file-has-acl.c (file_has_acl): Likewise.
48904         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48905         FreeBSD, MacOS X, or IRIX, respectively.
48906
48907 2008-05-22  Bruno Haible  <bruno@clisp.org>
48908
48909         * lib/acl.h: Don't include <sys/acl.h>.
48910         (GETACLCNT): Move fallback to lib/acl-internal.h.
48911         * lib/acl-internal.h: Include <sys/acl.h> here.
48912         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48913
48914 2008-05-22  Bruno Haible  <bruno@clisp.org>
48915
48916         Split off copy_acl function to separate file.
48917         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48918         * lib/acl.c (copy_acl): Moved function to separate file.
48919         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48920         * modules/acl (Files): Add lib/copy-acl.c.
48921         (Makefiles.am): Augment lib_SOURCES.
48922
48923 2008-05-22  Bruno Haible  <bruno@clisp.org>
48924
48925         * modules/copy-file-tests: New file.
48926         * tests/test-copy-file.sh: New file.
48927         * tests/test-copy-file.c: New file.
48928         * tests/test-copy-file-sameacls.c: New file.
48929
48930 2008-05-22  Eric Blake  <ebb9@byu.net>
48931
48932         Avoid gcc warning.
48933         * tests/test-memcmp.c (main): Pass NULL indirectly.
48934
48935 2008-05-21  Bruno Haible  <bruno@clisp.org>
48936
48937         Add reference doc about ACLs.
48938         * doc/acl-resources.txt: New file.
48939         * doc/acl-cygwin.txt: New file.
48940
48941 2008-05-21  Bruno Haible  <bruno@clisp.org>
48942
48943         Avoid one more warning from gcc.
48944         * lib/vasnprintf.c (IF_LINT): Update comments.
48945         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48946
48947 2008-05-21  Jim Meyering  <meyering@redhat.com>
48948
48949         avoid a warning from gcc
48950         * lib/vasnprintf.c (IF_LINT): Define.
48951         (scale10_round_decimal_long_double):
48952         Use it to avoid a "may be used uninitialized" warning.
48953         (scale10_round_decimal_double): Likewise.
48954
48955 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48956
48957         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48958         declared.
48959
48960 2008-05-20  Bruno Haible  <bruno@clisp.org>
48961
48962         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48963         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48964
48965 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48966
48967         * modules/memcmp-tests: New file.
48968         * tests/test-memcmp.c: New file.
48969
48970 2008-05-19  Bruno Haible  <bruno@clisp.org>
48971
48972         * modules/propername (Notice, configure.ac): Put quoted "..." into
48973         --keyword option.
48974         * lib/propername.h: Update comments accordingly.
48975         Reported by Eric Blake.
48976
48977 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48978
48979         * modules/getpass-gnu (Depends-on): Add fseeko.
48980
48981 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48982
48983         * modules/base64-tests: New file.
48984
48985 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48986
48987         * lib/base64.c (base64_decode_ctx): If a decode context structure
48988         was passed in use it to ignore newlines.  If a context structure
48989         was _not_ passed in, continue to treat newlines as garbage (this
48990         is the historical behavior).  Formerly base64_decode.
48991         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48992         takes a decode context structure.
48993         * lib/base64.h (base64_decode): Macro for four-argument calls.
48994         (base64_decode_alloc): Likewise.
48995         * lib/base64.c (base64_decode_ctx): If a decode context structure
48996         was passed in use it to ignore newlines.  If a context structure
48997         was _not_ passed in, continue to treat newlines as garbage (this
48998         is the historical behavior).  Formerly base64_decode.
48999         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49000         takes a decode context structure.
49001         * lib/base64.h (base64_decode): Macro for four-argument calls.
49002         (base64_decode_alloc): Likewise.
49003
49004 2008-05-19  Jim Meyering  <meyering@redhat.com>
49005
49006         avoid a warning from gcc
49007         * lib/trim.c (IF_LINT): Define.
49008         (trim2): Use it to avoid a "may be used uninitialized" warning.
49009
49010         Fix doc typo.
49011         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49012
49013 2008-05-19  Bruno Haible  <bruno@clisp.org>
49014
49015         * doc/glibc-functions/getpass.texi: Document limits of other
49016         implementations.
49017
49018 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49019             Bruno Haible <bruno@clisp.org>
49020
49021         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49022
49023 2008-05-18  Bruno Haible  <bruno@clisp.org>
49024
49025         * modules/propername: New file, from GNU gettext.
49026         * lib/propername.h: New file, from GNU gettext.
49027         * lib/propername.c: New file, from GNU gettext.
49028         * MODULES.html.sh (Internationalization functions): Add propername.
49029
49030 2008-05-16  Jim Meyering  <meyering@redhat.com>
49031             Bruno Haible  <bruno@clisp.org>
49032
49033         Avoid some warnings from "gcc -Wshadow".
49034         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49035
49036 2008-05-15  Eric Blake  <ebb9@byu.net>
49037
49038         Extend previous patch to cygwin 1.7.0.
49039         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49040         fast implementation in cygwin >= 1.7.0.
49041         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49043
49044 2008-05-15  Bruno Haible  <bruno@clisp.org>
49045
49046         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49047         implementation in glibc >= 2.9.
49048         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49050
49051 2008-05-15  Bruno Haible  <bruno@clisp.org>
49052
49053         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49054         (Unicode string functions): Add unilbrk/*.
49055         Reported by Karl Berry.
49056
49057 2008-05-15  Eric Blake  <ebb9@byu.net>
49058
49059         Fix violation of <stdbool.h> replacement in regex.
49060         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49061         * lib/regexec.c (re_search_internal): Likewise.
49062         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49063
49064 2008-05-15  Jim Meyering  <meyering@redhat.com>
49065
49066         avoid distracting test output when git or cvs is not found
49067         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49068         * tests/test-vc-list-files-git.sh: Likewise.
49069
49070 2008-05-15  Eric Blake  <ebb9@byu.net>
49071
49072         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49073         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49074         glibc version.
49075         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49076         * doc/posix-functions/strstr.texi (strstr): Likewise.
49077         * lib/str-two-way.h (MAX): Sychronize with glibc.
49078
49079 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49080
49081         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49082         opr.ctx_type.
49083         (calc_first): Initialize constraint field.
49084         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49085         Fix grammar.
49086         (duplicate_node): Merge constraint field for all node types.
49087         (calc_eclosure_iter): Look at constraint field for all node types.
49088         * lib/regex_internal.c (create_cd_newstate): Don't look at
49089         opr.ctx_type.
49090
49091 2008-05-14  Bruno Haible  <bruno@clisp.org>
49092
49093         Help GCC to do better code generation.
49094         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49095         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49096         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49097         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49098         Declare with attribute 'malloc' if supported.
49099
49100 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49101
49102         use "echo STR|wc -c" rather than unportable "expr length STR"
49103         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49104         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49105
49106 2008-05-14  Jim Meyering  <meyering@redhat.com>
49107
49108         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49109         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49110         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49111         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49112         via Collin Lasse.
49113
49114 2008-05-14  Eric Blake  <ebb9@byu.net>
49115
49116         Avoid quadratic growth in gl_LIBSOURCES.
49117         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49118         Suggested by Bruno Haible.
49119
49120         Test xmemdup0.
49121         * modules/xmemdup0-tests: New file.
49122         * tests/test-xmemdup0.c: Likewise.
49123
49124 2008-05-13  Eric Blake  <ebb9@byu.net>
49125
49126         Split xmemdup0 into its own module.
49127         * modules/xmemdup0: New file.
49128         * lib/xmemdup0.h: Likewise.
49129         * lib/xmemdup0.c: Likewise.
49130         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49131         * lib/xalloc.h (xmemdup0): Remove.
49132         * lib/xmalloc.c (xmemdup0): Likewise.
49133
49134 2008-05-13  Eric Blake  <ebb9@byu.net>
49135             Bruno Haible  <bruno@clisp.org>
49136
49137         Reduce number of forks required during autoconf.
49138         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49139         and gl_LIBSOURCES_DIR.
49140         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49141         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49142         m4_syscmd per file.
49143         <m4_foreach_w>: Move...
49144         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49145
49146 2008-05-13  Eric Blake  <ebb9@byu.net>
49147
49148         * gnulib-tool: Fix various comment typos.
49149
49150 2008-05-12  Bruno Haible  <bruno@clisp.org>
49151
49152         Tailor the linebreaking algorithm.
49153         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49154
49155 2008-05-12  Bruno Haible  <bruno@clisp.org>
49156
49157         Update to Unicode 5.0.0.
49158         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49159         LBP_JV, LBP_JT. Redistribute values.
49160         (unilbrk_table): Change size.
49161         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49162         Unicode TR#14 rev. 22.
49163         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49164         LBP_JV, LBP_JT. Redistribute values.
49165         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49166         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49167         Update.
49168         * lib/unilbrk/lbrkprop1.h: Regenerated.
49169         * lib/unilbrk/lbrkprop2.h: Regenerated.
49170         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49171         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49172         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49173         Likewise.
49174         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49175         Likewise.
49176         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49177         result.
49178         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49179         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49180         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49181         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49182         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49183         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49184
49185 2008-05-11  Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49188
49189 2008-05-11  Bruno Haible  <bruno@clisp.org>
49190
49191         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49192         * modules/unilbrk/gen-lbrk: New file.
49193
49194 2008-05-11  Bruno Haible  <bruno@clisp.org>
49195
49196         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49197         * m4/sha512.m4 (gl_SHA512): Likewise.
49198
49199 2008-05-11  Jim Meyering  <meyering@redhat.com>
49200
49201         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49202         * modules/crypto/sha256: New file.
49203         * modules/crypto/sha512: Likewise.
49204         * lib/sha256.c: Likewise.
49205         * lib/sha256.h: Likewise.
49206         * lib/sha512.c: Likewise.
49207         * lib/sha512.h: Likewise.
49208         * lib/u64.h: Likewise.
49209         * m4/sha256.m4: Likewise.
49210         * m4/sha512.m4: Likewise.
49211         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49212
49213 2008-05-10  Bruno Haible  <bruno@clisp.org>
49214
49215         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49216         (Input/Output <stdio.h>): Add xprintf.
49217         (Signal handling <signal.h>): Add strsignal.
49218         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49219         (Core language properties): Add func.
49220         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49221         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49222         strings.
49223         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49224         (Input/output): New section.
49225         (File system functions): Add openat-die, stat-macros.
49226         (Networking functions): Add sockets.
49227         (Unicode string functions): Add unictype/*.
49228         (Support for building libraries and executables): Add gperf.
49229         (Support for building documentation): Add agpl-3.0.
49230         (Misc): Add nocrash.
49231
49232 2008-05-10  Bruno Haible  <bruno@clisp.org>
49233
49234         * modules/unictype/gen-ctype: New file.
49235
49236 2008-05-10  Jim Meyering  <meyering@redhat.com>
49237
49238         Make chdir-safer.c more efficient on a system with no symlinks.
49239         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49240         also if ELOOP is zero.  Suggested by Bruno Haible.
49241
49242         Make chdir-safer.c slightly safer.
49243         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49244         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49245
49246         Avoid compile failure on systems without ELOOP (like mingw).
49247         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49248         Reported by Bruno Haible.
49249
49250 2008-05-10  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49253         (is_utf8_encoding): Use a case-insensitive comparison.
49254         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49255         streq.
49256
49257 2008-05-10  Bruno Haible  <bruno@clisp.org>
49258
49259         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49260         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49261         * lib/unilbrk/ulc-common.h (iconv_string_length,
49262         iconv_string_keeping_offsets): Remove declarations.
49263         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49264         Don't include <iconv.h>, streq.h, xsize.h.
49265         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49266         conversion.
49267         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49268         <iconv.h>, streq.h, xsize.h.
49269         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49270         conversion.
49271         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49272         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49273         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49274         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49275
49276 2008-05-10  Bruno Haible  <bruno@clisp.org>
49277
49278         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49279         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49280
49281         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49282         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49283
49284         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49285         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49286
49287         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49288         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49289
49290         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49291         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49292
49293         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49294         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49295
49296         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49297         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49298
49299         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49300         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49301
49302 2008-05-10  Bruno Haible  <bruno@clisp.org>
49303
49304         Split up 'linebreak' module.
49305         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49306         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49307         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49308         modifications.
49309         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49310         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49311         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49312         lib/linebreak.c.
49313         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49314         lib/linebreak.c.
49315         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49316         lib/linebreak.c.
49317         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49318         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49319         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49320         lib/linebreak.c.
49321         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49322         lib/linebreak.c.
49323         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49324         lib/linebreak.c.
49325         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49326         lib/linebreak.c.
49327         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49328         lib/linebreak.c.
49329         * modules/unilbrk/base: New file.
49330         * modules/unilbrk/tables: New file.
49331         * modules/unilbrk/u8-possible-linebreaks: New file.
49332         * modules/unilbrk/u16-possible-linebreaks: New file.
49333         * modules/unilbrk/u32-possible-linebreaks: New file.
49334         * modules/unilbrk/ulc-common: New file.
49335         * modules/unilbrk/ulc-possible-linebreaks: New file.
49336         * modules/unilbrk/u8-width-linebreaks: New file.
49337         * modules/unilbrk/u16-width-linebreaks: New file.
49338         * modules/unilbrk/u32-width-linebreaks: New file.
49339         * modules/unilbrk/ulc-width-linebreaks: New file.
49340         * lib/linebreak.h: Remove file.
49341         * lib/linebreak.c: Remove file.
49342         * m4/linebreak.m4: Remove file.
49343         * modules/linebreak: Remove file.
49344         * NEWS: Mention the changes.
49345
49346 2008-05-09  Eric Blake  <ebb9@byu.net>
49347
49348         Add xmemdup0.
49349         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49350         implementation.
49351         * lib/xmalloc.c (xmemdup0): New C implementation.
49352
49353 2008-05-08  Bruno Haible  <bruno@clisp.org>
49354
49355         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49356
49357 2008-05-07  Eric Blake  <ebb9@byu.net>
49358
49359         Support cross-compilation of <wctype.h>.
49360         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49361         AC_CACHE_CHECK.
49362
49363 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49364
49365         * build-aux/vc-list-files: Add support for bzr.
49366
49367 2008-05-03  Jim Meyering  <meyering@redhat.com>
49368
49369         avoid failed assertion with tight malloc
49370         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49371
49372 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49373
49374         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49375         are needed from arpa/inet.h.
49376         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49377         Reported by Bruno Haible.
49378
49379 2008-05-02  Jim Meyering  <meyering@redhat.com>
49380
49381         avoid compilation error on FreeBSD 6
49382         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49383
49384 2008-05-01  Jim Meyering  <meyering@redhat.com>
49385
49386         useless-if-before-free: correct --help's exit status description
49387         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49388         for one or more matches, etc.  Reported by Bruno Haible.
49389
49390         vc-list-files: make the stand-alone gnulib test work
49391         * modules/vc-list-files-tests (configure.ac):
49392         Define and AC_SUBST abs_aux_dir.
49393         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49394         $(abs_top_srcdir) to each script and having each of them
49395         duplicate the work of setting PATH, set PATH here, using
49396         the new variable, abs_aux_dir instead.
49397         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49398         * tests/test-vc-list-files-git.sh: Likewise.
49399         Reported by Bruno Haible.
49400
49401 2008-05-01  Bruno Haible  <bruno@clisp.org>
49402
49403         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49404         reallocation. Rename 'done' to 'found_delimiter'.
49405
49406 2008-05-01  Jim Meyering  <meyering@redhat.com>
49407
49408         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49409         * build-aux/vc-list-files: Use `...`, not $(...).
49410
49411 2008-04-30  Jim Meyering  <meyering@redhat.com>
49412
49413         add tests for vc-list-files
49414         * modules/vc-list-files-tests: New module.
49415         * tests/test-vc-list-files-cvs.sh: New file.
49416         * tests/test-vc-list-files-git.sh: New file.
49417
49418         avoid a warning from gcc
49419         * lib/getndelim2.c (IF_LINT): Define.
49420         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49421
49422         vc-list-files: work properly with build-aux/cvsu, too
49423         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49424         to all cvs-based clauses.
49425
49426         vc-list-files: work properly in the CVS+awk case, too
49427         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49428
49429         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49430         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49431         take more than one file argument, so .  Add quotes, just in case $dir
49432         ever contains a shell meta-character.  Prompted by Soren Hansen in
49433         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49434
49435 2008-04-29  Eric Blake  <ebb9@byu.net>
49436
49437         Optimize getndelim2 to use block operations when possible.
49438         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49439         freadseek, and memchr2.
49440         * lib/getndelim2.c (getndelim2): Use them for block reads.
49441
49442 2008-04-29  Bruno Haible  <bruno@clisp.org>
49443
49444         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49445         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49446         * modules/inet_ntop (Depends-on): Add extensions.
49447         * modules/inet_pton (Depends-on): Likewise.
49448         Reported by Simon Josefsson.
49449
49450 2008-04-29  Jim Meyering  <meyering@redhat.com>
49451
49452         When the is more than one match in a block, match all of them.
49453         * build-aux/useless-if-before-free: Iterate through each block
49454         until there are no more matches.
49455
49456         Fix broken useless-if-before-free script.
49457         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49458         the expression to match cast of argument to free-like function.
49459
49460 2008-04-29  Eric Blake  <ebb9@byu.net>
49461
49462         Use new header.
49463         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49464
49465 2008-04-29  Jim Meyering  <meyering@redhat.com>
49466
49467         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49468         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49469         by gnulib to exist and to declare e.g., inet_ntop.
49470         Don't include "inet_ntop.h", now removed.
49471
49472         * m4/arpa_inet_h.m4: Remove trailing blanks.
49473
49474 2008-04-29  Eric Blake  <ebb9@byu.net>
49475
49476         Silence valgrind on safe reads beyond potential array bounds.
49477         * lib/rawmemchr.valgrind: New file.
49478         * lib/strchrnul.valgrind: Likewise.
49479         * modules/rawmemchr (Files): Distribute new file.
49480         * modules/strchrnul (Files): Likewise.
49481         Suggested by Bruno Haible.
49482
49483 2008-04-29  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49486         (inet_ntop, inet_pton): Change portability warning's wording.
49487         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49488         Invoke gl_CHECK_NEXT_HEADERS.
49489         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49490         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49491         set ARPA_INET_H.
49492         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49493         * modules/arpa_inet (Description): No longer only for systems that
49494         lack it.
49495         (Depends-on): Add include_next.
49496         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49497         HAVE_ARPA_INET_H.
49498
49499 2008-04-29  Jim Meyering  <meyering@redhat.com>
49500
49501         * modules/mkdir (License): Re-license as LGPLv2+.
49502
49503 2008-04-29  Bruno Haible  <bruno@clisp.org>
49504
49505         * modules/rawmemchr (Maintainer): Set to Eric.
49506         * modules/strchrnul (Maintainer): Likewise.
49507
49508 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49509
49510         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49511         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49512
49513         * modules/arpa_inet (arpa/inet.h): Use them.
49514
49515 2008-04-28  Eric Blake  <ebb9@byu.net>
49516
49517         Test getndelim2.
49518         * modules/getndelim2-tests: New file.
49519         * tests/test-getndelim2.c: Likewise.
49520         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49521         stream.
49522         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49523
49524         * MODULES.html.sh: Document new module.
49525
49526 2008-04-20  Bruno Haible  <bruno@clisp.org>
49527
49528         * lib/c-stack.c (die): Use raise.
49529         * modules/c-stack (Depends-on): Add raise.
49530
49531 2008-04-28  Bruno Haible  <bruno@clisp.org>
49532
49533         Expect rpmatch to be declared.
49534         * lib/yesno.c (rpmatch): Remove declaration.
49535
49536         Declare rpmatch.
49537         * lib/stdlib.in.h (rpmatch): New declaration.
49538         * lib/rpmatch.c: Include <stdlib.h> first.
49539         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49540         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49542         HAVE_RPMATCH.
49543         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49545         (Include): Set to <stdlib.h>.
49546         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49547         HAVE_RPMATCH.
49548         * NEWS: Document the change.
49549
49550 2008-04-28  Bruno Haible  <bruno@clisp.org>
49551
49552         Change rpmatch to use nl_langinfo when appropriate.
49553         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49554         (N_): New macro.
49555         (localized_pattern): New function/macro.
49556         (try): Remove match, nomatch arguments. Copy the pattern into safe
49557         memory before caching it.
49558         (rpmatch): Use localized_pattern. Add translator comments.
49559         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49560         Suggested by Eric Blake.
49561         * modules/rpmatch (Depends-on): Add stdbool.
49562
49563 2008-04-28  Eric Blake  <ebb9@byu.net>
49564
49565         Add rawmemchr module, matching glibc.
49566         * modules/string (Makefile.am): New indicator.
49567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49568         * lib/string.in.h (rawmemchr): Declare when appropriate.
49569         * modules/rawmemchr: New file.
49570         * m4/rawmemchr.m4: Likewise.
49571         * lib/rawmemchr.c: Likewise.
49572         * modules/rawmemchr-tests: Likewise.
49573         * tests/test-rawmemchr.c: Likewise.
49574         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49575         module.
49576         * modules/strchrnul (Depends-on): Add rawmemchr.
49577         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49578
49579         Whitespace cleanup.
49580         * tests/test-strchrnul.c: Reindent.
49581         * lib/strchrnul.c: Likewise.
49582
49583         Optimize and test strchrnul.
49584         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49585         * modules/strchrnul-tests: New file.
49586         * tests/test-strchrnul.c: Likewise.
49587
49588         Remove intprops dependency.
49589         * modules/memchr (Depends-on): Remove intprops.
49590         * modules/memrchr (Depends-on): Likewise.
49591         * modules/memchr2 (Depends-on): Likewise.
49592         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49593         * lib/memrchr.c (__memrchr): Likewise.
49594         * lib/memrchr2.c (memchr2): Likewise.
49595         Reported by Simon Josefsson.
49596
49597 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49598
49599         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49600         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49601
49602 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49603
49604         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49605
49606         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49607
49608         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49609
49610         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49611         declarations.
49612         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49613
49614         * m4/inet_pton.m4: Don't check for header files.
49615
49616         * m4/inet_ntop.m4: Don't check for header files.
49617
49618 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49619
49620         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49621         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49622         trigger for cygwin).
49623         Reported by Bruno Haible  <bruno@clisp.org>.
49624
49625 2008-04-28  Bruno Haible  <bruno@clisp.org>
49626
49627         * doc/posix-functions/strdup.texi: Mention mingw problem.
49628
49629 2008-04-27  Bruno Haible  <bruno@clisp.org>
49630
49631         * modules/stat-time-tests (Depends-on): Add sleep.
49632         * tests/test-stat-time.c (force_unlink): New function.
49633         (cleanup): Use it.
49634         (test_mtime): Remove the ctime related tests.
49635         (test_ctime): New function, containing the ctime related tests.
49636         (main): Call test_ctime, except on native Windows platforms.
49637
49638 2008-04-27  Bruno Haible  <bruno@clisp.org>
49639
49640         * lib/rpmatch.c (rpmatch): Add some comments.
49641         Reported by James Youngman <jay@gnu.org>.
49642
49643 2008-04-27  Bruno Haible  <bruno@clisp.org>
49644
49645         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49646         quiet NaNs.
49647
49648 2008-04-27  Bruno Haible  <bruno@clisp.org>
49649
49650         Make test-yesno.sh work on mingw.
49651         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49652         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49653         (main): Set stdin to binary mode.
49654         * modules/yesno-tests (Depends-on): Add binary-io.
49655
49656 2008-04-27  Bruno Haible  <bruno@clisp.org>
49657
49658         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49659         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49660         argument that lie outside the IEEE 854 domain.
49661         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49662         (gl_ISFINITE): Use it.
49663         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49664
49665 2008-04-27  Bruno Haible  <bruno@clisp.org>
49666
49667         Allow local renaming in config.h.
49668         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49669
49670 2008-04-27  Bruno Haible  <bruno@clisp.org>
49671
49672         * lib/memchr.c (__memchr): Change type of 'i'.
49673         * lib/memchr2.c (memchr2): Likewise.
49674
49675 2008-04-26  Eric Blake  <ebb9@byu.net>
49676         and Bruno Haible  <bruno@clisp.org>
49677
49678         Optimize and test memrchr.
49679         * modules/memrchr (Depends-on): Add intprops.
49680         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49681         * modules/memrchr-tests: New file.
49682         * tests/test-memrchr.c: New file.
49683
49684 2008-04-26  Bruno Haible  <bruno@clisp.org>
49685
49686         Add tentative support for DragonFly BSD.
49687         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49688         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49689         fp.
49690         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49691         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49692         * lib/fpurge.c (fpurge): Likewise.
49693         * lib/freadable.c (freaadable): Likewise.
49694         * lib/freadahead.c (freadahead): Likewise.
49695         * lib/freading.c (freading): Likewise.
49696         * lib/freadptr.c (freadptr): Likewise.
49697         * lib/freadseek.c (freadptrinc): Likewise.
49698         * lib/fseeko.c (fseeko): Likewise.
49699         * lib/fseterr.c (fseterr): Likewise.
49700         * lib/fwritable.c (fwritable): Likewise.
49701         * lib/fwriting.c (fwriting): Likewise.
49702
49703 2008-04-26  Bruno Haible  <bruno@clisp.org>
49704
49705         * lib/stdio-impl.h: New file.
49706         * lib/fbufmode.c: Include stdio-impl.h.
49707         (fbufmode): Use fp_, remove redundant #defines.
49708         * lib/fflush.c: Include stdio-impl.h.
49709         (clear_ungetc_buffer): Remove redundant #defines.
49710         * lib/fpurge.c: Include stdio-impl.h.
49711         (fpurge): Remove redundant #defines.
49712         * lib/freadable.c: Include stdio-impl.h.
49713         (freadable): Remove redundant #defines.
49714         * lib/freadahead.c: Include stdio-impl.h.
49715         (freadahead): Remove redundant #defines.
49716         * lib/freading.c: Include stdio-impl.h.
49717         (freading): Remove redundant #defines.
49718         * lib/freadptr.c: Include stdio-impl.h.
49719         (freadptr): Remove redundant #defines.
49720         * lib/freadseek.c: Include stdio-impl.h.
49721         (freadptrinc): Remove redundant #defines.
49722         * lib/fseeko.c: Include stdio-impl.h.
49723         (rpl_fseeko): Remove redundant #defines.
49724         * lib/fseterr.c: Include stdio-impl.h.
49725         (fseterr): Remove redundant #defines.
49726         * lib/fwritable.c: Include stdio-impl.h.
49727         (fwritable: Remove redundant #defines.
49728         * lib/fwriting.c: Include stdio-impl.h.
49729         (fwriting): Remove redundant #defines.
49730         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49731         * modules/fflush (Files): Likewise.
49732         * modules/fpurge (Files): Likewise.
49733         * modules/freadable (Files): Likewise.
49734         * modules/freadahead (Files): Likewise.
49735         * modules/freading (Files): Likewise.
49736         * modules/freadptr (Files): Likewise.
49737         * modules/freadseek (Files): Likewise.
49738         * modules/fseeko (Files): Likewise.
49739         * modules/fseterr (Files): Likewise.
49740         * modules/fwritable (Files): Likewise.
49741         * modules/fwriting (Files): Likewise.
49742
49743 2008-04-26  Bruno Haible  <bruno@clisp.org>
49744
49745         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49746         restore_seek_optimization, update_fpos_cache): New functions, extracted
49747         from rpl_fflush.
49748         (rpl_fflush): Use them.
49749         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49750         (gl_REPLACE_FFLUSH): Use it.
49751
49752 2008-04-26  Bruno Haible  <bruno@clisp.org>
49753
49754         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49755         on Solaris.
49756         * tests/test-xstrtoimax.sh: Likewise.
49757         * tests/test-xstrtoumax.sh: Likewise.
49758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49759
49760 2008-04-26  Bruno Haible  <bruno@clisp.org>
49761
49762         * modules/memchr-tests: New file.
49763         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49764
49765 2008-04-26  Eric Blake  <ebb9@byu.net>
49766             Bruno Haible  <bruno@clisp.org>
49767
49768         * lib/memchr.c: Include intprops.h.
49769         (__memchr): Optimize parallel detection of matching bytes. Rename local
49770         variables. Add explanatory comments.
49771
49772 2008-04-26  Bruno Haible  <bruno@clisp.org>
49773
49774         Fix module 'memchr', broken since 2000-10-28.
49775         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49776
49777 2008-04-26  Bruno Haible  <bruno@clisp.org>
49778
49779         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49780         comments.
49781
49782 2008-04-25  Eric Blake  <ebb9@byu.net>
49783
49784         Use native fstatat on cygwin 1.7.0.
49785         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49786         first.
49787
49788 2008-04-23  Eric Blake  <ebb9@byu.net>
49789
49790         Improve memchr2 performance.
49791         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49792         NUL bytes.
49793         * modules/memchr2 (Depends-on): Use intprops.h.
49794
49795 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49796
49797         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49798         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49799         <blp@cs.stanford.edu>.
49800
49801 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49802
49803         * lib/arpa_inet.in.h: New file.
49804
49805         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49806         (Makefile.am): Sed in substitute header file.
49807
49808         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49809         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49810
49811         * modules/inet_ntop (configure.ac): Use
49812         gl_ARPA_INET_MODULE_INDICATOR.
49813
49814         * modules/inet_pton (configure.ac): Use
49815         gl_ARPA_INET_MODULE_INDICATOR.
49816
49817 2008-04-22  Jim Meyering  <meyering@redhat.com>
49818
49819         * modules/verify (License): Re-license as LGPLv2+.
49820
49821 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49822
49823         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49824         parameter to void* as per POSIX standard (MinGW uses char*).
49825
49826 2008-04-21  Bruno Haible  <bruno@clisp.org>
49827
49828         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49829         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49830         Define to replacements if REPLACE_ISWCNTRL is 1.
49831         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49832         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49833         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49834         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49835         what it fixes.
49836         * doc/posix-functions/iswalpha.texi: Likewise.
49837         * doc/posix-functions/iswblank.texi: Likewise.
49838         * doc/posix-functions/iswcntrl.texi: Likewise.
49839         * doc/posix-functions/iswdigit.texi: Likewise.
49840         * doc/posix-functions/iswgraph.texi: Likewise.
49841         * doc/posix-functions/iswlower.texi: Likewise.
49842         * doc/posix-functions/iswprint.texi: Likewise.
49843         * doc/posix-functions/iswpunct.texi: Likewise.
49844         * doc/posix-functions/iswspace.texi: Likewise.
49845         * doc/posix-functions/iswupper.texi: Likewise.
49846         * doc/posix-functions/iswxdigit.texi: Likewise.
49847         Reported by Alain Guibert.
49848
49849 2008-04-21  Bruno Haible  <bruno@clisp.org>
49850
49851         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49852         Patch by Alain Guibert.
49853
49854 2008-04-21  Bruno Haible  <bruno@clisp.org>
49855
49856         Fix test failures on mingw.
49857         * tests/test-xstrtol.c (print_no_progname): New function.
49858         (main): Install it in error_print_progname hook.
49859         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49860         * tests/test-xstrtoimax.sh: Likewise.
49861         * tests/test-xstrtoumax.sh: Likewise.
49862
49863 2008-04-21  Bruno Haible  <bruno@clisp.org>
49864
49865         Fix test failure on mingw.
49866         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49867
49868 2008-04-21  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49871         Actually assign a value.
49872
49873 2008-04-20  Bruno Haible  <bruno@clisp.org>
49874
49875         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49876         take 2.
49877         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49878         'canonicalize-lgpl' module is also used.
49879         * lib/canonicalize-lgpl.c: Undo last change.
49880         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49881
49882 2008-04-20  Bruno Haible  <bruno@clisp.org>
49883
49884         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49885         config.h. Provide _mkdir based fallback for mingw.
49886         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49887         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49888         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49889         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49890         rather than defining mkdir in config.h.
49891         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49892         (gl_SYS_STAT_H_DEFAULTS): New macro.
49893         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49894         HAVE_IO_H any more.
49895         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49896         HAVE_DECL_MKDIR and HAVE_IO_H.
49897
49898 2008-04-20  Bruno Haible  <bruno@clisp.org>
49899
49900         * lib/isapipe.c: Port to native Windows platforms.
49901
49902 2008-04-20  Bruno Haible  <bruno@clisp.org>
49903
49904         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49905
49906 2008-04-21  Eric Blake  <ebb9@byu.net>
49907
49908         Work around preprocessors that don't handle UINTMAX_MAX.
49909         * lib/memchr2.c (memchr2): Avoid embedded #if.
49910         Reported by Alain Guibert, fix suggested by Bruno Haible.
49911
49912 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49913
49914         * doc/posix-functions/strftime.texi (strftime): Explain better
49915         Windows incompatibility.  Suggested by Micah Cowan
49916         <micah@cowan.name>.
49917
49918 2008-04-20  Bruno Haible  <bruno@clisp.org>
49919
49920         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49921         unistr/u8-mblen.
49922
49923 2008-04-20  Bruno Haible  <bruno@clisp.org>
49924
49925         Fix test failure on platforms with non-GNU iconv.
49926         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49927         (U_TO_U8): Use it, rather than u16_to_u8.
49928         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49929         units at the end of the input string.
49930         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49931
49932 2008-04-20  Bruno Haible  <bruno@clisp.org>
49933
49934         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49935         when the resulting length is 0.
49936         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49937
49938 2008-04-20  Bruno Haible  <bruno@clisp.org>
49939
49940         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49941         works.
49942         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49943
49944 2008-04-20  Bruno Haible  <bruno@clisp.org>
49945
49946         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49947         * modules/tsearch-tests (configure.ac): Test for initstate function.
49948
49949 2008-04-20  Bruno Haible  <bruno@clisp.org>
49950
49951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49952         for nlink_t if missing.
49953         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49954
49955 2008-04-19  Bruno Haible  <bruno@clisp.org>
49956
49957         Work around snprintf bug on Linux libc5.
49958         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49960         gl_SNPRINTF_SIZE1.
49961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49962         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49963         that test failed.
49964         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49965         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49966         * modules/snprintf (Files): Add m4/printf.m4.
49967         * modules/vsnprintf (Files): Likewise.
49968         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49969         * doc/posix-functions/vsnprintf.texi: Likewise.
49970
49971 2008-04-19  Bruno Haible  <bruno@clisp.org>
49972
49973         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49974         from 0.0058 to less than 10^-7.
49975
49976 2008-04-19  Bruno Haible  <bruno@clisp.org>
49977
49978         Fix rounding when a precision is given.
49979         * lib/vasnprintf.c (is_borderline): New function.
49980         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49981         9...9x.
49982         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49983         %e, %g.
49984         * tests/test-vasprintf-posix.c (test_function): Likewise.
49985         * tests/test-snprintf-posix.h (test_function): Likewise.
49986         * tests/test-sprintf-posix.h (test_function): Likewise.
49987         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49988         * tests/test-printf-posix.h (test_function): Likewise.
49989         * tests/test-printf-posix.output: Update.
49990         Reported by John Darrington <john@darrington.wattle.id.au> via
49991         Ben Pfaff <blp@cs.stanford.edu>.
49992
49993 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49994
49995         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49996         Suggested by Bruno Haible <bruno@clisp.org>.
49997
49998 2008-04-17  Bruno Haible  <bruno@clisp.org>
49999
50000         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50001         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50002         implementation.
50003         Patch by Bruce Merry <bmerry@gmail.com>.
50004
50005 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50006
50007         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50008         doesn't work under Windows.
50009
50010 2008-04-16  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50013         New macros.
50014         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50015         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50016         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50017         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50018         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50019         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50020         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50021         macros.
50022         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50023         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50024         Northern Sotho, Uighur.
50025
50026 2008-04-16  Bruno Haible  <bruno@clisp.org>
50027
50028         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50029         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50030         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50031         Reported by Daniel Bergström <daniel@octocode.com>.
50032
50033 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50034             Bruno Haible  <bruno@clisp.org>
50035
50036         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50037         function.
50038         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50039         New functions, mostly extracted from gl_locale_name_default.
50040         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50041
50042 2008-04-16  Eric Blake  <ebb9@byu.net>
50043
50044         Adjust strtod detection to catch glibc 2.7 bug.
50045         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50046         Reported by John Gatewood Ham.
50047
50048 2008-04-16  Bruno Haible  <bruno@clisp.org>
50049
50050         Add tentative support for Linux libc5.
50051         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50052         * lib/fpurge.c (fpurge): Likewise.
50053         * lib/freadable.c (freadable): Likewise.
50054         * lib/freadahead.c (freadahead): Likewise.
50055         * lib/freading.c (freading): Likewise.
50056         * lib/freadptr.c (freadptr): Likewise.
50057         * lib/freadseek.c (freadptrinc): Likewise.
50058         * lib/fseeko.c (rpl_fseeko): Likewise.
50059         * lib/fseterr.c (fseterr): Likewise.
50060         * lib/fwritable.c (fwritable): Likewise.
50061         * lib/fwriting.c (fwriting): Likewise.
50062         Reported by Alain Guibert <alguibert+bts@free.fr>.
50063
50064 2008-04-15  Bruno Haible  <bruno@clisp.org>
50065
50066         * modules/mathl (configure.ac): Define module indicator.
50067
50068 2008-04-15  Bruno Haible  <bruno@clisp.org>
50069
50070         * lib/logl.c (logl): Remove unused variables.
50071
50072 2008-04-15  Bruno Haible  <bruno@clisp.org>
50073
50074         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50075         fails.
50076
50077 2008-04-15  Bruno Haible  <bruno@clisp.org>
50078
50079         * lib/trim.c (trim2): Fix argument of isspace() macro.
50080
50081 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50082
50083         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50084         to 0.
50085         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50086
50087 2008-04-14  Bruno Haible  <bruno@clisp.org>
50088
50089         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50090         AC_LANG_PROGRAM argument.
50091         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50092         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50094         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50095         * m4/math_h.m4 (gl_MATH_H): Likewise.
50096         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50097         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50098         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50099         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50100         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50101         * m4/regex.m4 (gl_REGEX): Likewise.
50102         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50103         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50104         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50105         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50106         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50107         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50109         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50110
50111 2008-04-14  Jim Meyering  <meyering@redhat.com>
50112
50113         test-strtod: fix typos: s/abs/fabs/
50114         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50115
50116 2008-04-13  Bruno Haible  <bruno@clisp.org>
50117
50118         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50119         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50120         module is also used and while not building the reloc-wrapper.
50121
50122 2008-04-13  Bruno Haible  <bruno@clisp.org>
50123
50124         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50125
50126 2008-04-13  Bruno Haible  <bruno@clisp.org>
50127
50128         Fix AIX compilation failure introduced on 2008-04-02.
50129         * tests/test-frexp.c (exp): Undefine before redefining.
50130         * tests/test-frexpl.c (exp): Likewise.
50131
50132 2008-04-13  Bruno Haible  <bruno@clisp.org>
50133
50134         Work around a HP-UX stdio bug.
50135         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50136         * tests/test-ftello.c (main): Likewise.
50137         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50138         * doc/posix-functions/ftello.texi: Likewise.
50139
50140 2008-04-13  Bruno Haible  <bruno@clisp.org>
50141
50142         Make test-signbit pass on HP-UX/hppa.
50143         * tests/test-signbit.c (minus_zerol): New variable.
50144         (test_signbitl): Use it.
50145
50146 2008-04-13  Bruno Haible  <bruno@clisp.org>
50147
50148         Make truncl work on OSF/1 4.0.
50149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50150         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50151         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50153         HAVE_DECL_TRUNCL.
50154         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50155         HAVE_DECL_TRUNCL.
50156         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50157
50158 2008-04-13  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50161
50162 2008-04-13  Bruno Haible  <bruno@clisp.org>
50163
50164         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50165         expression, so as to avoid HP-UX 11 cc compiler bug.
50166
50167 2008-04-13  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50170
50171 2008-04-13  Bruno Haible  <bruno@clisp.org>
50172
50173         * lib/git-merge-changelog.c: Remove empty declaration outside of
50174         functions.
50175
50176 2008-04-13  Bruno Haible  <bruno@clisp.org>
50177
50178         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50179
50180 2008-04-13  Bruno Haible  <bruno@clisp.org>
50181
50182         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50183         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50185         also if it exists but lacks definitions of the SHUT_* macros.
50186         * modules/sys_socket (Description): Update.
50187         Reported by Elbert Pol <e.pol@chello.nl>.
50188
50189 2008-04-13  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/localcharset.c (OS2): Don't redefine if already defined.
50192         Reported by Elbert Pol <e.pol@chello.nl>.
50193
50194 2008-04-13  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/binary-io.h [__EMX__]: Include <io.h>.
50197         Reported by Elbert Pol <e.pol@chello.nl>.
50198
50199 2008-04-12  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/fpucw.h: Enable the definitions also for x86_64.
50202         Needed for NetBSD/x86_64.
50203         Reported by Thomas Klausner <tk@giga.or.at>.
50204
50205 2008-04-12  Bruno Haible  <bruno@clisp.org>
50206
50207         * tests/test-strtod.c: Include isnand.h.
50208         (main): Use isnand instead of isnan.
50209         Reported by Jim Meyering.
50210
50211 2008-04-12  Bruno Haible  <bruno@clisp.org>
50212
50213         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50214         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50215
50216 2008-04-12  Jim Meyering  <meyering@redhat.com>
50217
50218         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50219
50220 2008-04-12  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50223         Reported by Elbert Pol <e.pol@chello.nl>.
50224
50225 2008-04-12  Eric Blake  <ebb9@byu.net>
50226
50227         Work around Solaris 10 math.h bug.
50228         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50229         (gl_MATH_H_DEFAULTS): Set up default.
50230         * modules/math (Makefile.am): Replace new indicators.
50231         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50232         * tests/test-math.c (main): Test this.
50233         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50234         * doc/posix-headers/math.texi (math.h): Mention bug.
50235         Reported by Nelson H. F. Beebe and Jim Meyering.
50236
50237 2008-04-11  Bruno Haible  <bruno@clisp.org>
50238
50239         Adapt to future versions of Apple GCC.
50240         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50241         Reported by Peter O'Gorman <peter@pogma.com>.
50242
50243 2008-04-11  Bruno Haible  <bruno@clisp.org>
50244
50245         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50246
50247 2008-04-11  Bruno Haible  <bruno@clisp.org>
50248
50249         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50250
50251         * modules/getaddrinfo-tests (Makefile.am): Define
50252         test_getaddrinfo_LDADD.
50253
50254 2008-04-11  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50257         (init): Fix syntax error.
50258         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50259         is declared.
50260
50261 2008-04-11  Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50264         * modules/glob (Depends-on): Add stdbool.
50265
50266 2008-04-11  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/trim.c: Include <string.h>.
50269
50270 2008-04-11  Eric Blake  <ebb9@byu.net>
50271
50272         Avoid compile failure on OS/2.
50273         * lib/regex_internal.h (internal_function): Disable optimization
50274         on OS/2 (__EMX__), where it caused compiler error.
50275         Reported by Elbert Pol.
50276
50277 2008-04-11  Bruno Haible  <bruno@clisp.org>
50278
50279         Flush the standard error stream before aborting. Needed on mingw.
50280         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50281         * tests/test-array_list.c (ASSERT): Likewise.
50282         * tests/test-array_oset.c (ASSERT): Likewise.
50283         * tests/test-avltree_list.c (ASSERT): Likewise.
50284         * tests/test-avltree_oset.c (ASSERT): Likewise.
50285         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50286         * tests/test-binary-io.c (ASSERT): Likewise.
50287         * tests/test-byteswap.c (ASSERT): Likewise.
50288         * tests/test-c-ctype.c (ASSERT): Likewise.
50289         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50290         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50291         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50292         * tests/test-c-strstr.c (ASSERT): Likewise.
50293         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50294         * tests/test-canonicalize.c (ASSERT): Likewise.
50295         * tests/test-carray_list.c (ASSERT): Likewise.
50296         * tests/test-ceilf1.c (ASSERT): Likewise.
50297         * tests/test-ceilf2.c (ASSERT): Likewise.
50298         * tests/test-ceill.c (ASSERT): Likewise.
50299         * tests/test-count-one-bits.c (ASSERT): Likewise.
50300         * tests/test-fbufmode.c (ASSERT): Likewise.
50301         * tests/test-fflush2.c (ASSERT): Likewise.
50302         * tests/test-floorf1.c (ASSERT): Likewise.
50303         * tests/test-floorf2.c (ASSERT): Likewise.
50304         * tests/test-floorl.c (ASSERT): Likewise.
50305         * tests/test-fopen.c (ASSERT): Likewise.
50306         * tests/test-fpending.c (ASSERT): Likewise.
50307         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50308         * tests/test-fpurge.c (ASSERT): Likewise.
50309         * tests/test-freadable.c (ASSERT): Likewise.
50310         * tests/test-freadahead.c (ASSERT): Likewise.
50311         * tests/test-freading.c (ASSERT): Likewise.
50312         * tests/test-freadptr.c (ASSERT): Likewise.
50313         * tests/test-freadptr2.c (ASSERT): Likewise.
50314         * tests/test-freadseek.c (ASSERT): Likewise.
50315         * tests/test-freopen.c (ASSERT): Likewise.
50316         * tests/test-frexp.c (ASSERT): Likewise.
50317         * tests/test-frexpl.c (ASSERT): Likewise.
50318         * tests/test-fseek.c (ASSERT): Likewise.
50319         * tests/test-fseeko.c (ASSERT): Likewise.
50320         * tests/test-fstrcmp.c (ASSERT): Likewise.
50321         * tests/test-ftell.c (ASSERT): Likewise.
50322         * tests/test-ftello.c (ASSERT): Likewise.
50323         * tests/test-func.c (ASSERT): Likewise.
50324         * tests/test-fwritable.c (ASSERT): Likewise.
50325         * tests/test-fwriting.c (ASSERT): Likewise.
50326         * tests/test-getdelim.c (ASSERT): Likewise.
50327         * tests/test-getline.c (ASSERT): Likewise.
50328         * tests/test-i-ring.c (ASSERT): Likewise.
50329         * tests/test-iconv-utf.c (ASSERT): Likewise.
50330         * tests/test-iconv.c (ASSERT): Likewise.
50331         * tests/test-isfinite.c (ASSERT): Likewise.
50332         * tests/test-isnand.c (ASSERT): Likewise.
50333         * tests/test-isnanf.c (ASSERT): Likewise.
50334         * tests/test-isnanl.h (ASSERT): Likewise.
50335         * tests/test-ldexpl.c (ASSERT): Likewise.
50336         * tests/test-linked_list.c (ASSERT): Likewise.
50337         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50338         * tests/test-localename.c (ASSERT): Likewise.
50339         * tests/test-lseek.c (ASSERT): Likewise.
50340         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50341         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50342         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50343         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50344         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50345         * tests/test-mbschr.c (ASSERT): Likewise.
50346         * tests/test-mbscspn.c (ASSERT): Likewise.
50347         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50348         * tests/test-mbspbrk.c (ASSERT): Likewise.
50349         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50350         * tests/test-mbsrchr.c (ASSERT): Likewise.
50351         * tests/test-mbsspn.c (ASSERT): Likewise.
50352         * tests/test-mbsstr1.c (ASSERT): Likewise.
50353         * tests/test-mbsstr2.c (ASSERT): Likewise.
50354         * tests/test-mbsstr3.c (ASSERT): Likewise.
50355         * tests/test-memchr2.c (ASSERT): Likewise.
50356         * tests/test-memmem.c (ASSERT): Likewise.
50357         * tests/test-open.c (ASSERT): Likewise.
50358         * tests/test-printf-frexp.c (ASSERT): Likewise.
50359         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50360         * tests/test-printf-posix.c (ASSERT): Likewise.
50361         * tests/test-quotearg.c (ASSERT): Likewise.
50362         * tests/test-rbtree_list.c (ASSERT): Likewise.
50363         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50364         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50365         * tests/test-round1.c (ASSERT): Likewise.
50366         * tests/test-roundf1.c (ASSERT): Likewise.
50367         * tests/test-roundl.c (ASSERT): Likewise.
50368         * tests/test-signbit.c (ASSERT): Likewise.
50369         * tests/test-sleep.c (ASSERT): Likewise.
50370         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50371         * tests/test-snprintf.c (ASSERT): Likewise.
50372         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50373         * tests/test-stat-time.c (ASSERT): Likewise.
50374         * tests/test-strcasestr.c (ASSERT): Likewise.
50375         * tests/test-strerror.c (ASSERT): Likewise.
50376         * tests/test-striconv.c (ASSERT): Likewise.
50377         * tests/test-striconveh.c (ASSERT): Likewise.
50378         * tests/test-striconveha.c (ASSERT): Likewise.
50379         * tests/test-strsignal.c (ASSERT): Likewise.
50380         * tests/test-strstr.c (ASSERT): Likewise.
50381         * tests/test-strtod.c (ASSERT): Likewise.
50382         * tests/test-trunc1.c (ASSERT): Likewise.
50383         * tests/test-trunc2.c (ASSERT): Likewise.
50384         * tests/test-truncf1.c (ASSERT): Likewise.
50385         * tests/test-truncf2.c (ASSERT): Likewise.
50386         * tests/test-truncl.c (ASSERT): Likewise.
50387         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50388         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50389         * tests/test-vasnprintf.c (ASSERT): Likewise.
50390         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50391         * tests/test-vasprintf.c (ASSERT): Likewise.
50392         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50393         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50394         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50395         * tests/test-vsnprintf.c (ASSERT): Likewise.
50396         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50397         * tests/test-wcwidth.c (ASSERT): Likewise.
50398         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50399         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50400         * tests/test-xvasprintf.c (ASSERT): Likewise.
50401         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50402         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50403         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50404         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50405         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50406         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50407         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50408         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50409         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50410         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50411         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50412         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50413         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50414         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50415         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50416         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50417         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50418         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50419         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50420         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50421         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50422         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50423         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50424         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50425         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50426         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50427         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50428         * tests/unictype/test-combining.c (ASSERT): Likewise.
50429         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50430         * tests/unictype/test-digit.c (ASSERT): Likewise.
50431         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50432         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50433         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50434         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50435         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50436         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50437         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50438         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50439         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50440         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50441         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50442         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50443         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50444         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50445         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50446         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50447         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50448         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50449         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50450         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50451         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50452         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50453         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50454         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50455         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50456         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50457         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50458         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50459         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50460         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50461         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50462         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50463         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50464         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50465         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50466         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50467         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50468         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50469         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50470         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50471         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50472         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50473         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50474         Reported by Eric Blake.
50475
50476 2008-04-11  Bruno Haible  <bruno@clisp.org>
50477
50478         * lib/wchar.in.h: Tweak comment.
50479
50480 2008-04-11  Bruno Haible  <bruno@clisp.org>
50481
50482         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50483         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50484         gl_COMMON.
50485         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50486
50487 2008-04-11  Bruno Haible  <bruno@clisp.org>
50488
50489         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50490
50491 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50492
50493         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50494         of attempting to use non-existing /dev/*random.  Based on patch
50495         from Adam Strzelecki <ono@java.pl> in
50496         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50497
50498 2008-04-08  Bruno Haible  <bruno@clisp.org>
50499
50500         Add tentative support for emx+gcc.
50501         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50502         * lib/fpurge.c (fpurge): Likewise.
50503         * lib/freadable.c (freadable): Likewise.
50504         * lib/freadahead.c (freadahead): Likewise.
50505         * lib/freading.c (freading): Likewise.
50506         * lib/freadptr.c (freadptr): Likewise.
50507         * lib/freadseek.c (freadptrinc): Likewise.
50508         * lib/fseeko.c (rpl_fseeko): Likewise.
50509         * lib/fseterr.c (fseterr): Likewise.
50510         * lib/fwritable.c (fwritable): Likewise.
50511         * lib/fwriting.c (fwriting): Likewise.
50512         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50513
50514 2008-04-09  Eric Blake  <ebb9@byu.net>
50515
50516         Avoid some autoconf warnings.
50517         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50518         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50519         * m4/afs.m4 (gl_AFS): Likewise.
50520         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50521         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50522         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50523         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50524         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50525         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50526         (AC_CHECK_DECLS_ONCE): Likewise.
50527         Rename file...
50528         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50529         gnulib-tool requires autoconf 2.59 or better.
50530         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50531
50532 2008-04-08  Eric Blake  <ebb9@byu.net>
50533
50534         Use 'git describe --match' if present (added in git 1.5.5).
50535         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50536         if possible.
50537
50538 2008-04-08  Bruno Haible  <bruno@clisp.org>
50539
50540         Add tentative support for OpenServer.
50541         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50542         _ptr, _cnt.
50543         * lib/fpurge.c (fpurge): Likewise.
50544         * lib/freadable.c (freadable): Likewise.
50545         * lib/freadahead.c (freadahead): Likewise.
50546         * lib/freading.c (freading): Likewise.
50547         * lib/freadptr.c (freadptr): Likewise.
50548         * lib/freadseek.c (freadptrinc): Likewise.
50549         * lib/fseeko.c (rpl_fseeko): Likewise.
50550         * lib/fseterr.c (fseterr): Likewise.
50551         * lib/fwritable.c (fwritable): Likewise.
50552         * lib/fwriting.c (fwriting): Likewise.
50553         Reported by Roger Cornelius <rac@tenzing.org> and
50554         Brian K. White <brian@aljex.com>.
50555
50556 2008-04-06  Jim Meyering  <meyering@redhat.com>
50557
50558         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50559
50560 2008-04-06  Bruno Haible  <bruno@clisp.org>
50561
50562         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50563         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50564         * tests/test-printf-posix.sh: Likewise.
50565         * tests/test-vfprintf-posix.sh: Likewise.
50566         * tests/test-vprintf-posix.sh: Likewise.
50567         * tests/test-xprintf-posix.sh: Likewise.
50568
50569 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50570
50571         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50572         hide error from 'ls', needed on OS/2.
50573         Report by Elbert Pol <elbert.pol@gmail.com>.
50574
50575 2008-04-04  Eric Blake  <ebb9@byu.net>
50576
50577         Make test-fseeko.c failures meaningful.
50578         * tests/test-fseeko.c: Print line number on failure.
50579         * tests/test-fseek.c: Likewise.
50580         Reported by Nelson H. F. Beebe.
50581
50582         Improve strtod bug detection check.
50583         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50584         required for Solaris 10.
50585         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50586
50587 2008-04-04  Bruno Haible  <bruno@clisp.org>
50588
50589         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50590         by m4/setenv.m4.
50591
50592 2008-04-03  Eric Blake  <ebb9@byu.net>
50593
50594         Ensure sane .version contents.
50595         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50596         version string.
50597         * build-aux/git-version-gen: Improve documentation.
50598
50599         Make GNU make output nicer.
50600         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50601         MAKECMDGOALS to enforce message for all command line targets.  Set
50602         srcdir for use in maint.mk.
50603
50604         Another maintainer tweak.
50605         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50606         a target that regenerates version.
50607
50608 2008-04-03  Jim Meyering  <meyering@redhat.com>
50609
50610         vc-list-files: don't cause coreutils "make po-check" failure
50611         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50612
50613 2008-04-03  Eric Blake  <ebb9@byu.net>
50614
50615         Allow VPATH usage of vc-list-files.
50616         * build-aux/vc-list-files (scriptversion): Add timestamp.
50617         (options): Add --help, --version, -C.
50618         (CVS): Support installed cvsu.
50619
50620 2008-04-02  Bruno Haible  <bruno@clisp.org>
50621
50622         Avoid some "statement with no effect" warnings from gcc.
50623         * tests/test-wctype.c (main): Explicitly ignore unused values.
50624         Reported by Jim Meyering.
50625
50626 2008-04-02  Jim Meyering  <meyering@redhat.com>
50627
50628         Avoid some warnings from "gcc -Wshadow".
50629         * tests/test-frexp.c (exp): Define to a different identifier.
50630         * tests/test-frexpl.c (exp): Likewise.
50631
50632 2008-04-03  Jim Meyering  <meyering@redhat.com>
50633
50634         bootstrap: remove dangling *.[ch] symlinks from lib
50635         * build-aux/bootstrap [dangling symlink removal]: Move find's
50636         -depth option to precede all others, to avoid a warning.
50637         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50638
50639 2008-04-02  Bruno Haible  <bruno@clisp.org>
50640
50641         Avoid some warnings from "gcc -Wshadow".
50642         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50643         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50644         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50645         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50646         Reported by Jim Meyering.
50647
50648 2008-04-01  Bruno Haible  <bruno@clisp.org>
50649
50650         Fix test to work on IRIX 6.5 with cc.
50651         * tests/test-math.c (numeric_equal): New function.
50652         (main): Use it.
50653
50654 2008-04-01  Bruno Haible  <bruno@clisp.org>
50655
50656         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50657
50658 2008-04-01  Bruno Haible  <bruno@clisp.org>
50659
50660         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50661         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50662         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50663         (Depends-on): Remove math.
50664
50665         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50666         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50667         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50668         (Depends-on): Remove math.
50669
50670         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50671         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50672         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50673         (Depends-on): Remove math.
50674         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50675         (Depends-on): Remove math.
50676
50677         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50678         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50679         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50680         (Depends-on): Remove math.
50681         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50682         (Depends-on): Remove math.
50683
50684         * tests/test-round1.c: Include nan.h.
50685         (main): Use NaNd instead of NAN.
50686         * modules/round-tests (Files): Add tests/nan.h.
50687
50688         * tests/test-trunc1.c: Include nan.h.
50689         (main): Use NaNd instead of NAN.
50690         * modules/trunc-tests (Files): Add tests/nan.h.
50691
50692         * tests/test-roundf1.c: Include nan.h.
50693         (main): Use NaNf instead of NAN.
50694         * modules/roundf-tests (Files): Add tests/nan.h.
50695
50696         * tests/test-truncf1.c: Include nan.h.
50697         (main): Use NaNf instead of NAN.
50698         * modules/truncf-tests (Files): Add tests/nan.h.
50699
50700         * tests/test-ceilf1.c: Include nan.h.
50701         (main): Use NaNf instead of NAN.
50702         * modules/ceilf-tests (Files): Add tests/nan.h.
50703
50704         * tests/test-floorf1.c: Include nan.h.
50705         (main): Use NaNf instead of NAN.
50706         * modules/floorf-tests (Files): Add tests/nan.h.
50707
50708         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50709         (main): Use NaNf instead of NAN.
50710         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50711
50712         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50713         (main): Use NaNd instead of NAN.
50714         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50715
50716         * tests/test-frexp.c: Include nan.h.
50717         (main): Use NaNd instead of NAN.
50718         * modules/frexp-tests (Files): Add tests/nan.h.
50719
50720         * lib/isnan.c: Don't include <math.h>.
50721         (FUNC): Don't use NAN macro.
50722         * modules/isnand-nolibm (Depends-on): Remove math.
50723         * modules/isnanf-nolibm (Depends-on): Remove math.
50724         * modules/isnanl (Depends-on): Remove math.
50725         * modules/isnanl-nolibm (Depends-on): Remove math.
50726
50727         * tests/nan.h: New file.
50728
50729 2008-04-01  Eric Blake  <ebb9@byu.net>
50730
50731         Fix typos.
50732         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50733         values to be the right type.
50734
50735         For now, cater to gnulib strtod inaccuracies.
50736         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50737         fractional results.  While not as nice from a QoI perspective, it
50738         is a quicker patch than correctly implementing decimal to binary
50739         rounding.
50740
50741 2008-03-31  Eric Blake  <ebb9@byu.net>
50742
50743         Guarantee a definition of NAN.
50744         * lib/math.in.h (NAN): Define if missing.
50745         * tests/test-math.c (main): Test it.
50746         * doc/posix-headers/math.texi (math.h): Document this.
50747         * lib/isnan.c (rpl_isnand): Use it.
50748         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50749         * tests/test-floorf1.c (NaN): Likewise.
50750         * tests/test-frexp.c (NaN): Likewise.
50751         * tests/test-isnand.c (NaN): Likewise.
50752         * tests/test-isnanf.c (NaN): Likewise.
50753         * tests/test-round1.c (NaN): Likewise.
50754         * tests/test-roundf1.c (NaN): Likewise.
50755         * tests/test-snprintf-posix.h (NaN): Likewise.
50756         * tests/test-sprintf-posix.h (NaN): Likewise.
50757         * tests/test-trunc1.c (NaN): Likewise.
50758         * tests/test-truncf1.c (NaN): Likewise.
50759         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50760         * tests/test-vasprintf-posix.c (NaN): Likewise.
50761         * modules/isnand-nolibm (Depends-on): Add math.
50762         * modules/isnanf-nolibm (Depends-on): Likewise.
50763         * modules/isnanl (Depends-on): Likewise.
50764         * modules/isnanl-nolibm (Depends-on): Likewise.
50765         * modules/snprintf-posix-tests (Depends-on): Likewise.
50766         * modules/sprintf-posix-tests (Depends-on): Likewise.
50767         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50768         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50769         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50770         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50771
50772 2008-03-31  Bruno Haible  <bruno@clisp.org>
50773
50774         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50775         * doc/posix-functions/strtod.texi: Likewise.
50776
50777 2008-03-31  Bruno Haible  <bruno@clisp.org>
50778
50779         * tests/test-strtod.c (main): Don't use C99 syntax.
50780
50781 2008-03-31  Bruno Haible  <bruno@clisp.org>
50782
50783         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50784         Reported by Eric Blake.
50785
50786 2008-03-31  Jim Meyering  <meyering@redhat.com>
50787
50788         Don't compare actual signbit return values.
50789         * tests/test-strtod.c (main): Rather, compare only their
50790         zero/non-zero nature.
50791
50792 2008-03-31  Eric Blake  <ebb9@byu.net>
50793
50794         More strtod documentation.
50795         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50796         failures as distinct bugs.
50797
50798 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50801         Problem reported by Erik Benada in
50802         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50803
50804 2008-03-30  Bruno Haible  <bruno@clisp.org>
50805
50806         * tests/test-strtod.c: Add comments about which assertion fails on which
50807         platform.
50808         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50809
50810 2008-03-30  Eric Blake  <ebb9@byu.net>
50811
50812         Test signbit behavior on zeros.
50813         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50814         (test_signbitd, test_signbitl): Likewise.
50815
50816         More strtod touchups.
50817         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50818         sign of negative underflow, for now.  Use .5, not .1.
50819         * doc/posix-functions/strtod.texi (strtod): Mention these
50820         limitations.
50821         Reported by Jim Meyering.
50822
50823 2008-03-30  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50826         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50827
50828 2008-03-30  Bruno Haible  <bruno@clisp.org>
50829
50830         Avoid failure when attempting to return empty iconv results on some
50831         platforms.
50832         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50833         allocation, don't report ENOMEM when the resulting string is empty.
50834
50835 2008-03-30  Bruno Haible  <bruno@clisp.org>
50836
50837         Fix buffer overrun.
50838         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50839         Don't consider the width for tmp_length. Check count against tmp_length
50840         before doing the padding. Ensure enough allocation during padding.
50841
50842 2008-03-30  Eric Blake  <ebb9@byu.net>
50843
50844         strtod touchups.
50845         * lib/strtod.c (strtod): Avoid compiler warnings.
50846         Reported by Jim Meyering.
50847
50848 2008-03-30  Bruno Haible  <bruno@clisp.org>
50849
50850         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50851         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50852         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50853         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50854         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50855         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50856         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50857         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50858
50859         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50860         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50861         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50862         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50863         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50864         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50865         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50866         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50867
50868         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50869         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50870         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50871         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50872         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50873         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50874         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50875         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50876
50877         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50878         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50879
50880         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50881         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50882
50883         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50884         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50885
50886         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50888         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50889
50890         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50892         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50893
50894         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50896         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50897
50898         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50899         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50900         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50901
50902         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50903         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50904         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50905         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50906         (Depends-on): Add EOVERFLOW.
50907         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50908         (Depends-on): Add EOVERFLOW.
50909         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50910         (Depends-on): Add EOVERFLOW.
50911         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50912         (Depends-on): Add EOVERFLOW.
50913         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50914         (Depends-on): Add EOVERFLOW.
50915         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50916         (Depends-on): Add EOVERFLOW.
50917         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50918         (Depends-on): Add EOVERFLOW.
50919         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50920         (Depends-on): Add EOVERFLOW.
50921
50922         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50923         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50924         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50925
50926         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50927         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50928         * modules/snprintf (Depends-on): Add EOVERFLOW.
50929
50930         * lib/poll.c (EOVERFLOW): Remove fallback.
50931         * modules/poll (Depends-on): Add EOVERFLOW.
50932
50933         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50934         * modules/getugroups (Depends-on): Add EOVERFLOW.
50935
50936         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50937         * modules/getdelim (Depends-on): Add EOVERFLOW.
50938
50939         * lib/ftell.c (EOVERFLOW): Remove fallback.
50940         * modules/ftell (Depends-on): Add EOVERFLOW.
50941
50942         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50944         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50945
50946         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50947
50948         * modules/EOVERFLOW-tests: New file.
50949         * tests/test-EOVERFLOW.c: New file.
50950
50951         * modules/EOVERFLOW: New file.
50952         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50953
50954 2008-03-30  Bruno Haible  <bruno@clisp.org>
50955
50956         Fix bug introduced on 2007-06-10.
50957         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50958         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50959
50960 2008-03-30  Bruno Haible  <bruno@clisp.org>
50961
50962         Improve freadseek's efficiency after ungetc.
50963         * lib/freadseek.c: Include freadahead.h.
50964         (freadptrinc): New function, extracted from freadseek.
50965         (freadseek): Use it in a loop. Use freadahead to determine the number
50966         of loop iterations.
50967         * modules/freadseek (Depends-on): Add freadahead.
50968         (configure.ac): Require AC_C_INLINE.
50969
50970 2008-03-30  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/freadseek.c (freadseek): Don't ignore the return value of
50973         freadptr.
50974
50975 2008-03-29  Eric Blake  <ebb9@byu.net>
50976
50977         Add hex float support.
50978         * modules/strtod (Depends-on): Add c-ctype.
50979         (Link): Mention POW_LIB.
50980         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50981         whitespace between 'e' and exponent.
50982         * tests/test-strtod.c (main): Enable hex float tests.
50983         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50984         now provides.
50985
50986         Document various strtod bugs, with some fixes.
50987         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50988         "-0x", "inf", "nan", and hex constants.
50989         * doc/posix-functions/atof.texi (atof): Likewise.
50990         * modules/stdlib (Makefile.am): Support strtod.
50991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50992         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50993         detect additional strtod bugs.
50994         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50995         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50996         bool where appropriate.  Parse 'inf' and 'nan'.
50997         * tests/test-strtod.c: New file.
50998         * modules/strtod (Depends-on): Add stdbool, stdlib.
50999         (configure.ac): Turn on module indicator.
51000         * modules/strtod-tests: New module.
51001
51002 2008-03-29  Eric Blake  <ebb9@byu.net>
51003
51004         Fix ftell on mingw.
51005         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51006         * modules/ftell-tests (Depends-on): Add binary-io.
51007         * modules/ftello-tests (Depends-on): Likewise.
51008         * tests/test-ftell.c (main): Enhance test to cover behavior after
51009         ungetc.  Enforce binary mode.
51010         * tests/test-ftello.c (main): Likewise.
51011
51012         Pass test-freadseek on cygwin.
51013         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51014         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51015         ungetc buffer.
51016
51017         * tests/test-fflush2.c (main): Fix typo.
51018
51019 2008-03-29  Bruno Haible  <bruno@clisp.org>
51020
51021         * tests/test-fflush2.c (main): Temporarily disable the contents of
51022         this test.
51023         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51024         Reported by Eric Blake.
51025
51026 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51027
51028         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51029         (GC_SHA224_DIGEST_SIZE): Add.
51030
51031         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51032         (gc_hash_digest_length): Likewise.
51033         (gc_hash_buffer): Likewise.
51034
51035 2008-03-25  Bruno Haible  <bruno@clisp.org>
51036
51037         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51038         detail which gettext release to use.
51039         Reported by Simon Josefsson.
51040
51041 2008-03-26  Jim Meyering  <meyering@redhat.com>
51042
51043         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51044         * modules/gnumakefile (clean-GNUmakefile): Also, use
51045         test ... && ... || : syntax rather than if-then ... fi.
51046
51047         gnumakefile: Don't double-quote-expand $(VPATH) value.
51048         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51049
51050 2008-03-24  Eric Blake  <ebb9@byu.net>
51051
51052         Alter GNUmakefile to install into top directory.
51053         * modules/maintainer-makefile: Split, and add dependency...
51054         * modules/gnumakefile: to this new module.
51055         * build-aux/GNUmakefile: Move...
51056         * top/GNUmakefile: ...here.
51057         * build-aux/maint.mk: Move...
51058         * top/maint.mk: ...here.
51059         * MODULES.html.sh (Support for maintaining...): Document new
51060         module.
51061
51062 2008-03-23  Bruno Haible  <bruno@clisp.org>
51063
51064         * gnulib-tool: New options --vc-files, --no-vc-files.
51065         (func_usage): Document them.
51066         (vc_files): New variable.
51067         (func_import): Consider vc_files.
51068         (func_create_testdir): Set vc_files to empty.
51069         Suggested by Jim Meyering and Karl Berry.
51070
51071 2008-03-23  Bruno Haible  <bruno@clisp.org>
51072
51073         Fix regex compilation error on HP-UX 11.
51074         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51075         * modules/regex (Files): Add m4/mbstate_t.m4.
51076         Reported by Ton Voon <ton.voon@altinity.com>.
51077
51078 2008-03-23  Bruno Haible  <bruno@clisp.org>
51079
51080         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51081
51082 2008-03-23  Eric Blake  <ebb9@byu.net>
51083             Bruno Haible  <bruno@clisp.org>
51084
51085         Install files from top/ in the destination directory.
51086         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51087         augmentation also for the files from top/.
51088         (func_import, func_create_testdir): Rewrite file names:
51089         top/filename -> filename.
51090
51091 2008-03-23  Bruno Haible  <bruno@clisp.org>
51092
51093         Tweak "gnulib --version" output.
51094         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51095
51096 2008-03-23  Bruno Haible  <bruno@clisp.org>
51097
51098         Tweak "gnulib --version" output.
51099         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51100         rather than contents of ChangeLog, when possible.
51101
51102 2008-03-21  Eric Blake  <ebb9@byu.net>
51103
51104         More --version tweaks.
51105         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51106         date of last ChangeLog entry.
51107
51108 2008-03-21  Jim Meyering  <meyering@redhat.com>
51109
51110         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51111
51112 2008-03-20  Eric Blake  <ebb9@byu.net>
51113
51114         VPATH fix.
51115         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51116
51117 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51118
51119         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51120         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51121
51122 2008-03-20  Eric Blake  <ebb9@byu.net>
51123
51124         Sync GNUmakefile with coreutils.
51125         * build-aux/GNUmakefile (have-Makefile): Rename...
51126         (_have-Makefile): ...to this, for namespace consideration.
51127         (GNUmakefile.cfg): Include, if present.
51128         (_autoreconf): Define a default.
51129         (_is-dist-target): New rule for rebuilds to pick up intra-release
51130         version.
51131         (maint-cfg.mk): Rename...
51132         (cfg.mk): ...to this.
51133
51134 2008-03-18  Jim Meyering  <meyering@redhat.com>
51135
51136         New script and module: mktempd
51137         * MODULES.html.sh (maint+release support): Add mktempd.
51138         * build-aux/mktempd: New file.
51139         * modules/mktempd: New file.
51140
51141 2008-03-15  Jim Meyering  <meyering@redhat.com>
51142
51143         Undo last change.
51144         * lib/sha1.c, lib/md5.c: 63 != ~63.
51145         Reported by Andreas Schwab.
51146
51147         sha1.c, md5.c: Hoist a redundant expression.
51148         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51149         "ctx->buflen" only once, before calling *_process_block.
51150         * lib/md5.c (md5_process_bytes): Likewise.
51151
51152 2008-03-14  Eric Blake  <ebb9@byu.net>
51153
51154         Bump copyright year in files generated by gnulib-tool.
51155         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51156         gnulib-tool, rather than hard-coding it.
51157
51158         Fix 'gnulib-tool --version' output to work with git.
51159         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51160         (startup): ...here.
51161         (func_version): Use it to invoke git-version-gen, rather than
51162         relying on CVS keyword expansion.  Modernize wording.
51163         (cvsdatestamp, last_checkin_date, version): Kill unused
51164         variables.
51165
51166 2008-03-12  Jim Meyering  <meyering@redhat.com>
51167
51168         Recognize optional cast of the argument to free.
51169         * build-aux/useless-if-before-free: Update regexps.
51170
51171         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51172
51173 2008-03-11  Bruno Haible  <bruno@clisp.org>
51174
51175         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51176         by a single package.
51177         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51178         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51179         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51180         Reported by Sam Steingold <sds@gnu.org>.
51181
51182 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51183
51184         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51185         repositories.
51186
51187 2008-03-11  Bruno Haible  <bruno@clisp.org>
51188
51189         Avoid conflicts between local macro definitions.
51190         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51191         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51192
51193 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51194             Bruno Haible  <bruno@clisp.org>
51195
51196         Make va_copy work with some version of xlc on AIX 5.1.
51197         * lib/stdarg.in.h: New file.
51198         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51199         On AIX, use a <stdarg.h> file substitute.
51200         * modules/stdarg (Files): Add lib/stdarg.in.h.
51201         (Depends-on): Add include_next.
51202         (Makefile.am): Build a stdarg.h substitute if requested.
51203         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51204
51205 2008-03-10  Bruno Haible  <bruno@clisp.org>
51206
51207         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51208         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51209         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51210
51211 2008-03-10  Bruno Haible  <bruno@clisp.org>
51212
51213         * modules/stdlib (Depends-on): Add include_next, remove
51214         absolute-header.
51215
51216 2008-03-09  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/freadahead.h (freadahead): Document more precisely.
51219         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51220         the sum of both buffer sizes.
51221         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51222         * NEWS: Document the change.
51223
51224 2008-03-09  Bruno Haible  <bruno@clisp.org>
51225
51226         Extend freadptr to return also the buffer size.
51227         * lib/freadptr.h (freadptr): Add sizep argument.
51228         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51229         (freadptr): Add sizep argument. Determine buffer size like freadahead
51230         does.
51231         * tests/test-freadptr.c: Don't include freadahead.h.
51232         (main): Adapt for new calling convention of freadptr.
51233         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51234         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51235         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51236         tests/test-freadptr2.sh.
51237         (Depends): Remove freadahead.
51238         (TESTS): Add test-freadptr2.sh.
51239         (check_PROGRAMS): Add test-freadptr2.
51240
51241 2008-03-09  Bruno Haible  <bruno@clisp.org>
51242
51243         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51244         Report and solution by Simon Josefsson.
51245
51246 2008-03-06  Bruno Haible  <bruno@clisp.org>
51247
51248         Make fflush after ungetc work on BSD platforms.
51249         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51250         * tests/test-fflush2.c: New file.
51251         * tests/test-fflush2.sh: New file.
51252         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51253         tests/test-fflush2.c.
51254         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51255         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51256
51257 2008-03-06  Eric Blake  <ebb9@byu.net>
51258
51259         Likewise for ftello.
51260         * modules/ftello (Dependencies): Add extensions.
51261         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51262
51263 2008-03-06  Bruno Haible  <bruno@clisp.org>
51264
51265         * modules/fseeko (Dependencies): Add extensions.
51266         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51267         Needed on glibc systems.
51268
51269 2008-03-06  Bruno Haible  <bruno@clisp.org>
51270
51271         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51272         email address.
51273         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51274
51275 2008-03-06  Bruno Haible  <bruno@clisp.org>
51276
51277         * users.txt: Add libgnupdf.
51278
51279 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51280
51281         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51282         (Header File Substitutes, Function Substitutes,
51283         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51284         (Build robot for gnulib): Fix typo.
51285
51286 2008-03-06  Bruno Haible  <bruno@clisp.org>
51287
51288         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51289         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51290
51291 2008-03-06  Bruno Haible  <bruno@clisp.org>
51292
51293         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51294         * doc/gnulib.texi: Include it.
51295
51296 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51297
51298         * modules/func (License): Change license to unlimited; there was
51299         no LGPL parts in the module anyway.
51300
51301 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51302
51303         * modules/__func__: Renamed to modules/func.
51304         * modules/__func__-tests: Renamed to modules/func-tests.
51305         * tests/test-__func__.c: Renamed to tests/test-func.c.
51306         * m4/__func__.m4: Renamed to m4/func.m4.
51307         * doc/gnulib.texi (__func__): Section renamed to func.
51308         Suggested by Eric Blake <ebb9@byu.net>.
51309
51310 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51311
51312         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51313         about __func__.  Make example self-contained.  Suggested by Eric
51314         Blake <ebb9@byu.net>.
51315
51316         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51317         Suggested by Eric Blake <ebb9@byu.net>.
51318
51319 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51320
51321         * modules/__func__: New file.
51322         * modules/__func__-tests: New file.
51323         * tests/test-__func__.c: New file.
51324         * m4/__func__.m4: New file.
51325         * doc/gnulib.texi (__func__): Document __func__ module.
51326
51327 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51328
51329         * modules/byteswap (License): Re-license as LGPLv2+.
51330
51331 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51332
51333         * doc/Makefile: Add pdf target.
51334
51335 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51336
51337         * modules/inline (License): Use 'unlimited', since there are only
51338         *.m4 files in this module.
51339
51340 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51341             Bruno Haible  <bruno@clisp.org>
51342
51343         Add support for HP C 7.1 on OpenVMS 8.3.
51344         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51345
51346 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51347
51348         Update VMS specifics.
51349         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51350
51351 2008-03-02  Jim Meyering  <meyering@redhat.com>
51352
51353         Remove the last dependency on the "free" module.
51354         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51355         Reported by Bob Proulx.
51356
51357         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51358
51359         Remove useless "if" tests before free.  Deprecate "free" module.
51360         * doc/posix-functions/free.texi: Mention that this
51361         module is no longer useful.
51362         * modules/free (Notice): Say this module is obsolete.
51363         * modules/readutmp (Depends-on): Remove free.
51364         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51365         * lib/putenv.c (putenv): Likewise.
51366         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51367         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51368         * tests/test-c-strcasestr.c (main): Likewise.
51369         * tests/test-c-strstr.c (main): Likewise.
51370         * tests/test-mbscasestr1.c (main): Likewise.
51371         * tests/test-mbscasestr2.c (main): Likewise.
51372         * tests/test-mbsstr1.c (main): Likewise.
51373         * tests/test-mbsstr2.c (main): Likewise.
51374         * tests/test-memmem.c (main): Likewise.
51375         * tests/test-strcasestr.c (main): Likewise.
51376         * tests/test-striconv.c (main): Likewise.
51377         * tests/test-striconveh.c (main): Likewise.
51378         * tests/test-striconveha.c (main): Likewise.
51379         * tests/test-strstr.c (main): Likewise.
51380
51381         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51382
51383         bootstrap: sync from coreutils again
51384         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51385
51386 2008-03-01  Jim Meyering  <meyering@redhat.com>
51387
51388         bootstrap: sync from coreutils
51389         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51390         also when the target doesn't exist.
51391
51392 2008-03-01  Eric Blake  <ebb9@byu.net>
51393
51394         Fix bugs in last patch.
51395         * lib/memchr2.c (memchr2): Fix typo.
51396         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51397         extension.
51398         Reported by Bruce Korb.
51399
51400         New module 'memchr2'.
51401         * modules/memchr2: New file.
51402         * modules/memchr2-tests: Likewise.
51403         * lib/memchr2.h: Likewise.
51404         * lib/memchr2.c: Likewise, based on memchr.c.
51405         * tests/test-memchr2.c: New test.
51406         * MODULES.html.sh (String handling): Add memchr2.
51407
51408 2008-02-29  Bruno Haible  <bruno@clisp.org>
51409
51410         * modules/freadseek-tests: New file.
51411         * tests/test-freadseek.sh: New file.
51412         * tests/test-freadseek.c: New file.
51413
51414         New module 'freadseek'.
51415         * modules/freadseek: New file.
51416         * lib/freadseek.h: New file.
51417         * lib/freadseek.c: New file.
51418         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51419
51420 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51421
51422         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51423         wydawca.
51424
51425         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51426         program_invocation_name and program_invocation_short_name are
51427         present.
51428
51429 2008-02-28  Bruno Haible  <bruno@clisp.org>
51430
51431         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51432         * tests/test-freadptr.sh: Also test non-seekable stdin.
51433
51434 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51435
51436         * build-aux/bootstrap (source_base, m4_base)
51437         (doc_base, tests_base): New variables.
51438         (gnulib_tool_options): Do not hardcode base directories, use
51439         the above variables instead.
51440
51441 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51442
51443         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51444
51445 2008-02-28  Bruno Haible  <bruno@clisp.org>
51446
51447         * modules/freadptr-tests: New file.
51448         * tests/test-freadptr.sh: New file.
51449         * tests/test-freadptr.c: New file.
51450
51451         New module 'freadptr'.
51452         * modules/freadptr: New file.
51453         * lib/freadptr.h: New file.
51454         * lib/freadptr.c: New file.
51455         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51456
51457 2008-02-26  Karl Berry  <karl@freefriends.org>
51458
51459         Sync from Libtool:
51460         * libltdl/argz.c (argz_add, argz_count): New functions.
51461         * libltdl/argz.in.h: Declare them.
51462         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51463
51464 2008-02-22  Bruno Haible  <bruno@clisp.org>
51465
51466         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51467         is a pointer type.  Needed for HP-UX 10.
51468         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51469         * doc/posix-functions/gmtime_r.texi: Likewise.
51470         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51471
51472 2008-02-24  Bruno Haible  <bruno@clisp.org>
51473
51474         * modules/environ-tests: New file.
51475         * tests/test-environ.c: New file.
51476
51477         New module 'environ'.
51478         * modules/environ: New file.
51479         * lib/unistd.in.h (environ): New declaration.
51480         * m4/environ.m4: New file.
51481         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51482         after use.
51483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51484         HAVE_DECL_ENVIRON.
51485         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51486         HAVE_DECL_ENVIRON.
51487         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51488         wrong claim that 'environ' is missing on some systems.
51489         * modules/execute (Depends-on): Add environ.
51490         * lib/execute.c (environ): Remove fallback declaration.
51491         * modules/pipe (Depends-on): Add environ.
51492         * lib/pipe.c (environ): Remove fallback declaration.
51493         * modules/setenv (Depends-on): Add environ.
51494         * lib/setenv.c (environ): Remove fallback declaration.
51495         * modules/unsetenv (Depends-on): Add environ.
51496         * lib/unsetenv.c (environ): Remove fallback declaration.
51497         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51498         m4/environ.m4.
51499         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51500         (gl_PREREQ_UNSETENV): Likewise.
51501
51502 2008-02-24  Bruno Haible  <bruno@clisp.org>
51503
51504         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51505
51506 2008-02-20  Bob Proulx  <bob@proulx.com>
51507
51508         Enable use of older two part flavor 'git describe'.
51509         * build-aux/git-version-gen: If using the older two part flavor of
51510         git version then recreate the third part now present in the
51511         newer three part flavor of git describe.
51512
51513 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51514
51515         * lib/fts.c (fts_build): Typo correction to comment.
51516
51517 2008-02-17  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51520         generating no-op conflicts.
51521
51522 2008-02-17  Bruno Haible  <bruno@clisp.org>
51523
51524         Speed up by 10%.
51525         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51526         result_entries, rather than an index-based loop.
51527
51528 2008-02-17  Bruno Haible  <bruno@clisp.org>
51529
51530         Speed up by 25%.
51531         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51532         'hashcode_cached'.
51533         (entry_create): New function.
51534         (entry_hashcode): Use the cached hashcode if possible.
51535         (read_changelog_file, try_split_merged_entry): Use entry_create.
51536
51537 2008-02-17  Bruno Haible  <bruno@clisp.org>
51538
51539         Speed up from O(n^2) to O(n) for long ChangeLog files.
51540         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51541         (read_changelog_file): Change implementation of entries_reversed list
51542         to rbtreehash.
51543         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51544
51545 2008-02-17  Bruno Haible  <bruno@clisp.org>
51546
51547         New option --split-merged-entry.
51548         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51549         (find_paragraph_end, try_split_merged_entry): New functions.
51550         (long_options): Add option --split-merged-entry.
51551         (usage): Document option --split-merged-entry.
51552         (main): Implement option --split-merged-entry.
51553         Reported by Eric Blake.
51554
51555 2008-02-17  Bruno Haible  <bruno@clisp.org>
51556
51557         * lib/git-merge-changelog.c: Include c-strstr.h.
51558         (main): Support the "git pull --rebase" situation.
51559         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51560         Reported by Eric Blake.
51561
51562 2008-02-16  Eric Blake  <ebb9@byu.net>
51563
51564         Avoid doubling \ in common case of "c-maybe" quoting style.
51565         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51566         eliding outer quotes.
51567         * lib/quotearg.h: Document this.
51568         * tests/test-quotearg.c (result_strings, inputs, results_g)
51569         (flag_results, locale_results): Test it by adding a new string to
51570         each test group.
51571         (compare_strings): Test new string.
51572
51573 2008-02-13  Eric Blake  <ebb9@byu.net>
51574
51575         Avoid trigraph quoting in default output.
51576         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51577         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51578         unless explicitly requested.
51579         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51580
51581 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51582
51583         Don't rely on signed integer overflowing to negative value.
51584         * lib/getugroups.c (getugroups): Include <limits.h>.
51585         Instead, compare against INT_MAX, and increment only if the test passes.
51586
51587 2008-02-13  Jim Meyering  <meyering@redhat.com>
51588         and Eric Blake  <ebb9@byu.net>
51589
51590         Avoid shadowing warning and compile errors on Linux.
51591         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51592         forwarding macros on Linux.
51593         (dcgettext): Define a stub, for Linux.
51594         (results_g, main): Avoid warnings.
51595
51596 2008-02-12  Eric Blake  <ebb9@byu.net>
51597
51598         Silence warning in last patch.
51599         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51600
51601         Quotearg part 4: add tests, fix c-maybe colon quoting.
51602         * lib/quotearg.h: Improve documentation.
51603         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51604         escapes when adding outer quotes.  When quoting trigraphs, use
51605         valid C notation.  When quoting NUL, omit extra characters if next
51606         character is not digit.  Alter prototype.
51607         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51608         callers.
51609         * modules/quotearg-tests: New module.
51610         * tests/test-quotearg.c: New test.
51611
51612 2008-02-07  Eric Blake  <ebb9@byu.net>
51613
51614         Quotearg part 3: add flag to control outer quote elision.
51615         * lib/quotearg.h (c_maybe_quoting_style): New style.
51616         (enum quoting_flags): Better documentation of flags.
51617         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51618         c-maybe style.
51619         (quotearg_buffer_restyled): Handle new flag to elide outer
51620         quotes.
51621
51622         Quotearg part 2: add flag that can control NUL elision.
51623         * lib/quotearg.h (set_quoting_flags): New prototype.
51624         * lib/quotearg.c (struct quoting_options): Add flag field.
51625         (set_quoting_flags): New function.
51626         (quotearg_buffer_restyled): Add flags parameter.
51627         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51628         (quotearg_n_options): Set the flag, since length cannot be
51629         returned.
51630         (quoting_options_from_style): Default flags correctly.
51631
51632         Quotearg part 1: more wrappers, restore quotearg_char state.
51633         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51634         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51635         (quotearg_colon_mem): New wrappers.
51636         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51637         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51638         functions.
51639         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51640         (quotearg_colon_mem): New functions.
51641
51642 2008-02-11  Bruno Haible  <bruno@clisp.org>
51643
51644         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51645         library in the current directory: it does not work with parallel make.
51646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51647
51648 2008-02-11  Bruno Haible  <bruno@clisp.org>
51649
51650         * .gitattributes: New file.
51651
51652 2008-02-11  Jim Meyering  <meyering@redhat.com>
51653
51654         useless-if-before-free: Fix reversed exit values.
51655         * build-aux/useless-if-before-free: Use correct values
51656         for EXIT_MATCH and EXIT_NO_MATCH.
51657
51658         * build-aux/useless-if-before-free: Close stdout carefully.
51659
51660 2008-02-10  Bruno Haible  <bruno@clisp.org>
51661
51662         New module 'git-merge-changelog'.
51663         * modules/git-merge-changelog: New file.
51664         * lib/git-merge-changelog.c: New file.
51665
51666 2008-02-10  Jim Meyering  <meyering@redhat.com>
51667
51668         useless-if-before-free: New option: --list (-l).
51669
51670         useless-if-before-free: Don't exit immediately upon open failure.
51671         * build-aux/useless-if-before-free: Exit 2 for errors.
51672         Upon failure to open a file, don't exit immediately.
51673         Rather, just warn and continue with any remaining files.
51674
51675 2008-02-10  Bruno Haible  <bruno@clisp.org>
51676
51677         New abstract list operation 'node_set_value'.
51678         * lib/gl_list.h (gl_list_node_set_value): New function.
51679         (struct gl_list_implementation): New field node_set_value.
51680         * lib/gl_list.c (gl_list_node_set_value): New function.
51681         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51682         (gl_array_list_implementation): Update.
51683         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51684         (gl_carray_list_implementation): Update.
51685         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51686         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51687         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51688         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51689         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51690         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51691         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51692         Update.
51693         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51694         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51695         (gl_sublist_list_implementation): Update.
51696
51697 2008-02-10  Bruno Haible  <bruno@clisp.org>
51698
51699         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51700         Needed when ELEMENT is #defined to 'some_type *'.
51701
51702 2008-02-10  Jim Meyering  <meyering@redhat.com>
51703
51704         New script and module: useless-if-before-free
51705         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51706         * build-aux/useless-if-before-free: New file.
51707         * modules/useless-if-before-free: New file.
51708
51709         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51710
51711         xstrtol_error: Fix typo.
51712         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51713         s/exit_failure/exit_status/.
51714
51715 2008-02-09  Jim Meyering  <meyering@redhat.com>
51716
51717         New script and module: gitlog-to-changelog
51718         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51719         * modules/gitlog-to-changelog: New file.
51720         * build-aux/gitlog-to-changelog: New file.
51721
51722 2008-02-08  Jim Meyering  <meyering@redhat.com>
51723
51724         Avoid two "parameter unused" warnings.
51725         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51726         Mark "st" as used.
51727
51728         Use "git COMMAND", not "git-COMMAND".
51729         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51730         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51731         * build-aux/git-version-gen: Use "git status", not "git-status".
51732
51733 2008-02-07  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51736         Avoids a crash on Windows Vista.
51737         Reported by Adam Strzelecki <ono@java.pl> via
51738         Simon Josefsson <simon@josefsson.org>.
51739
51740 2008-02-06  Bruno Haible  <bruno@clisp.org>
51741
51742         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51743         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51744         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51746         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51748         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51749         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51750         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51751         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51752         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51753         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51756         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51757         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51758         left-adjust flag.
51759         * tests/test-snprintf-posix.h (test_function): Likewise.
51760         * tests/test-sprintf-posix.h (test_function): Likewise.
51761         * tests/test-vasprintf-posix.c (test_function): Likewise.
51762         * doc/posix-functions/fprintf.texi: Update.
51763         * doc/posix-functions/printf.texi: Update.
51764         * doc/posix-functions/snprintf.texi: Update.
51765         * doc/posix-functions/sprintf.texi: Update.
51766         * doc/posix-functions/vfprintf.texi: Update.
51767         * doc/posix-functions/vprintf.texi: Update.
51768         * doc/posix-functions/vsnprintf.texi: Update.
51769         * doc/posix-functions/vsprintf.texi: Update.
51770         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51771
51772 2008-02-06  Bruno Haible  <bruno@clisp.org>
51773
51774         Fix bug introduced on 2008-01-26.
51775         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51776
51777 2008-02-06  Bruno Haible  <bruno@clisp.org>
51778
51779         Fix bug introduced on 2007-06-10.
51780         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51781         !NEED_PRINTF_FLAG_ZERO.
51782
51783 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51784
51785         getloadavg: use libperfstat on AIX5
51786         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51787
51788 2008-02-03  Bruno Haible  <bruno@clisp.org>
51789
51790         * lib/diffseq.h: Add comments about required #includes.
51791         Reported by Michael Biggs <gnulib@doubleplum.net>.
51792
51793 2008-02-01  Bruno Haible  <bruno@clisp.org>
51794
51795         * users.txt: Add gnuit.
51796
51797 2008-01-31  Bruno Haible  <bruno@clisp.org>
51798
51799         * lib/md4.c (set_uint32): Mark as inline.
51800         * lib/md5.c (set_uint32): Likewise.
51801         * lib/sha1.c (set_uint32): Likewise.
51802         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51803         * m4/md5.m4 (gl_MD5): Likewise.
51804         * m4/sha1.m4 (gl_SHA1): Likewise.
51805
51806 2008-01-31  Jim Meyering  <meyering@redhat.com>
51807
51808         Use "sizeof VAR", rather than a literal "4".
51809         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51810         * lib/md4.c (md4_read_ctx): Likewise.
51811         * lib/sha1.c (sha1_read_ctx): Likewise.
51812
51813 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51814
51815         * tests/test-sha1.c: New file, based on test-md5.c.
51816
51817         * modules/crypto/sha1-tests: New file.
51818
51819 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51820
51821         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51822
51823 2008-01-31  Jim Meyering  <meyering@redhat.com>
51824
51825         Prefer "sizeof v" over the equivalent "4".
51826         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51827         * lib/md5.c (set_uint32): Likewise.
51828         * lib/sha1.c (set_uint32): Likewise.
51829
51830 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51831
51832         * lib/sha1.c (set_uint32): Mark function as static.
51833
51834 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51835
51836         md2: clarify comments to say that alignment is not required.
51837         * lib/md2.h: Remove warning about alignment in comment.
51838         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51839         never been required.
51840
51841 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51842
51843         md4: adapt alignment constraint fix from sha1.
51844         * lib/md4.c (set_uint32): New function, from sha1.c
51845         (md4_read_ctx): Use it.
51846         (md4_finish_ctx): Doc fix.
51847         * lib/md4.h: Doc fix.
51848
51849 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51850
51851         md5: adapt alignment constraint fix from sha1.
51852         * lib/md5.c (set_uint32): New function, from sha1.c
51853         (md5_read_ctx): Use it.
51854         (md5_finish_ctx): Doc fix.
51855         * lib/md5.h: Doc fix.
51856
51857 2008-01-30  Peter Palfrader  <weasel@debian.org>
51858
51859         sha1: remove the result buffer alignment constraint
51860         * lib/sha1.c (set_uint32): New function.
51861         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51862         constraint.
51863         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51864         * lib/sha1.h: Likewise.
51865
51866 2008-01-30  Andreas Schwab  <schwab@suse.de>
51867             Bruno Haible  <bruno@clisp.org>
51868
51869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51870         correct definition of LDBL_MIN_EXP.
51871
51872 2008-01-30  Karl Berry  <karl@gnu.org>
51873
51874         * config/srclist-update: try to preserve x bit on updates.
51875         * config/srclistvars.sh: update for karl.
51876
51877 2008-01-29  Jim Meyering  <meyering@redhat.com>
51878
51879         vasnprintf.c: Avoid warning about unused label
51880         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51881         "overflow" label definition and associated code with the
51882         same cpp condition that guards the sole use of that label.
51883
51884 2008-01-26  Bruno Haible  <bruno@clisp.org>
51885
51886         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51887         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51888         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51889         * lib/isnanl-nolibm.h (isnanl): Likewise.
51890         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51891
51892 2008-01-26  Bruno Haible  <bruno@clisp.org>
51893
51894         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51895         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51896
51897 2008-01-26  Bruno Haible  <bruno@clisp.org>
51898
51899         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51900         GCC >= 4.0 built-in.
51901         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51902
51903 2008-01-26  Bruno Haible  <bruno@clisp.org>
51904
51905         Rename isnan, applicable to 'double' only, to isnand.
51906         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51907         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51908         (configure.ac): Update.
51909         (Include): Replace "isnan.h" with "isnand.h".
51910         * m4/isnand.m4: Renamed from m4/isnan.m4.
51911         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51912         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51913         instead of isnan.c.
51914         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51915         instead of HAVE_ISNAN_IN_LIBC.
51916         (isnand): Renamed from isnan.
51917         * lib/isnand.c: New file.
51918         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51919         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51920         (Makefile.am): Update.
51921         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51922         Include isnand.h instead of isnan.h.
51923         (main): Test isnand instead of isnan.
51924         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51925         isnan-nolibm.
51926         * modules/frexp (Depends-on): Likewise.
51927         * modules/frexp-tests (Depends-on): Likewise.
51928         * modules/frexp-nolibm (Depends-on): Likewise.
51929         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51930         * modules/isfinite (Depends-on): Likewise.
51931         * modules/round-tests (Depends-on): Likewise.
51932         * modules/signbit (Depends-on): Likewise.
51933         * modules/signbit-tests (Depends-on): Likewise.
51934         * modules/snprintf-posix (Depends-on): Likewise.
51935         * modules/sprintf-posix (Depends-on): Likewise.
51936         * modules/trunc-tests (Depends-on): Likewise.
51937         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51938         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51939         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51940         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51941         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51942         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51943         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51944         * modules/vasnprintf-posix (Depends-on): Likewise.
51945         * modules/vasprintf-posix (Depends-on): Likewise.
51946         * modules/vfprintf-posix (Depends-on): Likewise.
51947         * modules/vsnprintf-posix (Depends-on): Likewise.
51948         * modules/vsprintf-posix (Depends-on): Likewise.
51949         * lib/frexp.c: Include isnand.h instead of isnan.h.
51950         (ISNAN): Set to isnand instead of isnan.
51951         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51952         (gl_isfinited): Use isnand instead of isnan.
51953         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51954         (gl_signbitd): Use isnand instead of isnan.
51955         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51956         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51957         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51958         (main): Use isnand instead of isnan.
51959         * tests/test-round1.c: Include isnand.h.
51960         (main): Use isnand instead of isnan.
51961         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51962         (ISNAN): Set to isnand instead of isnan.
51963         * tests/test-trunc1.c: Include isnand.h.
51964         (main): Use isnand instead of isnan.
51965         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51966         (equal): Use isnand instead of isnan.
51967         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51968         isnand-nolibm.
51969         * NEWS: Mention the change.
51970
51971 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51972             Bruno Haible  <bruno@clisp.org>
51973
51974         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51975         the GCC builtins for signbits are present and set
51976         REPLACE_SIGNBIT_USING_GCC if so.
51977         * lib/math.in.h (signbit): Define using GCC builtins if
51978         REPLACE_SIGNBIT_USING_GCC is set.
51979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51980         REPLACE_SIGNBIT_USING_GCC.
51981         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51982
51983 2008-01-25  Jim Meyering  <meyering@redhat.com>
51984
51985         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51986         * lib/poll.c: Include <config.h>, not "config.h".
51987         * tests/test-getaddrinfo.c: Likewise.
51988
51989 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51990
51991         * modules/sockets-tests: New file.
51992
51993 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51994
51995         * modules/sockets: New module, can be used to call WSA_Startup and
51996         WSA_Cleanup when needed.
51997
51998         * lib/sockets.h, lib/sockets.c: New files.
51999
52000         * m4/sockets.m4: New file.
52001
52002         * tests/test-sockets.c: New file.
52003
52004 2008-01-19  Bruno Haible  <bruno@clisp.org>
52005
52006         * doc/posix-headers: Renamed from doc/headers.
52007         * doc/posix-functions: Renamed from doc/functions.
52008         * doc/gnulib.texi: Update.
52009
52010 2008-01-19  Bruno Haible  <bruno@clisp.org>
52011
52012         * doc/glibc-functions/strcasestr.texi: Include contents of
52013         doc/functions/strcasestr.texi, fixing the list of platforms.
52014         * doc/functions/strcasestr.texi: Remove file.
52015
52016 2008-01-19  Bruno Haible  <bruno@clisp.org>
52017
52018         * doc/glibc-functions/memmem.texi: Include contents of
52019         doc/functions/memmem.texi.
52020         * doc/functions/memmem.texi: Remove file.
52021
52022 2008-01-18  Bruno Haible  <bruno@clisp.org>
52023
52024         * doc/glibc-functions/*.texi: New files.
52025         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52026         to use the new files.
52027
52028 2008-01-17  Bruno Haible  <bruno@clisp.org>
52029
52030         * tests/test-gethostname.c (main): Fix printf statement.
52031
52032 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52033
52034         * modules/gethostname-tests: New file.
52035
52036         * tests/test-gethostname.c: New file.
52037
52038 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52039
52040         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52041         used by the UNAME case.  Reported by Bruno Haible
52042         <bruno@clisp.org>.
52043
52044 2008-01-17  Eric Blake  <ebb9@byu.net>
52045
52046         Convert c-strcasestr to be more efficient.
52047         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52048         (Depends-on): Add c-strcase, remove malloca, strnlen.
52049         * tests/test-c-strcasestr.c (main): Enhance test.
52050         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52051
52052 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52053
52054         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52055         Use it in creating po/Makevars.
52056
52057 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52058
52059         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52060         Applications that requires it should initialize libgcrypt
52061         manually.
52062
52063 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52064
52065         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52066
52067 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52068
52069         Fix problem with getdate on mingw32 reported by Simon Josefsson
52070         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52071         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52072         tzname", when deciding whether to declare tzname.
52073         * lib/strftime.c (tzname): Likewise.
52074
52075 2008-01-15  Bruno Haible  <bruno@clisp.org>
52076
52077         Work around a MacOS X 10.5 bug in frexpl().
52078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52079         * doc/functions/frexpl.texi: Document the bug.
52080         Reported by Elias Pipping <pipping@gentoo.org>.
52081
52082 2008-01-14  Eric Blake  <ebb9@byu.net>
52083
52084         Touch up previous patch.
52085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52086         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52087
52088         Convert strcasestr module to use Two-Way algorithm.
52089         * modules/strcasestr-simple: New module, based on the old
52090         strcasestr, but with Two-Way rather than KMP.
52091         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52092         * lib/string.in.h (rpl_strcasestr): Declare.
52093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52094         performance.
52095         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52096         * modules/string (Makefile.am): Support strcasestr.
52097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52098         * modules/strcasestr-tests (Depends-on): Check for alarm.
52099         * tests/test-strcasestr.c: Augment test.
52100         * lib/str-two-way.h: Clean up stray macro.
52101         * NEWS: Document new module.
52102         * MODULES.html.sh (string handling): Likewise.
52103         * doc/functions/strcasestr.texi: New file.
52104         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52105         here, since it is not a POSIX function.
52106
52107 2008-01-14  Colin Watson  <cjwatson@debian.org>
52108             Bruno Haible  <bruno@clisp.org>
52109
52110         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52111         works fine; if not, set REPLACE_STRSIGNAL.
52112         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52114         REPLACE_STRSIGNAL.
52115         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52116         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52117         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52118
52119 2008-01-14  Bruno Haible  <bruno@clisp.org>
52120
52121         * modules/strsignal (Include): Change to <string.h>.
52122
52123 2008-01-14  Colin Watson  <cjwatson@debian.org>
52124
52125         * modules/argp (Notice): Add a notice recommending to change
52126         XGETTEXT_OPTIONS.
52127         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52128
52129 2008-01-13  Colin Watson  <cjwatson@debian.org>
52130
52131         * modules/strsignal-tests: New file.
52132         * tests/test-strsignal.c: New file.
52133
52134         * lib/strsignal.c: New file, from glibc with modifications.
52135         * lib/siglist.h: New file, from glibc with modifications.
52136         * lib/string.in.h (strsignal): New declaration.
52137         * m4/strsignal.m4: New file.
52138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52139         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52140         * modules/strsignal: New file.
52141         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52142         HAVE_DECL_STRSIGNAL.
52143
52144 2008-01-13  Bruno Haible  <bruno@clisp.org>
52145
52146         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52147         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52148         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52149         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52150
52151 2008-01-13  Bruno Haible  <bruno@clisp.org>
52152
52153         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52154         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52155         * lib/argp.h (__attribute__): Likewise.
52156         * lib/c-stack.c (__attribute__): Likewise.
52157         * lib/error.h (__attribute__): Likewise.
52158         * lib/fts.c (__attribute__): Likewise.
52159         * lib/openat.h (__attribute__): Likewise.
52160         * lib/stdio.in.h (__attribute__): Likewise.
52161         * lib/string.in.h (__attribute__): Likewise.
52162         * lib/utimens.c (__attribute__): Likewise.
52163         * lib/vasnprintf.h (__attribute__): Likewise.
52164         * lib/xalloc.h (__attribute__): Likewise.
52165         * lib/xprintf.h (__attribute__): Likewise.
52166         * lib/xstrtol.h (__attribute__): Likewise.
52167         * lib/xvasprintf.h (__attribute__): Likewise.
52168
52169 2008-01-12  Bruno Haible  <bruno@clisp.org>
52170
52171         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52172         * doc/glibc-headers/a.out.texi: New file.
52173         * doc/glibc-headers/aliases.texi: New file.
52174         * doc/glibc-headers/alloca.texi: New file.
52175         * doc/glibc-headers/ar.texi: New file.
52176         * doc/glibc-headers/argp.texi: New file.
52177         * doc/glibc-headers/argz.texi: New file.
52178         * doc/glibc-headers/byteswap.texi: New file.
52179         * doc/glibc-headers/crypt.texi: New file.
52180         * doc/glibc-headers/endian.texi: New file.
52181         * doc/glibc-headers/envz.texi: New file.
52182         * doc/glibc-headers/err.texi: New file.
52183         * doc/glibc-headers/error.texi: New file.
52184         * doc/glibc-headers/execinfo.texi: New file.
52185         * doc/glibc-headers/fpu_control.texi: New file.
52186         * doc/glibc-headers/fstab.texi: New file.
52187         * doc/glibc-headers/fts.texi: New file.
52188         * doc/glibc-headers/getopt.texi: New file.
52189         * doc/glibc-headers/ieee754.texi: New file.
52190         * doc/glibc-headers/ifaddrs.texi: New file.
52191         * doc/glibc-headers/libintl.texi: New file.
52192         * doc/glibc-headers/mcheck.texi: New file.
52193         * doc/glibc-headers/mntent.texi: New file.
52194         * doc/glibc-headers/obstack.texi: New file.
52195         * doc/glibc-headers/paths.texi: New file.
52196         * doc/glibc-headers/printf.texi: New file.
52197         * doc/glibc-headers/pty.texi: New file.
52198         * doc/glibc-headers/resolv.texi: New file.
52199         * doc/glibc-headers/shadow.texi: New file.
52200         * doc/glibc-headers/sysexits.texi: New file.
52201         * doc/glibc-headers/ttyent.texi: New file.
52202
52203 2008-01-12  Jim Meyering  <meyering@redhat.com>
52204
52205         announce-gen: emit Gnulib's git-based version string.
52206         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52207         New option --gnulib-version=V, where V is expected to be
52208         the output of running git describe in the gnulib directory.
52209         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52210         not useful, and plan to stop publishing an xdelta file with each
52211         coreutils release.
52212
52213         * build-aux/announce-gen: Also check for lzma-compressed files.
52214
52215 2008-01-11  Bruno Haible  <bruno@clisp.org>
52216
52217         * tests/test-memmem.c (main): Increase maximum allowed time.
52218         * tests/test-strstr.c (main): Likewise.
52219
52220 2008-01-11  Bruno Haible  <bruno@clisp.org>
52221
52222         * doc/functions/memmem.texi: Add more precisions about platforms.
52223         * doc/functions/strstr.texi: Likewise.
52224
52225 2008-01-10  Eric Blake  <ebb9@byu.net>
52226
52227         * m4/strstr.m4: Delete cruft from copy-n-paste.
52228         Reported by Bruno Haible.
52229
52230 2008-01-10  Bruno Haible  <bruno@clisp.org>
52231
52232         Make c-strstr rely on strstr.
52233         * lib/c-strstr.c: Don't include str-kmp.h.
52234         (c_strstr): Define in terms of strstr.
52235         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52236         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52237
52238 2008-01-10  Bruno Haible  <bruno@clisp.org>
52239
52240         * doc/gnulib.texi (String Functions in C Locale): New section.
52241         * doc/c-ctype.texi: New file.
52242         * doc/c-strcase.texi: New file.
52243         * doc/c-strcaseeq.texi: New file.
52244         * doc/c-strcasestr.texi: New file.
52245         * doc/c-strstr.texi: New file.
52246         * doc/c-strtod.texi: New file.
52247         * doc/c-strtold.texi: New file.
52248
52249 2008-01-10  Eric Blake  <ebb9@byu.net>
52250
52251         * lib/relocatable.h: Fix a comment.
52252
52253 2008-01-10  Eric Blake  <ebb9@byu.net>
52254
52255         Share two-way algorithm.
52256         * lib/str-two-way.h: New file, merged from...
52257         * lib/memmem.c: ...here...
52258         * lib/strstr.c: ...and here.
52259         * modules/memmem (Files): Use it.
52260         * modules/strstr (Files): Likewise.
52261
52262         Avoid quadratic strstr implementations.
52263         * lib/strstr.c: New file.
52264         * m4/strstr.m4: Likewise.
52265         * modules/strstr: Likewise.
52266         * modules/strstr-tests: Likewise.
52267         * tests/test-strstr.c: Likewise.
52268         * lib/string.in.h (rpl_strstr): Declare.
52269         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52271         * modules/string (Makefile.am): Likewise.
52272         * MODULES.html.sh (string handling): Mention new module.
52273         * doc/functions/strstr.texi (strstr): Document the bug.
52274
52275 2008-01-10  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/relocatable.h (relocate): State whether result is freshly
52278         allocated or not.
52279         * lib/relocatable.c (relocate): Return a freshly allocated string
52280         instead of a pointer to a privately held string.
52281         Reported by Sylvain Beucler <beuc@gnu.org>.
52282
52283 2008-01-10  Colin Watson  <cjwatson@debian.org>
52284
52285         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52286         s/S_ISNLK/S_ISLNK/.
52287
52288 2008-01-09  Bruno Haible  <bruno@clisp.org>
52289
52290         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52291         and other files.
52292         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52293         if it's only a guess.
52294         * modules/memmem: Simplify by depending on memmem-simple.
52295
52296 2008-01-09  Bruno Haible  <bruno@clisp.org>
52297
52298         Work around OpenBSD 4.0 tdelete() bug.
52299         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52300         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52301         macros and don't redefine the enum values.
52302         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52303         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52304         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52305
52306 2008-01-09  Bruno Haible  <bruno@clisp.org>
52307
52308         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52309         (main): Don't perform the tests if setlocale did not install a UTF-8
52310         locale. Needed on OpenBSD 4.0.
52311         * modules/wcwidth-tests (Depends-on): Add localcharset.
52312
52313 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52314
52315         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52316         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52317         * NEWS: announce this.
52318         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52319
52320 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52321         and Eric Blake  <ebb9@byu.net>
52322
52323         Add memmem-simple module.
52324         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52325         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52326         * modules/memmem-simple: New file.
52327         * modules/memmem (Description): Tweak.
52328         * MODULES.html.sh (string handling): Mention new module.
52329         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52330         addressed by memmem-simple.
52331         * NEWS: Document the difference.
52332
52333 2008-01-09  Eric Blake  <ebb9@byu.net>
52334
52335         Give gcc some memmem optimization hints.
52336         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52337         (strcasestr): Declare as pure.
52338         * modules/memmem (Maintainer): Claim my implementation.
52339
52340 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52341
52342         Support AIX 6.1 and higher.
52343         * build-aux/config.libpath: Likewise.
52344         * build-aux/config.rpath: Likewise.
52345
52346 2008-01-08  Jim Meyering  <meyering@redhat.com>
52347             Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52350         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52351         Reported by Peter Fales in
52352         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52353
52354 2008-01-08  Bruno Haible  <bruno@clisp.org>
52355
52356         * modules/unictype/category-of (Depends-on): Add
52357         unictype/category-none.
52358         * modules/unictype/category-and-tests (Depends-on): Add
52359         unictype/category-{L,N,Lu,Nd}.
52360         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52361         * modules/unictype/category-or-tests (Depends-on): Add
52362         unictype/category-{L,N}.
52363         * modules/unictype/category-name-tests (Depends-on): Add
52364         unictype/category-{Z,Nl}.
52365         Reported by Simon Josefsson.
52366
52367 2008-01-08  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52370         convention better.
52371         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52372         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52373         Reported by Peter Miller <millerp@canb.auug.org.au>.
52374
52375 2008-01-08  Eric Blake  <ebb9@byu.net>
52376
52377         Rewrite memmem to guarantee linear complexity without malloc.
52378         * lib/memmem.c (memmem): Use Two-Way rather than
52379         Knuth-Morris-Pratt, to allow O(1) space usage.
52380         (critical_factorization, two_way_short_needle)
52381         (two_way_long_needle): New functions.
52382         (knuth_morris_pratt): Delete.
52383         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52384         Add stdint.
52385         * tests/test-memmem.c (main): Add tests for periodic needle and
52386         sublinear performance.
52387         * doc/functions/memmem.texi (memmem): Document other deficiencies
52388         in cygwin and older glibc.
52389
52390 2008-01-08  Bruno Haible  <bruno@clisp.org>
52391
52392         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52393         augmentation.
52394
52395 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52396
52397         Add a configure time option: --disable-acl.
52398         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52399         AC_ARG_ENABLE(acl).
52400
52401 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52402
52403         * tests/test-localename.c: Don't include obsolete "setenv.h".
52404
52405         * modules/localename-tests (Depends-on): Need unsetenv.
52406
52407 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52408
52409         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52410
52411 2008-01-06  Colin Watson  <cjwatson@debian.org>
52412
52413         * users.txt: Add man-db.
52414
52415 2008-01-07  Bruno Haible  <bruno@clisp.org>
52416
52417         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52418         previous section name.
52419
52420 2008-01-07  Bruno Haible  <bruno@clisp.org>
52421
52422         * lib/progname.c (set_program_name): Don't strip off a leading
52423         "lt-" prefix outside a .libs directory.
52424         Suggested by Paul Eggert.
52425
52426 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52427             Bruno Haible  <bruno@clisp.org>
52428
52429         Improve memory cleanup in 'relocatable' module.
52430         * lib/relocatable.h (compute_curr_prefix): Change return type to
52431         'char *'.
52432         * lib/relocatable.c (compute_curr_prefix): Change return type to
52433         'char *'. Free curr_installdir after use.
52434         (relocate): Free curr_prefix_better after use.
52435         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52436
52437 2008-01-01  Bruno Haible  <bruno@clisp.org>
52438
52439         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52440         failure on older glibc systems.
52441         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52442
52443 2008-01-05  Eric Blake  <ebb9@byu.net>
52444
52445         Avoid quadratic system memmem.
52446         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52447         Reported by Ralf Wildenhues.
52448
52449         Fix memmem test for mingw.
52450         * modules/memmem-tests (configure.ac): Check for alarm.
52451         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52452         it.
52453         * doc/functions/memmem.texi: New file.
52454         * doc/gnulib.texi (Function Substitutes): Add memmem.
52455         Reported by Bruno Haible.
52456
52457 2008-01-04  Bruno Haible  <bruno@clisp.org>
52458
52459         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52460         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52461         gl_HEADER_STRING_H_DEFAULTS.
52462
52463 2008-01-04  Eric Blake  <ebb9@byu.net>
52464
52465         Shorten duration of memmem test.
52466         * tests/test-memmem.c (main): Use alarm to declare failure if test
52467         is taking too long.
52468         Reported by Ralf Wildenhues.
52469
52470 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52471
52472         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52473         string, needed by strerror.
52474
52475 2008-01-03  Colin Watson  <cjwatson@debian.org>
52476             Bruno Haible  <bruno@clisp.org>
52477
52478         * doc/gnulib-tool.texi (Localization): New section.
52479
52480 2008-01-02  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52483         variables to 'unsigned char *' type.
52484         Reported by Paul Eggert.
52485
52486 2008-01-02  Jim Meyering  <jim@meyering.net>
52487
52488         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52489
52490 2007-12-31  Jim Meyering  <jim@meyering.net>
52491
52492         Avoid use of private FTS type name.
52493         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52494
52495 2007-12-30  Karl Berry  <karl@gnu.org>
52496
52497         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52498         work around defect in Texinfo and/or the standalone Info browser.
52499
52500 2007-12-30  Bruno Haible  <bruno@clisp.org>
52501
52502         Unify 5 copies of the KMP code.
52503         * lib/str-kmp.h: New file.
52504         * lib/c-strcasestr.c: Include str-kmp.h.
52505         (knuth_morris_pratt): Remove function.
52506         (c_strcasestr): Update.
52507         * lib/c-strstr.c: Include str-kmp.h.
52508         (knuth_morris_pratt): Remove function.
52509         (c_strcasestr): Update.
52510         * lib/mbscasestr.c: Include str-kmp.h.
52511         (knuth_morris_pratt_unibyte): Remove function.
52512         * lib/mbsstr.c: Include str-kmp.h.
52513         (knuth_morris_pratt_unibyte): Remove function.
52514         * lib/strcasestr.c: Include str-kmp.h.
52515         (knuth_morris_pratt): Remove function.
52516         (strcasestr): Update.
52517         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52518         * modules/c-strstr (Files): Likewise.
52519         * modules/mbscasestr (Files): Likewise.
52520         * modules/mbsstr (Files): Likewise.
52521         * modules/strcasestr (Files): Likewise.
52522         Suggested by Paul Eggert.
52523
52524 2007-12-30  Bruno Haible  <bruno@clisp.org>
52525
52526         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52527         defined.
52528
52529 2007-12-30  Bruno Haible  <bruno@clisp.org>
52530
52531         * lib/xmalloca.h: Include xalloc.h.
52532         (xnmalloca): New macro.
52533
52534 2007-12-30  Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/malloca.h (nmalloca): New macro.
52537         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52538         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52539         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52540         knuth_morris_pratt_multibyte): Likewise.
52541         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52542         knuth_morris_pratt_multibyte): Likewise.
52543         * lib/memmem.c (knuth_morris_pratt): Likewise.
52544         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52545
52546 2007-12-25  Bruno Haible  <bruno@clisp.org>
52547
52548         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52549         * lib/glob.c: Don't include openat.h.
52550         (link_exists2_p): Add back the code that deals with the
52551         !GLOB_ALTDIRFUNC case.
52552         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52553         let it do the filename concatenation.
52554         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52555         * modules/glob (Depends-on): Remove openat.
52556
52557 2007-12-31  Bruno Haible  <bruno@clisp.org>
52558
52559         * modules/dirfd (License): Change to LGPLv2+.
52560         Approved by Jim Meyering.
52561
52562 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52565         when multiplying M by sizeof (size_t).
52566
52567 2007-12-10  Martin Lambers  <marlam@marlam.de>
52568
52569         Override getpagesize on mingw.
52570         * lib/getpagesize.c: New file.
52571         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52572         * modules/getpagesize (Files): Add lib/getpagesize.c.
52573         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52575         REPLACE_GETPAGESIZE.
52576         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52577
52578 2007-12-25  Bruno Haible  <bruno@clisp.org>
52579
52580         * modules/localcharset (Notice): New field.
52581         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52582         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52583
52584 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52585             Bruno Haible  <bruno@clisp.org>
52586
52587         Avoid using the syntax symbol() in formatted documentation.
52588         * MODULES.html.sh (func_module): When replacing symbol() with a
52589         hyperlink, remove the parentheses. Show an error if some remain.
52590         Recognize and render the '...' syntax.
52591         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52592         Rework. Add paragraph about GCC's inlining.
52593         * doc/alloca.texi: Likewise.
52594         * doc/error.texi: Remove parentheses from symbol reference.
52595         * doc/gnulib-intro.texi: Likewise.
52596         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52597         * modules/fnmatch (Description): Reword to say "the ... function".
52598         * modules/full-read (Description): Likewise.
52599         * modules/full-write (Description): Likewise.
52600         * modules/safe-read (Description): Likewise.
52601         * modules/safe-write (Description): Likewise.
52602         * modules/strchrnul (Description): Likewise.
52603         * modules/trim (Description): Likewise.
52604         * modules/error (Description): Remove parentheses from symbol
52605         references.
52606         * modules/verror (Description): Likewise.
52607         Reported by Karl Berry.
52608
52609 2007-12-25  Bruno Haible  <bruno@clisp.org>
52610
52611         Fixup after 2007-10-16 commit.
52612         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52613
52614 2007-12-24  Bruno Haible  <bruno@clisp.org>
52615
52616         Make --enable-relocatable work with DESTDIR.
52617         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52618         to compute installdir from destprog.
52619         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52620         also set the RELOC_DESTDIR variable.
52621         Reported by Левашев Иван <octagram@bluebottle.com>.
52622
52623 2007-12-24  Bruno Haible  <bruno@clisp.org>
52624
52625         Fix link error due to xalloc_die().
52626         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52627         of xreadlink.
52628         * lib/relocwrapper.c: Update comments.
52629         * build-aux/install-reloc: Remove xreadlink.c from file list.
52630         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52631         xreadlink.c.
52632         Reported by Левашев Иван <octagram@bluebottle.com>.
52633
52634 2007-12-24  Bruno Haible  <bruno@clisp.org>
52635
52636         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52637         * lib/setenv.h: Remove file.
52638         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52639         lib/setenv.h.
52640         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52641         (Depends-on): Add stdlib.
52642         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52643         gl_FUNC_UNSETENV.
52644         (Include): Replace setenv.h with <stdlib.h>.
52645         * modules/unsetenv: New file.
52646         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52647         * lib/unsetenv.c: Include <stdlib.h> first.
52648         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52649         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52650         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52651         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52652         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52653         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52655         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52656         * doc/functions/unsetenv.texi: Update.
52657         * modules/xsetenv (Depends-on): Add unsetenv.
52658         * modules/getdate (Depends-on): Likewise.
52659         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52660         * lib/xsetenv.c: Don't include setenv.h.
52661         * lib/getdate.y: Likewise.
52662         * lib/relocwrapper.c: Likewise.
52663         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52664         (Depends-on): Add stdlib.
52665         * NEWS: Mention the changes.
52666         Reported by Левашев Иван <octagram@bluebottle.com>.
52667
52668 2007-12-23  Bruno Haible  <bruno@clisp.org>
52669
52670         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52671         indentation.
52672
52673 2007-12-23  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/c-strcasestr.c: Add more comments.
52676         * lib/c-strstr.c: Likewise.
52677         * lib/mbscasestr.c: Likewise.
52678         * lib/mbsstr.c: Likewise.
52679         * lib/strcasestr.c: Likewise.
52680         * lib/memmem.c: Likewise.
52681
52682 2007-12-23  Bruno Haible  <bruno@clisp.org>
52683
52684         * tests/test-memmem.c: Include <string.h> first.
52685
52686 2007-12-22  Bruno Haible  <bruno@clisp.org>
52687
52688         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52689         the contents of $testsbase.
52690         Reported by Ralf Wildenhues.
52691
52692 2007-12-22  Bruno Haible  <bruno@clisp.org>
52693
52694         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52695         two variables local_ldadd_before, local_ldadd_last.
52696
52697 2007-12-20  Eric Blake  <ebb9@byu.net>
52698
52699         Work around circular library issue when cross-compiling.
52700         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52701         that progname.o does not need to pull in rpl_memcmp.
52702
52703 2007-12-19  Eric Blake  <ebb9@byu.net>
52704
52705         Fix memmem to avoid O(n^2) worst-case complexity.
52706         * lib/memmem.c (knuth_morris_pratt): New function.
52707         (memmem): Use it if first few naive iterations fail.
52708         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52709         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52710         * modules/memchr (License): Likewise.
52711         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52712         malloca.
52713         * tests/test-memmem.c: Rewrite, borrowing ideas from
52714         test-mbsstr1.c; the old version wouldn't even compile!
52715         * modules/memmem-tests: New file.
52716         * lib/string.in.h (rpl_memmem): Add declaration.
52717         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52719         REPLACE_MEMMEM.
52720
52721 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52722
52723         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52724         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52725         before any system include files, and undef after them all.  This
52726         should fix a problem on VMS reported by John E. Malmberg in
52727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52728
52729 2007-12-17  Eric Blake  <ebb9@byu.net>
52730
52731         Revert addition of verify, for BSD/OS.
52732         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52733         can't handle large files, for the sake of obsolete platforms.
52734         * modules/fseeko (Depends-on): Remove verify.
52735         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52736         * doc/functions/ftello.texi (ftello): Likewise.
52737         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52738         Reported by Larry Jones.
52739
52740 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52741
52742         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52743         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52744
52745 2007-12-17  Jim Meyering  <meyering@redhat.com>
52746
52747         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52748         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52749         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52750         * modules/getcwd (Depends-on): Add openat.
52751         Reported by Petr Salinger.
52752
52753 2007-12-17  Bruno Haible  <bruno@clisp.org>
52754
52755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52756         avoid a segmentation fault of the configure test on x86_64 systems.
52757
52758 2007-12-15  Jim Meyering  <meyering@redhat.com>
52759
52760         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52761
52762 2007-12-13  Eric Blake  <ebb9@byu.net>
52763
52764         Another fseek test.
52765         * tests/test-fseek.c (main): Also test ungetc handling.
52766         * tests/test-fseeko.c (main): Likewise.
52767         * modules/fseeko (Depends-on): Add verify.
52768         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52769         large.
52770         Reported by Larry Jones.
52771
52772         Fix fseeko on mingw.
52773         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52774         seek.
52775
52776         Beef up fseek tests.
52777         * tests/test-fseek.c (main): Also test eof handling.
52778         * tests/test-fseeko.c (main): Likewise.
52779         Reported by Larry Jones.
52780
52781 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52782
52783         Fix fseeko on BSD-based platforms.
52784         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52785         successful seek.
52786
52787 2007-12-12  Eric Blake  <ebb9@byu.net>
52788
52789         Allow circular dependency of separate libtests.a
52790         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52791         when use_libtests.
52792
52793 2007-12-11  Eric Blake  <ebb9@byu.net>
52794
52795         Fix bug with -0.0L in previous patch.
52796         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52797         * tests/test-isnan.c (main): Also test on zeroes.
52798         * tests/test-isnanf.c (main): Likewise.
52799         * tests/test-isnanl.h (main): Likewise.
52800
52801         Detect pseudo-denormals on x86 even when cross-compiling.
52802         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52803         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52804         invalid bit patterns that happen to satisfy ==.
52805
52806         Avoid link failures with separate libtests.a.
52807         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52808         last, to satisfy circular dependencies.
52809
52810 2007-12-11  Eric Blake  <ebb9@byu.net>
52811         and Bruno Haible  <bruno@clisp.org>
52812
52813         Fix OpenBSD 4.0 <float.h> handling of long double.
52814         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52815         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52816         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52817
52818 2007-12-11  Jim Meyering  <meyering@redhat.com>
52819
52820         * users.txt: Add libvirt.
52821
52822         Support versions of autoconf prior to 2.59c.
52823         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52824         if it is not already defined.
52825
52826 2007-12-09  Bruno Haible  <bruno@clisp.org>
52827
52828         Let 'gnulib-tool --import' collect sources needed for the tests in
52829         tests/ rather than in lib/.
52830         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52831         argument. If true, add rules to generate libtests.a, and put libtests.a
52832         into $(LDADD). Consider source files in subdirectories and set
52833         uses_subdirs.
52834         (func_emit_initmacro_start, func_emit_initmacro_end,
52835         func_emit_initmacro_done): Pass all arguments explicitly.
52836         (func_import): Determine two module lists main_modules,
52837         testsrelated_modules. Determine use_libtests. Determine two variables
52838         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52839         instead of just sed_transform_lib_file. Determine two variables
52840         main_files and testsrelated_files. Compute 'files' as the union of
52841         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52842         func_add_or_update. In the generated gnulib-comp.m4, collect the
52843         object files for tests/ in different variables than those for lib/.
52844         Substitute LIBTESTS_LIBDEPS.
52845         (func_create_testdir): Combine the uses_subdirs results from
52846         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52847
52848 2007-12-09  Bruno Haible  <bruno@clisp.org>
52849
52850         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52851         the build-aux directory.
52852
52853 2007-12-09  Bruno Haible  <bruno@clisp.org>
52854
52855         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52856         introduced on 2006-09-09.
52857
52858 2007-12-07  Jim Meyering  <meyering@redhat.com>
52859
52860         Let these macros work also with autoconf-2.59.
52861         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52862         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52863         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52864
52865 2007-12-06  Jim Meyering  <meyering@redhat.com>
52866
52867         Avoid a configure-time syntax error in gl_FUNC_ACL.
52868         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52869         function in each branch, before testing the cache variable.
52870
52871 2007-12-04  Eric Blake  <ebb9@byu.net>
52872
52873         Make scripts executable.
52874         * build-aux/config.guess: Add execute permissions.
52875         * build-aux/config.sub: Likewise.
52876         * build-aux/gendocs.sh: Likewise.
52877
52878         Fix frexp on mingw.
52879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52880         cross-compiling.
52881         * doc/functions/frexp.texi (frexp): Document the bug.
52882
52883         Make cygwin fseeko check more reliable.
52884         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52885         version numbers, rather than unrelated feature check.
52886         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52887         * doc/functions/ftello.texi (ftello): Likewise.
52888         Reported by Bruno Haible.
52889
52890         * m4/strerror.m4: Bump version number.
52891
52892 2007-12-03  Bruno Haible  <bruno@clisp.org>
52893
52894         * doc/functions/mprotect.texi: Mention the mingw problem.
52895
52896 2007-12-03  Eric Blake  <ebb9@byu.net>
52897
52898         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52899         REPLACE_STRERROR is initialized before this macro.
52900
52901 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52902
52903         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52904         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52905         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52906         put -lsec in even for programs other than 'ls'.  This fixes a problem
52907         for gettext reported by Bruno Haible in
52908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52909         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52910         Add support for Solaris 10.  This isn't efficient, but should get the
52911         job done for now.
52912
52913 2007-12-03  James Youngman  <jay@gnu.org>
52914
52915         * doc/regexprops-generic.texi: change "an close-group" to "a
52916         close-group" and "illegal" to "not allowed".
52917
52918 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52919
52920         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52921         pr_byname.h. Needed for the rare case when the maintainer has done
52922         "make maintainer-clean" in the source directory and then attempts a
52923         build outside the source directory.
52924         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52925         scripts_byname.h.
52926
52927 2007-12-02  Martin Lambers <marlam@marlam.de>
52928             Bruno Haible  <bruno@clisp.org>
52929
52930         * lib/getpagesize.h: Remove file.
52931         * lib/unistd.in.h: Include declaration of getpagesize here.
52932         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52933         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52934         HAVE_SYS_PARAM_H.
52935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52936         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52937         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52938         (Depends-on): Add unistd.
52939         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52940         (Include): Use <unistd.h> instead of getpagesize.h.
52941         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52942         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52943         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52944         gl_GETPAGESIZE invocation, already handled by module dependency.
52945         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52946
52947 2007-12-02  Bruno Haible  <bruno@clisp.org>
52948
52949         * modules/strings-tests: New file.
52950         * tests/test-strings.c: New file.
52951
52952         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52953         * lib/strings.in.h: New file.
52954         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52955         * m4/strings_h.m4: New file.
52956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52957         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52958         * modules/strings: New file.
52959         * modules/string (Makefile.am): Update.
52960         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52961         Reported by Karl Berry.
52962
52963 2007-12-01  Eric Blake  <ebb9@byu.net>
52964
52965         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52966         accomodate fix in cygwin 1.5.25.
52967
52968 2007-12-01  Jim Meyering  <meyering@redhat.com>
52969
52970         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52971         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52972         that would inhibit utf8-optimization of a regexp containing line-
52973         or buffer-anchors, e.g., `^', `$'.
52974
52975 2007-11-30  Bruno Haible  <bruno@clisp.org>
52976
52977         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52978         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52979         glthread_recursive_lock_init.
52980         * lib/lock.c (glthread_recursive_lock_init)
52981         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52982         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52983
52984 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         New function qset_acl, like set_acl but with syscall semantics.
52987         * lib/acl.h (qset_acl): New decl.
52988         * lib/acl.c (qset_acl): New function.
52989         (set_acl): Use new function.  Use more-consistent diagnostics.
52990
52991 2007-11-28  Jim Meyering  <meyering@redhat.com>
52992
52993         * modules/physmem (License): Change from GPL to LGPLv2+.
52994
52995 2007-11-26  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52998         'long double' type has excess precision.
52999         Reported by Jim Meyering in
53000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53001
53002 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53003
53004         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53005         Sync from <http://gnu.org/licenses>.
53006         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53007         with license text from same location.
53008         * doc/maintain.texi, doc/standards.texi:  Sync from
53009         <http://savannah.gnu.org/projects/gnustandards>.
53010
53011 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53012         and Jim Meyering  <meyering@redhat.com>
53013
53014         Adjust getdate' grammar to accept a slightly more regular language.
53015         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53016         Before, the former was rejected.
53017         * lib/getdate.y (digits_to_date_time): New function, factored
53018         out of ...
53019         (number): ...here.  Just call digits_to_date_time.
53020         (hybrid): New non-terminal to handle an <unsigned number,
53021         signed relative offset> sequence consistently.
53022
53023 2007-11-18  Jim Meyering  <meyering@redhat.com>
53024
53025         Pull my changes from coreutils:
53026         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53027         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53028         use of $gnulib_tool_option_extras, so that it's separated from the
53029         preceding argument.
53030
53031         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53032         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53033         parent destination directories before copying a file into place.
53034
53035 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53036
53037         bootstrap: work also with 4-argument variant of AC_INIT
53038         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53039
53040 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53041
53042         Port test-getaddrinfo to Solaris.
53043         Problem reported by Bruno Haible in
53044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53045         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53046         explanation of setting 'hints'.
53047         Don't reject an implementation merely because it returns EAI_SERVICE.
53048         (EAI_SERVICE): Define to 0 if not defined.
53049
53050 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53051
53052         The license of gnu-make and posix-shell is now "GPLed build tool".
53053         * modules/gnu-make (License): Likewise.
53054         * modules/posix-shell (License): Likewise.
53055
53056         New module posix-shell, for determining a POSIX shell
53057         or perhaps something that is close enough to a POSIX shell.
53058         * m4/posix-shell.m4: New file.
53059         * modules/posix-shell: New file.
53060
53061         * MODULES.html.sh: Mention new module.
53062
53063         New module gnu-make, for determining whether we're using GNU Make.
53064         * m4/gnu-make.m4: New file.
53065         * modules/gnu-make: New file.
53066         * MODULES.html.sh: Mention new module.
53067
53068 2007-11-14  Jim Meyering  <meyering@redhat.com>
53069
53070         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53071         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53072         use this macro to create a function _definition_.
53073         Remove useless "#undef ARGMATCH_DIE".
53074
53075 2007-11-14  Bruno Haible  <bruno@clisp.org>
53076
53077         * lib/config.charset: Update for OpenBSD 4.1.
53078         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53079
53080 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53081
53082         Document 64-bit #if problems in stdint.texi.
53083         * doc/headers/stdint.texi (stdint.h): Mention problems with
53084         64-bit-#if, and how to work around them.
53085
53086         Don't insist on 'long long int' support in the preprocessor.  It
53087         breaks too many things.  For example, PRIdMAX still uses a 'long
53088         long int' format with the latest Sun compiler, even though
53089         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53090         preprocessor problem.  This causes the latest coreutils to dump
53091         core on Solaris 10 sparc with the Sun C compiler.
53092         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53093         the troublesome expressions at configure-time, not at #if-time.
53094         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53095         preprocessor.
53096         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53097         compile-time C checks, done at 'configure'-time.
53098         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53099         * modules/inttypes (Makefile): Substitute the new symbols that
53100         gl_INTTYPES_H now generates.
53101         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53102
53103 2007-11-12  Bruno Haible  <bruno@clisp.org>
53104
53105         Tests for Unicode character classification functions.
53106
53107         * modules/unictype/bidicategory-byname-tests: New file.
53108         * modules/unictype/bidicategory-name-tests: New file.
53109         * modules/unictype/bidicategory-of-tests: New file.
53110         * modules/unictype/bidicategory-test-tests: New file.
53111         * modules/unictype/block-list-tests: New file.
53112         * modules/unictype/block-of-tests: New file.
53113         * modules/unictype/block-test-tests: New file.
53114         * modules/unictype/category-C-tests: New file.
53115         * modules/unictype/category-Cc-tests: New file.
53116         * modules/unictype/category-Cf-tests: New file.
53117         * modules/unictype/category-Cn-tests: New file.
53118         * modules/unictype/category-Co-tests: New file.
53119         * modules/unictype/category-Cs-tests: New file.
53120         * modules/unictype/category-L-tests: New file.
53121         * modules/unictype/category-Ll-tests: New file.
53122         * modules/unictype/category-Lm-tests: New file.
53123         * modules/unictype/category-Lo-tests: New file.
53124         * modules/unictype/category-Lt-tests: New file.
53125         * modules/unictype/category-Lu-tests: New file.
53126         * modules/unictype/category-M-tests: New file.
53127         * modules/unictype/category-Mc-tests: New file.
53128         * modules/unictype/category-Me-tests: New file.
53129         * modules/unictype/category-Mn-tests: New file.
53130         * modules/unictype/category-N-tests: New file.
53131         * modules/unictype/category-Nd-tests: New file.
53132         * modules/unictype/category-Nl-tests: New file.
53133         * modules/unictype/category-No-tests: New file.
53134         * modules/unictype/category-P-tests: New file.
53135         * modules/unictype/category-Pc-tests: New file.
53136         * modules/unictype/category-Pd-tests: New file.
53137         * modules/unictype/category-Pe-tests: New file.
53138         * modules/unictype/category-Pf-tests: New file.
53139         * modules/unictype/category-Pi-tests: New file.
53140         * modules/unictype/category-Po-tests: New file.
53141         * modules/unictype/category-Ps-tests: New file.
53142         * modules/unictype/category-S-tests: New file.
53143         * modules/unictype/category-Sc-tests: New file.
53144         * modules/unictype/category-Sk-tests: New file.
53145         * modules/unictype/category-Sm-tests: New file.
53146         * modules/unictype/category-So-tests: New file.
53147         * modules/unictype/category-Z-tests: New file.
53148         * modules/unictype/category-Zl-tests: New file.
53149         * modules/unictype/category-Zp-tests: New file.
53150         * modules/unictype/category-Zs-tests: New file.
53151         * modules/unictype/category-and-not-tests: New file.
53152         * modules/unictype/category-and-tests: New file.
53153         * modules/unictype/category-byname-tests: New file.
53154         * modules/unictype/category-name-tests: New file.
53155         * modules/unictype/category-none-tests: New file.
53156         * modules/unictype/category-of-tests: New file.
53157         * modules/unictype/category-or-tests: New file.
53158         * modules/unictype/category-test-withtable-tests: New file.
53159         * modules/unictype/combining-class-tests: New file.
53160         * modules/unictype/ctype-alnum-tests: New file.
53161         * modules/unictype/ctype-alpha-tests: New file.
53162         * modules/unictype/ctype-blank-tests: New file.
53163         * modules/unictype/ctype-cntrl-tests: New file.
53164         * modules/unictype/ctype-digit-tests: New file.
53165         * modules/unictype/ctype-graph-tests: New file.
53166         * modules/unictype/ctype-lower-tests: New file.
53167         * modules/unictype/ctype-print-tests: New file.
53168         * modules/unictype/ctype-punct-tests: New file.
53169         * modules/unictype/ctype-space-tests: New file.
53170         * modules/unictype/ctype-upper-tests: New file.
53171         * modules/unictype/ctype-xdigit-tests: New file.
53172         * modules/unictype/decimal-digit-tests: New file.
53173         * modules/unictype/digit-tests: New file.
53174         * modules/unictype/mirror-tests: New file.
53175         * modules/unictype/numeric-tests: New file.
53176         * modules/unictype/property-alphabetic-tests: New file.
53177         * modules/unictype/property-ascii-hex-digit-tests: New file.
53178         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53179         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53180         * modules/unictype/property-bidi-block-separator-tests: New file.
53181         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53182         * modules/unictype/property-bidi-common-separator-tests: New file.
53183         * modules/unictype/property-bidi-control-tests: New file.
53184         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53185         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53186         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53187         * modules/unictype/property-bidi-european-digit-tests: New file.
53188         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53189         * modules/unictype/property-bidi-left-to-right-tests: New file.
53190         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53191         * modules/unictype/property-bidi-other-neutral-tests: New file.
53192         * modules/unictype/property-bidi-pdf-tests: New file.
53193         * modules/unictype/property-bidi-segment-separator-tests: New file.
53194         * modules/unictype/property-bidi-whitespace-tests: New file.
53195         * modules/unictype/property-byname-tests: New file.
53196         * modules/unictype/property-combining-tests: New file.
53197         * modules/unictype/property-composite-tests: New file.
53198         * modules/unictype/property-currency-symbol-tests: New file.
53199         * modules/unictype/property-dash-tests: New file.
53200         * modules/unictype/property-decimal-digit-tests: New file.
53201         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53202         * modules/unictype/property-deprecated-tests: New file.
53203         * modules/unictype/property-diacritic-tests: New file.
53204         * modules/unictype/property-extender-tests: New file.
53205         * modules/unictype/property-format-control-tests: New file.
53206         * modules/unictype/property-grapheme-base-tests: New file.
53207         * modules/unictype/property-grapheme-extend-tests: New file.
53208         * modules/unictype/property-grapheme-link-tests: New file.
53209         * modules/unictype/property-hex-digit-tests: New file.
53210         * modules/unictype/property-hyphen-tests: New file.
53211         * modules/unictype/property-id-continue-tests: New file.
53212         * modules/unictype/property-id-start-tests: New file.
53213         * modules/unictype/property-ideographic-tests: New file.
53214         * modules/unictype/property-ids-binary-operator-tests: New file.
53215         * modules/unictype/property-ids-trinary-operator-tests: New file.
53216         * modules/unictype/property-ignorable-control-tests: New file.
53217         * modules/unictype/property-iso-control-tests: New file.
53218         * modules/unictype/property-join-control-tests: New file.
53219         * modules/unictype/property-left-of-pair-tests: New file.
53220         * modules/unictype/property-line-separator-tests: New file.
53221         * modules/unictype/property-logical-order-exception-tests: New file.
53222         * modules/unictype/property-lowercase-tests: New file.
53223         * modules/unictype/property-math-tests: New file.
53224         * modules/unictype/property-non-break-tests: New file.
53225         * modules/unictype/property-not-a-character-tests: New file.
53226         * modules/unictype/property-numeric-tests: New file.
53227         * modules/unictype/property-other-alphabetic-tests: New file.
53228         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53229         * modules/unictype/property-other-grapheme-extend-tests: New file.
53230         * modules/unictype/property-other-id-continue-tests: New file.
53231         * modules/unictype/property-other-id-start-tests: New file.
53232         * modules/unictype/property-other-lowercase-tests: New file.
53233         * modules/unictype/property-other-math-tests: New file.
53234         * modules/unictype/property-other-uppercase-tests: New file.
53235         * modules/unictype/property-paired-punctuation-tests: New file.
53236         * modules/unictype/property-paragraph-separator-tests: New file.
53237         * modules/unictype/property-pattern-syntax-tests: New file.
53238         * modules/unictype/property-pattern-white-space-tests: New file.
53239         * modules/unictype/property-private-use-tests: New file.
53240         * modules/unictype/property-punctuation-tests: New file.
53241         * modules/unictype/property-quotation-mark-tests: New file.
53242         * modules/unictype/property-radical-tests: New file.
53243         * modules/unictype/property-sentence-terminal-tests: New file.
53244         * modules/unictype/property-soft-dotted-tests: New file.
53245         * modules/unictype/property-space-tests: New file.
53246         * modules/unictype/property-terminal-punctuation-tests: New file.
53247         * modules/unictype/property-test-tests: New file.
53248         * modules/unictype/property-titlecase-tests: New file.
53249         * modules/unictype/property-unassigned-code-value-tests: New file.
53250         * modules/unictype/property-unified-ideograph-tests: New file.
53251         * modules/unictype/property-uppercase-tests: New file.
53252         * modules/unictype/property-variation-selector-tests: New file.
53253         * modules/unictype/property-white-space-tests: New file.
53254         * modules/unictype/property-xid-continue-tests: New file.
53255         * modules/unictype/property-xid-start-tests: New file.
53256         * modules/unictype/property-zero-width-tests: New file.
53257         * modules/unictype/scripts-tests: New file.
53258         * modules/unictype/syntax-c-ident-tests: New file.
53259         * modules/unictype/syntax-c-whitespace-tests: New file.
53260         * modules/unictype/syntax-java-ident-tests: New file.
53261         * modules/unictype/syntax-java-whitespace-tests: New file.
53262         * tests/unictype/test-bidi_byname.c: New file.
53263         * tests/unictype/test-bidi_name.c: New file.
53264         * tests/unictype/test-bidi_of.c: New file.
53265         * tests/unictype/test-bidi_test.c: New file.
53266         * tests/unictype/test-block_list.c: New file.
53267         * tests/unictype/test-block_of.c: New file.
53268         * tests/unictype/test-block_test.c: New file.
53269         * tests/unictype/test-categ_and.c: New file.
53270         * tests/unictype/test-categ_and_not.c: New file.
53271         * tests/unictype/test-categ_byname.c: New file.
53272         * tests/unictype/test-categ_name.c: New file.
53273         * tests/unictype/test-categ_none.c: New file.
53274         * tests/unictype/test-categ_of.c: New file.
53275         * tests/unictype/test-categ_or.c: New file.
53276         * tests/unictype/test-categ_test_withtable.c: New file.
53277         * tests/unictype/test-combining.c: New file.
53278         * tests/unictype/test-decdigit.c: New file.
53279         * tests/unictype/test-digit.c: New file.
53280         * tests/unictype/test-mirror.c: New file.
53281         * tests/unictype/test-numeric.c: New file.
53282         * tests/unictype/test-pr_byname.c: New file.
53283         * tests/unictype/test-pr_test.c: New file.
53284         * tests/unictype/test-predicate-part1.h: New file.
53285         * tests/unictype/test-predicate-part2.h: New file.
53286         * tests/unictype/test-scripts.c: New file.
53287         * tests/unictype/test-sy_c_ident.c: New file.
53288         * tests/unictype/test-sy_java_ident.c: New file.
53289
53290         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53291         for Unicode 5.0.0.
53292         * tests/unictype/test-categ_Cc.c: Likewise.
53293         * tests/unictype/test-categ_Cf.c: Likewise.
53294         * tests/unictype/test-categ_Cn.c: Likewise.
53295         * tests/unictype/test-categ_Co.c: Likewise.
53296         * tests/unictype/test-categ_Cs.c: Likewise.
53297         * tests/unictype/test-categ_L.c: Likewise.
53298         * tests/unictype/test-categ_Ll.c: Likewise.
53299         * tests/unictype/test-categ_Lm.c: Likewise.
53300         * tests/unictype/test-categ_Lo.c: Likewise.
53301         * tests/unictype/test-categ_Lt.c: Likewise.
53302         * tests/unictype/test-categ_Lu.c: Likewise.
53303         * tests/unictype/test-categ_M.c: Likewise.
53304         * tests/unictype/test-categ_Mc.c: Likewise.
53305         * tests/unictype/test-categ_Me.c: Likewise.
53306         * tests/unictype/test-categ_Mn.c: Likewise.
53307         * tests/unictype/test-categ_N.c: Likewise.
53308         * tests/unictype/test-categ_Nd.c: Likewise.
53309         * tests/unictype/test-categ_Nl.c: Likewise.
53310         * tests/unictype/test-categ_No.c: Likewise.
53311         * tests/unictype/test-categ_P.c: Likewise.
53312         * tests/unictype/test-categ_Pc.c: Likewise.
53313         * tests/unictype/test-categ_Pd.c: Likewise.
53314         * tests/unictype/test-categ_Pe.c: Likewise.
53315         * tests/unictype/test-categ_Pf.c: Likewise.
53316         * tests/unictype/test-categ_Pi.c: Likewise.
53317         * tests/unictype/test-categ_Po.c: Likewise.
53318         * tests/unictype/test-categ_Ps.c: Likewise.
53319         * tests/unictype/test-categ_S.c: Likewise.
53320         * tests/unictype/test-categ_Sc.c: Likewise.
53321         * tests/unictype/test-categ_Sk.c: Likewise.
53322         * tests/unictype/test-categ_Sm.c: Likewise.
53323         * tests/unictype/test-categ_So.c: Likewise.
53324         * tests/unictype/test-categ_Z.c: Likewise.
53325         * tests/unictype/test-categ_Zl.c: Likewise.
53326         * tests/unictype/test-categ_Zp.c: Likewise.
53327         * tests/unictype/test-categ_Zs.c: Likewise.
53328         * tests/unictype/test-ctype_alnum.c: Likewise.
53329         * tests/unictype/test-ctype_alpha.c: Likewise.
53330         * tests/unictype/test-ctype_blank.c: Likewise.
53331         * tests/unictype/test-ctype_cntrl.c: Likewise.
53332         * tests/unictype/test-ctype_digit.c: Likewise.
53333         * tests/unictype/test-ctype_graph.c: Likewise.
53334         * tests/unictype/test-ctype_lower.c: Likewise.
53335         * tests/unictype/test-ctype_print.c: Likewise.
53336         * tests/unictype/test-ctype_punct.c: Likewise.
53337         * tests/unictype/test-ctype_space.c: Likewise.
53338         * tests/unictype/test-ctype_upper.c: Likewise.
53339         * tests/unictype/test-ctype_xdigit.c: Likewise.
53340         * tests/unictype/test-decdigit.h: Likewise.
53341         * tests/unictype/test-digit.h: Likewise.
53342         * tests/unictype/test-numeric.h: Likewise.
53343         * tests/unictype/test-pr_alphabetic.c: Likewise.
53344         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53345         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53346         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53347         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53348         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53349         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53350         * tests/unictype/test-pr_bidi_control.c: Likewise.
53351         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53352         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53353         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53354         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53355         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53356         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53357         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53358         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53359         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53360         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53361         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53362         * tests/unictype/test-pr_combining.c: Likewise.
53363         * tests/unictype/test-pr_composite.c: Likewise.
53364         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53365         * tests/unictype/test-pr_dash.c: Likewise.
53366         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53367         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53368         * tests/unictype/test-pr_deprecated.c: Likewise.
53369         * tests/unictype/test-pr_diacritic.c: Likewise.
53370         * tests/unictype/test-pr_extender.c: Likewise.
53371         * tests/unictype/test-pr_format_control.c: Likewise.
53372         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53373         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53374         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53375         * tests/unictype/test-pr_hex_digit.c: Likewise.
53376         * tests/unictype/test-pr_hyphen.c: Likewise.
53377         * tests/unictype/test-pr_id_continue.c: Likewise.
53378         * tests/unictype/test-pr_id_start.c: Likewise.
53379         * tests/unictype/test-pr_ideographic.c: Likewise.
53380         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53381         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53382         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53383         * tests/unictype/test-pr_iso_control.c: Likewise.
53384         * tests/unictype/test-pr_join_control.c: Likewise.
53385         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53386         * tests/unictype/test-pr_line_separator.c: Likewise.
53387         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53388         * tests/unictype/test-pr_lowercase.c: Likewise.
53389         * tests/unictype/test-pr_math.c: Likewise.
53390         * tests/unictype/test-pr_non_break.c: Likewise.
53391         * tests/unictype/test-pr_not_a_character.c: Likewise.
53392         * tests/unictype/test-pr_numeric.c: Likewise.
53393         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53394         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53395         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53396         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53397         * tests/unictype/test-pr_other_id_start.c: Likewise.
53398         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53399         * tests/unictype/test-pr_other_math.c: Likewise.
53400         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53401         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53402         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53403         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53404         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53405         * tests/unictype/test-pr_private_use.c: Likewise.
53406         * tests/unictype/test-pr_punctuation.c: Likewise.
53407         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53408         * tests/unictype/test-pr_radical.c: Likewise.
53409         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53410         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53411         * tests/unictype/test-pr_space.c: Likewise.
53412         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53413         * tests/unictype/test-pr_titlecase.c: Likewise.
53414         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53415         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53416         * tests/unictype/test-pr_uppercase.c: Likewise.
53417         * tests/unictype/test-pr_variation_selector.c: Likewise.
53418         * tests/unictype/test-pr_white_space.c: Likewise.
53419         * tests/unictype/test-pr_xid_continue.c: Likewise.
53420         * tests/unictype/test-pr_xid_start.c: Likewise.
53421         * tests/unictype/test-pr_zero_width.c: Likewise.
53422         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53423         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53424
53425 2007-11-12  Bruno Haible  <bruno@clisp.org>
53426
53427         Unicode character classification functions.
53428         * lib/unictype.h: New file.
53429         * modules/unictype/base: New file.
53430         * modules/unictype/category-L: New file.
53431         * modules/unictype/category-Lu: New file.
53432         * modules/unictype/category-Ll: New file.
53433         * modules/unictype/category-Lt: New file.
53434         * modules/unictype/category-Lm: New file.
53435         * modules/unictype/category-Lo: New file.
53436         * modules/unictype/category-M: New file.
53437         * modules/unictype/category-Mn: New file.
53438         * modules/unictype/category-Mc: New file.
53439         * modules/unictype/category-Me: New file.
53440         * modules/unictype/category-N: New file.
53441         * modules/unictype/category-Nd: New file.
53442         * modules/unictype/category-Nl: New file.
53443         * modules/unictype/category-No: New file.
53444         * modules/unictype/category-P: New file.
53445         * modules/unictype/category-Pc: New file.
53446         * modules/unictype/category-Pd: New file.
53447         * modules/unictype/category-Ps: New file.
53448         * modules/unictype/category-Pe: New file.
53449         * modules/unictype/category-Pi: New file.
53450         * modules/unictype/category-Pf: New file.
53451         * modules/unictype/category-Po: New file.
53452         * modules/unictype/category-S: New file.
53453         * modules/unictype/category-Sm: New file.
53454         * modules/unictype/category-Sc: New file.
53455         * modules/unictype/category-Sk: New file.
53456         * modules/unictype/category-So: New file.
53457         * modules/unictype/category-Z: New file.
53458         * modules/unictype/category-Zs: New file.
53459         * modules/unictype/category-Zl: New file.
53460         * modules/unictype/category-Zp: New file.
53461         * modules/unictype/category-C: New file.
53462         * modules/unictype/category-Cc: New file.
53463         * modules/unictype/category-Cf: New file.
53464         * modules/unictype/category-Cs: New file.
53465         * modules/unictype/category-Co: New file.
53466         * modules/unictype/category-Cn: New file.
53467         * modules/unictype/category-or: New file.
53468         * modules/unictype/category-of: New file.
53469         * modules/unictype/category-test: New file.
53470         * modules/unictype/category-test-withtable: New file.
53471         * modules/unictype/category-byname: New file.
53472         * modules/unictype/category-none: New file.
53473         * modules/unictype/category-and: New file.
53474         * modules/unictype/category-and-not: New file.
53475         * modules/unictype/category-name: New file.
53476         * modules/unictype/combining-class: New file.
53477         * modules/unictype/category-all: New file.
53478         * modules/unictype/bidicategory-all: New file.
53479         * modules/unictype/bidicategory-byname: New file.
53480         * modules/unictype/bidicategory-name: New file.
53481         * modules/unictype/bidicategory-of: New file.
53482         * modules/unictype/bidicategory-test: New file.
53483         * modules/unictype/decimal-digit: New file.
53484         * modules/unictype/digit: New file.
53485         * modules/unictype/numeric: New file.
53486         * modules/unictype/mirror: New file.
53487         * modules/unictype/property-white-space: New file.
53488         * modules/unictype/property-alphabetic: New file.
53489         * modules/unictype/property-other-alphabetic: New file.
53490         * modules/unictype/property-not-a-character: New file.
53491         * modules/unictype/property-default-ignorable-code-point: New file.
53492         * modules/unictype/property-other-default-ignorable-code-point: New
53493         file.
53494         * modules/unictype/property-deprecated: New file.
53495         * modules/unictype/property-logical-order-exception: New file.
53496         * modules/unictype/property-variation-selector: New file.
53497         * modules/unictype/property-private-use: New file.
53498         * modules/unictype/property-unassigned-code-value: New file.
53499         * modules/unictype/property-uppercase: New file.
53500         * modules/unictype/property-other-uppercase: New file.
53501         * modules/unictype/property-lowercase: New file.
53502         * modules/unictype/property-other-lowercase: New file.
53503         * modules/unictype/property-titlecase: New file.
53504         * modules/unictype/property-soft-dotted: New file.
53505         * modules/unictype/property-id-start: New file.
53506         * modules/unictype/property-other-id-start: New file.
53507         * modules/unictype/property-id-continue: New file.
53508         * modules/unictype/property-other-id-continue: New file.
53509         * modules/unictype/property-xid-start: New file.
53510         * modules/unictype/property-xid-continue: New file.
53511         * modules/unictype/property-pattern-white-space: New file.
53512         * modules/unictype/property-pattern-syntax: New file.
53513         * modules/unictype/property-join-control: New file.
53514         * modules/unictype/property-grapheme-base: New file.
53515         * modules/unictype/property-grapheme-extend: New file.
53516         * modules/unictype/property-other-grapheme-extend: New file.
53517         * modules/unictype/property-grapheme-link: New file.
53518         * modules/unictype/property-bidi-control: New file.
53519         * modules/unictype/property-bidi-left-to-right: New file.
53520         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53521         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53522         * modules/unictype/property-bidi-european-digit: New file.
53523         * modules/unictype/property-bidi-eur-num-separator: New file.
53524         * modules/unictype/property-bidi-eur-num-terminator: New file.
53525         * modules/unictype/property-bidi-arabic-digit: New file.
53526         * modules/unictype/property-bidi-common-separator: New file.
53527         * modules/unictype/property-bidi-block-separator: New file.
53528         * modules/unictype/property-bidi-segment-separator: New file.
53529         * modules/unictype/property-bidi-whitespace: New file.
53530         * modules/unictype/property-bidi-non-spacing-mark: New file.
53531         * modules/unictype/property-bidi-boundary-neutral: New file.
53532         * modules/unictype/property-bidi-pdf: New file.
53533         * modules/unictype/property-bidi-embedding-or-override: New file.
53534         * modules/unictype/property-bidi-other-neutral: New file.
53535         * modules/unictype/property-hex-digit: New file.
53536         * modules/unictype/property-ascii-hex-digit: New file.
53537         * modules/unictype/property-ideographic: New file.
53538         * modules/unictype/property-unified-ideograph: New file.
53539         * modules/unictype/property-radical: New file.
53540         * modules/unictype/property-ids-binary-operator: New file.
53541         * modules/unictype/property-ids-trinary-operator: New file.
53542         * modules/unictype/property-zero-width: New file.
53543         * modules/unictype/property-space: New file.
53544         * modules/unictype/property-non-break: New file.
53545         * modules/unictype/property-iso-control: New file.
53546         * modules/unictype/property-format-control: New file.
53547         * modules/unictype/property-dash: New file.
53548         * modules/unictype/property-hyphen: New file.
53549         * modules/unictype/property-punctuation: New file.
53550         * modules/unictype/property-line-separator: New file.
53551         * modules/unictype/property-paragraph-separator: New file.
53552         * modules/unictype/property-quotation-mark: New file.
53553         * modules/unictype/property-sentence-terminal: New file.
53554         * modules/unictype/property-terminal-punctuation: New file.
53555         * modules/unictype/property-currency-symbol: New file.
53556         * modules/unictype/property-math: New file.
53557         * modules/unictype/property-other-math: New file.
53558         * modules/unictype/property-paired-punctuation: New file.
53559         * modules/unictype/property-left-of-pair: New file.
53560         * modules/unictype/property-combining: New file.
53561         * modules/unictype/property-composite: New file.
53562         * modules/unictype/property-decimal-digit: New file.
53563         * modules/unictype/property-numeric: New file.
53564         * modules/unictype/property-diacritic: New file.
53565         * modules/unictype/property-extender: New file.
53566         * modules/unictype/property-ignorable-control: New file.
53567         * modules/unictype/property-test: New file.
53568         * modules/unictype/property-byname: New file.
53569         * modules/unictype/property-all: New file.
53570         * modules/unictype/scripts: New file.
53571         * modules/unictype/scripts-all: New file.
53572         * modules/unictype/block-of: New file.
53573         * modules/unictype/block-test: New file.
53574         * modules/unictype/block-list: New file.
53575         * modules/unictype/block-all: New file.
53576         * modules/unictype/syntax-c-whitespace: New file.
53577         * modules/unictype/syntax-java-whitespace: New file.
53578         * modules/unictype/syntax-c-ident: New file.
53579         * modules/unictype/syntax-java-ident: New file.
53580         * modules/unictype/ctype-alnum: New file.
53581         * modules/unictype/ctype-alpha: New file.
53582         * modules/unictype/ctype-cntrl: New file.
53583         * modules/unictype/ctype-digit: New file.
53584         * modules/unictype/ctype-graph: New file.
53585         * modules/unictype/ctype-lower: New file.
53586         * modules/unictype/ctype-print: New file.
53587         * modules/unictype/ctype-punct: New file.
53588         * modules/unictype/ctype-space: New file.
53589         * modules/unictype/ctype-upper: New file.
53590         * modules/unictype/ctype-xdigit: New file.
53591         * modules/unictype/ctype-blank: New file.
53592         * lib/unictype/bidi_byname.c: New file.
53593         * lib/unictype/bidi_name.c: New file.
53594         * lib/unictype/bidi_of.c: New file.
53595         * lib/unictype/bidi_test.c: New file.
53596         * lib/unictype/bitmap.h: New file.
53597         * lib/unictype/block_test.c: New file.
53598         * lib/unictype/blocks.c: New file.
53599         * lib/unictype/categ_C.c: New file.
53600         * lib/unictype/categ_Cc.c: New file.
53601         * lib/unictype/categ_Cf.c: New file.
53602         * lib/unictype/categ_Cn.c: New file.
53603         * lib/unictype/categ_Co.c: New file.
53604         * lib/unictype/categ_Cs.c: New file.
53605         * lib/unictype/categ_L.c: New file.
53606         * lib/unictype/categ_Ll.c: New file.
53607         * lib/unictype/categ_Lm.c: New file.
53608         * lib/unictype/categ_Lo.c: New file.
53609         * lib/unictype/categ_Lt.c: New file.
53610         * lib/unictype/categ_Lu.c: New file.
53611         * lib/unictype/categ_M.c: New file.
53612         * lib/unictype/categ_Mc.c: New file.
53613         * lib/unictype/categ_Me.c: New file.
53614         * lib/unictype/categ_Mn.c: New file.
53615         * lib/unictype/categ_N.c: New file.
53616         * lib/unictype/categ_Nd.c: New file.
53617         * lib/unictype/categ_Nl.c: New file.
53618         * lib/unictype/categ_No.c: New file.
53619         * lib/unictype/categ_P.c: New file.
53620         * lib/unictype/categ_Pc.c: New file.
53621         * lib/unictype/categ_Pd.c: New file.
53622         * lib/unictype/categ_Pe.c: New file.
53623         * lib/unictype/categ_Pf.c: New file.
53624         * lib/unictype/categ_Pi.c: New file.
53625         * lib/unictype/categ_Po.c: New file.
53626         * lib/unictype/categ_Ps.c: New file.
53627         * lib/unictype/categ_S.c: New file.
53628         * lib/unictype/categ_Sc.c: New file.
53629         * lib/unictype/categ_Sk.c: New file.
53630         * lib/unictype/categ_Sm.c: New file.
53631         * lib/unictype/categ_So.c: New file.
53632         * lib/unictype/categ_Z.c: New file.
53633         * lib/unictype/categ_Zl.c: New file.
53634         * lib/unictype/categ_Zp.c: New file.
53635         * lib/unictype/categ_Zs.c: New file.
53636         * lib/unictype/categ_and.c: New file.
53637         * lib/unictype/categ_and_not.c: New file.
53638         * lib/unictype/categ_byname.c: New file.
53639         * lib/unictype/categ_name.c: New file.
53640         * lib/unictype/categ_none.c: New file.
53641         * lib/unictype/categ_of.c: New file.
53642         * lib/unictype/categ_or.c: New file.
53643         * lib/unictype/categ_test.c: New file.
53644         * lib/unictype/combining.c: New file.
53645         * lib/unictype/ctype_alnum.c: New file.
53646         * lib/unictype/ctype_alpha.c: New file.
53647         * lib/unictype/ctype_blank.c: New file.
53648         * lib/unictype/ctype_cntrl.c: New file.
53649         * lib/unictype/ctype_digit.c: New file.
53650         * lib/unictype/ctype_graph.c: New file.
53651         * lib/unictype/ctype_lower.c: New file.
53652         * lib/unictype/ctype_print.c: New file.
53653         * lib/unictype/ctype_punct.c: New file.
53654         * lib/unictype/ctype_space.c: New file.
53655         * lib/unictype/ctype_upper.c: New file.
53656         * lib/unictype/ctype_xdigit.c: New file.
53657         * lib/unictype/decdigit.c: New file.
53658         * lib/unictype/digit.c: New file.
53659         * lib/unictype/identsyntaxmap.h: New file.
53660         * lib/unictype/mirror.c: New file.
53661         * lib/unictype/numeric.c: New file.
53662         * lib/unictype/pr_alphabetic.c: New file.
53663         * lib/unictype/pr_ascii_hex_digit.c: New file.
53664         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53665         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53666         * lib/unictype/pr_bidi_block_separator.c: New file.
53667         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53668         * lib/unictype/pr_bidi_common_separator.c: New file.
53669         * lib/unictype/pr_bidi_control.c: New file.
53670         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53671         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53672         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53673         * lib/unictype/pr_bidi_european_digit.c: New file.
53674         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53675         * lib/unictype/pr_bidi_left_to_right.c: New file.
53676         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53677         * lib/unictype/pr_bidi_other_neutral.c: New file.
53678         * lib/unictype/pr_bidi_pdf.c: New file.
53679         * lib/unictype/pr_bidi_segment_separator.c: New file.
53680         * lib/unictype/pr_bidi_whitespace.c: New file.
53681         * lib/unictype/pr_byname.c: New file.
53682         * lib/unictype/pr_byname.gperf: New file.
53683         * lib/unictype/pr_combining.c: New file.
53684         * lib/unictype/pr_composite.c: New file.
53685         * lib/unictype/pr_currency_symbol.c: New file.
53686         * lib/unictype/pr_dash.c: New file.
53687         * lib/unictype/pr_decimal_digit.c: New file.
53688         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53689         * lib/unictype/pr_deprecated.c: New file.
53690         * lib/unictype/pr_diacritic.c: New file.
53691         * lib/unictype/pr_extender.c: New file.
53692         * lib/unictype/pr_format_control.c: New file.
53693         * lib/unictype/pr_grapheme_base.c: New file.
53694         * lib/unictype/pr_grapheme_extend.c: New file.
53695         * lib/unictype/pr_grapheme_link.c: New file.
53696         * lib/unictype/pr_hex_digit.c: New file.
53697         * lib/unictype/pr_hyphen.c: New file.
53698         * lib/unictype/pr_id_continue.c: New file.
53699         * lib/unictype/pr_id_start.c: New file.
53700         * lib/unictype/pr_ideographic.c: New file.
53701         * lib/unictype/pr_ids_binary_operator.c: New file.
53702         * lib/unictype/pr_ids_trinary_operator.c: New file.
53703         * lib/unictype/pr_ignorable_control.c: New file.
53704         * lib/unictype/pr_iso_control.c: New file.
53705         * lib/unictype/pr_join_control.c: New file.
53706         * lib/unictype/pr_left_of_pair.c: New file.
53707         * lib/unictype/pr_line_separator.c: New file.
53708         * lib/unictype/pr_logical_order_exception.c: New file.
53709         * lib/unictype/pr_lowercase.c: New file.
53710         * lib/unictype/pr_math.c: New file.
53711         * lib/unictype/pr_non_break.c: New file.
53712         * lib/unictype/pr_not_a_character.c: New file.
53713         * lib/unictype/pr_numeric.c: New file.
53714         * lib/unictype/pr_other_alphabetic.c: New file.
53715         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53716         * lib/unictype/pr_other_grapheme_extend.c: New file.
53717         * lib/unictype/pr_other_id_continue.c: New file.
53718         * lib/unictype/pr_other_id_start.c: New file.
53719         * lib/unictype/pr_other_lowercase.c: New file.
53720         * lib/unictype/pr_other_math.c: New file.
53721         * lib/unictype/pr_other_uppercase.c: New file.
53722         * lib/unictype/pr_paired_punctuation.c: New file.
53723         * lib/unictype/pr_paragraph_separator.c: New file.
53724         * lib/unictype/pr_pattern_syntax.c: New file.
53725         * lib/unictype/pr_pattern_white_space.c: New file.
53726         * lib/unictype/pr_private_use.c: New file.
53727         * lib/unictype/pr_punctuation.c: New file.
53728         * lib/unictype/pr_quotation_mark.c: New file.
53729         * lib/unictype/pr_radical.c: New file.
53730         * lib/unictype/pr_sentence_terminal.c: New file.
53731         * lib/unictype/pr_soft_dotted.c: New file.
53732         * lib/unictype/pr_space.c: New file.
53733         * lib/unictype/pr_terminal_punctuation.c: New file.
53734         * lib/unictype/pr_test.c: New file.
53735         * lib/unictype/pr_titlecase.c: New file.
53736         * lib/unictype/pr_unassigned_code_value.c: New file.
53737         * lib/unictype/pr_unified_ideograph.c: New file.
53738         * lib/unictype/pr_uppercase.c: New file.
53739         * lib/unictype/pr_variation_selector.c: New file.
53740         * lib/unictype/pr_white_space.c: New file.
53741         * lib/unictype/pr_xid_continue.c: New file.
53742         * lib/unictype/pr_xid_start.c: New file.
53743         * lib/unictype/pr_zero_width.c: New file.
53744         * lib/unictype/scripts.c: New file.
53745         * lib/unictype/sy_c_ident.c: New file.
53746         * lib/unictype/sy_c_whitespace.c: New file.
53747         * lib/unictype/sy_java_ident.c: New file.
53748         * lib/unictype/sy_java_whitespace.c: New file.
53749
53750         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53751         Unicode 5.0.0.
53752         * lib/unictype/blocks.h: Likewise.
53753         * lib/unictype/categ_C.h: Likewise.
53754         * lib/unictype/categ_Cc.h: Likewise.
53755         * lib/unictype/categ_Cf.h: Likewise.
53756         * lib/unictype/categ_Cn.h: Likewise.
53757         * lib/unictype/categ_Co.h: Likewise.
53758         * lib/unictype/categ_Cs.h: Likewise.
53759         * lib/unictype/categ_L.h: Likewise.
53760         * lib/unictype/categ_Ll.h: Likewise.
53761         * lib/unictype/categ_Lm.h: Likewise.
53762         * lib/unictype/categ_Lo.h: Likewise.
53763         * lib/unictype/categ_Lt.h: Likewise.
53764         * lib/unictype/categ_Lu.h: Likewise.
53765         * lib/unictype/categ_M.h: Likewise.
53766         * lib/unictype/categ_Mc.h: Likewise.
53767         * lib/unictype/categ_Me.h: Likewise.
53768         * lib/unictype/categ_Mn.h: Likewise.
53769         * lib/unictype/categ_N.h: Likewise.
53770         * lib/unictype/categ_Nd.h: Likewise.
53771         * lib/unictype/categ_Nl.h: Likewise.
53772         * lib/unictype/categ_No.h: Likewise.
53773         * lib/unictype/categ_P.h: Likewise.
53774         * lib/unictype/categ_Pc.h: Likewise.
53775         * lib/unictype/categ_Pd.h: Likewise.
53776         * lib/unictype/categ_Pe.h: Likewise.
53777         * lib/unictype/categ_Pf.h: Likewise.
53778         * lib/unictype/categ_Pi.h: Likewise.
53779         * lib/unictype/categ_Po.h: Likewise.
53780         * lib/unictype/categ_Ps.h: Likewise.
53781         * lib/unictype/categ_S.h: Likewise.
53782         * lib/unictype/categ_Sc.h: Likewise.
53783         * lib/unictype/categ_Sk.h: Likewise.
53784         * lib/unictype/categ_Sm.h: Likewise.
53785         * lib/unictype/categ_So.h: Likewise.
53786         * lib/unictype/categ_Z.h: Likewise.
53787         * lib/unictype/categ_Zl.h: Likewise.
53788         * lib/unictype/categ_Zp.h: Likewise.
53789         * lib/unictype/categ_Zs.h: Likewise.
53790         * lib/unictype/categ_of.h: Likewise.
53791         * lib/unictype/combining.h: Likewise.
53792         * lib/unictype/ctype_alnum.h: Likewise.
53793         * lib/unictype/ctype_alpha.h: Likewise.
53794         * lib/unictype/ctype_blank.h: Likewise.
53795         * lib/unictype/ctype_cntrl.h: Likewise.
53796         * lib/unictype/ctype_digit.h: Likewise.
53797         * lib/unictype/ctype_graph.h: Likewise.
53798         * lib/unictype/ctype_lower.h: Likewise.
53799         * lib/unictype/ctype_print.h: Likewise.
53800         * lib/unictype/ctype_punct.h: Likewise.
53801         * lib/unictype/ctype_space.h: Likewise.
53802         * lib/unictype/ctype_upper.h: Likewise.
53803         * lib/unictype/ctype_xdigit.h: Likewise.
53804         * lib/unictype/decdigit.h: Likewise.
53805         * lib/unictype/digit.h: Likewise.
53806         * lib/unictype/mirror.h: Likewise.
53807         * lib/unictype/numeric.h: Likewise.
53808         * lib/unictype/pr_alphabetic.h: Likewise.
53809         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53810         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53811         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53812         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53813         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53814         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53815         * lib/unictype/pr_bidi_control.h: Likewise.
53816         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53817         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53818         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53819         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53820         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53821         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53822         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53823         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53824         * lib/unictype/pr_bidi_pdf.h: Likewise.
53825         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53826         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53827         * lib/unictype/pr_combining.h: Likewise.
53828         * lib/unictype/pr_composite.h: Likewise.
53829         * lib/unictype/pr_currency_symbol.h: Likewise.
53830         * lib/unictype/pr_dash.h: Likewise.
53831         * lib/unictype/pr_decimal_digit.h: Likewise.
53832         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53833         * lib/unictype/pr_deprecated.h: Likewise.
53834         * lib/unictype/pr_diacritic.h: Likewise.
53835         * lib/unictype/pr_extender.h: Likewise.
53836         * lib/unictype/pr_format_control.h: Likewise.
53837         * lib/unictype/pr_grapheme_base.h: Likewise.
53838         * lib/unictype/pr_grapheme_extend.h: Likewise.
53839         * lib/unictype/pr_grapheme_link.h: Likewise.
53840         * lib/unictype/pr_hex_digit.h: Likewise.
53841         * lib/unictype/pr_hyphen.h: Likewise.
53842         * lib/unictype/pr_id_continue.h: Likewise.
53843         * lib/unictype/pr_id_start.h: Likewise.
53844         * lib/unictype/pr_ideographic.h: Likewise.
53845         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53846         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53847         * lib/unictype/pr_ignorable_control.h: Likewise.
53848         * lib/unictype/pr_iso_control.h: Likewise.
53849         * lib/unictype/pr_join_control.h: Likewise.
53850         * lib/unictype/pr_left_of_pair.h: Likewise.
53851         * lib/unictype/pr_line_separator.h: Likewise.
53852         * lib/unictype/pr_logical_order_exception.h: Likewise.
53853         * lib/unictype/pr_lowercase.h: Likewise.
53854         * lib/unictype/pr_math.h: Likewise.
53855         * lib/unictype/pr_non_break.h: Likewise.
53856         * lib/unictype/pr_not_a_character.h: Likewise.
53857         * lib/unictype/pr_numeric.h: Likewise.
53858         * lib/unictype/pr_other_alphabetic.h: Likewise.
53859         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53860         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53861         * lib/unictype/pr_other_id_continue.h: Likewise.
53862         * lib/unictype/pr_other_id_start.h: Likewise.
53863         * lib/unictype/pr_other_lowercase.h: Likewise.
53864         * lib/unictype/pr_other_math.h: Likewise.
53865         * lib/unictype/pr_other_uppercase.h: Likewise.
53866         * lib/unictype/pr_paired_punctuation.h: Likewise.
53867         * lib/unictype/pr_paragraph_separator.h: Likewise.
53868         * lib/unictype/pr_pattern_syntax.h: Likewise.
53869         * lib/unictype/pr_pattern_white_space.h: Likewise.
53870         * lib/unictype/pr_private_use.h: Likewise.
53871         * lib/unictype/pr_punctuation.h: Likewise.
53872         * lib/unictype/pr_quotation_mark.h: Likewise.
53873         * lib/unictype/pr_radical.h: Likewise.
53874         * lib/unictype/pr_sentence_terminal.h: Likewise.
53875         * lib/unictype/pr_soft_dotted.h: Likewise.
53876         * lib/unictype/pr_space.h: Likewise.
53877         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53878         * lib/unictype/pr_titlecase.h: Likewise.
53879         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53880         * lib/unictype/pr_unified_ideograph.h: Likewise.
53881         * lib/unictype/pr_uppercase.h: Likewise.
53882         * lib/unictype/pr_variation_selector.h: Likewise.
53883         * lib/unictype/pr_white_space.h: Likewise.
53884         * lib/unictype/pr_xid_continue.h: Likewise.
53885         * lib/unictype/pr_xid_start.h: Likewise.
53886         * lib/unictype/pr_zero_width.h: Likewise.
53887         * lib/unictype/scripts.h: Likewise.
53888         * lib/unictype/scripts_byname.gperf: Likewise.
53889         * lib/unictype/sy_c_ident.h: Likewise.
53890         * lib/unictype/sy_c_whitespace.h: Likewise.
53891         * lib/unictype/sy_java_ident.h: Likewise.
53892         * lib/unictype/sy_java_whitespace.h: Likewise.
53893
53894         * lib/unictype/Makefile: New file.
53895         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53896         glibc.
53897         * lib/unictype/3level.h: New file, copied from glibc.
53898         * lib/unictype/3levelbit.h: New file.
53899
53900 2007-11-11  Bruno Haible  <bruno@clisp.org>
53901
53902         * modules/gperf: New file.
53903         * modules/iconv_open (Depends-on): Add it.
53904         (Makefile.am): Remove the GPERF definition.
53905
53906 2007-11-11  Bruno Haible  <bruno@clisp.org>
53907
53908         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53909         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53910
53911 2007-11-11  Bruno Haible  <bruno@clisp.org>
53912
53913         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53914         (usage): Remove function.
53915
53916 2007-11-11  Bruno Haible  <bruno@clisp.org>
53917
53918         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53919         gl_FUNC_CEILF_LIBS.
53920         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53921         gl_FUNC_CEIL_LIBS.
53922         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53923         gl_FUNC_CEILL_LIBS.
53924         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53925         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53926         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53927
53928 2007-11-11  Bruno Haible  <bruno@clisp.org>
53929
53930         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53931         roundf were declared but do not exist on functions.
53932         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53933         roundl were declared but do not exist on functions.
53934         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53935         HAVE_FLOORL_AND_CEILL, respectively.
53936         Needed for Sun C on Solaris 10.
53937
53938 2007-11-11  Bruno Haible  <bruno@clisp.org>
53939
53940         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53941         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53942         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53943         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53945         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53946         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53947         HAVE_DECL_ROUNDF.
53948         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53949         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53951         of HAVE_DECL_ROUND*.
53952         * modules/math (Makefile.am): Update.
53953
53954 2007-11-10  Bruno Haible  <bruno@clisp.org>
53955
53956         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53957         ptrdiff_t as m4/intl.m4.
53958
53959 2007-11-10  Jim Meyering  <meyering@redhat.com>
53960
53961         Avoid link failure for the argmatch test.
53962         * tests/test-argmatch.c (usage): Define function to avoid a link
53963         failure: argmatch_die requires a usage function.
53964
53965 2007-11-09  Bruno Haible  <bruno@clisp.org>
53966
53967         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53968         * doc/functions/vsnprintf.texi: Likewise.
53969         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53970         with a size argument < 2.
53971
53972 2007-11-09  Bruno Haible  <bruno@clisp.org>
53973
53974         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53975         buffer. Fixes an inefficiency introduced on 2007-11-03.
53976
53977 2007-11-09  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53980         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53981
53982 2007-11-08  Jim Meyering  <meyering@redhat.com>
53983
53984         Change cache variable name prefix "jm_" to "gl_" everywhere.
53985         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53986         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53987         * m4/uptime.m4: s/gl_/jm_/
53988
53989 2007-11-07  Bruno Haible  <bruno@clisp.org>
53990
53991         Update to GNU gettext 0.17.
53992         * m4/intl.m4: Update to GNU gettext 0.17.
53993         * m4/po.m4: Likewise.
53994         * modules/gettext (Files): Remove m4/ulonglong.m4.
53995         (configure.ac): Require gettext infrastructure from version 0.17.
53996
53997 2007-11-06  Bruno Haible  <bruno@clisp.org>
53998
53999         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54000         symbolic values are not defined in a public header.
54001         * lib/freadable.c (freadable) [QNX]: Likewise.
54002         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54003         * lib/freading.c (freading) [QNX]: Likewise.
54004         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54005         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54006         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54007         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54008         Reported by Alain Magloire.
54009
54010         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54011
54012 2007-11-05  Bruno Haible  <bruno@clisp.org>
54013
54014         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54015         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54016         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54017         Reported by Eric Blake.
54018
54019 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54020             Bruno Haible  <bruno@clisp.org>
54021
54022         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54023         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54024         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54025         (malloc): Undefine also before including <stdlib.h>.
54026         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54027         Needed on OSF/1 4.0.
54028
54029 2007-11-05  Jim Meyering  <meyering@redhat.com>
54030
54031         git-version-gen: sync from coreutils.
54032         * build-aux/git-version-gen: Add comments.
54033         Change the first '-' to '.' in the snapshot version string,
54034         e.g., 6.9-377-08144 -> 6.9.377-08144
54035         Remove first parameter.
54036         Don't declare a version "-dirty" merely because a time
54037         stamp has changed.
54038
54039 2007-11-04  Bruno Haible  <bruno@clisp.org>
54040
54041         * lib/lock.h: Protect all macro definitions containing an 'if'
54042         statement through a "do { ... } while (0)".
54043         * lib/tls.h: Likewise.
54044
54045 2007-11-04  Bruno Haible  <bruno@clisp.org>
54046
54047         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54048
54049 2007-11-04  Bruno Haible  <bruno@clisp.org>
54050
54051         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54052         * modules/fprintf-posix (Depends-on): Add nocrash.
54053         * modules/snprintf-posix (Depends-on): Likewise.
54054         * modules/sprintf-posix (Depends-on): Likewise.
54055         * modules/vasnprintf-posix (Depends-on): Likewise.
54056         * modules/vasprintf-posix (Depends-on): Likewise.
54057         * modules/vfprintf-posix (Depends-on): Likewise.
54058         * modules/vsnprintf-posix (Depends-on): Likewise.
54059         * modules/vsprintf-posix (Depends-on): Likewise.
54060         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54061         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54062         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54063         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54064         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54065         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54066         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54067
54068 2007-11-04  Bruno Haible  <bruno@clisp.org>
54069
54070         * modules/nocrash: New file.
54071         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54072         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54073
54074 2007-11-04  Bruno Haible  <bruno@clisp.org>
54075
54076         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54077         precision handling.
54078         * tests/test-vasprintf-posix.c (test_function): Likewise.
54079         * tests/test-snprintf-posix.h (test_function): Likewise.
54080         * tests/test-sprintf-posix.h (test_function): Likewise.
54081
54082         Fix *printf behaviour for large precisions on mingw and BeOS.
54083         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54084         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54086         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54088         gl_PRINTF_PRECISION and test its result. Invoke
54089         gl_PREREQ_VASNPRINTF_PRECISION.
54090         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54097         * doc/functions/fprintf.texi: Update.
54098         * doc/functions/printf.texi: Update.
54099         * doc/functions/snprintf.texi: Update.
54100         * doc/functions/sprintf.texi: Update.
54101         * doc/functions/vfprintf.texi: Update.
54102         * doc/functions/vprintf.texi: Update.
54103         * doc/functions/vsnprintf.texi: Update.
54104         * doc/functions/vsprintf.texi: Update.
54105
54106 2007-11-04  Bruno Haible  <bruno@clisp.org>
54107
54108         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54109
54110 2007-11-04  Bruno Haible  <bruno@clisp.org>
54111
54112         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54113         Reported by Sylvain Beucler <beuc@gnu.org>.
54114
54115 2007-11-03  Bruno Haible  <bruno@clisp.org>
54116
54117         * tests/test-fprintf-posix2.sh: New file.
54118         * tests/test-fprintf-posix2.c: New file.
54119         * modules/fprintf-posix-tests (Files): Add them.
54120         (TESTS): Add test-fprintf-posix2.sh.
54121         (configure.ac): Check for getrlimit and setrlimit.
54122         (check_PROGRAMS): Add test-fprintf-posix2.
54123
54124         * tests/test-printf-posix2.sh: New file.
54125         * tests/test-printf-posix2.c: New file.
54126         * modules/printf-posix-tests (Files): Add them.
54127         (TESTS): Add test-printf-posix2.sh.
54128         (configure.ac): Check for getrlimit and setrlimit.
54129         (check_PROGRAMS): Add test-printf-posix2.
54130
54131         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54132         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54133         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54134         (decode_double): New function, copied from decode_long_double.
54135         (scale10_round_decimal_decoded): New function, extracted from
54136         scale10_round_decimal_long_double.
54137         (scale10_round_decimal_long_double): Use it.
54138         (scale10_round_decimal_double): New function.
54139         (floorlog10): New function.
54140         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54142         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54143         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54144         gl_PRINTF_ENOMEM and test its result. Invoke
54145         gl_PREREQ_VASNPRINTF_ENOMEM.
54146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54148         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54149         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54150         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54151         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54152         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54153         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54154         * modules/snprintf-posix (Depends-on): Likewise.
54155         * modules/sprintf-posix (Depends-on): Likewise.
54156         * modules/vasnprintf-posix (Depends-on): Likewise.
54157         * modules/vasprintf-posix (Depends-on): Likewise.
54158         * modules/vfprintf-posix (Depends-on): Likewise.
54159         * modules/vsnprintf-posix (Depends-on): Likewise.
54160         * modules/vsprintf-posix (Depends-on): Likewise.
54161         * doc/functions/fprintf.texi: Update.
54162         * doc/functions/printf.texi: Update.
54163         * doc/functions/snprintf.texi: Update.
54164         * doc/functions/sprintf.texi: Update.
54165         * doc/functions/vfprintf.texi: Update.
54166         * doc/functions/vprintf.texi: Update.
54167         * doc/functions/vsnprintf.texi: Update.
54168         * doc/functions/vsprintf.texi: Update.
54169
54170 2007-11-03  Bruno Haible  <bruno@clisp.org>
54171
54172         * modules/frexp-nolibm-tests: New file.
54173
54174         * modules/frexp-nolibm: New file.
54175         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54176
54177 2007-11-03  Bruno Haible  <bruno@clisp.org>
54178
54179         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54180         value is C99 compliant.
54181         Needed for OSF/1 5.1.
54182
54183 2007-11-03  Bruno Haible  <bruno@clisp.org>
54184
54185         Fix out-of-memory handling of vasnprintf.
54186         * lib/printf-parse.c: Include <errno.h>.
54187         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54188         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54189         is already set.
54190
54191 2007-11-02  Eric Blake  <ebb9@byu.net>
54192
54193         Fix tests on cygwin.
54194         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54195
54196 2007-11-01  Bruno Haible  <bruno@clisp.org>
54197
54198         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54199         warning.
54200         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54201         needed for POSIX compatibility.
54202
54203 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54204
54205         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54206         for compatibility with GNU.
54207
54208 2007-11-01  Bruno Haible  <bruno@clisp.org>
54209
54210         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54211         (putenv): Renamed from rpl_putenv. Change argument type from
54212         'const char *' to 'char *'.
54213         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54214         of defining putenv in config.h, just set REPLACE_PUTENV.
54215         * modules/putenv (Depends-on): Add stdlib.
54216         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54217         (Include): Use <stdlib.h>.
54218         * lib/stdlib.in.h (putenv): New declaration.
54219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54220         REPLACE_PUTENV.
54221         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54222         REPLACE_PUTENV.
54223         Needed for MacOS X 10.5.0.
54224         Reported by Peter O'Gorman <peter@pogma.com>.
54225
54226 2007-11-01  Jim Meyering  <meyering@redhat.com>
54227
54228         Treat an empty date string exactly like "0".
54229         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54230         if the remaining date string (to be parsed) is empty, use "0".
54231         Reported by Mischa Molhoek and discussed in this thread:
54232         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54233
54234 2007-10-31  Bruno Haible  <bruno@clisp.org>
54235
54236         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54237         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54238         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54239         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54240         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54241         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54242
54243 2007-10-31  Bruno Haible  <bruno@clisp.org>
54244
54245         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54246         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54247         (AC_TYPE_LONG_LONG_INT): Use it.
54248         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54249         it as well.
54250         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54251         to m4/longlong.m4.
54252         * modules/stdint (Files): Remove m4/ulonglong.m4.
54253         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54254         m4/ulonglong.m4.
54255         * modules/strtoumax (Files): Likewise.
54256
54257 2007-10-30  Bruno Haible  <bruno@clisp.org>
54258
54259         * modules/xvasprintf-posix: New file.
54260         Suggested by Eric Blake.
54261
54262 2007-10-30  Bruno Haible  <bruno@clisp.org>
54263
54264         * modules/xprintf-posix-tests: New file.
54265         * tests/test-xprintf-posix.sh: New file.
54266         * tests/test-xprintf-posix.c: New file.
54267         * tests/test-xfprintf-posix.c: New file.
54268
54269         * modules/xprintf-posix: New file.
54270
54271 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54272
54273         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54274         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54275         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54276
54277 2007-10-29  Bruno Haible  <bruno@clisp.org>
54278
54279         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54280         contain the special marker '_cv_'.
54281         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54282         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54283         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54284         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54285         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54286         Reported by Ralf Wildenhues.
54287
54288 2007-10-29  Bruno Haible  <bruno@clisp.org>
54289
54290         * gnulib-tool (func_import): When --lgpl is not specified, set
54291         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54292         GPLv3.
54293         Reported by Simon Josefsson.
54294
54295 2007-10-28  Bruno Haible  <bruno@clisp.org>
54296
54297         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54298         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54299         HAVE_DECL_ISFINITE.
54300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54301         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54302         HAVE_DECL_ISFINITE.
54303
54304 2007-10-28  Bruno Haible  <bruno@clisp.org>
54305
54306         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54307         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54308
54309 2007-10-28  Bruno Haible  <bruno@clisp.org>
54310
54311         Fix link errors with Sun C 5.0 on Solaris 10.
54312         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54313         function is declared but not present in the compiler's libm.
54314         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54315         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54316         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54317         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54318         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54319         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54320         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54322         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54323         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54324         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54325         HAVE_DECL_FLOORL.
54326
54327 2007-10-28  Bruno Haible  <bruno@clisp.org>
54328
54329         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54330         gl_FUNC_FLOORL. Cache the result.
54331         (gl_FUNC_FLOORL): Use it.
54332         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54333         gl_FUNC_CEILL. Cache the result.
54334         (gl_FUNC_CEILL): Use it.
54335
54336         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54337         gl_FUNC_FLOOR. Cache the result.
54338         (gl_FUNC_FLOOR): Use it.
54339         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54340         gl_FUNC_CEIL. Cache the result.
54341         (gl_FUNC_CEIL): Use it.
54342
54343         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54344         gl_FUNC_FLOORF. Cache the result.
54345         (gl_FUNC_FLOORF): Use it.
54346         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54347         gl_FUNC_CEILF. Cache the result.
54348         (gl_FUNC_CEILF): Use it.
54349
54350 2007-10-28  Bruno Haible  <bruno@clisp.org>
54351
54352         * gnulib-tool: Allow specifying the LGPL version number through
54353         --lgpl=2 or --lgpl=3.
54354         (func_usage): Document --lgpl with argument.
54355         Handle --lgpl=... arguments.
54356         (func_import): Recognize also gl_LGPL calls with an argument. When
54357         --lgpl=2 is used and the module's license is just LGPL, report an
54358         error. Set sed_transform_lib_file according to the lgpl variable. In
54359         the generated files, use --lgpl or gl_LGPL invocations with argument,
54360         if necessary.
54361         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54362         an LGPv2+ license.
54363         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54364         gl_LGPL macro.
54365
54366 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54367             Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54370         (u16_uctomb_aux): Likewise.
54371         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54372         !HAVE_INLINE.
54373         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54374
54375 2007-10-28  Bruno Haible  <bruno@clisp.org>
54376
54377         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54378         Invoke AM_GETTEXT_OPTION if it exists.
54379         * modules/vasprintf: Likewise.
54380         * modules/verror: Likewise.
54381         * modules/xprintf: Likewise.
54382         * modules/xvasprintf: Likewise.
54383
54384 2007-10-27  Ben Pfaff  <blp@gnu.org>
54385
54386         * lib/math.in.h: Define isfinite macro and prototypes for
54387         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54388         implementations.
54389         * m4/math_h.m4: New substitutions for isfinite module.
54390         * lib/isfinite.c: New file.
54391         * m4/isfinite.m4: New file.
54392         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54393         * modules/isfinite: New file.
54394         * modules/isfinite-tests: New file.
54395         * tests/tests-isfinite.c: New file.
54396         * doc/functions/isfinite.texi: Mention isfinite module.
54397         * MODULES.html.sh: Mention new module.
54398
54399 2007-10-27  Ben Pfaff  <blp@gnu.org>
54400
54401         Ralf Wildenhues reported that Tru64 4.0D declares the round
54402         functions but does not have definitions.
54403         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54404         cannot be found in any library, set the output variable to
54405         "missing" instead of "".
54406         * m4/round.m4: Also use our substitute if we cannot find round in
54407         any library, even if it is declared.
54408         * m4/roundf.m4: Likewise for roundf.
54409         * m4/roundl.m4: Likewise for roundl.
54410         * lib/math.in.h: Undefine roundf, round, roundl before defining
54411         their replacements, to allow for hypothetical systems where these
54412         may be defined as macros but not available in libraries.
54413
54414 2007-10-27  Bruno Haible  <bruno@clisp.org>
54415
54416         * doc/gnulib.texi: Invoke @firstparagraphindent.
54417         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54418         changes in gnulib.
54419         (Source changes): New section.
54420
54421 2007-10-26  Bruno Haible  <bruno@clisp.org>
54422
54423         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54424         borrowed from autoconf.
54425
54426 2007-10-26  Bruno Haible  <bruno@clisp.org>
54427
54428         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54429         strerror returned the empty string. Needed on HP-UX 11.00.
54430
54431 2007-10-24  Micah Cowan  <micah@cowan.name>
54432
54433         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54434         * build-aux/bootstrap: Remove support for now-unnecessary option,
54435         --cvs-user, and envvars CVS_USER, CVS_RSH.
54436
54437 2007-10-24  Jim Meyering  <meyering@redhat.com>
54438
54439         Avoid diagnostics from sha1sum when there is no cached checksum.
54440         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54441         if the po.s1 file hasn't been created yet.
54442
54443         * build-aux/bootstrap: Sync from coreutils:
54444         2007-10-24  Jim Meyering  <meyering@redhat.com>
54445         Get gnulib from the git repository, not from an obsolete cvs one.
54446         * build-aux/bootstrap: Suggestion from Micah Cowan.
54447         2007-10-04  Jim Meyering  <jim@meyering.net>
54448         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54449         (update_po_files): Work also when there are no .po files in po/.
54450
54451 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54452
54453         * README: Append ".git" to git and cg examples.
54454         Problem reported by Benoit Sigoure.
54455
54456 2007-10-23  Micah Cowan  <micah@cowan.name>
54457
54458         * users.txt: Add wget.
54459
54460 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54461
54462         Fix linking of some unistdio tests on FreeBSD.
54463         * modules/unistdio/u16-vsnprintf-tests
54464         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54465         * modules/unistdio/u16-vsprintf-tests
54466         (test_u16_vsnprintf1_LDADD): Likewise.
54467         * modules/unistdio/u32-vsnprintf-tests
54468         (test_u32_vsnprintf1_LDADD): Likewise.
54469         * modules/unistdio/u32-vsprintf-tests
54470         (test_u32_vsprintf1_LDADD): Likewise.
54471         * modules/unistdio/u8-vsnprintf-tests
54472         (test_u8_vsnprintf1_LDADD): Likewise.
54473         * modules/unistdio/u8-vsprintf-tests
54474         (test_u8_vsprintf1_LDADD): Likewise.
54475         * modules/unistdio/ulc-vsnprintf-tests
54476         (test_ulc_vsnprintf1_LDADD): Likewise.
54477         * modules/unistdio/ulc-vsprintf-tests
54478         (test_ulc_vsprintf1_LDADD): Likewise.
54479
54480         Fix linking of some uniconv tests on FreeBSD.
54481         * modules/uniconv/u16-conv-from-enc-tests
54482         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54483         * modules/uniconv/u16-conv-to-enc-tests
54484         (test_u16_conv_to_enc_LDADD): Likewise.
54485         * modules/uniconv/u16-strconv-from-enc-tests
54486         (test_u16_strconv_from_enc_LDADD): Likewise.
54487         * modules/uniconv/u16-strconv-to-enc-tests
54488         (test_u16_strconv_to_enc_LDADD): Likewise.
54489         * modules/uniconv/u32-conv-from-enc-tests
54490         (test_u32_conv_from_enc_LDADD): Likewise.
54491         * modules/uniconv/u32-conv-to-enc-tests
54492         (test_u32_conv_to_enc_LDADD): Likewise.
54493         * modules/uniconv/u32-strconv-from-enc-tests
54494         (test_u32_strconv_from_enc_LDADD): Likewise.
54495         * modules/uniconv/u32-strconv-to-enc-tests
54496         (test_u32_strconv_to_enc_LDADD): Likewise.
54497         * modules/uniconv/u8-conv-from-enc-tests
54498         (test_u8_conv_from_enc_LDADD): Likewise.
54499         * modules/uniconv/u8-conv-to-enc-tests
54500         (test_u8_conv_to_enc_LDADD): Likewise.
54501         * modules/uniconv/u8-strconv-from-enc-tests
54502         (test_u8_strconv_from_enc_LDADD): Likewise.
54503         * modules/uniconv/u8-strconv-to-enc-tests
54504         (test_u8_strconv_to_enc_LDADD): Likewise.
54505
54506 2007-10-22  Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54509         size.
54510
54511 2007-10-22  Eric Blake  <ebb9@byu.net>
54512
54513         Tweak x*printf documentation.
54514         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54515         variable name and comments.
54516         Suggested by Bruno Haible.
54517
54518 2007-10-22  Bruno Haible  <bruno@clisp.org>
54519
54520         * lib/acl.c (copy_acl): Fix file name in comment.
54521
54522 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         Fix Tru64 problem with stdbool.h.
54525         * lib/stdbool.in.h (false, true):
54526         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54527         Don't declare as an enum in this situation; it runs afoul of Tru64.
54528         Problem reported by Steven M. Schweda in
54529         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54530
54531 2007-10-22  Eric Blake  <ebb9@byu.net>
54532
54533         Also wrap vf?printf.
54534         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54535         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54536         (xvprintf, xvfprintf): New functions.
54537
54538 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54539
54540         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54541         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54542
54543         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54544         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54545
54546 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54547
54548         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54549         by Bruno Haible.
54550
54551 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54552
54553         * lib/getloadavg.c
54554         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54555         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54556
54557         * tests/test-i-ring.c: Work for C89.
54558
54559 2007-10-22  Bruno Haible  <bruno@clisp.org>
54560
54561         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54562         -1u, in preprocessor expression, so that we don't test for the bug
54563         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54565
54566 2007-10-22  Eric Blake  <ebb9@byu.net>
54567
54568         * tests/test-yesno.sh: Silence stderr during test.
54569
54570 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54571
54572         * modules/crypto/gc-camellia: New file.
54573
54574         * m4/gc-camellia.m4: New file.
54575
54576         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54577
54578         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54579
54580 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54581
54582         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54583         --help to stdout.  Reported by sms@antinode.org (Steven
54584         M. Schweda).
54585
54586 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54587
54588         * users.txt: Fix link to libksba.
54589
54590 2007-10-21  Ben Pfaff  <blp@gnu.org>
54591
54592         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54593         round.c roundf implementation that depends on floorf and ceilf to
54594         be tested unconditionally.
54595
54596 2007-10-21  Ben Pfaff  <blp@gnu.org>
54597
54598         * m4/check-libm-func.m4: Removed.
54599         * m4/check-math-lib.m4: New file.
54600         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54601         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54602         definition and lack of AC_LIBOBJ([roundf]).
54603         * m4/roundl.m4: Ditto, and similarly for roundl.
54604         * modules/round: Reference new m4 file.
54605         * modules/roundf: Ditto.
54606         * modules/roundl: Ditto.
54607         * tests/test-round2.c (main): Use ROUND instead of round.
54608         Bug report from Bruno Haible.
54609
54610 2007-10-21  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54613         context.
54614
54615 2007-10-21  Bruno Haible  <bruno@clisp.org>
54616
54617         * tests/test-wcwidth.c (main): Allow negative result for some control
54618         characters.
54619
54620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54621         Needed on OSF/1 5.1.
54622
54623 2007-10-21  Bruno Haible  <bruno@clisp.org>
54624
54625         * tests/test-floorf1.c: Include isnanf.h.
54626         (main): Use isnanf() instead of isnan().
54627         * tests/test-ceilf1.c: Include isnanf.h.
54628         (main): Use isnanf() instead of isnan().
54629         * tests/test-truncf1.c: Include isnanf.h.
54630         (main): Use isnanf() instead of isnan().
54631         * tests/test-roundf1.c: Include isnanf.h.
54632         (main): Use isnanf() instead of isnan().
54633
54634 2007-10-21  Eric Blake  <ebb9@byu.net>
54635
54636         * users.txt: Update URL for m4.
54637
54638 2007-10-21  Bruno Haible  <bruno@clisp.org>
54639
54640         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54641
54642 2007-10-21  Bruno Haible  <bruno@clisp.org>
54643
54644         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54645         Git's management files if the CVS files are not present.
54646
54647 2007-10-20  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54650         gcc-3.4.x.
54651
54652 2007-10-20  Ben Pfaff  <blp@gnu.org>
54653
54654         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54655         implementations.
54656         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54657         * lib/round.c: New file.
54658         * lib/roundf.c: New file.
54659         * lib/roundl.c: New file.
54660         * m4/round.m4: New file.
54661         * m4/roundf.m4: New file.
54662         * m4/roundl.m4: New file.
54663         * m4/check-libm-func-m4: New file.
54664         * modules/math: Replace round, roundf, roundl related @VARS@ in
54665         math.in.h.
54666         * modules/round: New file.
54667         * modules/round-tests: New file.
54668         * modules/roundf: New file.
54669         * modules/roundf-tests: New file.
54670         * modules/roundl: New file.
54671         * modules/roundl-tests: New file.
54672         * tests/test-round1.c: New file.
54673         * tests/test-round2.c: New file.
54674         * tests/test-roundf1.c: New file.
54675         * tests/test-roundf2.c: New file.
54676         * tests/test-roundl.c: New file.
54677         * doc/functions/round.texi: Mention round module.
54678         * doc/functions/roundf.texi: Mention roundf module.
54679         * doc/functions/roundl.texi: Mention roundl module.
54680         * MODULES.html.sh: Mention new modules.
54681         Thanks to Bruno Haible for suggestions.
54682
54683 2007-10-20  Jim Meyering  <meyering@redhat.com>
54684
54685         * lib/xprintf.c: Include <config.h> unconditionally.
54686
54687         Change xprintf's license to GPL.
54688         * modules/xprintf (License): s/LGPL/GPL/, since this module
54689         depends on modules (exit and exitfail) which are GPL.
54690         Suggestion from Bruno Haible.
54691
54692         xprintf fixes.
54693         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54694         Use a clearer diagnostic.
54695         Patch from Bruno Haible.
54696
54697 2007-10-20  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54700         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54702
54703 2007-10-20  Bruno Haible  <bruno@clisp.org>
54704
54705         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54706         precision in the comparison result > x - 1 or similar.
54707         * tests/test-ceilf2.c (correct_result_p): Likewise.
54708         * tests/test-truncf2.c (correct_result_p): Likewise.
54709         * tests/test-trunc2.c (correct_result_p): Likewise.
54710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54711
54712 2007-10-20  Bruno Haible  <bruno@clisp.org>
54713
54714         * modules/ceil: New file.
54715         * m4/ceil.m4: New file.
54716         * doc/functions/ceil.texi: Mention the 'ceil' module.
54717
54718 2007-10-20  Bruno Haible  <bruno@clisp.org>
54719
54720         * modules/floor: New file.
54721         * m4/floor.m4: New file.
54722         * doc/functions/floor.texi: Mention the 'floor' module.
54723
54724 2007-10-20  Bruno Haible  <bruno@clisp.org>
54725
54726         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54727         of %a.
54728         * modules/floorf-tests (Depends-on): Likewise.
54729         * modules/truncf-tests (Depends-on): Likewise.
54730         * modules/trunc-tests (Depends-on): Likewise.
54731         Reported by Ben Pfaff.
54732
54733 2007-10-19  Jim Meyering  <meyering@redhat.com>
54734
54735         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54736         Don't bother testing specific errno values.  Just test ferror.
54737
54738         New module: xprintf
54739         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54740
54741 2007-10-19  Bruno Haible  <bruno@clisp.org>
54742
54743         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54744         syntax.
54745         * modules/javaexec (Makefile.am): Likewise.
54746         * modules/relocatable-prog (Makefile.am): Likewise.
54747         Suggested by Jim Meyering.
54748
54749 2007-10-18  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54752         Reported by Jim Meyering.
54753
54754 2007-10-18  Eric Blake  <ebb9@byu.net>
54755
54756         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54757
54758 2007-10-18  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54761         the format string into writable memory. Needed in Fortify conditions.
54762
54763 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54764             Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54767         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54768         * modules/trim (Depends-on): Add mbchar.
54769         (configure.ac): Add gl_FUNC_MBRTOWC.
54770         (Makefile.am): Augment lib_SOURCES.
54771
54772 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54773
54774         Modify glob.c to use fstatat and dirfd, to simplify it.
54775         Suggested by Eric Blake.
54776         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54777         Don't include <stdbool.h>; not used.
54778         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54779         (link_exists_p): Simplify implementation, since we can now assume
54780         dirfd and fstatat.
54781         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54782
54783 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54784
54785         * gnulib-tool (func_get_dependencies): Fix sed script to
54786         match only tests.
54787
54788 2007-10-17  Bruno Haible  <bruno@clisp.org>
54789
54790         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54791         allow locale names without encoding suffix.
54792         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54794
54795 2007-10-16  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54798         * lib/getgroups.c (getgroups): Likewise.
54799         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54800
54801 2007-10-16  Bruno Haible  <bruno@clisp.org>
54802
54803         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54804         * modules/malloc-posix (License): Likewise.
54805         * modules/realloc-posix (License): Likewise.
54806         * modules/calloc-posix (License): Likewise.
54807         * modules/intprops (License): Change from GPL to LGPL, with
54808         Paul Eggert's approval.
54809
54810 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54811
54812         Merge glibc changes into lib/glob.c.
54813
54814         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54815         2007-10-15 04:59:03 UTC.  Here are the changes:
54816
54817         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54818
54819         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54820
54821         * lib/glob.c: Add some branch prediction throughout.
54822
54823         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54824
54825         [BZ #5103]
54826         * lib/glob.c (glob): Recognize patterns starting \/.
54827
54828         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54829
54830         [BZ #3996]
54831         * lib/glob.c (attribute_hidden): Define if not defined.
54832         (glob): Unescape dirname, filename or username when needed and not
54833         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54834         is NULL.  Handle unescaped [ in pattern without closing ].
54835         Don't pass GLOB_CHECK down to recursive glob for directories.
54836         (__glob_pattern_type): New function.
54837         (__glob_pattern_p): Implement using __glob_pattern_type.
54838         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54839         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54840         Remove unreachable code.
54841
54842         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54843
54844         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54845         explain why there are no leaks.
54846
54847         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54848
54849         [BZ #3253]
54850         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54851         time, rather allocate increasingly bigger arrays of pointers, if
54852         possible with alloca, if too large with malloc.
54853
54854 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54855
54856         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54857         Problem reported by H.Merijn Brand in
54858         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54859         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54860         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54861
54862 2007-10-15  Bruno Haible  <bruno@clisp.org>
54863
54864         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54865         with explicit rpl_ prefix.
54866         * lib/fopen.c (fopen): Likewise.
54867         * lib/freopen.c (freopen): Likewise.
54868         * lib/iconv.c (iconv): Likewise.
54869         * lib/iconv_close.c (iconv_close): Likewise.
54870
54871 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54872
54873         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54874
54875 2007-10-15  Bruno Haible  <bruno@clisp.org>
54876
54877         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54878         <stddef.h> instead of <stdlib.h> since we only need NULL.
54879         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54880
54881 2007-10-15  Bruno Haible  <bruno@clisp.org>
54882
54883         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54884         Replace paragraph talking about LIBOBJS.
54885         Reported by Colin Watson <cjwatson@debian.org>.
54886
54887 2007-10-15  Bruno Haible  <bruno@clisp.org>
54888
54889         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54890         <stdlib.h> before using NULL.
54891
54892 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54893
54894         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54895         Reported by Albert Chin <china@thewrittenword.com>.
54896
54897 2007-10-14  Bruno Haible  <bruno@clisp.org>
54898
54899         * modules/iconv_open-utf-tests: New file.
54900         * tests/test-iconv-utf.c: New file.
54901
54902         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54903         * modules/iconv_open-utf: New file.
54904         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54905         (iconv, iconv_close): New declarations.
54906         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54907         be defined.
54908         (iconv_open): Add special handling of conversion between UTF-8 and
54909         UTF-{16,32}{BE,LE}.
54910         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54911         * lib/iconv_close.c: New file.
54912         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54913         gl_FUNC_ICONV_OPEN.
54914         (gl_FUNC_ICONV_OPEN): Use it.
54915         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54916         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54917         and REPLACE_ICONV_UTF.
54918         * modules/iconv_open (Depends-on): Add c-strcase.
54919         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54920         ICONV_CONST.
54921         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54922
54923 2007-10-13  Albert Chin  <china@thewrittenword.com>
54924             Bruno Haible  <bruno@clisp.org>
54925
54926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54927         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54928
54929 2007-10-13  Bruno Haible  <bruno@clisp.org>
54930
54931         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54932         defined, use the ISO C99 inline semantics.
54933         * lib/argp.h (ARGP_EI): Likewise.
54934
54935 2007-10-13  Bruno Haible  <bruno@clisp.org>
54936
54937         Handle 'inline' change in gcc 4.3.0.
54938         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54939         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54940         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54941         argp_fmtstream_point): Disable 'extern' declaration if the function
54942         definition is going to be provided inline.
54943         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54944         semantics, not the ISO C99 inline semantics.
54945         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54946         'extern' declaration if the function definition is going to be provided
54947         inline.
54948         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54949         the GNU C inline semantics, not the ISO C99 inline semantics. With
54950         GCC 4.2, avoid a warning.
54951
54952 2007-10-13  Bruno Haible  <bruno@clisp.org>
54953
54954         * lib/freading.h (freading): Enable the use of __freading for
54955         glibc >= 2.7.
54956         * lib/freading.c (freading): Likewise.
54957
54958 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54959
54960         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54961         "warning: C99 inline functions are not supported; using GNU89".
54962
54963 2007-10-12  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54966         of 2.
54967         * tests/test-ceilf2.c: New file.
54968         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54969
54970         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54971         * modules/ceilf-tests: Update.
54972
54973 2007-10-12  Bruno Haible  <bruno@clisp.org>
54974
54975         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54976         of 2.
54977         * tests/test-floorf2.c: New file.
54978         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54979
54980         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54981         * modules/floorf-tests: Update.
54982
54983 2007-10-12  Bruno Haible  <bruno@clisp.org>
54984
54985         * tests/test-trunc2.c: New file.
54986         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54987
54988         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54989         * modules/trunc-tests: Update.
54990
54991 2007-10-12  Bruno Haible  <bruno@clisp.org>
54992
54993         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54994         of 2.
54995         * tests/test-truncf2.c: New file.
54996         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54997
54998         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54999         * modules/truncf-tests: Update.
55000
55001 2007-10-11  Eric Blake  <ebb9@byu.net>
55002
55003         Don't claim strerror is broken on Interix.
55004         * doc/functions/strerror.texi (strerror): Known broken systems are
55005         now Solaris 8, and not Interix.
55006         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55007         Interix on cross-compile.
55008         Reported by Martin Koeppe in
55009         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55010
55011 2007-10-11  Bruno Haible  <bruno@clisp.org>
55012
55013         * modules/i-ring-tests: New file.
55014         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55015         instead of assert.
55016
55017 2007-10-11  Bruno Haible  <bruno@clisp.org>
55018
55019         * modules/filenamecat-tests: New file.
55020         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55021         * lib/filenamecat.c: Remove test code.
55022
55023 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55026
55027         * lib/strerror.c: Include <string.h> always, to test interface,
55028         and to remove the need for the dummy.
55029         Include intprops.h to compute width instead of doing it ourselves
55030         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55031         (strerror): Define it to return NULL if there's no system strerror.
55032         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55033         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55034         ancient pre-strerror Unix systems well any more.  Saying "unknown
55035         system error" is enough.
55036         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55037         simpler strerror.c implementation.
55038         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55039         Simplify the tests to reflect the simpler strerror implementation.
55040         * modules/strerror (Depends-on): Add intprops.
55041
55042 2007-10-09  Eric Blake  <ebb9@byu.net>
55043
55044         Silence test-fpending.
55045         * modules/fpending-tests (Files): Add wrapper script.
55046         * tests/test-fpending.sh: New file.
55047
55048 2007-10-09  Bruno Haible  <bruno@clisp.org>
55049
55050         * MODULES.html.sh (func_module): Don't create a hyperlink for
55051         function names like 'printf_frexp'.
55052         (Misc): Add crc, memxor.
55053         (Characteristics of floating types): New section.
55054         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55055         isnanf-nolibm, signbit, trunc, truncf, truncl.
55056         (Enhancements for ISO C 99 functions): New subsection Input/output.
55057         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55058         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55059         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55060         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55061         (Enhancements for POSIX:2001 functions): Add chdir-long.
55062         (File system functions): Add areadlink, chdir-safer, read-file.
55063         Remove cycle-check.
55064         (File system as inode set): New section.
55065         (Date and time): Add gethrxtime.
55066         (Multithreading): Add openmp.
55067         (Internationalization functions): Add localename.
55068         (Unicode string functions): Add unistr/u*-mbsnlen.
55069         (Support for maintaining and releasing projects): Add git-version-gen.
55070         (Lone files): Remove directories.
55071
55072 2007-10-08  Ben Pfaff  <blp@gnu.org>
55073
55074         * lib/xmalloca.h: Fix typo in comment.
55075
55076 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55079         when avoiding problems with integer overflow.  Use a portable test
55080         instead.
55081
55082 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55083
55084         * modules/dummy (License): Change to LGPLv2+.
55085         * modules/float (License): Likewise
55086         * modules/realloc (License): Likewise
55087         * modules/stdlib (License): Likewise
55088
55089 2007-10-07  Bruno Haible  <bruno@clisp.org>
55090
55091         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55092         * floor.c (TWO_MANT_DIG): Likewise.
55093         * ceil.c (TWO_MANT_DIG): Likewise.
55094         Reported by Ben Pfaff.
55095
55096 2007-10-07  Bruno Haible  <bruno@clisp.org>
55097
55098         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55099         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55100         * lib/frexp.c (FUNC): Likewise.
55101         * lib/printf-frexp.h (printf_frexp): Likewise.
55102         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55103         * lib/printf-frexp.c (FUNC): Likewise.
55104         Suggested by Jim Meyering.
55105
55106 2007-10-07  Jim Meyering  <meyering@redhat.com>
55107
55108         Make xnanosleep's integer overflow test more robust.
55109         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55110         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55111
55112 2007-10-07  Bruno Haible  <bruno@clisp.org>
55113
55114         * NEWS: Mention the license change.
55115
55116         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55117         abbreviations in the modules files.
55118
55119         Change copyright notice from GPLv2+ to GPLv3+.
55120         * README: Change copyright notice.
55121         * MODULES.html.sh: Likewise.
55122         * build-aux/bootstrap.conf: Likewise.
55123         * build-aux/config.libpath: Likewise.
55124         * build-aux/csharpcomp.sh.in: Likewise.
55125         * build-aux/csharpexec.sh.in: Likewise.
55126         * build-aux/install-reloc: Likewise.
55127         * build-aux/javacomp.sh.in: Likewise.
55128         * build-aux/javaexec.sh.in: Likewise.
55129         * build-aux/ldd.sh.in: Likewise.
55130         * build-aux/reloc-ldflags: Likewise.
55131         * build-aux/relocatable.sh.in: Likewise.
55132         * build-aux/x-to-1.in: Likewise.
55133         * check-module: Likewise.
55134         * config/srclistvars.sh: Likewise.
55135         * gnulib-tool: Likewise.
55136         * lib/acl-internal.h: Likewise.
55137         * lib/acl.c: Likewise.
55138         * lib/acl.h: Likewise.
55139         * lib/acl_entries.c: Likewise.
55140         * lib/areadlink-with-size.c: Likewise.
55141         * lib/areadlink.c: Likewise.
55142         * lib/areadlink.h: Likewise.
55143         * lib/argmatch.c: Likewise.
55144         * lib/argmatch.h: Likewise.
55145         * lib/argp-ba.c: Likewise.
55146         * lib/argp-eexst.c: Likewise.
55147         * lib/argp-fmtstream.c: Likewise.
55148         * lib/argp-fmtstream.h: Likewise.
55149         * lib/argp-fs-xinl.c: Likewise.
55150         * lib/argp-help.c: Likewise.
55151         * lib/argp-namefrob.h: Likewise.
55152         * lib/argp-parse.c: Likewise.
55153         * lib/argp-pin.c: Likewise.
55154         * lib/argp-pv.c: Likewise.
55155         * lib/argp-pvh.c: Likewise.
55156         * lib/argp-xinl.c: Likewise.
55157         * lib/argp.h: Likewise.
55158         * lib/at-func.c: Likewise.
55159         * lib/atanl.c: Likewise.
55160         * lib/backupfile.c: Likewise.
55161         * lib/backupfile.h: Likewise.
55162         * lib/basename.c: Likewise.
55163         * lib/binary-io.h: Likewise.
55164         * lib/byteswap.in.h: Likewise.
55165         * lib/c-stack.c: Likewise.
55166         * lib/c-stack.h: Likewise.
55167         * lib/c-strcasestr.c: Likewise.
55168         * lib/c-strcasestr.h: Likewise.
55169         * lib/c-strstr.c: Likewise.
55170         * lib/c-strstr.h: Likewise.
55171         * lib/c-strtod.c: Likewise.
55172         * lib/calloc.c: Likewise.
55173         * lib/canon-host.c: Likewise.
55174         * lib/canon-host.h: Likewise.
55175         * lib/canonicalize-lgpl.c: Likewise.
55176         * lib/canonicalize.c: Likewise.
55177         * lib/canonicalize.h: Likewise.
55178         * lib/ceil.c: Likewise.
55179         * lib/ceilf.c: Likewise.
55180         * lib/ceill.c: Likewise.
55181         * lib/chdir-long.c: Likewise.
55182         * lib/chdir-long.h: Likewise.
55183         * lib/chdir-safer.c: Likewise.
55184         * lib/chdir-safer.h: Likewise.
55185         * lib/chown.c: Likewise.
55186         * lib/classpath.c: Likewise.
55187         * lib/classpath.h: Likewise.
55188         * lib/clean-temp.c: Likewise.
55189         * lib/clean-temp.h: Likewise.
55190         * lib/cloexec.c: Likewise.
55191         * lib/close-stream.c: Likewise.
55192         * lib/closein.c: Likewise.
55193         * lib/closein.h: Likewise.
55194         * lib/closeout.c: Likewise.
55195         * lib/closeout.h: Likewise.
55196         * lib/concat-filename.c: Likewise.
55197         * lib/copy-file.c: Likewise.
55198         * lib/copy-file.h: Likewise.
55199         * lib/count-one-bits.h: Likewise.
55200         * lib/crc.c: Likewise.
55201         * lib/crc.h: Likewise.
55202         * lib/creat-safer.c: Likewise.
55203         * lib/csharpcomp.c: Likewise.
55204         * lib/csharpcomp.h: Likewise.
55205         * lib/csharpexec.c: Likewise.
55206         * lib/csharpexec.h: Likewise.
55207         * lib/cycle-check.c: Likewise.
55208         * lib/cycle-check.h: Likewise.
55209         * lib/diacrit.c: Likewise.
55210         * lib/diacrit.h: Likewise.
55211         * lib/diffseq.h: Likewise.
55212         * lib/dirchownmod.c: Likewise.
55213         * lib/dirent.in.h: Likewise.
55214         * lib/dirfd.c: Likewise.
55215         * lib/dirfd.h: Likewise.
55216         * lib/dirname.c: Likewise.
55217         * lib/dirname.h: Likewise.
55218         * lib/dummy.c: Likewise.
55219         * lib/dup-safer.c: Likewise.
55220         * lib/dup2.c: Likewise.
55221         * lib/eealloc.h: Likewise.
55222         * lib/error.c: Likewise.
55223         * lib/error.h: Likewise.
55224         * lib/euidaccess.c: Likewise.
55225         * lib/exclude.c: Likewise.
55226         * lib/exclude.h: Likewise.
55227         * lib/execute.c: Likewise.
55228         * lib/execute.h: Likewise.
55229         * lib/exitfail.c: Likewise.
55230         * lib/exitfail.h: Likewise.
55231         * lib/expl.c: Likewise.
55232         * lib/fatal-signal.c: Likewise.
55233         * lib/fatal-signal.h: Likewise.
55234         * lib/fbufmode.c: Likewise.
55235         * lib/fbufmode.h: Likewise.
55236         * lib/fchdir.c: Likewise.
55237         * lib/fchmodat.c: Likewise.
55238         * lib/fchownat.c: Likewise.
55239         * lib/fcntl--.h: Likewise.
55240         * lib/fcntl-safer.h: Likewise.
55241         * lib/fcntl.in.h: Likewise.
55242         * lib/fd-safer.c: Likewise.
55243         * lib/fflush.c: Likewise.
55244         * lib/file-has-acl.c: Likewise.
55245         * lib/file-set.c: Likewise.
55246         * lib/file-type.c: Likewise.
55247         * lib/file-type.h: Likewise.
55248         * lib/fileblocks.c: Likewise.
55249         * lib/filemode.c: Likewise.
55250         * lib/filemode.h: Likewise.
55251         * lib/filename.h: Likewise.
55252         * lib/filenamecat.c: Likewise.
55253         * lib/filenamecat.h: Likewise.
55254         * lib/findprog.c: Likewise.
55255         * lib/findprog.h: Likewise.
55256         * lib/float.in.h: Likewise.
55257         * lib/floor.c: Likewise.
55258         * lib/floorf.c: Likewise.
55259         * lib/floorl.c: Likewise.
55260         * lib/fopen-safer.c: Likewise.
55261         * lib/fopen.c: Likewise.
55262         * lib/fpending.c: Likewise.
55263         * lib/fpending.h: Likewise.
55264         * lib/fprintf.c: Likewise.
55265         * lib/fprintftime.h: Likewise.
55266         * lib/fpucw.h: Likewise.
55267         * lib/fpurge.c: Likewise.
55268         * lib/fpurge.h: Likewise.
55269         * lib/freadable.c: Likewise.
55270         * lib/freadable.h: Likewise.
55271         * lib/freadahead.c: Likewise.
55272         * lib/freadahead.h: Likewise.
55273         * lib/freading.c: Likewise.
55274         * lib/freading.h: Likewise.
55275         * lib/free.c: Likewise.
55276         * lib/freopen.c: Likewise.
55277         * lib/frexp.c: Likewise.
55278         * lib/frexpl.c: Likewise.
55279         * lib/fseek.c: Likewise.
55280         * lib/fseterr.c: Likewise.
55281         * lib/fseterr.h: Likewise.
55282         * lib/fstatat.c: Likewise.
55283         * lib/fstrcmp.c: Likewise.
55284         * lib/fstrcmp.h: Likewise.
55285         * lib/fsusage.c: Likewise.
55286         * lib/fsusage.h: Likewise.
55287         * lib/ftell.c: Likewise.
55288         * lib/ftello.c: Likewise.
55289         * lib/fts-cycle.c: Likewise.
55290         * lib/fts.c: Likewise.
55291         * lib/fts_.h: Likewise.
55292         * lib/full-read.c: Likewise.
55293         * lib/full-read.h: Likewise.
55294         * lib/full-write.c: Likewise.
55295         * lib/full-write.h: Likewise.
55296         * lib/fwritable.c: Likewise.
55297         * lib/fwritable.h: Likewise.
55298         * lib/fwriteerror.c: Likewise.
55299         * lib/fwriteerror.h: Likewise.
55300         * lib/fwriting.c: Likewise.
55301         * lib/fwriting.h: Likewise.
55302         * lib/gcd.c: Likewise.
55303         * lib/gcd.h: Likewise.
55304         * lib/getcwd.c: Likewise.
55305         * lib/getdate.h: Likewise.
55306         * lib/getdate.y: Likewise.
55307         * lib/getdomainname.c: Likewise.
55308         * lib/getdomainname.h: Likewise.
55309         * lib/getgroups.c: Likewise.
55310         * lib/gethostname.c: Likewise.
55311         * lib/gethrxtime.c: Likewise.
55312         * lib/gethrxtime.h: Likewise.
55313         * lib/getloadavg.c: Likewise.
55314         * lib/getndelim2.c: Likewise.
55315         * lib/getndelim2.h: Likewise.
55316         * lib/getnline.c: Likewise.
55317         * lib/getnline.h: Likewise.
55318         * lib/getopt.c: Likewise.
55319         * lib/getopt.in.h: Likewise.
55320         * lib/getopt1.c: Likewise.
55321         * lib/getopt_int.h: Likewise.
55322         * lib/getpagesize.h: Likewise.
55323         * lib/getsubopt.c: Likewise.
55324         * lib/gettime.c: Likewise.
55325         * lib/getugroups.c: Likewise.
55326         * lib/getugroups.h: Likewise.
55327         * lib/getusershell.c: Likewise.
55328         * lib/gl_anyavltree_list1.h: Likewise.
55329         * lib/gl_anyavltree_list2.h: Likewise.
55330         * lib/gl_anyhash_list1.h: Likewise.
55331         * lib/gl_anyhash_list2.h: Likewise.
55332         * lib/gl_anylinked_list1.h: Likewise.
55333         * lib/gl_anylinked_list2.h: Likewise.
55334         * lib/gl_anyrbtree_list1.h: Likewise.
55335         * lib/gl_anyrbtree_list2.h: Likewise.
55336         * lib/gl_anytree_list1.h: Likewise.
55337         * lib/gl_anytree_list2.h: Likewise.
55338         * lib/gl_anytree_oset.h: Likewise.
55339         * lib/gl_anytreehash_list1.h: Likewise.
55340         * lib/gl_anytreehash_list2.h: Likewise.
55341         * lib/gl_array_list.c: Likewise.
55342         * lib/gl_array_list.h: Likewise.
55343         * lib/gl_array_oset.c: Likewise.
55344         * lib/gl_array_oset.h: Likewise.
55345         * lib/gl_avltree_list.c: Likewise.
55346         * lib/gl_avltree_list.h: Likewise.
55347         * lib/gl_avltree_oset.c: Likewise.
55348         * lib/gl_avltree_oset.h: Likewise.
55349         * lib/gl_avltreehash_list.c: Likewise.
55350         * lib/gl_avltreehash_list.h: Likewise.
55351         * lib/gl_carray_list.c: Likewise.
55352         * lib/gl_carray_list.h: Likewise.
55353         * lib/gl_linked_list.c: Likewise.
55354         * lib/gl_linked_list.h: Likewise.
55355         * lib/gl_linkedhash_list.c: Likewise.
55356         * lib/gl_linkedhash_list.h: Likewise.
55357         * lib/gl_list.c: Likewise.
55358         * lib/gl_list.h: Likewise.
55359         * lib/gl_oset.c: Likewise.
55360         * lib/gl_oset.h: Likewise.
55361         * lib/gl_rbtree_list.c: Likewise.
55362         * lib/gl_rbtree_list.h: Likewise.
55363         * lib/gl_rbtree_oset.c: Likewise.
55364         * lib/gl_rbtree_oset.h: Likewise.
55365         * lib/gl_rbtreehash_list.c: Likewise.
55366         * lib/gl_rbtreehash_list.h: Likewise.
55367         * lib/gl_sublist.c: Likewise.
55368         * lib/gl_sublist.h: Likewise.
55369         * lib/group-member.c: Likewise.
55370         * lib/group-member.h: Likewise.
55371         * lib/hard-locale.c: Likewise.
55372         * lib/hard-locale.h: Likewise.
55373         * lib/hash-pjw.c: Likewise.
55374         * lib/hash-pjw.h: Likewise.
55375         * lib/hash-triple.c: Likewise.
55376         * lib/hash.c: Likewise.
55377         * lib/hash.h: Likewise.
55378         * lib/human.c: Likewise.
55379         * lib/human.h: Likewise.
55380         * lib/i-ring.c: Likewise.
55381         * lib/i-ring.h: Likewise.
55382         * lib/idcache.c: Likewise.
55383         * lib/imaxabs.c: Likewise.
55384         * lib/imaxdiv.c: Likewise.
55385         * lib/inet_pton.c: Likewise.
55386         * lib/inet_pton.h: Likewise.
55387         * lib/intprops.h: Likewise.
55388         * lib/inttostr.c: Likewise.
55389         * lib/inttostr.h: Likewise.
55390         * lib/inttypes.in.h: Likewise.
55391         * lib/isapipe.c: Likewise.
55392         * lib/isdir.c: Likewise.
55393         * lib/isnan.c: Likewise.
55394         * lib/isnan.h: Likewise.
55395         * lib/isnanf.c: Likewise.
55396         * lib/isnanf.h: Likewise.
55397         * lib/isnanl-nolibm.h: Likewise.
55398         * lib/isnanl.c: Likewise.
55399         * lib/isnanl.h: Likewise.
55400         * lib/javacomp.c: Likewise.
55401         * lib/javacomp.h: Likewise.
55402         * lib/javaexec.c: Likewise.
55403         * lib/javaexec.h: Likewise.
55404         * lib/javaversion.c: Likewise.
55405         * lib/javaversion.h: Likewise.
55406         * lib/javaversion.java: Likewise.
55407         * lib/lbrkprop.h: Likewise.
55408         * lib/lchmod.h: Likewise.
55409         * lib/lchown.c: Likewise.
55410         * lib/ldexpl.c: Likewise.
55411         * lib/linebreak.c: Likewise.
55412         * lib/linebreak.h: Likewise.
55413         * lib/linebuffer.c: Likewise.
55414         * lib/linebuffer.h: Likewise.
55415         * lib/locale.in.h: Likewise.
55416         * lib/logl.c: Likewise.
55417         * lib/long-options.c: Likewise.
55418         * lib/long-options.h: Likewise.
55419         * lib/lstat.c: Likewise.
55420         * lib/lstat.h: Likewise.
55421         * lib/math.in.h: Likewise.
55422         * lib/mbchar.c: Likewise.
55423         * lib/mbchar.h: Likewise.
55424         * lib/mbfile.h: Likewise.
55425         * lib/mbiter.h: Likewise.
55426         * lib/mbscasecmp.c: Likewise.
55427         * lib/mbscasestr.c: Likewise.
55428         * lib/mbschr.c: Likewise.
55429         * lib/mbscspn.c: Likewise.
55430         * lib/mbslen.c: Likewise.
55431         * lib/mbsncasecmp.c: Likewise.
55432         * lib/mbsnlen.c: Likewise.
55433         * lib/mbspbrk.c: Likewise.
55434         * lib/mbspcasecmp.c: Likewise.
55435         * lib/mbsrchr.c: Likewise.
55436         * lib/mbssep.c: Likewise.
55437         * lib/mbsspn.c: Likewise.
55438         * lib/mbsstr.c: Likewise.
55439         * lib/mbstok_r.c: Likewise.
55440         * lib/mbswidth.c: Likewise.
55441         * lib/mbswidth.h: Likewise.
55442         * lib/mbuiter.h: Likewise.
55443         * lib/memcasecmp.c: Likewise.
55444         * lib/memcasecmp.h: Likewise.
55445         * lib/memchr.c: Likewise.
55446         * lib/memcmp.c: Likewise.
55447         * lib/memcoll.c: Likewise.
55448         * lib/memcoll.h: Likewise.
55449         * lib/memcpy.c: Likewise.
55450         * lib/memrchr.c: Likewise.
55451         * lib/mkancesdirs.c: Likewise.
55452         * lib/mkdir-p.c: Likewise.
55453         * lib/mkdir-p.h: Likewise.
55454         * lib/mkdir.c: Likewise.
55455         * lib/mkdirat.c: Likewise.
55456         * lib/mkdtemp.c: Likewise.
55457         * lib/mkstemp-safer.c: Likewise.
55458         * lib/mkstemp.c: Likewise.
55459         * lib/modechange.c: Likewise.
55460         * lib/modechange.h: Likewise.
55461         * lib/mountlist.c: Likewise.
55462         * lib/mountlist.h: Likewise.
55463         * lib/mpsort.c: Likewise.
55464         * lib/nanosleep.c: Likewise.
55465         * lib/obstack.c: Likewise.
55466         * lib/obstack.h: Likewise.
55467         * lib/open-safer.c: Likewise.
55468         * lib/open.c: Likewise.
55469         * lib/openat-die.c: Likewise.
55470         * lib/openat-priv.h: Likewise.
55471         * lib/openat-proc.c: Likewise.
55472         * lib/openat.c: Likewise.
55473         * lib/openat.h: Likewise.
55474         * lib/pagealign_alloc.c: Likewise.
55475         * lib/pagealign_alloc.h: Likewise.
55476         * lib/physmem.c: Likewise.
55477         * lib/physmem.h: Likewise.
55478         * lib/pipe-safer.c: Likewise.
55479         * lib/pipe.c: Likewise.
55480         * lib/pipe.h: Likewise.
55481         * lib/posixtm.c: Likewise.
55482         * lib/posixtm.h: Likewise.
55483         * lib/posixver.c: Likewise.
55484         * lib/printf-frexp.c: Likewise.
55485         * lib/printf-frexp.h: Likewise.
55486         * lib/printf-frexpl.c: Likewise.
55487         * lib/printf-frexpl.h: Likewise.
55488         * lib/printf.c: Likewise.
55489         * lib/progname.c: Likewise.
55490         * lib/progname.h: Likewise.
55491         * lib/progreloc.c: Likewise.
55492         * lib/putenv.c: Likewise.
55493         * lib/quote.c: Likewise.
55494         * lib/quote.h: Likewise.
55495         * lib/quotearg.c: Likewise.
55496         * lib/quotearg.h: Likewise.
55497         * lib/raise.c: Likewise.
55498         * lib/readline.c: Likewise.
55499         * lib/readline.h: Likewise.
55500         * lib/readlink.c: Likewise.
55501         * lib/readtokens.c: Likewise.
55502         * lib/readtokens.h: Likewise.
55503         * lib/readtokens0.c: Likewise.
55504         * lib/readtokens0.h: Likewise.
55505         * lib/readutmp.c: Likewise.
55506         * lib/readutmp.h: Likewise.
55507         * lib/realloc.c: Likewise.
55508         * lib/relocwrapper.c: Likewise.
55509         * lib/rename-dest-slash.c: Likewise.
55510         * lib/rename.c: Likewise.
55511         * lib/rmdir.c: Likewise.
55512         * lib/rpmatch.c: Likewise.
55513         * lib/safe-read.c: Likewise.
55514         * lib/safe-read.h: Likewise.
55515         * lib/safe-write.c: Likewise.
55516         * lib/safe-write.h: Likewise.
55517         * lib/same-inode.h: Likewise.
55518         * lib/same.c: Likewise.
55519         * lib/same.h: Likewise.
55520         * lib/save-cwd.c: Likewise.
55521         * lib/save-cwd.h: Likewise.
55522         * lib/savedir.c: Likewise.
55523         * lib/savedir.h: Likewise.
55524         * lib/savewd.c: Likewise.
55525         * lib/savewd.h: Likewise.
55526         * lib/search.in.h: Likewise.
55527         * lib/setenv.c: Likewise.
55528         * lib/setenv.h: Likewise.
55529         * lib/settime.c: Likewise.
55530         * lib/sh-quote.c: Likewise.
55531         * lib/sh-quote.h: Likewise.
55532         * lib/sig2str.c: Likewise.
55533         * lib/sig2str.h: Likewise.
55534         * lib/signal.in.h: Likewise.
55535         * lib/signbitd.c: Likewise.
55536         * lib/signbitf.c: Likewise.
55537         * lib/signbitl.c: Likewise.
55538         * lib/sigprocmask.c: Likewise.
55539         * lib/sincosl.c: Likewise.
55540         * lib/sleep.c: Likewise.
55541         * lib/sprintf.c: Likewise.
55542         * lib/sqrtl.c: Likewise.
55543         * lib/stat-time.h: Likewise.
55544         * lib/stdio--.h: Likewise.
55545         * lib/stdio-safer.h: Likewise.
55546         * lib/stdlib--.h: Likewise.
55547         * lib/stdlib-safer.h: Likewise.
55548         * lib/stdlib.in.h: Likewise.
55549         * lib/stpcpy.c: Likewise.
55550         * lib/stpncpy.c: Likewise.
55551         * lib/strchrnul.c: Likewise.
55552         * lib/strcspn.c: Likewise.
55553         * lib/strerror.c: Likewise.
55554         * lib/strftime.c: Likewise.
55555         * lib/strftime.h: Likewise.
55556         * lib/striconveh.c: Likewise.
55557         * lib/striconveh.h: Likewise.
55558         * lib/striconveha.c: Likewise.
55559         * lib/striconveha.h: Likewise.
55560         * lib/stripslash.c: Likewise.
55561         * lib/strnlen1.c: Likewise.
55562         * lib/strnlen1.h: Likewise.
55563         * lib/strtod.c: Likewise.
55564         * lib/strtoimax.c: Likewise.
55565         * lib/strtok_r.c: Likewise.
55566         * lib/strtol.c: Likewise.
55567         * lib/strtoll.c: Likewise.
55568         * lib/strtoul.c: Likewise.
55569         * lib/strtoull.c: Likewise.
55570         * lib/sysexits.in.h: Likewise.
55571         * lib/tempname.c: Likewise.
55572         * lib/tempname.h: Likewise.
55573         * lib/timespec.h: Likewise.
55574         * lib/tls.c: Likewise.
55575         * lib/tls.h: Likewise.
55576         * lib/tmpdir.c: Likewise.
55577         * lib/tmpdir.h: Likewise.
55578         * lib/tmpfile-safer.c: Likewise.
55579         * lib/tmpfile.c: Likewise.
55580         * lib/trigl.c: Likewise.
55581         * lib/trigl.h: Likewise.
55582         * lib/trim.c: Likewise.
55583         * lib/trim.h: Likewise.
55584         * lib/trunc.c: Likewise.
55585         * lib/truncf.c: Likewise.
55586         * lib/truncl.c: Likewise.
55587         * lib/tsearch.c: Likewise.
55588         * lib/unicodeio.c: Likewise.
55589         * lib/unicodeio.h: Likewise.
55590         * lib/unistd--.h: Likewise.
55591         * lib/unistd-safer.h: Likewise.
55592         * lib/unistdio/ulc-fprintf.c: Likewise.
55593         * lib/unistdio/ulc-vfprintf.c: Likewise.
55594         * lib/unlinkdir.c: Likewise.
55595         * lib/unlinkdir.h: Likewise.
55596         * lib/unlocked-io.h: Likewise.
55597         * lib/unsetenv.c: Likewise.
55598         * lib/userspec.c: Likewise.
55599         * lib/utime.c: Likewise.
55600         * lib/utimecmp.c: Likewise.
55601         * lib/utimecmp.h: Likewise.
55602         * lib/utimens.c: Likewise.
55603         * lib/verify.h: Likewise.
55604         * lib/verror.c: Likewise.
55605         * lib/verror.h: Likewise.
55606         * lib/version-etc-fsf.c: Likewise.
55607         * lib/version-etc.c: Likewise.
55608         * lib/version-etc.h: Likewise.
55609         * lib/vfprintf.c: Likewise.
55610         * lib/vprintf.c: Likewise.
55611         * lib/vsprintf.c: Likewise.
55612         * lib/w32spawn.h: Likewise.
55613         * lib/wait-process.c: Likewise.
55614         * lib/wait-process.h: Likewise.
55615         * lib/wcwidth.c: Likewise.
55616         * lib/write-any-file.c: Likewise.
55617         * lib/xalloc-die.c: Likewise.
55618         * lib/xalloc.h: Likewise.
55619         * lib/xasprintf.c: Likewise.
55620         * lib/xgetcwd.c: Likewise.
55621         * lib/xgetcwd.h: Likewise.
55622         * lib/xgetdomainname.c: Likewise.
55623         * lib/xgetdomainname.h: Likewise.
55624         * lib/xgethostname.c: Likewise.
55625         * lib/xmalloc.c: Likewise.
55626         * lib/xmalloca.c: Likewise.
55627         * lib/xmalloca.h: Likewise.
55628         * lib/xmemcoll.c: Likewise.
55629         * lib/xnanosleep.c: Likewise.
55630         * lib/xreadlink.c: Likewise.
55631         * lib/xreadlink.h: Likewise.
55632         * lib/xsetenv.c: Likewise.
55633         * lib/xsetenv.h: Likewise.
55634         * lib/xstriconv.c: Likewise.
55635         * lib/xstriconv.h: Likewise.
55636         * lib/xstrndup.c: Likewise.
55637         * lib/xstrndup.h: Likewise.
55638         * lib/xstrtod.c: Likewise.
55639         * lib/xstrtod.h: Likewise.
55640         * lib/xstrtol-error.c: Likewise.
55641         * lib/xstrtol.c: Likewise.
55642         * lib/xstrtol.h: Likewise.
55643         * lib/xtime.h: Likewise.
55644         * lib/xvasprintf.c: Likewise.
55645         * lib/xvasprintf.h: Likewise.
55646         * lib/yesno.c: Likewise.
55647         * lib/yesno.h: Likewise.
55648         * posix-modules: Likewise.
55649         * tests/test-alloca-opt.c: Likewise.
55650         * tests/test-arcfour.c: Likewise.
55651         * tests/test-arctwo.c: Likewise.
55652         * tests/test-argmatch.c: Likewise.
55653         * tests/test-argp-2.sh: Likewise.
55654         * tests/test-argp.c: Likewise.
55655         * tests/test-arpa_inet.c: Likewise.
55656         * tests/test-array_list.c: Likewise.
55657         * tests/test-array_oset.c: Likewise.
55658         * tests/test-atexit.c: Likewise.
55659         * tests/test-avltree_list.c: Likewise.
55660         * tests/test-avltree_oset.c: Likewise.
55661         * tests/test-avltreehash_list.c: Likewise.
55662         * tests/test-base64.c: Likewise.
55663         * tests/test-binary-io.c: Likewise.
55664         * tests/test-byteswap.c: Likewise.
55665         * tests/test-c-ctype.c: Likewise.
55666         * tests/test-c-strcasecmp.c: Likewise.
55667         * tests/test-c-strcasestr.c: Likewise.
55668         * tests/test-c-strncasecmp.c: Likewise.
55669         * tests/test-c-strstr.c: Likewise.
55670         * tests/test-canonicalize-lgpl.c: Likewise.
55671         * tests/test-canonicalize.c: Likewise.
55672         * tests/test-carray_list.c: Likewise.
55673         * tests/test-ceilf.c: Likewise.
55674         * tests/test-ceill.c: Likewise.
55675         * tests/test-count-one-bits.c: Likewise.
55676         * tests/test-crc.c: Likewise.
55677         * tests/test-dirname.c: Likewise.
55678         * tests/test-fbufmode.c: Likewise.
55679         * tests/test-fcntl.c: Likewise.
55680         * tests/test-fflush.c: Likewise.
55681         * tests/test-floorf.c: Likewise.
55682         * tests/test-floorl.c: Likewise.
55683         * tests/test-fopen.c: Likewise.
55684         * tests/test-fprintf-posix.c: Likewise.
55685         * tests/test-fprintf-posix.h: Likewise.
55686         * tests/test-fpurge.c: Likewise.
55687         * tests/test-freadable.c: Likewise.
55688         * tests/test-freadahead.c: Likewise.
55689         * tests/test-freading.c: Likewise.
55690         * tests/test-freopen.c: Likewise.
55691         * tests/test-frexp.c: Likewise.
55692         * tests/test-frexpl.c: Likewise.
55693         * tests/test-fseek.c: Likewise.
55694         * tests/test-fseeko.c: Likewise.
55695         * tests/test-fseterr.c: Likewise.
55696         * tests/test-fstrcmp.c: Likewise.
55697         * tests/test-ftell.c: Likewise.
55698         * tests/test-ftello.c: Likewise.
55699         * tests/test-fwritable.c: Likewise.
55700         * tests/test-fwriting.c: Likewise.
55701         * tests/test-getaddrinfo.c: Likewise.
55702         * tests/test-getpass.c: Likewise.
55703         * tests/test-gettimeofday.c: Likewise.
55704         * tests/test-hmac-md5.c: Likewise.
55705         * tests/test-hmac-sha1.c: Likewise.
55706         * tests/test-iconv.c: Likewise.
55707         * tests/test-iconvme.c: Likewise.
55708         * tests/test-inttypes.c: Likewise.
55709         * tests/test-isnan.c: Likewise.
55710         * tests/test-isnanf.c: Likewise.
55711         * tests/test-isnanl-nolibm.c: Likewise.
55712         * tests/test-isnanl.c: Likewise.
55713         * tests/test-isnanl.h: Likewise.
55714         * tests/test-ldexpl.c: Likewise.
55715         * tests/test-linked_list.c: Likewise.
55716         * tests/test-linkedhash_list.c: Likewise.
55717         * tests/test-locale.c: Likewise.
55718         * tests/test-localename.c: Likewise.
55719         * tests/test-lock.c: Likewise.
55720         * tests/test-lseek.c: Likewise.
55721         * tests/test-malloca.c: Likewise.
55722         * tests/test-math.c: Likewise.
55723         * tests/test-mbscasecmp.c: Likewise.
55724         * tests/test-mbscasestr1.c: Likewise.
55725         * tests/test-mbscasestr2.c: Likewise.
55726         * tests/test-mbscasestr3.c: Likewise.
55727         * tests/test-mbscasestr4.c: Likewise.
55728         * tests/test-mbschr.c: Likewise.
55729         * tests/test-mbscspn.c: Likewise.
55730         * tests/test-mbsncasecmp.c: Likewise.
55731         * tests/test-mbspbrk.c: Likewise.
55732         * tests/test-mbspcasecmp.c: Likewise.
55733         * tests/test-mbsrchr.c: Likewise.
55734         * tests/test-mbsspn.c: Likewise.
55735         * tests/test-mbsstr1.c: Likewise.
55736         * tests/test-mbsstr2.c: Likewise.
55737         * tests/test-mbsstr3.c: Likewise.
55738         * tests/test-md5.c: Likewise.
55739         * tests/test-memmem.c: Likewise.
55740         * tests/test-netinet_in.c: Likewise.
55741         * tests/test-open.c: Likewise.
55742         * tests/test-printf-frexp.c: Likewise.
55743         * tests/test-printf-frexpl.c: Likewise.
55744         * tests/test-printf-posix.c: Likewise.
55745         * tests/test-printf-posix.h: Likewise.
55746         * tests/test-rbtree_list.c: Likewise.
55747         * tests/test-rbtree_oset.c: Likewise.
55748         * tests/test-rbtreehash_list.c: Likewise.
55749         * tests/test-read-file.c: Likewise.
55750         * tests/test-rijndael.c: Likewise.
55751         * tests/test-search.c: Likewise.
55752         * tests/test-signbit.c: Likewise.
55753         * tests/test-sleep.c: Likewise.
55754         * tests/test-snprintf-posix.c: Likewise.
55755         * tests/test-snprintf-posix.h: Likewise.
55756         * tests/test-snprintf.c: Likewise.
55757         * tests/test-sprintf-posix.c: Likewise.
55758         * tests/test-sprintf-posix.h: Likewise.
55759         * tests/test-stat-time.c: Likewise.
55760         * tests/test-stdbool.c: Likewise.
55761         * tests/test-stdint.c: Likewise.
55762         * tests/test-stdio.c: Likewise.
55763         * tests/test-stdlib.c: Likewise.
55764         * tests/test-stpncpy.c: Likewise.
55765         * tests/test-strcasestr.c: Likewise.
55766         * tests/test-striconv.c: Likewise.
55767         * tests/test-striconveh.c: Likewise.
55768         * tests/test-striconveha.c: Likewise.
55769         * tests/test-string.c: Likewise.
55770         * tests/test-sys_select.c: Likewise.
55771         * tests/test-sys_socket.c: Likewise.
55772         * tests/test-sys_stat.c: Likewise.
55773         * tests/test-sys_time.c: Likewise.
55774         * tests/test-sysexits.c: Likewise.
55775         * tests/test-time.c: Likewise.
55776         * tests/test-tls.c: Likewise.
55777         * tests/test-trunc.c: Likewise.
55778         * tests/test-truncf.c: Likewise.
55779         * tests/test-truncl.c: Likewise.
55780         * tests/test-unistd.c: Likewise.
55781         * tests/test-vasnprintf-posix.c: Likewise.
55782         * tests/test-vasnprintf-posix2.c: Likewise.
55783         * tests/test-vasnprintf.c: Likewise.
55784         * tests/test-vasprintf-posix.c: Likewise.
55785         * tests/test-vasprintf.c: Likewise.
55786         * tests/test-verify.c: Likewise.
55787         * tests/test-vfprintf-posix.c: Likewise.
55788         * tests/test-vprintf-posix.c: Likewise.
55789         * tests/test-vsnprintf-posix.c: Likewise.
55790         * tests/test-vsnprintf.c: Likewise.
55791         * tests/test-vsprintf-posix.c: Likewise.
55792         * tests/test-wchar.c: Likewise.
55793         * tests/test-wctype.c: Likewise.
55794         * tests/test-wcwidth.c: Likewise.
55795         * tests/test-xstrtol.c: Likewise.
55796         * tests/test-xvasprintf.c: Likewise.
55797         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55798         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55799         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55800         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55801         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55802         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55803         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55804         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55805         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55806         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55807         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55808         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55809         * tests/uniname/test-uninames.c: Likewise.
55810         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55811         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55812         * tests/unistdio/test-u16-printf1.h: Likewise.
55813         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55814         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55815         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55816         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55817         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55818         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55819         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55820         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55821         * tests/unistdio/test-u32-printf1.h: Likewise.
55822         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55823         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55824         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55825         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55826         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55827         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55828         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55829         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55830         * tests/unistdio/test-u8-printf1.h: Likewise.
55831         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55832         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55833         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55834         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55835         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55836         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55837         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55838         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55839         * tests/unistdio/test-ulc-printf1.h: Likewise.
55840         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55841         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55842         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55843         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55844         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55845         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55846         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55847         * tests/uniwidth/test-u16-width.c: Likewise.
55848         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55849         * tests/uniwidth/test-u32-width.c: Likewise.
55850         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55851         * tests/uniwidth/test-u8-width.c: Likewise.
55852         * tests/uniwidth/test-uc_width.c: Likewise.
55853         * config/srclist-update: Likewise.
55854         (fixlicense): Update to GPLv3+.
55855
55856         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55857         * tests/test-tsearch.c: Change copyright notice.
55858
55859         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55860         * lib/c-strcaseeq.h: Change copyright notice.
55861         * lib/streq.h: Likewise.
55862         * lib/uniconv.h: Likewise.
55863         * lib/uniconv/u-conv-from-enc.h: Likewise.
55864         * lib/uniconv/u-conv-to-enc.h: Likewise.
55865         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55866         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55867         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55868         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55869         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55870         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55871         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55872         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55873         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55874         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55875         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55876         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55877         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55878         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55879         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55880         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55881         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55882         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55883         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55884         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55885         * lib/uniname.h: Likewise.
55886         * lib/uniname/uniname.c: Likewise.
55887         * lib/unistdio.h: Likewise.
55888         * lib/unistdio/u-asnprintf.h: Likewise.
55889         * lib/unistdio/u-asprintf.h: Likewise.
55890         * lib/unistdio/u-printf-args.c: Likewise.
55891         * lib/unistdio/u-printf-args.h: Likewise.
55892         * lib/unistdio/u-printf-parse.h: Likewise.
55893         * lib/unistdio/u-snprintf.h: Likewise.
55894         * lib/unistdio/u-sprintf.h: Likewise.
55895         * lib/unistdio/u-vasprintf.h: Likewise.
55896         * lib/unistdio/u-vsnprintf.h: Likewise.
55897         * lib/unistdio/u-vsprintf.h: Likewise.
55898         * lib/unistdio/u16-asnprintf.c: Likewise.
55899         * lib/unistdio/u16-asprintf.c: Likewise.
55900         * lib/unistdio/u16-printf-parse.c: Likewise.
55901         * lib/unistdio/u16-snprintf.c: Likewise.
55902         * lib/unistdio/u16-sprintf.c: Likewise.
55903         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55904         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55905         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55906         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55907         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55908         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55909         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55910         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55911         * lib/unistdio/u16-vasnprintf.c: Likewise.
55912         * lib/unistdio/u16-vasprintf.c: Likewise.
55913         * lib/unistdio/u16-vsnprintf.c: Likewise.
55914         * lib/unistdio/u16-vsprintf.c: Likewise.
55915         * lib/unistdio/u32-asnprintf.c: Likewise.
55916         * lib/unistdio/u32-asprintf.c: Likewise.
55917         * lib/unistdio/u32-printf-parse.c: Likewise.
55918         * lib/unistdio/u32-snprintf.c: Likewise.
55919         * lib/unistdio/u32-sprintf.c: Likewise.
55920         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55921         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55922         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55923         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55924         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55925         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55926         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55927         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55928         * lib/unistdio/u32-vasnprintf.c: Likewise.
55929         * lib/unistdio/u32-vasprintf.c: Likewise.
55930         * lib/unistdio/u32-vsnprintf.c: Likewise.
55931         * lib/unistdio/u32-vsprintf.c: Likewise.
55932         * lib/unistdio/u8-asnprintf.c: Likewise.
55933         * lib/unistdio/u8-asprintf.c: Likewise.
55934         * lib/unistdio/u8-printf-parse.c: Likewise.
55935         * lib/unistdio/u8-snprintf.c: Likewise.
55936         * lib/unistdio/u8-sprintf.c: Likewise.
55937         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55938         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55939         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55940         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55941         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55942         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55943         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55944         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55945         * lib/unistdio/u8-vasnprintf.c: Likewise.
55946         * lib/unistdio/u8-vasprintf.c: Likewise.
55947         * lib/unistdio/u8-vsnprintf.c: Likewise.
55948         * lib/unistdio/u8-vsprintf.c: Likewise.
55949         * lib/unistdio/ulc-asnprintf.c: Likewise.
55950         * lib/unistdio/ulc-asprintf.c: Likewise.
55951         * lib/unistdio/ulc-printf-parse.c: Likewise.
55952         * lib/unistdio/ulc-snprintf.c: Likewise.
55953         * lib/unistdio/ulc-sprintf.c: Likewise.
55954         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55955         * lib/unistdio/ulc-vasprintf.c: Likewise.
55956         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55957         * lib/unistdio/ulc-vsprintf.c: Likewise.
55958         * lib/unistr.h: Likewise.
55959         * lib/unistr/u-cpy-alloc.h: Likewise.
55960         * lib/unistr/u-cpy.h: Likewise.
55961         * lib/unistr/u-endswith.h: Likewise.
55962         * lib/unistr/u-move.h: Likewise.
55963         * lib/unistr/u-set.h: Likewise.
55964         * lib/unistr/u-startswith.h: Likewise.
55965         * lib/unistr/u-stpcpy.h: Likewise.
55966         * lib/unistr/u-stpncpy.h: Likewise.
55967         * lib/unistr/u-strcat.h: Likewise.
55968         * lib/unistr/u-strcpy.h: Likewise.
55969         * lib/unistr/u-strcspn.h: Likewise.
55970         * lib/unistr/u-strdup.h: Likewise.
55971         * lib/unistr/u-strlen.h: Likewise.
55972         * lib/unistr/u-strncat.h: Likewise.
55973         * lib/unistr/u-strncpy.h: Likewise.
55974         * lib/unistr/u-strnlen.h: Likewise.
55975         * lib/unistr/u-strpbrk.h: Likewise.
55976         * lib/unistr/u-strspn.h: Likewise.
55977         * lib/unistr/u-strstr.h: Likewise.
55978         * lib/unistr/u-strtok.h: Likewise.
55979         * lib/unistr/u16-check.c: Likewise.
55980         * lib/unistr/u16-chr.c: Likewise.
55981         * lib/unistr/u16-cmp.c: Likewise.
55982         * lib/unistr/u16-cpy-alloc.c: Likewise.
55983         * lib/unistr/u16-cpy.c: Likewise.
55984         * lib/unistr/u16-endswith.c: Likewise.
55985         * lib/unistr/u16-mblen.c: Likewise.
55986         * lib/unistr/u16-mbsnlen.c: Likewise.
55987         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55988         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55989         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55990         * lib/unistr/u16-mbtouc.c: Likewise.
55991         * lib/unistr/u16-mbtoucr.c: Likewise.
55992         * lib/unistr/u16-move.c: Likewise.
55993         * lib/unistr/u16-next.c: Likewise.
55994         * lib/unistr/u16-prev.c: Likewise.
55995         * lib/unistr/u16-set.c: Likewise.
55996         * lib/unistr/u16-startswith.c: Likewise.
55997         * lib/unistr/u16-stpcpy.c: Likewise.
55998         * lib/unistr/u16-stpncpy.c: Likewise.
55999         * lib/unistr/u16-strcat.c: Likewise.
56000         * lib/unistr/u16-strchr.c: Likewise.
56001         * lib/unistr/u16-strcmp.c: Likewise.
56002         * lib/unistr/u16-strcpy.c: Likewise.
56003         * lib/unistr/u16-strcspn.c: Likewise.
56004         * lib/unistr/u16-strdup.c: Likewise.
56005         * lib/unistr/u16-strlen.c: Likewise.
56006         * lib/unistr/u16-strmblen.c: Likewise.
56007         * lib/unistr/u16-strmbtouc.c: Likewise.
56008         * lib/unistr/u16-strncat.c: Likewise.
56009         * lib/unistr/u16-strncmp.c: Likewise.
56010         * lib/unistr/u16-strncpy.c: Likewise.
56011         * lib/unistr/u16-strnlen.c: Likewise.
56012         * lib/unistr/u16-strpbrk.c: Likewise.
56013         * lib/unistr/u16-strrchr.c: Likewise.
56014         * lib/unistr/u16-strspn.c: Likewise.
56015         * lib/unistr/u16-strstr.c: Likewise.
56016         * lib/unistr/u16-strtok.c: Likewise.
56017         * lib/unistr/u16-to-u32.c: Likewise.
56018         * lib/unistr/u16-to-u8.c: Likewise.
56019         * lib/unistr/u16-uctomb-aux.c: Likewise.
56020         * lib/unistr/u16-uctomb.c: Likewise.
56021         * lib/unistr/u32-check.c: Likewise.
56022         * lib/unistr/u32-chr.c: Likewise.
56023         * lib/unistr/u32-cmp.c: Likewise.
56024         * lib/unistr/u32-cpy-alloc.c: Likewise.
56025         * lib/unistr/u32-cpy.c: Likewise.
56026         * lib/unistr/u32-endswith.c: Likewise.
56027         * lib/unistr/u32-mblen.c: Likewise.
56028         * lib/unistr/u32-mbsnlen.c: Likewise.
56029         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56030         * lib/unistr/u32-mbtouc.c: Likewise.
56031         * lib/unistr/u32-mbtoucr.c: Likewise.
56032         * lib/unistr/u32-move.c: Likewise.
56033         * lib/unistr/u32-next.c: Likewise.
56034         * lib/unistr/u32-prev.c: Likewise.
56035         * lib/unistr/u32-set.c: Likewise.
56036         * lib/unistr/u32-startswith.c: Likewise.
56037         * lib/unistr/u32-stpcpy.c: Likewise.
56038         * lib/unistr/u32-stpncpy.c: Likewise.
56039         * lib/unistr/u32-strcat.c: Likewise.
56040         * lib/unistr/u32-strchr.c: Likewise.
56041         * lib/unistr/u32-strcmp.c: Likewise.
56042         * lib/unistr/u32-strcpy.c: Likewise.
56043         * lib/unistr/u32-strcspn.c: Likewise.
56044         * lib/unistr/u32-strdup.c: Likewise.
56045         * lib/unistr/u32-strlen.c: Likewise.
56046         * lib/unistr/u32-strmblen.c: Likewise.
56047         * lib/unistr/u32-strmbtouc.c: Likewise.
56048         * lib/unistr/u32-strncat.c: Likewise.
56049         * lib/unistr/u32-strncmp.c: Likewise.
56050         * lib/unistr/u32-strncpy.c: Likewise.
56051         * lib/unistr/u32-strnlen.c: Likewise.
56052         * lib/unistr/u32-strpbrk.c: Likewise.
56053         * lib/unistr/u32-strrchr.c: Likewise.
56054         * lib/unistr/u32-strspn.c: Likewise.
56055         * lib/unistr/u32-strstr.c: Likewise.
56056         * lib/unistr/u32-strtok.c: Likewise.
56057         * lib/unistr/u32-to-u16.c: Likewise.
56058         * lib/unistr/u32-to-u8.c: Likewise.
56059         * lib/unistr/u32-uctomb.c: Likewise.
56060         * lib/unistr/u8-check.c: Likewise.
56061         * lib/unistr/u8-chr.c: Likewise.
56062         * lib/unistr/u8-cmp.c: Likewise.
56063         * lib/unistr/u8-cpy-alloc.c: Likewise.
56064         * lib/unistr/u8-cpy.c: Likewise.
56065         * lib/unistr/u8-endswith.c: Likewise.
56066         * lib/unistr/u8-mblen.c: Likewise.
56067         * lib/unistr/u8-mbsnlen.c: Likewise.
56068         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56069         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56070         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56071         * lib/unistr/u8-mbtouc.c: Likewise.
56072         * lib/unistr/u8-mbtoucr.c: Likewise.
56073         * lib/unistr/u8-move.c: Likewise.
56074         * lib/unistr/u8-next.c: Likewise.
56075         * lib/unistr/u8-prev.c: Likewise.
56076         * lib/unistr/u8-set.c: Likewise.
56077         * lib/unistr/u8-startswith.c: Likewise.
56078         * lib/unistr/u8-stpcpy.c: Likewise.
56079         * lib/unistr/u8-stpncpy.c: Likewise.
56080         * lib/unistr/u8-strcat.c: Likewise.
56081         * lib/unistr/u8-strchr.c: Likewise.
56082         * lib/unistr/u8-strcmp.c: Likewise.
56083         * lib/unistr/u8-strcpy.c: Likewise.
56084         * lib/unistr/u8-strcspn.c: Likewise.
56085         * lib/unistr/u8-strdup.c: Likewise.
56086         * lib/unistr/u8-strlen.c: Likewise.
56087         * lib/unistr/u8-strmblen.c: Likewise.
56088         * lib/unistr/u8-strmbtouc.c: Likewise.
56089         * lib/unistr/u8-strncat.c: Likewise.
56090         * lib/unistr/u8-strncmp.c: Likewise.
56091         * lib/unistr/u8-strncpy.c: Likewise.
56092         * lib/unistr/u8-strnlen.c: Likewise.
56093         * lib/unistr/u8-strpbrk.c: Likewise.
56094         * lib/unistr/u8-strrchr.c: Likewise.
56095         * lib/unistr/u8-strspn.c: Likewise.
56096         * lib/unistr/u8-strstr.c: Likewise.
56097         * lib/unistr/u8-strtok.c: Likewise.
56098         * lib/unistr/u8-to-u16.c: Likewise.
56099         * lib/unistr/u8-to-u32.c: Likewise.
56100         * lib/unistr/u8-uctomb-aux.c: Likewise.
56101         * lib/unistr/u8-uctomb.c: Likewise.
56102         * lib/unitypes.h: Likewise.
56103         * lib/uniwidth.h: Likewise.
56104         * lib/uniwidth/cjk.h: Likewise.
56105         * lib/uniwidth/u16-strwidth.c: Likewise.
56106         * lib/uniwidth/u16-width.c: Likewise.
56107         * lib/uniwidth/u32-strwidth.c: Likewise.
56108         * lib/uniwidth/u32-width.c: Likewise.
56109         * lib/uniwidth/u8-strwidth.c: Likewise.
56110         * lib/uniwidth/u8-width.c: Likewise.
56111         * lib/uniwidth/width.c: Likewise.
56112
56113 2007-10-07  Bruno Haible  <bruno@clisp.org>
56114
56115         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56116         The file is still under LGPL (see modules/inttypes).
56117
56118 2007-10-06  Bruno Haible  <bruno@clisp.org>
56119
56120         * modules/trunc (Dependencies): Add 'extensions'.
56121         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56122         Reported by Ben Pfaff <blp@gnu.org>.
56123
56124 2007-10-06  Bruno Haible  <bruno@clisp.org>
56125
56126         * modules/freopen-tests: New file.
56127         * tests/test-freopen.c: New file.
56128
56129         * modules/fopen-tests: New file.
56130         * tests/test-fopen.c: New file.
56131
56132         * modules/fopen: New file.
56133         * lib/fopen.c: New file.
56134         * m4/fopen.m4: New file.
56135         * modules/freopen: New file.
56136         * lib/freopen.c: New file.
56137         * m4/freopen.m4: New file.
56138         * lib/stdio.in.h (fopen, freopen): New declarations.
56139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56140         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56141         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56142         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56143         * doc/functions/fopen.texi: Mention the 'fopen' module.
56144         * doc/functions/freopen.texi: Mention the 'freopen' module.
56145
56146 2007-10-06  Bruno Haible  <bruno@clisp.org>
56147
56148         * modules/open-tests: New file.
56149         * tests/test-open.c: New file.
56150
56151         * modules/open: New file.
56152         * lib/open.c: New file.
56153         * m4/open.m4: New file.
56154         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56155         lib/open.c does.
56156         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56157         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56158         macros.
56159         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56160         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56161         REPLACE_OPEN.
56162         * doc/functions/open.texi: Mention the 'open' module.
56163
56164 2007-10-04  Bruno Haible  <bruno@clisp.org>
56165
56166         * modules/ceill-tests: New file.
56167         * tests/test-ceill.c: New file.
56168
56169         * modules/ceill: New file.
56170         * lib/ceill.c: Replace entire file.
56171         * m4/ceill.m4: New file.
56172         * lib/math.in.h (ceill): Replace declaration.
56173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56174         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56175         * doc/functions/ceill.texi: Mention the 'ceill' module.
56176         * modules/mathl (Files): Remove lib/ceill.c.
56177         (Depends-on): Add ceill.
56178
56179 2007-10-04  Bruno Haible  <bruno@clisp.org>
56180
56181         * modules/ceilf-tests: New file.
56182         * tests/test-ceilf.c: New file.
56183
56184         * modules/ceilf: New file.
56185         * lib/ceil.c: New file.
56186         * lib/ceilf.c: New file.
56187         * m4/ceilf.m4: New file.
56188         * lib/math.in.h (ceilf): New declaration.
56189         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56190         HAVE_DECL_CEILF.
56191         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56192         HAVE_DECL_CEILF.
56193         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56194
56195 2007-10-04  Bruno Haible  <bruno@clisp.org>
56196
56197         * modules/floorl-tests: New file.
56198         * tests/test-floorl.c: New file.
56199
56200         * modules/floorl: New file.
56201         * lib/floorl.c: Replace entire file.
56202         * m4/floorl.m4: New file.
56203         * lib/math.in.h (floorl): Replace declaration.
56204         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56205         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56206         * doc/functions/floorl.texi: Mention the 'floorl' module.
56207         * modules/mathl (Files): Remove lib/floorl.c.
56208         (Depends-on): Add floorl.
56209
56210 2007-10-04  Bruno Haible  <bruno@clisp.org>
56211
56212         * modules/floorf-tests: New file.
56213         * tests/test-floorf.c: New file.
56214
56215         * modules/floorf: New file.
56216         * lib/floor.c: New file.
56217         * lib/floorf.c: New file.
56218         * m4/floorf.m4: New file.
56219         * lib/math.in.h (floorf): New declaration.
56220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56221         HAVE_DECL_FLOORF.
56222         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56223         HAVE_DECL_FLOORF.
56224         * doc/functions/floorf.texi: Mention the 'floorf' module.
56225
56226 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56227             Bruno Haible  <bruno@clisp.org>
56228
56229         Advertise for the Git server instead of the CVS server.
56230         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56231         repository instead of the CVS one.
56232         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56233         about all VCS systems generically.
56234         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56235
56236 2007-10-04  Bruno Haible  <bruno@clisp.org>
56237
56238         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56239         means.
56240         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56241
56242 2007-10-04  Bruno Haible  <bruno@clisp.org>
56243
56244         * modules/truncl-tests: New file.
56245         * tests/test-truncl.c: New file.
56246
56247         * modules/truncl: New file.
56248         * lib/truncl.c: New file.
56249         * m4/truncl.m4: New file.
56250         * lib/math.in.h (truncl): New declaration.
56251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56252         HAVE_DECL_TRUNCL.
56253         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56254         HAVE_DECL_TRUNCL.
56255         * doc/functions/truncl.texi: Mention the 'truncl' module.
56256
56257 2007-10-04  Bruno Haible  <bruno@clisp.org>
56258
56259         * modules/truncf-tests: New file.
56260         * tests/test-truncf.c: New file.
56261
56262         * modules/truncf: New file.
56263         * lib/trunc.c: Make paramerizable through USE_* macros.
56264         * lib/truncf.c: New file.
56265         * m4/truncf.m4: New file.
56266         * lib/math.in.h (truncf): New declaration.
56267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56268         HAVE_DECL_TRUNCF.
56269         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56270         HAVE_DECL_TRUNCF.
56271         * doc/functions/truncf.texi: Mention the 'truncf' module.
56272
56273 2007-10-03  Bruno Haible  <bruno@clisp.org>
56274
56275         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56276         augmentation also for tests modules.
56277         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56278         * modules/atexit-tests (Makefile.am): Likewise.
56279         * modules/binary-io-tests (Makefile.am): Likewise.
56280         * modules/c-strcase-tests (Makefile.am): Likewise.
56281         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56282         * modules/canonicalize-tests (Makefile.am): Likewise.
56283         * modules/closein-tests (Makefile.am): Likewise.
56284         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56285         * modules/freadahead-tests (Makefile.am): Likewise.
56286         * modules/fseek-tests (Makefile.am): Likewise.
56287         * modules/fseeko-tests (Makefile.am): Likewise.
56288         * modules/ftell-tests (Makefile.am): Likewise.
56289         * modules/ftello-tests (Makefile.am): Likewise.
56290         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56291         * modules/isnanl-tests (Makefile.am): Likewise.
56292         * modules/lseek-tests (Makefile.am): Likewise.
56293         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56294         * modules/mbscasestr-tests (Makefile.am): Likewise.
56295         * modules/mbschr-tests (Makefile.am): Likewise.
56296         * modules/mbscspn-tests (Makefile.am): Likewise.
56297         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56298         * modules/mbspbrk-tests (Makefile.am): Likewise.
56299         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56300         * modules/mbsrchr-tests (Makefile.am): Likewise.
56301         * modules/mbsspn-tests (Makefile.am): Likewise.
56302         * modules/mbsstr-tests (Makefile.am): Likewise.
56303         * modules/printf-posix-tests (Makefile.am): Likewise.
56304         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56305         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56306         * modules/tsearch-tests (Makefile.am): Likewise.
56307         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56308         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56309         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56310         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56311         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56312         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56313         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56314         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56315         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56316         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56317         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56318         * modules/xstrtol-tests (Makefile.am): Likewise.
56319         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56320         * modules/yesno-tests (Makefile.am): Likewise.
56321
56322 2007-10-03  Bruno Haible  <bruno@clisp.org>
56323
56324         * modules/trunc-tests: New file.
56325         * tests/test-trunc.c: New file.
56326
56327         * modules/trunc: New file.
56328         * lib/trunc.c: New file.
56329         * m4/trunc.m4: New file.
56330         * lib/math.in.h (trunc): New declaration.
56331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56332         HAVE_DECL_TRUNC.
56333         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56334         HAVE_DECL_TRUNC.
56335         * doc/functions/trunc.texi: Mention the 'trunc' module.
56336
56337 2007-10-03  Bruno Haible  <bruno@clisp.org>
56338
56339         * tests/test-fpending.c: New file, mostly copied
56340         from coreutils/lib/t-fpending.c.
56341         * modules/fpending-tests: New file.
56342
56343 2007-10-03  Bruno Haible  <bruno@clisp.org>
56344
56345         Port the stdio extensions to QNX (untested).
56346         * lib/fseterr.c (fseterr): Add support for QNX.
56347         * lib/fbufmode.c (fbufmode): Likewise.
56348         * lib/freadable.c (freadable): Likewise.
56349         * lib/fwritable.c (fwritable): Likewise.
56350         * lib/freading.c (freading): Likewise.
56351         * lib/fwriting.c (fwriting): Likewise.
56352         * lib/freadahead.c (freadahed): Likewise.
56353         * lib/fpurge.c (fpurge): Likewise.
56354         * lib/fseeko.c (rpl_fseeko): Likewise.
56355
56356 2007-10-03  Bruno Haible  <bruno@clisp.org>
56357             Jim Meyering  <jim@meyering.net>
56358             Eric Blake  <ebb9@byu.net>
56359
56360         * doc/relocatable.texi: Use @command instead of @program.
56361
56362 2007-10-02  Jim Meyering  <jim@meyering.net>
56363
56364         Perform one more "_.h" -> ".in.h" substitution.
56365         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56366         instead of unistd_.h here, too.
56367
56368 2007-10-01  Bruno Haible  <bruno@clisp.org>
56369
56370         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56371         Needed for the alloca-opt module.
56372
56373 2007-09-30  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56376         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56377         alloca_.h.
56378         * lib/argz.in.h: Renamed from lib/argz_.h.
56379         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56380         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56381         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56382         byteswap_.h.
56383         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56384         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56385         dirent_.h.
56386         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56387         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56388         fcntl_.h.
56389         * lib/float.in.h: Renamed from lib/float_.h.
56390         * modules/float (Files, Makefile.am): Use float.in.h instead of
56391         float_.h.
56392         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56393         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56394         fnmatch_.h.
56395         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56396         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56397         getopt_.h.
56398         * lib/glob.in.h: Renamed from lib/glob_.h.
56399         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56400         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56401         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56402         iconv_.h.
56403         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56404         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56405         inttypes_.h.
56406         * lib/locale.in.h: Renamed from lib/locale_.h.
56407         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56408         locale_.h.
56409         * lib/math.in.h: Renamed from lib/math_.h.
56410         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56411         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56412         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56413         of netinet_in_.h. Add dependency.
56414         * lib/poll.in.h: Renamed from lib/poll_.h.
56415         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56416         * lib/search.in.h: Renamed from lib/search_.h.
56417         * modules/search (Files, Makefile.am): Use search.in.h instead of
56418         search_.h.
56419         * lib/signal.in.h: Renamed from lib/signal_.h.
56420         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56421         _signal.h.
56422         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56423         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56424         stdbool_.h.
56425         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56426         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56427         stdint_.h.
56428         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56429         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56430         stdio_.h.
56431         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56432         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56433         stdlib_.h.
56434         * lib/string.in.h: Renamed from lib/string_.h.
56435         * modules/string (Files, Makefile.am): Use string.in.h instead of
56436         string_.h.
56437         * doc/gnulib-tool.texi (Initial import): Update.
56438         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56439         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56440         of sys_select_.h. Add dependency.
56441         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56442         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56443         of sys_socket_.h.
56444         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56445         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56446         sys_stat_.h.
56447         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56448         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56449         sys_time_.h.
56450         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56451         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56452         sysexits_.h.
56453         * lib/time.in.h: Renamed from lib/time_.h.
56454         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56455         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56456         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56457         unistd_.h.
56458         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56459         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56460         wchar_.h.
56461         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56462         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56463         wctype_.h.
56464         * build-aux/bootstrap (slurp): Update.
56465         * lib/.cppi-disable: Update.
56466
56467 2007-09-30  Bruno Haible  <bruno@clisp.org>
56468
56469         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56470         Needed on BeOS.
56471
56472 2007-09-30  Bruno Haible  <bruno@clisp.org>
56473
56474         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56475
56476 2007-09-29  Bruno Haible  <bruno@clisp.org>
56477
56478         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56479
56480 2007-09-29  Bruno Haible  <bruno@clisp.org>
56481
56482         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56483         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56484         * build-aux/install-reloc: Compile also areadlink.c.
56485         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56486
56487 2007-09-29  Bruno Haible  <bruno@clisp.org>
56488
56489         * gnulib-tool (func_emit_initmacro_done): Indentation.
56490
56491 2007-09-29  Bruno Haible  <bruno@clisp.org>
56492
56493         * README: Add CVS checkout update instructions.
56494         Info from Bob Proulx <bob@proulx.com>.
56495
56496 2007-09-28  Eric Blake  <ebb9@byu.net>
56497
56498         Provide move-if-change.
56499         * build-aux/move-if-change: New file, based on best practice
56500         rather than any canonical upstream location.
56501
56502 2007-09-28  Jim Meyering  <jim@meyering.net>
56503
56504         Fix canonicalize loop-detection corner case.
56505         Do not attempt to stat the symlink values stored via seen_triple.
56506         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56507         on linux-2.6.18, (but not 2.6.22).
56508         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56509         triple_compare.  The former compares dev,ino,filename, while the latter
56510         would actually stat dirname(filename) when dev and ino were equal.
56511         * lib/hash-triple.c: Install <string.h>.
56512         (STREQ): Define.
56513         (triple_compare_ino_str): New function.
56514         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56515
56516 2007-09-28  Eric Blake  <ebb9@byu.net>
56517
56518         Enforce that AC_REPLACE_FUNCS files exist.
56519         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56520         override check for typos.
56521
56522         Fix test-closein on Solaris 10.
56523         * tests/test-closein.c (main): Don't assume stdin can be inherited
56524         closed on all systems.
56525         * tests/test-closein.sh: Likewise.
56526         Reported by Piotr Tarnowski.
56527
56528 2007-09-28  Jim Meyering  <jim@meyering.net>
56529
56530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56531
56532 2007-09-27  Jim Meyering  <jim@meyering.net>
56533
56534         canonicalize: Avoid a false-positive cycle failure.
56535         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56536         Sort.  Remove cycle-check.
56537         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56538         not cycle-check.h.
56539         (seen_triple): New function.
56540         (canonicalize_filename_mode): Use it instead of cycle-check.
56541         * tests/test-canonicalize.c: Add a test for this bug.
56542         * tests/test-canonicalize.sh: Set up and run the test.
56543
56544         New module, file-set, from coreutils.
56545         * modules/file-set: Define it.
56546         * lib/file-set.c, lib/file-set.h: Implement.
56547
56548         New module, hash-triple, from coreutils.
56549         * modules/hash-triple: Define it.
56550         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56551
56552 2007-09-25  Eric Blake  <ebb9@byu.net>
56553
56554         Fix strerror on Interix.
56555         * lib/string_.h (strerror): Declare replacement.
56556         * doc/functions/strerror.texi (strerror): Document the Interix
56557         shortcoming.
56558         * modules/string (Makefile.am): Support new hooks.
56559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56560         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56561         gl_FUNC_STRERROR_SEPARATE.
56562         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56563         * lib/strerror.c (rpl_strerror): Provide replacement.
56564         * modules/strerror (Depends-on): Add string.
56565         (configure.ac): Detect use of module.
56566         * tests/test-strerror.c: New file.
56567         * modules/strerror-tests: New test module.
56568         * modules/argp (Depends-on): Add strerror.
56569         * modules/error (Depends-on): Likewise.
56570         Reported by Martin Koeppe.
56571
56572 2007-09-24  Bruno Haible  <bruno@clisp.org>
56573
56574         * README: Update git instructions.
56575
56576 2007-09-24  Eric Blake  <ebb9@byu.net>
56577
56578         Revert fpending breakage from 2007-09-08.
56579         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56580         __fpending.c.
56581
56582 2007-09-24  Jim Meyering  <jim@meyering.net>
56583
56584         filenamecat.c: Add a test.
56585         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56586         showing how the function works when DIR is the empty string.
56587
56588 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56589
56590         * tests/test-canonicalize.sh: Turn on executable bit.
56591
56592 2007-09-19  Eric Blake  <ebb9@byu.net>
56593
56594         * README: Update CVS instructions.
56595
56596 2007-09-18  Bruno Haible  <bruno@clisp.org>
56597
56598         * modules/areadlink: New file.
56599         * lib/areadlink.h (areadlink): New declaration.
56600         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56601
56602 2007-09-17  Jim Meyering  <jim@meyering.net>
56603
56604         * lib/savewd.c (ESTALE) [!defined]: Define.
56605         Reported to be required on Interix by Martin Koeppe.
56606
56607 2007-09-17  Bruno Haible  <bruno@clisp.org>
56608
56609         * gnulib-tool (func_version): Use $version.
56610
56611 2007-09-16  Bruno Haible  <bruno@clisp.org>
56612
56613         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56614         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56615         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56616         Reported by Greg Schafer <gschafer@zip.com.au>.
56617
56618 2007-09-15  Bruno Haible  <bruno@clisp.org>
56619
56620         * gnulib-tool (sed): Try a little harder to make bash understand the
56621         alias.
56622         Reported by Bruce Korb <bruce.korb@gmail.com>.
56623
56624 2007-09-13  Eric Blake  <ebb9@byu.net>
56625
56626         * ChangeLog: Remove conflict markers.
56627
56628 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56629
56630         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56631         Reported by Bruno Haible <bruno@clisp.org>.
56632
56633 2007-09-12  Bruno Haible  <bruno@clisp.org>
56634
56635         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56636         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56637         is not defined.
56638
56639 2007-09-12  Eric Blake  <ebb9@byu.net>
56640
56641         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56642         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56643         Autoconf definition.
56644         * modules/euidaccess (Depends-on): Add extensions, for
56645         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56646         * modules/fnmatch (Depends-on): Likewise.
56647         * modules/getaddrinfo (Depends-on): Likewise.
56648         * modules/getdelim (Depends-on): Likewise.
56649         * modules/getline (Depends-on): Likewise.
56650         * modules/getsubopt (Depends-on): Likewise.
56651         * modules/gettext (Depends-on): Likewise.
56652         * modules/group-member (Depends-on): Likewise.
56653         * modules/mbchar (Depends-on): Likewise.
56654         * modules/memmem (Depends-on): Likewise.
56655         * modules/mempcpy (Depends-on): Likewise.
56656         * modules/memrchr (Depends-on): Likewise.
56657         * modules/pagealign_alloc (Depends-on): Likewise.
56658         * modules/readutmp (Depends-on): Likewise.
56659         * modules/stpcpy (Depends-on): Likewise.
56660         * modules/stpncpy (Depends-on): Likewise.
56661         * modules/strchrnul (Depends-on): Likewise.
56662         * modules/strndup (Depends-on): Likewise.
56663         * modules/strsep (Depends-on): Likewise.
56664         * modules/strverscmp (Depends-on): Likewise.
56665         * modules/vasprintf (Depends-on): Likewise.
56666         * modules/wcwidth (Depends-on): Likewise.
56667         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56668         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56669         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56670         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56671         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56672         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56673         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56674         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56675         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56676         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56677         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56678         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56679         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56680         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56681         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56682         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56683         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56684         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56685         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56686         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56687         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56688         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56689         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56690         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56691         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56693         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56694         so that lock.m4 can be used in gettext without extensions module.
56695
56696 2007-09-11  Bruno Haible  <bruno@clisp.org>
56697
56698         * m4/isc-posix.m4: Remove file.
56699         Suggested by Eric Blake.
56700
56701 2007-09-11  Eric Blake  <ebb9@byu.net>
56702
56703         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56704
56705 2007-09-10  Bruno Haible  <bruno@clisp.org>
56706
56707         * posix-modules: Fix typo in error message.
56708         Reported by Matt <mkraai@beckman.com>.
56709
56710 2007-09-09  Bruno Haible  <bruno@clisp.org>
56711
56712         * doc/functions/getdelim.texi: Update list of platforms lacking the
56713         function.
56714         * doc/functions/getline.texi: Likewise.
56715
56716 2007-09-09  Jim Meyering  <jim@meyering.net>
56717
56718         * lib/hash.c (hash_initialize): Detect calloc failure.
56719         Reported by Bruno Haible.
56720
56721 2007-09-09  Bruno Haible  <bruno@clisp.org>
56722
56723         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56724         malloc or realloc fails.
56725
56726 2007-09-09  Bruno Haible  <bruno@clisp.org>
56727
56728         * modules/getcwd (Depends-on): Add malloc-posix.
56729         * modules/glob (Depends-on): Likewise.
56730         * modules/putenv (Depends-on): Likewise.
56731         * modules/strdup (Depends-on): Likewise.
56732         * modules/getdelim (Depends-on): Add realloc-posix.
56733         * modules/read-file (Depends-on): Likewise.
56734
56735 2007-09-09  Bruno Haible  <bruno@clisp.org>
56736
56737         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56738         (gl_FUNC_MALLOC_POSIX): Require it.
56739         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56740         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56741         * modules/realloc (Files): Add m4/malloc.m4.
56742         * modules/calloc (Files): Likewise.
56743
56744 2007-09-09  Bruno Haible  <bruno@clisp.org>
56745
56746         * modules/malloc-posix: New file.
56747         * modules/malloc (Depends-on): Add malloc-posix.
56748         * lib/malloc.c: Include errno.h.
56749         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56750         and a POSIX-compatible malloc into a single function. Set ENOMEM
56751         when returning NULL.
56752         * m4/malloc.m4: New file.
56753         * doc/functions/malloc.texi: Mention the malloc-posix module.
56754         * lib/stdlib_.h (malloc): New declaration.
56755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56756         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56757         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56758         and HAVE_MALLOC_POSIX.
56759
56760 2007-09-09  Bruno Haible  <bruno@clisp.org>
56761
56762         * modules/realloc-posix: New file.
56763         * modules/realloc (Depends-on): Add realloc-posix.
56764         * lib/realloc.c: Include errno.h.
56765         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56766         and a POSIX-compatible realloc into a single function. Set ENOMEM
56767         when returning NULL.
56768         * m4/realloc.m4: New file.
56769         * doc/functions/realloc.texi: Mention the realloc-posix module.
56770         * lib/stdlib_.h (realloc): New declaration.
56771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56772         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56773         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56774         and HAVE_REALLOC_POSIX.
56775
56776 2007-09-09  Bruno Haible  <bruno@clisp.org>
56777
56778         * modules/calloc-posix: New file.
56779         * modules/calloc (Depends-on): Add calloc-posix.
56780         * lib/calloc.c: Include errno.h.
56781         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56782         and a POSIX-compatible calloc into a single function. Set ENOMEM
56783         when returning NULL.
56784         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56785         * doc/functions/calloc.texi: Mention the calloc-posix module.
56786         * lib/stdlib_.h (calloc): New declaration.
56787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56788         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56789         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56790         and HAVE_CALLOC_POSIX.
56791
56792 2007-09-09  Bruno Haible  <bruno@clisp.org>
56793
56794         Allow for modules to show an arbitrary notice.
56795         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56796         * gnulib-tool: New option --extract-notice.
56797         (func_usage): Document it.
56798         (sed_extract_prog): Update.
56799         (func_get_notice): New function.
56800         (func_modules_notice): New function.
56801         (func_import, func_create_testdir): Invoke it.
56802         Suggested by Jim Meyering.
56803
56804 2007-09-09  Bruno Haible  <bruno@clisp.org>
56805
56806         * gnulib-tool: New options --verbose, --quiet.
56807         (func_usage): Document them.
56808         (verbose): New variable.
56809         (func_execute_command): New function.
56810         (func_import): Don't show the module list and the file list if
56811         $verbose < 0.
56812         (func_create_testdir): Likewise. Use func_execute_command.
56813         (func_create_megatestdir): Use func_execute_command.
56814
56815 2007-09-08  Bruno Haible  <bruno@clisp.org>
56816
56817         * gnulib-tool (func_import): Prefer rsync over wget when available,
56818         for fetching the PO files.
56819
56820 2007-09-08  Bruno Haible  <bruno@clisp.org>
56821
56822         * posix-modules: New file. Portions copied from gnulib-tool.
56823         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56824
56825 2007-09-08  Jim Meyering  <jim@meyering.net>
56826
56827         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56828         * lib/fpending.h: Rename from __fpending.h.
56829         * lib/fpending.c: Rename from __fpending.c.
56830         Include "fpending.h", not "__fpending.h".
56831         * lib/__fpending.h, lib/__fpending.c: Remove files.
56832         * modules/fpending (Files): Reflect new file names.
56833         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56834
56835 2007-09-08  Bruno Haible  <bruno@clisp.org>
56836
56837         * m4/inttypes-h.m4: Remove stub file.
56838
56839 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56840
56841         * doc/headers/stdint.texi: Discuss #include_next issue.
56842
56843 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56844
56845         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56846
56847 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56848
56849         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56850         in variable name.
56851
56852 2007-09-03  Jim Meyering  <jim@meyering.net>
56853
56854         New module: git-version-gen.
56855         * modules/git-version-gen: New file.
56856
56857         Import changes from coreutils for bootstrap script.
56858
56859         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56860
56861         bootstrap: uses rsync to download the .po files
56862         * build-aux/bootstrap (po_download_command_format): New global.
56863         (download_po_files): Use rsync.
56864         (update_po_files): Don't remove .po files after download,
56865         so future rsync runs can take advantage of the copies.
56866
56867         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56868
56869         Solve the unnecessary-.po-file-regeneration problem once and for all.
56870         * build-aux/bootstrap (download_po_files): New function, renamed from
56871         get_translations.  Now, downloads, but doesn't update LINGUAS.
56872         (update_po_files): New function.
56873
56874         bootstrap: Ignore more.
56875         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56876         uniwidth to e.g., lib/.gitignore.
56877         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56878
56879         * build-aux/bootstrap: New setting: vc_ignore.
56880         (insert_sorted_if_absent): Create $file if absent.
56881         Adapt to new, possibly empty, list: $vc_ignore.
56882
56883         bootstrap: generate more ignorable names
56884         * build-aux/bootstrap (slurp): When generating ignorable names,
56885         also map .sin to .sed, .gperf to .c, and .y to .c.
56886
56887 2007-09-03  Jim Meyering  <jim@meyering.net>
56888
56889         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56890         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56891
56892 2007-09-02  Bruno Haible  <bruno@clisp.org>
56893
56894         Fix mis-recognition of 'mcs' on QNX 6.
56895         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56896         output contains the string "Mono".
56897         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56898         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56899
56900 2007-09-01  Bruno Haible  <bruno@clisp.org>
56901
56902         Fix collision between uniwidth/* and linebreak modules.
56903         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56904         u32_width): Remove declarations.
56905         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56906         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56907         streq3, streq2, streq1, streq0): Remove functions.
56908         (STREQ): Remove macro.
56909         (is_cjk_encoding): Remove function.
56910         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56911         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56912         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56913         * NEWS: Document the change.
56914
56915 2007-09-01  Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/streq.h: Add double-inclusion guard.
56918
56919 2007-09-01  Karl Berry  <karl@gnu.org>
56920
56921         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56922
56923 2007-08-28  Jim Meyering  <jim@meyering.net>
56924
56925         Rename mreadlink_with_size to areadlink_with_size.
56926         * NEWS: Document the change.
56927         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56928         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56929         * lib/mreadlink.h: Rename this to...
56930         * lib/areadlink.h: ...this.
56931         * modules/mreadlink-with-size: Rename this to...
56932         * modules/areadlink-with-size: ...this.
56933         * lib/canonicalize.c: Reflect the renaming.
56934         * modules/canonicalize: Likewise.
56935
56936 2007-08-26  Bruno Haible  <bruno@clisp.org>
56937
56938         * gnulib-tool (func_import): When deciding which files to remove,
56939         consider also dangling symbolic links.
56940         Reported by Eric Blake.
56941
56942 2007-08-26  Bruno Haible  <bruno@clisp.org>
56943
56944         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56945
56946 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56947
56948         * lib/readline.c: Don't include getline.h, the prototype is now
56949         found in stdio.h.
56950
56951 2007-08-23  Jim Meyering  <jim@meyering.net>
56952
56953         Getdelim touchup.
56954         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56955         around the funlockfile call, since funlockfile never sets errno.
56956         Don't set errno upon failed realloc.
56957
56958 2007-08-22  Eric Blake  <ebb9@byu.net>
56959
56960         Getline touchups.
56961         * lib/getdelim.c (getdelim): Revert regression that required *n to
56962         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56963         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56964         getdelim, rather than whether implementation is missing.
56965         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56966         * lib/stdio_.h (getline): Also declare if replacement is
56967         required.
56968         * doc/functions/getdelim.texi: New file.
56969         * doc/functions/getline.texi: Likewise.
56970         * doc/gnulib.texi (Function Substitutes): Add new files.
56971         Reported by Bruno Haible.
56972
56973 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56974
56975         * users.txt: Add Guile.
56976
56977 2007-08-22  Eric Blake  <ebb9@byu.net>
56978
56979         * tests/test-getdelim.c (main): Use remove, not unlink.
56980         * tests/test-getline.c (main): Likewise.
56981
56982         Move getline and getdelim into stdio.h, per POSIX 200x.
56983         * modules/getline (Files): Remove getline.h.
56984         (Depends-on): Add stdio.
56985         (configure.ac): Add module indicator.
56986         * modules/getdelim (Files): Remove getdelim.h.
56987         (Depends-on): Add stdio.
56988         (configure.ac): Add module indicator.
56989         * modules/stdio (Makefile.am): Work with new indicators.
56990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56991         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56992         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56993         * lib/getdelim.h: Delete.
56994         * lib/getline.h: Delete.
56995         * lib/stdio_.h (getdelim, getline): Declare.
56996         * modules/getdelim-tests: New module.
56997         * modules/getline-tests: Likewise.
56998         * tests/test-getdelim.c: New file.
56999         * tests/test-getline.c: Likewise.
57000         * NEWS: Document the change.
57001         * lib/getline.c: Update choice of header.
57002         * lib/csharpcomp.c: Likewise.
57003         * lib/getpass.c: Likewise.
57004         * lib/javacomp.c: Likewise.
57005         * lib/javaversion.c: Likewise.
57006         * lib/yesno.c: Likewise.
57007         * lib/getdelim.c: Likewise.
57008         (getdelim): Set errno on failure, and avoid memory leak.
57009
57010 2007-08-19  Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/closein (Depends-on): Add freadahead.
57013         * lib/closein.c: Include freadahead.h.
57014         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57015         is zero.
57016
57017 2007-08-19  Bruno Haible  <bruno@clisp.org>
57018
57019         * modules/freadahead-tests: New file.
57020         * tests/test-freadahead.sh: New file.
57021         * tests/test-freadahead.c: New file.
57022
57023         * modules/freadahead: New file.
57024         * lib/freadahead.h: New file.
57025         * lib/freadahead.c: New file.
57026         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57027         fbufmode, fpurge, freadable, fwritable.
57028
57029 2007-08-19  Eric Blake  <ebb9@byu.net>
57030
57031         Test yesno in combination with closein.
57032         * lib/yesno.c (yesno): Document use of stdin.
57033         * modules/yesno-tests (Files): New module.
57034         * tests/test-yesno.c (main): New file.
57035         * tests/test-yesno.sh: Likewise.
57036
57037 2007-08-19  Bruno Haible  <bruno@clisp.org>
57038
57039         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57040         * lib/fseeko.c (rpl_fseeko): Likewise.
57041         * lib/fseterr.c (fseterr): Likewise.
57042
57043 2007-08-19  Bruno Haible  <bruno@clisp.org>
57044
57045         * tests/test-lseek.c (main): Disable a test for BeOS.
57046         * doc/functions/lseek.texi: Document the BeOS bug.
57047
57048 2007-08-19  Bruno Haible  <bruno@clisp.org>
57049             Eric Blake  <ebb9@byu.net>
57050
57051         * lib/lseek.c: Include <sys/stat.h>.
57052         (rpl_lseek): Add workaround code also for Unix platforms.
57053         Needed for BeOS.
57054         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57055         * doc/functions/lseek.texi: Document BeOS definiency.
57056
57057 2007-08-18  Bruno Haible  <bruno@clisp.org>
57058
57059         * modules/fstrcmp-tests: New file.
57060         * tests/test-fstrcmp.c: New file.
57061
57062 2007-08-18  Bruno Haible  <bruno@clisp.org>
57063
57064         * modules/fstrcmp: New file, from GNU gettext with modifications.
57065         * lib/fstrcmp.h: New file, from GNU gettext.
57066         * lib/fstrcmp.c: New file, from GNU gettext.
57067         * MODULES.html.sh (String handling): Add fstrcmp.
57068
57069 2007-08-18  Bruno Haible  <bruno@clisp.org>
57070
57071         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57072         'bool'.
57073         (diag, compareseq): Remove const from the ctxt argument.
57074         (USE_HEURISTIC): Undefine at the end.
57075
57076 2007-08-18  Jim Meyering  <jim@meyering.net>
57077
57078         New file: lib/idcache.h
57079         * NEWS: Mention the addition.
57080         * modules/idcache (Files): Add lib/idcache.h
57081         * lib/idcache.c: Include "idcache.h".
57082         Don't include <sys/types.h>.
57083         Add a FIXME comment.
57084         Move file-scoped "static" declarations to the top.
57085         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57086
57087 2007-08-17  Bruno Haible  <bruno@clisp.org>
57088         and Paul Eggert  <eggert@cs.ucla.edu>
57089
57090         * MODULES.html.sh: Add diffseq.
57091         * modules/diffseq: New file.
57092         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57093         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57094
57095 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57096
57097         Import changes from coreutils for bootstrap script.
57098
57099         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57100
57101         * build-aux/bootstrap (slurp): Work even in environments where
57102         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57103         current code does not slurp files whose names start with ".", and
57104         this looks like it might be a troublesome area.
57105
57106         2007-07-11  Jim Meyering  <jim@meyering.net>
57107
57108         If there's a GPL vN copyright comment, require that N == 3.
57109
57110         2007-07-08  Jim Meyering  <jim@meyering.net>
57111
57112         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57113         * build-aux/bootstrap (mam_template): Move definition out of loop.
57114
57115         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57116
57117         * build-aux/bootstrap (symlink_to_dir): Rename function from
57118         symlink_to_gnulib.  Add a directory parameter.  Update all
57119         callers.
57120         (cp_mark_as_generated): Also check for -- and link to -- files in
57121         gl/.
57122
57123         2007-07-08  Jim Meyering  <jim@meyering.net>
57124
57125         Adapt to deeper hierarchy in gnulib.
57126         * build-aux/bootstrap (symlink_to_dir): If the destination
57127         directory doesn't exist, create it. This is required at least for
57128         "lib/uniwidth/cjk.h".
57129
57130         2007-05-15  Jim Meyering  <jim@meyering.net>
57131
57132         * build-aux/bootstrap: Now that generated Makefile.am files
57133         are no longer under version control, they must be created at
57134         bootstrap time.
57135
57136 2007-08-14  Ben Pfaff  <blp@gnu.org>
57137
57138         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57139
57140 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57141
57142         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57143         given the changes below.
57144         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57145         even on hosts that have padding bits beyond the supported 64.
57146
57147 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57148
57149         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57150         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57151         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57152         depends on it.
57153         (xstrtol_error): Remove.
57154         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57155         but with a different signature.
57156         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57157         * lib/xstrtol-error.c: Include exitfail.h.
57158         (xstrtol_fatal): New function, with a different signature from the
57159         old xstrtol_error, so that the caller need not worry about passing
57160         in an exit status, or about storage management of the option argument.
57161         (xstrtol_error): Now a static function.  Redo signature to
57162         implement xstrtol_fatal.  Output the correct number of hyphens in
57163         front of the option so that the caller need not worry about
57164         storage management.
57165         (N_): New macro.
57166         (_): Remove; not used now.
57167         * modules/xstrtol: Depend on getopt.
57168         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57169         of old STRTOL_FATAL_ERROR macro.
57170         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57171         of test program.
57172         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57173         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57174
57175 2007-08-08  Eric Blake  <ebb9@byu.net>
57176
57177         * lib/xstrtol-error.c: Add missing include.
57178
57179         Move xstrtol messages into gnulib domain, when --pobase is used.
57180         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57181         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57182         * modules/xstrtol (Files): Distribute new file.
57183         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57184         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57185         * tests/test-xstrtol.c: ...into new file.
57186         * tests/test-xstrtoul.c: Also test xstrtoul.
57187         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57188         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57189         * tests/test-xstrtol.sh: Drive the tests.
57190         * tests/test-xstrtoimax.sh: Likewise.
57191         * tests/test-xstrtoumax.sh: Likewise.
57192         * modules/xstrtol-tests: New module.
57193         * modules/xstrtoimax-tests: Likewise.
57194         * modules/xstrtoumax-tests: Likewise.
57195
57196 2007-08-08  Jim Meyering  <jim@meyering.net>
57197
57198         New function: mfile_name_concat.
57199         * lib/filenamecat.c (mfile_name_concat): New function, just like
57200         file_name_concat, but return NULL upon failure rather than exiting
57201         with a diagnostic.
57202         * lib/filenamecat.h: Declare it.
57203
57204 2007-08-07  Bruno Haible  <bruno@clisp.org>
57205
57206         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57207         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57208         warning from gcc.
57209         Reported by Eric Blake.
57210
57211 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57212
57213         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57214         * modules/crypto/arcfour (License): Likewise.
57215         * modules/crypto/des-tests (License): Likewise.
57216         * modules/crypto/gc-arctwo-tests (License): Likewise.
57217         * modules/crypto/gc-des-tests (License): Likewise.
57218         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57219         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57220         * modules/crypto/gc-md2-tests (License): Likewise.
57221         * modules/crypto/gc-md4-tests (License): Likewise.
57222         * modules/crypto/gc-md5-tests (License): Likewise.
57223         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57224         * modules/crypto/gc-rijndael-tests (License): Likewise.
57225         * modules/crypto/gc-sha1-tests (License): Likewise.
57226         * modules/crypto/gc-tests (License): Likewise.
57227         * modules/crypto/hmac-md5 (License): Likewise.
57228         * modules/crypto/hmac-sha1 (License): Likewise.
57229         * modules/crypto/md2-tests (License): Likewise.
57230         * modules/crypto/md4-tests (License): Likewise.
57231         * modules/crypto/md5 (License): Likewise.
57232         * modules/crypto/rijndael (License): Likewise.
57233         * modules/crypto/sha1 (License): Likewise.
57234         * modules/memxor (License): Likewise.
57235
57236 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57237         and Bruno Haible  <bruno@clisp.org>
57238
57239         * NEWS: Describe interface changes to human, xstrtol.
57240         * lib/human.h: Include <xstrtol.h>.
57241         (human_options): Return enum strtol_error, not int.  Remove
57242         bool arg; take int * instead.
57243         * lib/human.c: Don't include "gettext.h".
57244         (_): Remove; no longer used.
57245         Don't include <xstrtol.h>, since human.h does it.
57246         (human_options): Adjust to abovementioned interface changes.
57247         Do not report error to stderr; that's now the caller's
57248         responsibility.
57249         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57250         interface change.
57251         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57252         Str, Argument_type_string.  All uses changed.  Put " argument"
57253         in diagnostics to make them clearer.  Change wording of suffix
57254         message for clarity.
57255         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57256         Argument_type_string.
57257         (STRTOL_FATAL_WARN): Remove; no longer used.
57258         * modules/human (Depends-on): Remove gettext-h.
57259
57260 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57261
57262         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57263
57264 2007-07-31  Bruno Haible  <bruno@clisp.org>
57265
57266         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57267         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57268         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57269
57270 2007-07-31  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57273         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57274
57275 2007-07-30  Bruno Haible  <bruno@clisp.org>
57276
57277         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57278         * modules/c-ctype (License): Likewise.
57279         * modules/c-strcase (License): Likewise.
57280         * modules/check-version (License): Likewise.
57281         * modules/iconv (License): Likewise.
57282         * modules/iconv_open (License): Likewise.
57283         * modules/read-file (License): Likewise.
57284         * modules/striconv (License): Likewise.
57285         * modules/strverscmp (License): Likewise.
57286         * modules/vasprintf (License): Likewise.
57287         * modules/crypto/des (License): Likewise.
57288         * modules/crypto/gc (License): Likewise.
57289         * modules/crypto/gc-arcfour (License): Likewise.
57290         * modules/crypto/gc-arctwo (License): Likewise.
57291         * modules/crypto/gc-des (License): Likewise.
57292         * modules/crypto/gc-hmac-md5 (License): Likewise.
57293         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57294         * modules/crypto/gc-md2 (License): Likewise.
57295         * modules/crypto/gc-md4 (License): Likewise.
57296         * modules/crypto/gc-md5 (License): Likewise.
57297         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57298         * modules/crypto/gc-random (License): Likewise.
57299         * modules/crypto/gc-rijndael (License): Likewise.
57300         * modules/crypto/gc-sha1 (License): Likewise.
57301         * modules/crypto/md2 (License): Likewise.
57302         * modules/crypto/md4 (License): Likewise.
57303
57304 2007-07-30  Jim Meyering  <jim@meyering.net>
57305
57306         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57307         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57308         it has valid stat data.  This bug would cause du not to count the
57309         sizes of inaccessible directories.
57310         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57311         in <http://bugzilla.redhat.com/250077>.
57312
57313 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57314             Bruno Haible  <bruno@clisp.org>
57315
57316         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57317         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57318         #include_next, gives a diagnostic about it, but reports no error in
57319         the exit code.
57320         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57321
57322 2007-07-24  Ben Pfaff  <blp@gnu.org>
57323
57324         Improve name: "count-one-bits" is better than "popcount".
57325         * MODULES.html.sh: Update name.
57326         * lib/popcount.h: Renamed lib/count-one-bits.h.
57327         (popcount): Renamed count_one_bits.
57328         (popcountl): Renamed count_one_bits_l.
57329         (popcountll): Renamed count_one_bits_ll.
57330         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57331         * modules/popcount: Renamed module/count-one-bits.
57332         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57333         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57334
57335 2007-07-23  Ben Pfaff  <blp@gnu.org>
57336
57337         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57338         better code generation, and add U to large constants to avoid
57339         warnings, in non-GCC case.
57340         Suggested by Bruno Haible.
57341
57342 2007-07-23  Ben Pfaff  <blp@gnu.org>
57343
57344         * lib/popcount.h: Use verify_true instead of if...abort.
57345         * modules/popcount: Depend on verify module.
57346         Suggested by Jim Meyering.
57347
57348 2007-07-23  Bruno Haible  <bruno@clisp.org>
57349
57350         * gnulib-tool (func_import): Create a .cvsignore file also when the
57351         directory is not yet in CVS but the toplevel directory is. When
57352         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57353         Reported by Karl Berry.
57354
57355 2007-07-22  Ben Pfaff  <blp@gnu.org>
57356
57357         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57358         case.
57359         Suggested by Eric Blake.
57360
57361 2007-07-22  Ben Pfaff  <blp@gnu.org>
57362
57363         New module: popcount.
57364         * MODULES.html.sh: Add popcount.
57365         * modules/popcount: New file.
57366         * modules/popcount-tests: New file.
57367         * tests/test-popcount.c: New file.
57368         * lib/popcount.h: New file.
57369         * m4/popcount.m4: New file.
57370
57371 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57372
57373         * build-aux/announce-gen: Update to GPLv3.
57374
57375         * build-aux/config.guess: Update from config.
57376
57377 2007-07-21  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57380         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57381
57382 2007-07-20  Jim Meyering  <jim@meyering.net>
57383
57384         * check-module: Diagnose a self-dependency.
57385
57386 2007-07-19  Bruno Haible  <bruno@clisp.org>
57387
57388         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57389         empty.
57390         Reported by Eric Blake.
57391
57392 2007-07-18  Bruno Haible  <bruno@clisp.org>
57393
57394         * gnulib-tool: New options --po-base, --po-domain.
57395         (func_usage): Document them.
57396         (pobase, po_domain): New variables.
57397         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57398         DEFAULT_TEXT_DOMAIN.
57399         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57400         (func_import): Consider pobase and po_domain. Create a po/ directory.
57401         (func_create_testdir): Set pobase and po_domain to empty.
57402         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57403         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57404
57405 2007-07-18  Bruno Haible  <bruno@clisp.org>
57406
57407         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57408         EXTRA_DIST augmentation for files in build-aux/.
57409
57410 2007-07-16  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57413         * modules/getdelim (License): Likewise.
57414
57415 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57416
57417         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57418         * modules/d-type (License): Likewise.
57419         * modules/extensions (License): Likewise.
57420         * modules/fnmatch (License): Likewise.
57421         * modules/fseeko (License): Likewise.
57422         * modules/getaddrinfo (License): Likewise.
57423         * modules/getline (License): Likewise.
57424         * modules/getlogin_r (License): Likewise.
57425         * modules/getpass (License): Likewise.
57426         * modules/gettimeofday (License): Likewise.
57427         * modules/glob (License): Likewise.
57428         * modules/inet_ntop (License): Likewise.
57429         * modules/malloc (License): Likewise.
57430         * modules/malloca (License): Likewise.
57431         * modules/memmem (License): Likewise.
57432         * modules/mempcpy (License): Likewise.
57433         * modules/memset (License): Likewise.
57434         * modules/minmax (License): Likewise.
57435         * modules/mktime (License): Likewise.
57436         * modules/netinet_in (License): Likewise.
57437         * modules/pathmax (License): Likewise.
57438         * modules/poll (License): Likewise.
57439         * modules/regex (License): Likewise.
57440         * modules/snprintf (License): Likewise.
57441         * modules/stdbool (License): Likewise.
57442         * modules/stdint (License): Likewise.
57443         * modules/stdio (License): Likewise.
57444         * modules/strcase (License): Likewise.
57445         * modules/strcasestr (License): Likewise.
57446         * modules/strdup (License): Likewise.
57447         * modules/string (License): Likewise.
57448         * modules/strndup (License): Likewise.
57449         * modules/strnlen (License): Likewise.
57450         * modules/strpbrk (License): Likewise.
57451         * modules/strptime (License): Likewise.
57452         * modules/strsep (License): Likewise.
57453         * modules/sys_select (License): Likewise.
57454         * modules/sys_socket (License): Likewise.
57455         * modules/sys_stat (License): Likewise.
57456         * modules/sys_time (License): Likewise.
57457         * modules/time (License): Likewise.
57458         * modules/time_r (License): Likewise.
57459         * modules/timegm (License): Likewise.
57460         * modules/unistd (License): Likewise.
57461         * modules/vsnprintf (License): Likewise.
57462         * modules/wctype (License): Likewise.
57463
57464 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57465
57466         * modules/argz (License): LGPLv2+.
57467
57468 2007-07-15  Karl Berry  <karl@gnu.org>
57469
57470         * doc/gnulib.texi: revise node structure per new fdl.texi.
57471
57472 2007-07-14  Bruno Haible  <bruno@clisp.org>
57473
57474         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57475         the output file.
57476         * lib/uniname/uninames.h: Regenerated.
57477
57478 2007-07-14  Karl Berry  <karl@gnu.org>
57479
57480         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57481         omitting sectioning and index commands.
57482
57483 2007-07-13  Bruno Haible  <bruno@clisp.org>
57484
57485         New gnulib-tool option --more-symlinks.
57486         * gnulib-tool (func_usage): Document --more-symlinks.
57487         (do_copyrights): New variable.
57488         Recognize option --more-symlinks.
57489         (func_import): Don't add a copyright notice transform to
57490         sed_transform_lib_file if do_copyrights is empty.
57491
57492 2007-07-13  Bruno Haible  <bruno@clisp.org>
57493
57494         * lib/vasnprintf.c (decimal_point_char): Define also if
57495         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57496         && !NEED_PRINTF_DIRECTIVE_A.
57497         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57498         Gary V. Vaughan <gary@gnu.org>.
57499
57500 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57501
57502         * lib/inttypes_.h: Undo previous change, since it was fixed
57503         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57504
57505 2007-07-13  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57508         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57509
57510 2007-07-13  Jim Meyering  <jim@meyering.net>
57511
57512         df: Don't fail for Tru64's "file-on-file mount".
57513         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57514         so we fall through and use statfs instead.  Details here:
57515         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57516         Reported by Albert Chin.
57517
57518 2007-07-13  Bruno Haible  <bruno@clisp.org>
57519
57520         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57521         * modules/configmake (License): Likewise.
57522         * modules/gettext (License): Likewise.
57523         * modules/gettext-h (License): Likewise.
57524         * modules/include_next (License): Likewise.
57525         * modules/link-warning (License): Likewise.
57526         * modules/localcharset (License): Likewise.
57527         * modules/localename (License): Likewise.
57528         * modules/lock (License): Likewise.
57529         * modules/relocatable-lib-lgpl (License): Likewise.
57530         * modules/size_max (License): Likewise.
57531         * modules/vasnprintf (License): Likewise.
57532         * modules/wchar (License): Likewise.
57533         * modules/xsize (License): Likewise.
57534
57535 2007-07-13  Bruno Haible  <bruno@clisp.org>
57536
57537         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57538         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57539
57540 2007-07-12  Bruno Haible  <bruno@clisp.org>
57541
57542         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57543         in the modules files.
57544
57545 2007-07-11  Karl Berry  <karl@gnu.org>
57546
57547         * MODULES.html.sh (func_module): use
57548          sed -e '\|^'"${includefile}"'$|d'
57549          instead of /.../d, to avoid errors on $includefile's containing /.
57550
57551 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57552
57553         * gnulib-tool (func_import): Avoid duplication of --avoid
57554         statements
57555         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57556         names to `_' in variable names.
57557
57558 2007-07-10  Eric Blake  <ebb9@byu.net>
57559
57560         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57561         * NEWS: Document this change.
57562
57563 2007-07-08  Bruno Haible  <bruno@clisp.org>
57564
57565         Update to Unicode 5.0.
57566         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57567         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57568         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57569         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57570         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57571         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57572         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57573         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57574         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57575         U+10A3F, U+1D242..U+1D244.
57576         (nonspacing_table_ind): Update.
57577         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57578         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57579
57580 2007-07-08  Bruno Haible  <bruno@clisp.org>
57581
57582         Update to Unicode 5.0.
57583         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57584         code transform. Extend the name index field of unicode_name_to_code and
57585         unicode_code_to_name from 16 to 24 bits.
57586         * lib/uniname/uniname.c (unicode_character_name,
57587         unicode_name_character): Add the range 0x12xxx to the code transform.
57588         * lib/uniname/uninames.h: Regenerated.
57589         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57590
57591 2007-07-07  Bruno Haible  <bruno@clisp.org>
57592
57593         * modules/wcwidth-tests: New file.
57594         * tests/test-wcwidth.c: New file.
57595
57596         Work around MacOS X wcwidth() bug.
57597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57598         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57599         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57600         original wcwidth in non-UTF-8 locales.
57601         * modules/wcwidth (Depends-on): Add localcharset, streq,
57602         uniwidth/width.
57603         * doc/functions/wcwidth.texi: Update.
57604
57605 2007-07-07  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57608         (wcwidth): New declaration.
57609         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57610         macros.
57611         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57612         here. Prepare for creating <wchar.h> unconditionally.
57613         * modules/wchar (Depends-on): Add link-warning.
57614         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57615         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57616         * lib/wcwidth.h: Remove file.
57617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57618         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57619         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57620         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57621         (Include): Replace wcwidth.h with <wchar.h>.
57622         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57623         * lib/mbchar.h: Don't include wcwidth.h.
57624         * lib/mbswidth.c: Likewise.
57625         * NEWS: Mention the change.
57626
57627 2007-07-07  Bruno Haible  <bruno@clisp.org>
57628
57629         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57630         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57631         definition with an external declaration.
57632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57633         defined as a function. Remove AC_C_INLINE requirement.
57634         * modules/wcwidth (Files): Add lib/wcwidth.c.
57635         (Makefile.am): Remove redundant statement.
57636
57637 2007-07-07  Bruno Haible  <bruno@clisp.org>
57638
57639         * MODULES.html.sh (Unicode string functions): Add the new modules.
57640
57641         * tests/uniwidth/test-u32-strwidth.c: New file.
57642         * modules/uniwidth/u32-strwidth-tests: New file.
57643
57644         * lib/uniwidth/u32-strwidth.c: New file.
57645         * modules/uniwidth/u32-strwidth: New file.
57646
57647         * tests/uniwidth/test-u16-strwidth.c: New file.
57648         * modules/uniwidth/u16-strwidth-tests: New file.
57649
57650         * lib/uniwidth/u16-strwidth.c: New file.
57651         * modules/uniwidth/u16-strwidth: New file.
57652
57653         * tests/uniwidth/test-u8-strwidth.c: New file.
57654         * modules/uniwidth/u8-strwidth-tests: New file.
57655
57656         * lib/uniwidth/u8-strwidth.c: New file.
57657         * modules/uniwidth/u8-strwidth: New file.
57658
57659         * tests/uniwidth/test-u32-width.c: New file.
57660         * modules/uniwidth/u32-width-tests: New file.
57661
57662         * lib/uniwidth/u32-width.c: New file.
57663         * modules/uniwidth/u32-width: New file.
57664
57665         * tests/uniwidth/test-u16-width.c: New file.
57666         * modules/uniwidth/u16-width-tests: New file.
57667
57668         * lib/uniwidth/u16-width.c: New file.
57669         * modules/uniwidth/u16-width: New file.
57670
57671         * tests/uniwidth/test-u8-width.c: New file.
57672         * modules/uniwidth/u8-width-tests: New file.
57673
57674         * lib/uniwidth/u8-width.c: New file.
57675         * modules/uniwidth/u8-width: New file.
57676
57677         * tests/uniwidth/test-uc_width.c: New file.
57678         * modules/uniwidth/width-tests: New file.
57679
57680         * lib/uniwidth/width.c: New file, from GNU libiconv.
57681         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57682         * modules/uniwidth/width: New file.
57683
57684         * lib/uniwidth.h: New file, from GNU libiconv.
57685         * modules/uniwidth/base: New file.
57686
57687 2007-07-07  Bruno Haible  <bruno@clisp.org>
57688
57689         * lib/uniname.h: New file, from GNU gettext.
57690         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57691         * lib/uniname/uninames.h: New file, from GNU gettext.
57692         * lib/uniname/uniname.c: New file, from GNU gettext.
57693         * tests/uniname/test-uninames.sh: New file.
57694         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57695         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57696         * modules/uniname/base: New file.
57697         * modules/uniname/uniname: New file.
57698         * modules/uniname/uniname-tests: New file.
57699         * MODULES.html.sh (Unicode string functions): Add the new modules.
57700
57701 2007-07-06  Bruno Haible  <bruno@clisp.org>
57702
57703         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57704
57705 2007-07-06  Bruno Haible  <bruno@clisp.org>
57706
57707         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57708         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57709         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57710         include <sys/time.h>.
57711         Reported by Eric Blake.
57712
57713 2007-07-06  Eric Blake  <ebb9@byu.net>
57714
57715         Fix testing canonicalize on cygwin.
57716         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57717         Revert patch from 2007-06-19.
57718         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57719         canonicalize module is also in use.
57720         * tests/test-canonicalize.c: New file.
57721         * tests/test-canonicalize.sh: Likewise.
57722         * modules/canonicalize-tests: Likewise.
57723
57724 2007-07-06  Jim Meyering  <jim@meyering.net>
57725
57726         * lib/getugroups.c (getugroups): Detect getgrent failure.
57727         Adjust comment to reflect reality: this function may return -1.
57728
57729 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57730
57731         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57732         the new TP address.
57733         (usage): Fix typo
57734         (gnulib_mk): New variable.
57735
57736 2007-07-05  Jim Meyering  <jim@meyering.net>
57737
57738         Don't let endgrent clobber errno, no matter how improbable.
57739         * lib/getugroups.c (getugroups): Save and restore errno around
57740         endgrent call.
57741
57742         Close the group DB even when failing with 2^31 or more members.
57743         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57744
57745 2007-07-04  Jim Meyering  <jim@meyering.net>
57746
57747         * lib/getugroups.h: New file.
57748         * lib/getugroups.c: Include "getugroups.h".
57749         Remove uses of "register" keyword.
57750         Move local variable, "cp", down into scope where used.
57751         Give "username" parameter the "const" attribute.
57752         * modules/getugroups (Files): Add lib/getugroups.h
57753
57754 2007-07-04  Karl Berry  <karl@gnu.org>
57755
57756         * MODULES.html.sh (func_all_modules): Complete rename of
57757         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57758
57759 2007-07-02  Bruno Haible  <bruno@clisp.org>
57760
57761         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57762         mode, when inttypes.h comes from gnulib.
57763         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57764
57765 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57766
57767         * NEWS: Mention lgpl module name change.
57768
57769         * modules/lgpl-2.1: Renamed from lgpl.
57770
57771         * NEWS: Mention gpl module name change.
57772
57773         * modules/gpl-3.0: New file, based on gpl-2.0.
57774
57775         * modules/gpl-2.0: Renamed from gpl.
57776
57777         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57778         doc/gpl-2.0.texi.
57779
57780 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57781
57782         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57783         #define __STDC_LIMIT_MACROS temporarily while including
57784         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57785         Problem reported by Joel E. Denny in
57786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57787
57788 2007-07-01  Bruno Haible  <bruno@clisp.org>
57789
57790         * lib/unistdio.h: New file.
57791         * lib/unistdio/u-asnprintf.h: New file.
57792         * lib/unistdio/u-asprintf.h: New file.
57793         * lib/unistdio/u-printf-args.c: New file.
57794         * lib/unistdio/u-printf-args.h: New file.
57795         * lib/unistdio/u-printf-parse.h: New file.
57796         * lib/unistdio/u-snprintf.h: New file.
57797         * lib/unistdio/u-sprintf.h: New file.
57798         * lib/unistdio/u-vasprintf.h: New file.
57799         * lib/unistdio/u-vsnprintf.h: New file.
57800         * lib/unistdio/u-vsprintf.h: New file.
57801         * lib/unistdio/ulc-asnprintf.c: New file.
57802         * lib/unistdio/ulc-asprintf.c: New file.
57803         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57804         * lib/unistdio/ulc-printf-parse.c: New file.
57805         * lib/unistdio/ulc-snprintf.c: New file.
57806         * lib/unistdio/ulc-sprintf.c: New file.
57807         * lib/unistdio/ulc-vasnprintf.c: New file.
57808         * lib/unistdio/ulc-vasprintf.c: New file.
57809         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57810         * lib/unistdio/ulc-vsnprintf.c: New file.
57811         * lib/unistdio/ulc-vsprintf.c: New file.
57812         * lib/unistdio/u8-asnprintf.c: New file.
57813         * lib/unistdio/u8-asprintf.c: New file.
57814         * lib/unistdio/u8-printf-parse.c: New file.
57815         * lib/unistdio/u8-snprintf.c: New file.
57816         * lib/unistdio/u8-sprintf.c: New file.
57817         * lib/unistdio/u8-vasnprintf.c: New file.
57818         * lib/unistdio/u8-vasprintf.c: New file.
57819         * lib/unistdio/u8-vsnprintf.c: New file.
57820         * lib/unistdio/u8-vsprintf.c: New file.
57821         * lib/unistdio/u8-u8-asnprintf.c: New file.
57822         * lib/unistdio/u8-u8-asprintf.c: New file.
57823         * lib/unistdio/u8-u8-snprintf.c: New file.
57824         * lib/unistdio/u8-u8-sprintf.c: New file.
57825         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57826         * lib/unistdio/u8-u8-vasprintf.c: New file.
57827         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57828         * lib/unistdio/u8-u8-vsprintf.c: New file.
57829         * lib/unistdio/u16-asnprintf.c: New file.
57830         * lib/unistdio/u16-asprintf.c: New file.
57831         * lib/unistdio/u16-printf-parse.c: New file.
57832         * lib/unistdio/u16-snprintf.c: New file.
57833         * lib/unistdio/u16-sprintf.c: New file.
57834         * lib/unistdio/u16-vasnprintf.c: New file.
57835         * lib/unistdio/u16-vasprintf.c: New file.
57836         * lib/unistdio/u16-vsnprintf.c: New file.
57837         * lib/unistdio/u16-vsprintf.c: New file.
57838         * lib/unistdio/u16-u16-asnprintf.c: New file.
57839         * lib/unistdio/u16-u16-asprintf.c: New file.
57840         * lib/unistdio/u16-u16-snprintf.c: New file.
57841         * lib/unistdio/u16-u16-sprintf.c: New file.
57842         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57843         * lib/unistdio/u16-u16-vasprintf.c: New file.
57844         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57845         * lib/unistdio/u16-u16-vsprintf.c: New file.
57846         * lib/unistdio/u32-asnprintf.c: New file.
57847         * lib/unistdio/u32-asprintf.c: New file.
57848         * lib/unistdio/u32-printf-parse.c: New file.
57849         * lib/unistdio/u32-snprintf.c: New file.
57850         * lib/unistdio/u32-sprintf.c: New file.
57851         * lib/unistdio/u32-vasnprintf.c: New file.
57852         * lib/unistdio/u32-vasprintf.c: New file.
57853         * lib/unistdio/u32-vsnprintf.c: New file.
57854         * lib/unistdio/u32-vsprintf.c: New file.
57855         * lib/unistdio/u32-u32-asnprintf.c: New file.
57856         * lib/unistdio/u32-u32-asprintf.c: New file.
57857         * lib/unistdio/u32-u32-snprintf.c: New file.
57858         * lib/unistdio/u32-u32-sprintf.c: New file.
57859         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57860         * lib/unistdio/u32-u32-vasprintf.c: New file.
57861         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57862         * lib/unistdio/u32-u32-vsprintf.c: New file.
57863         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57864         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57865         * tests/unistdio/test-ulc-printf1.h: New file.
57866         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57867         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57868         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57869         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57870         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57871         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57872         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57873         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57874         * tests/unistdio/test-u8-asnprintf1.c: New file.
57875         * tests/unistdio/test-u8-asnprintf1.h: New file.
57876         * tests/unistdio/test-u8-printf1.h: New file.
57877         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57878         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57879         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57880         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57881         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57882         * tests/unistdio/test-u8-vasprintf1.c: New file.
57883         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57884         * tests/unistdio/test-u8-vsprintf1.c: New file.
57885         * tests/unistdio/test-u16-asnprintf1.c: New file.
57886         * tests/unistdio/test-u16-asnprintf1.h: New file.
57887         * tests/unistdio/test-u16-printf1.h: New file.
57888         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57889         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57890         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57891         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57892         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57893         * tests/unistdio/test-u16-vasprintf1.c: New file.
57894         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57895         * tests/unistdio/test-u16-vsprintf1.c: New file.
57896         * tests/unistdio/test-u32-asnprintf1.c: New file.
57897         * tests/unistdio/test-u32-asnprintf1.h: New file.
57898         * tests/unistdio/test-u32-printf1.h: New file.
57899         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57900         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57901         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57902         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57903         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57904         * tests/unistdio/test-u32-vasprintf1.c: New file.
57905         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57906         * tests/unistdio/test-u32-vsprintf1.c: New file.
57907         * modules/unistdio/base: New file.
57908         * modules/unistdio/u-printf-args: New file.
57909         * modules/unistdio/ulc-asnprintf: New file.
57910         * modules/unistdio/ulc-asprintf: New file.
57911         * modules/unistdio/ulc-fprintf: New file.
57912         * modules/unistdio/ulc-printf-parse: New file.
57913         * modules/unistdio/ulc-snprintf: New file.
57914         * modules/unistdio/ulc-sprintf: New file.
57915         * modules/unistdio/ulc-vasnprintf: New file.
57916         * modules/unistdio/ulc-vasprintf: New file.
57917         * modules/unistdio/ulc-vfprintf: New file.
57918         * modules/unistdio/ulc-vsnprintf: New file.
57919         * modules/unistdio/ulc-vsprintf: New file.
57920         * modules/unistdio/u8-asnprintf: New file.
57921         * modules/unistdio/u8-asprintf: New file.
57922         * modules/unistdio/u8-printf-parse: New file.
57923         * modules/unistdio/u8-snprintf: New file.
57924         * modules/unistdio/u8-sprintf: New file.
57925         * modules/unistdio/u8-vasnprintf: New file.
57926         * modules/unistdio/u8-vasprintf: New file.
57927         * modules/unistdio/u8-vsnprintf: New file.
57928         * modules/unistdio/u8-vsprintf: New file.
57929         * modules/unistdio/u8-u8-asnprintf: New file.
57930         * modules/unistdio/u8-u8-asprintf: New file.
57931         * modules/unistdio/u8-u8-snprintf: New file.
57932         * modules/unistdio/u8-u8-sprintf: New file.
57933         * modules/unistdio/u8-u8-vasnprintf: New file.
57934         * modules/unistdio/u8-u8-vasprintf: New file.
57935         * modules/unistdio/u8-u8-vsnprintf: New file.
57936         * modules/unistdio/u8-u8-vsprintf: New file.
57937         * modules/unistdio/u16-asnprintf: New file.
57938         * modules/unistdio/u16-asprintf: New file.
57939         * modules/unistdio/u16-printf-parse: New file.
57940         * modules/unistdio/u16-snprintf: New file.
57941         * modules/unistdio/u16-sprintf: New file.
57942         * modules/unistdio/u16-vasnprintf: New file.
57943         * modules/unistdio/u16-vasprintf: New file.
57944         * modules/unistdio/u16-vsnprintf: New file.
57945         * modules/unistdio/u16-vsprintf: New file.
57946         * modules/unistdio/u16-u16-asnprintf: New file.
57947         * modules/unistdio/u16-u16-asprintf: New file.
57948         * modules/unistdio/u16-u16-snprintf: New file.
57949         * modules/unistdio/u16-u16-sprintf: New file.
57950         * modules/unistdio/u16-u16-vasnprintf: New file.
57951         * modules/unistdio/u16-u16-vasprintf: New file.
57952         * modules/unistdio/u16-u16-vsnprintf: New file.
57953         * modules/unistdio/u16-u16-vsprintf: New file.
57954         * modules/unistdio/u32-asnprintf: New file.
57955         * modules/unistdio/u32-asprintf: New file.
57956         * modules/unistdio/u32-printf-parse: New file.
57957         * modules/unistdio/u32-snprintf: New file.
57958         * modules/unistdio/u32-sprintf: New file.
57959         * modules/unistdio/u32-vasnprintf: New file.
57960         * modules/unistdio/u32-vasprintf: New file.
57961         * modules/unistdio/u32-vsnprintf: New file.
57962         * modules/unistdio/u32-vsprintf: New file.
57963         * modules/unistdio/u32-u32-asnprintf: New file.
57964         * modules/unistdio/u32-u32-asprintf: New file.
57965         * modules/unistdio/u32-u32-snprintf: New file.
57966         * modules/unistdio/u32-u32-sprintf: New file.
57967         * modules/unistdio/u32-u32-vasnprintf: New file.
57968         * modules/unistdio/u32-u32-vasprintf: New file.
57969         * modules/unistdio/u32-u32-vsnprintf: New file.
57970         * modules/unistdio/u32-u32-vsprintf: New file.
57971         * modules/unistdio/ulc-asnprintf-tests: New file.
57972         * modules/unistdio/ulc-vasnprintf-tests: New file.
57973         * modules/unistdio/ulc-vasprintf-tests: New file.
57974         * modules/unistdio/ulc-vsnprintf-tests: New file.
57975         * modules/unistdio/ulc-vsprintf-tests: New file.
57976         * modules/unistdio/u8-asnprintf-tests: New file.
57977         * modules/unistdio/u8-vasnprintf-tests: New file.
57978         * modules/unistdio/u8-vasprintf-tests: New file.
57979         * modules/unistdio/u8-vsnprintf-tests: New file.
57980         * modules/unistdio/u8-vsprintf-tests: New file.
57981         * modules/unistdio/u16-asnprintf-tests: New file.
57982         * modules/unistdio/u16-vasnprintf-tests: New file.
57983         * modules/unistdio/u16-vasprintf-tests: New file.
57984         * modules/unistdio/u16-vsnprintf-tests: New file.
57985         * modules/unistdio/u16-vsprintf-tests: New file.
57986         * modules/unistdio/u32-asnprintf-tests: New file.
57987         * modules/unistdio/u32-vasnprintf-tests: New file.
57988         * modules/unistdio/u32-vasprintf-tests: New file.
57989         * modules/unistdio/u32-vsnprintf-tests: New file.
57990         * modules/unistdio/u32-vsprintf-tests: New file.
57991         * MODULES.html.sh (Unicode string functions): Add the new modules.
57992
57993 2007-07-01  Bruno Haible  <bruno@clisp.org>
57994
57995         * lib/sprintf.c (sprintf): Limit the available length estimation,
57996         to avoid address wraparound.
57997         * lib/vsprintf.c (vsprintf): Likewise.
57998         * modules/sprintf-posix (Dependencies): Add stdint.
57999         * modules/vsprintf-posix (Dependencies): Likewise.
58000
58001 2007-07-01  Bruno Haible  <bruno@clisp.org>
58002
58003         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58004         Windows PATH as well. Conservative double-quoting. Comments.
58005
58006 2007-07-01  Bruno Haible  <bruno@clisp.org>
58007             Eric Blake  <ebb9@byu.net>
58008             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58009
58010         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58011         empty components in $PATH, denoting '.'.
58012
58013 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58014
58015         * gnulib-tool: Fix indentation.
58016         (func_create_megatestdir): Likewise.
58017         Report by Bruno Haible.
58018
58019 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58020
58021         Sync from Automake.
58022         * build-aux/gnupload: Fix shell portability issues with for loops.
58023         Report by Karl Berry.
58024
58025 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58026
58027         * build-aux/maint.mk (POURL): Use translationproject.org.
58028
58029 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58030             Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58033         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58034         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58035         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58036         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58037
58038 2007-06-27  Bruno Haible  <bruno@clisp.org>
58039
58040         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58041         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58042
58043 2007-06-26  Karl Berry  <karl@gnu.org>
58044
58045         * MODULES.html.sh: remove xreadlink-with-size.
58046
58047 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58048
58049         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58050         method that I hope also handles the double-include problem noted
58051         by Bruno Haible in
58052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58053
58054 2007-06-23  Bruno Haible  <bruno@clisp.org>
58055
58056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58057         Don't let the 'mostlyclean' target fail if the last subdirectory could
58058         not be removed.
58059         Reported by Karl Berry.
58060
58061 2007-06-23  Bruno Haible  <bruno@clisp.org>
58062
58063         * gnulib-tool (echo): Add a speedier workaround for ksh.
58064         * tests/test-echo.sh: Likewise.
58065
58066 2007-06-23  Bruno Haible  <bruno@clisp.org>
58067
58068         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58069         * tests/test-echo.sh: Likewise.
58070
58071 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58072
58073         * gnulib-tool (IFS): Initialize early, so we don't set it to
58074         empty later.
58075         (self_abspathname): Rewrite algorithm to set it, reindent.
58076         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58077         (func_create_megatestdir): Merge some sed scripts.
58078
58079 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58082         exposed by Sun Studio 11 cc on Solaris 8.
58083
58084 2007-06-22  Bruno Haible  <bruno@clisp.org>
58085
58086         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58087         backslashes.
58088         * tests/test-echo.sh: New file.
58089
58090 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58091
58092         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58093         simplify `sed_replace_build_aux' scripts, they are portable but
58094         echoing them with `echo' is not.
58095         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58096
58097 2007-06-21  Karl Berry  <karl@gnu.org>
58098
58099         * config/srclist.txt: guess we can't handle the licenses via
58100         srclist at the moment.
58101
58102 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58103
58104         * MODULES.html.sh: Add include_next.
58105         * modules/include_next: New file.
58106
58107 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58108
58109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58110         INCLUDE_NEXT.
58111         (gl_CHECK_NEXT_HEADERS): New macro.
58112         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58113         the obsolescent gl_ABSOLUTE_HEADER.
58114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58115         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58116         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58117         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58118         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58119         * m4/math_h.m4 (gl_MATH_H): Likewise.
58120         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58121         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58122         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58123         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58124         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58125         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58126         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58127         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58128         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58130         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58131         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58132         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58133         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58134         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58135         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58136         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58137         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58138         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58139         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58140         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58141         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58142         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58143         * lib/float_.h: Likewise.
58144         * lib/inttypes_.h: Likewise.
58145         * lib/math_.h: Likewise.
58146         * lib/search_.h: Likewise.
58147         * lib/signal_.h: Likewise.
58148         * lib/stdint_.h: Likewise.
58149         * lib/stdio_.h: Likewise.
58150         * lib/stdlib_.h: Likewise.
58151         * lib/string_.h: Likewise.
58152         * lib/sys_stat_.h: Likewise.
58153         * lib/sys_time_.h: Likewise.
58154         * lib/time_.h: Likewise.
58155         * lib/unistd_.h: Likewise.
58156         * lib/wchar_.h: Likewise.
58157         * lib/wctype_.h: Likewise.
58158         * lib/dirent_.h: Likewise.
58159         * lib/iconv_.h: Likewise.
58160         * lib/locale_.h: Likewise.
58161         * lib/netinet_in_.h: Likewise.
58162         * lib/sys_select_.h: Likewise.
58163         * lib/sys_socket_.h: Likewise.
58164         * lib/sysexits_.h: Likewise.
58165         * modules/fcntl (Depends-on): Depend on include_next, not
58166         absolute_header.
58167         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58168         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58169         * modules/fchdir: Likewise.
58170         * modules/float: Likewise.
58171         * modules/iconv_open: Likewise.
58172         * modules/inttypes: Likewise.
58173         * modules/locale: Likewise.
58174         * modules/math: Likewise.
58175         * modules/netinet_in: Likewise.
58176         * modules/search: Likewise.
58177         * modules/signal: Likewise.
58178         * modules/stdint: Likewise.
58179         * modules/stdio: Likewise.
58180         * modules/stdlib: Likewise.
58181         * modules/string: Likewise.
58182         * modules/sys_select: Likewise.
58183         * modules/sys_socket: Likewise.
58184         * modules/sys_stat: Likewise.
58185         * modules/sys_time: Likewise.
58186         * modules/sysexits: Likewise.
58187         * modules/time: Likewise.
58188         * modules/unistd: Likewise.
58189         * modules/wchar: Likewise.
58190         * modules/wctype: Likewise.
58191         * modules/sys_stat: Change maintainer to "all".
58192         * modules/unistd: Likewise.
58193
58194 2007-06-20  Karl Berry  <karl@gnu.org>
58195
58196         * config/srclist.txt: track www changes in license files.
58197
58198 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58199
58200         * build-aux/bootstrap: Remove stray dot.
58201         Make sure build_aux settings are honored when linking
58202         gnulib_extra_files.
58203
58204 2007-06-19  Eric Blake  <ebb9@byu.net>
58205
58206         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58207         Allow compilation on cygwin.
58208
58209 2007-06-19  Jim Meyering  <jim@meyering.net>
58210
58211         xreadlink-with-size: Remove module.  No longer used.
58212         Ex-callers now use xreadlink or mreadlink-with-size.
58213         * modules/xreadlink-with-size: Remove module.
58214         * lib/xreadlink-with-size.c: Remove file.
58215         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58216         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58217         just before the function definition *is* accurate.
58218
58219         Eliminate one way canonicalize_filename_mode could exit.
58220         * lib/canonicalize.c (canonicalize_filename_mode):
58221         Use mreadlink_with_size, not xreadlink_with_size.
58222
58223 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58224
58225         Detect porting problems to FreeBSD/arm, which has time_t wider than
58226         long int.  Original problem reported for GNU diff by Xin Li in
58227         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58228         * modules/getdate (Depends-on): Add intprops, verify.
58229         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58230         is an integer type no wider than long int.
58231
58232 2007-06-18  Jim Meyering  <jim@meyering.net>
58233
58234         New module: mreadlink-with-size.
58235         * MODULES.html.sh: Add mreadlink-with-size.
58236         * modules/mreadlink-with-size: New module
58237         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58238         not xreadlink-with-size.
58239         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58240
58241 2007-06-16  Bruno Haible  <bruno@clisp.org>
58242
58243         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58244         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58245         Reported by Gary V. Vaughan <gary@gnu.org>.
58246
58247 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58248
58249         Revamp lchown so that it lives in unistd.h where it belongs.
58250         * lib/lchown.h: Remove.
58251         * lib/dirchownmod.c: Don't include lib/lchown.h.
58252         * lib/fchownat.c: Likewise.
58253         * lib/openat.c: Likewise.
58254         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58255         does not follow symlinks.
58256         (EOPNOTSUPP): Define if not defined.
58257         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58258         is defined to 0.
58259         (lchown): New decl.
58260         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58261         Do not check for lchown decl.
58262         Set REPLACE_LCHOWN.
58263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58264         REPLACE_LCHOWN.
58265         * modules/chown: Make it clear it follows symlinks.
58266         * modules/lchown: Make it clear it doesn't follow symlinks.
58267         (Files): Remove lib/lchown.h
58268         (Depends-on): Add unistd.
58269         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58270         (Include): Include <unistd.h>, not "lchown.h".
58271         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58272         REPLACE_LCHOWN.
58273
58274 2007-06-15  Jim Meyering  <jim@meyering.net>
58275
58276         Change license (GPL to LGPL) of fsusage and dependents.
58277         * modules/fsusage (License): Change to LGPL.
58278         * modules/full-read (License): Likewise.
58279         * modules/full-write (License): Likewise.
58280         * modules/safe-read (License): Likewise.
58281         * modules/safe-write (License): Likewise.
58282
58283 2007-06-14  Ben Pfaff  <blp@gnu.org>
58284
58285         Missing part of allocsa -> malloca transition.
58286         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58287         gl_MALLOCA.
58288
58289 2007-06-12  Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58292         to ia64, x86_64, i386.
58293         Reported by Eric Blake.
58294
58295 2007-06-12  Bruno Haible  <bruno@clisp.org>
58296
58297         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58298         cross-compiling to x86_64.
58299
58300 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58301
58302         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58303         glitch reported by Ralf Wildenhues in
58304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58305
58306         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58307         Vin Shelton.
58308
58309 2007-06-11  Bruno Haible  <bruno@clisp.org>
58310
58311         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58312         replacement string.
58313         Reported by Eric Blake.
58314
58315 2007-06-10  Bruno Haible  <bruno@clisp.org>
58316
58317         Prepare vasnprintf code for use with Unicode strings.
58318         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58319         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58320         TYPE_U32_STRING.
58321         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58322         a_u32_string variants.
58323         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58324         * lib/printf-args.c: Don't include config.h and the specification
58325         header if PRINTF_FETCHARGS is already defined.
58326         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58327         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58328         TYPE_U16_STRING, TYPE_U32_STRING.
58329         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58330         u16_directive, u16_directives, u32_directive, u32_directives): New
58331         types.
58332         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58333         New declarations.
58334         * lib/printf-parse.c: Don't include config.h and the specification
58335         header if PRINTF_PARSE is already defined. Eliminate the set of
58336         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58337         them now. Include c-ctype.h.
58338         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58339         directive and CHAR_T_ONLY_ASCII.
58340         * lib/vasnprintf.c: Don't include config.h and the specification header
58341         if VASNPRINTF is already defined.
58342         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58343         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58344         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58345         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58346         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58347         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58348         code accordingly.
58349         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58350         pad_ourselves also in this case, with the 'c' and 's' directives, and
58351         with a different notion of "width".
58352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58353
58354 2007-06-10  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/unistr/u32-mbsnlen: New file.
58357         * lib/unistr/u32-mbsnlen.c: New file.
58358
58359         * modules/unistr/u16-mbsnlen: New file.
58360         * lib/unistr/u16-mbsnlen.c: New file.
58361
58362         * modules/unistr/u8-mbsnlen: New file.
58363         * lib/unistr/u8-mbsnlen.c: New file.
58364
58365         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58366         declarations.
58367
58368 2007-06-10  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/string_.h (mbsnlen): New declaration.
58371         * lib/mbsnlen.c: New file.
58372         * m4/mbsnlen.m4: New file.
58373         * modules/mbsnlen: New file.
58374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58375         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58376         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58377
58378 2007-06-10  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58381
58382 2007-06-10  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58385         * lib/mbuiter.h: Likewise.
58386
58387 2007-06-10  Bruno Haible  <bruno@clisp.org>
58388
58389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58390         declaration.
58391
58392 2007-06-10  Karl Berry  <karl@gnu.org>
58393
58394         * config/srclist.txt: remove gettext entries, Bruno prefers
58395         to update individually.
58396
58397 2007-06-10  Bruno Haible  <bruno@clisp.org>
58398
58399         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58400         'maxlen'. Ensure only length + width bytes are allocated, not
58401         length + 1 + width.
58402
58403 2007-06-09  Bruno Haible  <bruno@clisp.org>
58404
58405         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58406         (CHAR_T): Remove macro.
58407         (VASNPRINTF): Update.
58408
58409 2007-06-09  Bruno Haible  <bruno@clisp.org>
58410
58411         * MODULES.html.sh (Unicode string functions): Add the new modules.
58412
58413         * modules/uniconv/u32-conv-to-enc: New file.
58414         * lib/uniconv/u32-conv-to-enc.c: New file.
58415         * modules/uniconv/u32-conv-to-enc-tests: New file.
58416         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58417
58418         * modules/uniconv/u16-conv-to-enc: New file.
58419         * lib/uniconv/u16-conv-to-enc.c: New file.
58420         * lib/uniconv/u-conv-to-enc.h: New file.
58421         * modules/uniconv/u16-conv-to-enc-tests: New file.
58422         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58423
58424         * modules/uniconv/u8-conv-to-enc: New file.
58425         * lib/uniconv/u8-conv-to-enc.c: New file.
58426         * modules/uniconv/u8-conv-to-enc-tests: New file.
58427         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58428
58429         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58430         u32_conv_to_encoding): New declarations.
58431
58432 2007-06-09  Bruno Haible  <bruno@clisp.org>
58433
58434         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58435
58436 2007-06-09  Bruno Haible  <bruno@clisp.org>
58437
58438         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58439         * modules/malloca: Renamed from modules/allocsa, updated.
58440         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58441         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58442         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58443         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58444         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58445         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58446         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58447         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58448         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58449         * modules/c-strcasestr (Depends-on): Update.
58450         * lib/c-strcasestr.c: Update.
58451         * modules/c-strstr (Depends-on): Update.
58452         * lib/c-strstr.c: Update.
58453         * modules/canonicalize-lgpl (Depends-on): Update.
58454         * lib/canonicalize-lgpl.c: Update.
58455         * modules/clean-temp (Depends-on): Update.
58456         * lib/clean-temp.c: Update.
58457         * modules/csharpcomp (Depends-on): Update.
58458         * lib/csharpcomp.c: Update.
58459         * modules/csharpexec (Depends-on): Update.
58460         * lib/csharpexec.c: Update.
58461         * modules/javacomp (Depends-on): Update.
58462         * lib/javacomp.c: Update.
58463         * modules/javaexec (Depends-on): Update.
58464         * lib/javaexec.c: Update.
58465         * modules/mbscasestr (Depends-on): Update.
58466         * lib/mbscasestr.c: Update.
58467         * modules/mbsstr (Depends-on): Update.
58468         * lib/mbsstr.c: Update.
58469         * modules/setenv (Depends-on): Update.
58470         * lib/setenv.c: Update.
58471         * modules/strcasestr (Depends-on): Update.
58472         * lib/strcasestr.c: Update.
58473         * modules/striconveha (Depends-on): Update.
58474         * lib/striconveha.c: Update.
58475         * modules/relocatable-prog-wrapper (Files): Update.
58476         * lib/relocwrapper.c: Update.
58477         * build-aux/install-reloc: Update.
58478         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58479
58480 2007-06-08  Bruno Haible  <bruno@clisp.org>
58481
58482         Port to uClibc.
58483         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58484         * lib/fpurge.c (fpurge): Likewise.
58485         * lib/freading.c (freading): Likewise.
58486         * lib/fseeko.c (rpl_fseeko): Likewise.
58487         * lib/fseterr.c (fseterr): Likewise.
58488         * lib/fwriting.c (fwriting): Likewise.
58489         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58490
58491 2007-06-08  Bruno Haible  <bruno@clisp.org>
58492
58493         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58494         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58495         * modules/gettext (Files): Add m4/intlmacosx.m4.
58496
58497 2007-06-07  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/localename-tests: New file.
58500         * tests/test-localename.c: New file.
58501
58502         New module 'localename'.
58503         * lib/localename.h: New file.
58504         * lib/localename.c: New file, from GNU gettext.
58505         * m4/localename.m4: New file.
58506         * modules/localename: New file.
58507
58508 2007-06-07  Bruno Haible  <bruno@clisp.org>
58509
58510         Work around the lack of <wchar.h> on some builds of uClibc.
58511         * doc/headers/wchar.texi: Update.
58512         * lib/wchar_.h: Include <wchar.h> only if it exists.
58513         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58514         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58515         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58516         doesn't exist.
58517         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58518         * modules/mbfile (Depends-on): Add wchar.
58519         * modules/mbiter (Depends-on): Likewise.
58520         * modules/mbuiter (Depends-on): Likewise.
58521         Reported by Simon Josefsson.
58522
58523 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         Work around problem reported by Steven M. Schweda in
58526         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58527         Tru64 5.1B with the Compaq compiler environment installed declares
58528         an 'isblank' function but does not define it in the C library.
58529         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58530         * lib/regex_internal.h (isblank): Likewise.
58531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58532         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58533
58534 2007-06-05  Bruno Haible  <bruno@clisp.org>
58535
58536         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58537         ia64.
58538         * modules/printf-safe: New file.
58539         * modules/fprintf-posix (Depends-on): Add printf-safe.
58540         * modules/printf-posix (Depends-on): Likewise.
58541         * modules/snprintf-posix (Depends-on): Likewise.
58542         * modules/sprintf-posix (Depends-on): Likewise.
58543         * modules/vasnprintf-posix (Depends-on): Likewise.
58544         * modules/vasprintf-posix (Depends-on): Likewise.
58545         * modules/vfprintf-posix (Depends-on): Likewise.
58546         * modules/vprintf-posix (Depends-on): Likewise.
58547         * modules/vsnprintf-posix (Depends-on): Likewise.
58548         * modules/vsprintf-posix (Depends-on): Likewise.
58549         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58550         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58551         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58552         "no" on i386, x86_64, ia64.
58553         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58554         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58555         on i386, x86_64, ia64.
58556         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58557         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58558         on i386, x86_64, ia64.
58559         * tests/test-vasnprintf-posix.c: Include float.h.
58560         (LDBL80_WORDS): New macro.
58561         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58562         on i386, x86_64, ia64.
58563         * tests/test-vasprintf-posix.c: Include float.h.
58564         (LDBL80_WORDS): New macro.
58565         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58566         on i386, x86_64, ia64.
58567         * tests/test-snprintf-posix.c: Include float.h.
58568         * tests/test-sprintf-posix.c: Likewise.
58569         * tests/test-vsnprintf-posix.c: Likewise.
58570         * tests/test-vsprintf-posix.c: Likewise.
58571
58572 2007-06-05  Bruno Haible  <bruno@clisp.org>
58573
58574         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58575         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58576         non-IEEE numbers on i386, x86_64, ia64.
58577         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58578         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58579         * tests/test-isnanl.h: Include float.h.
58580         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58581
58582 2007-06-05  Bruno Haible  <bruno@clisp.org>
58583
58584         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58585         also the %a / %A. Handle the %a / %A code before this extra handling.
58586
58587 2007-06-05  Bruno Haible  <bruno@clisp.org>
58588
58589         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58590         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58591
58592 2007-06-05  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58595         typo in variable name.
58596
58597 2007-06-05  Eric Blake  <ebb9@byu.net>
58598
58599         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58600         Reported by Simon Josefsson.
58601
58602 2007-06-04  Bruno Haible  <bruno@clisp.org>
58603
58604         Avoid test failures on some PowerPC platforms.
58605         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58606         Define differently for PowerPC.
58607         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58608         Reported by Gary V. Vaughan <gary@gnu.org>.
58609
58610 2007-06-02  Bruno Haible  <bruno@clisp.org>
58611
58612         Fix test-stdint failure on FreeBSD/ia64.
58613         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58614         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58615         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58616         * doc/headers/stdint.texi: Update.
58617
58618 2007-06-01  Bruno Haible  <bruno@clisp.org>
58619
58620         * tests/test-binary-io.c (main): Pass a third argument to open().
58621         Reported by Gary V. Vaughan <gary@gnu.org>.
58622
58623 2007-06-01  Bruno Haible  <bruno@clisp.org>
58624
58625         * doc/functions/frexpl.texi: Update for mingw.
58626
58627 2007-06-01  Bruno Haible  <bruno@clisp.org>
58628
58629         * tests/test-lseek.c (main): Disable test of errno for invalid third
58630         argument.
58631         * doc/functions/lseek.texi: Update.
58632         Reported by Gary V. Vaughan <gary@gnu.org>.
58633
58634 2007-05-28  Bruno Haible  <bruno@clisp.org>
58635
58636         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58637
58638 2007-05-31  Eric Blake  <ebb9@byu.net>
58639
58640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58641         cross compiling.
58642
58643 2007-05-30  Eric Blake  <ebb9@byu.net>
58644         and Bruno Haible  <bruno@clisp.org>
58645
58646         Work around mingw test failures exposed by m4-1.4.9b.
58647         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58648         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58649         moment.
58650
58651 2007-05-30  Bruno Haible  <bruno@clisp.org>
58652
58653         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58654         assuming that they are closed. Needed on HP-UX 11.
58655
58656 2007-05-29  Bruno Haible  <bruno@clisp.org>
58657
58658         Fix a problem with #include_next.
58659         * lib/dirent_.h: Split the double-inclusion guard.
58660         * lib/fcntl_.h: Likewise.
58661         * lib/float_.h: Likewise.
58662         * lib/iconv_.h: Likewise.
58663         * lib/inttypes_.h: Likewise.
58664         * lib/locale_.h: Likewise.
58665         * lib/math_.h: Likewise.
58666         * lib/netinet_in_.h: Likewise.
58667         * lib/search_.h: Likewise.
58668         * lib/signal_.h: Likewise.
58669         * lib/stdint_.h: Likewise.
58670         * lib/stdio_.h: Likewise.
58671         * lib/stdlib_.h: Likewise.
58672         * lib/string_.h: Likewise.
58673         * lib/sys_select_.h: Likewise.
58674         * lib/sys_socket_.h: Likewise.
58675         * lib/sys_stat_.h: Likewise.
58676         * lib/sys_time_.h: Likewise.
58677         * lib/sysexits_.h: Likewise.
58678         * lib/time_.h: Likewise.
58679         * lib/unistd_.h: Likewise.
58680         * lib/wchar_.h: Likewise.
58681         * lib/wctype_.h: Likewise.
58682
58683 2007-05-29  Bruno Haible  <bruno@clisp.org>
58684
58685         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58686         for the moment.
58687
58688 2007-05-29  Bruno Haible  <bruno@clisp.org>
58689
58690         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58691         invocation.
58692         Reported by Eric Blake.
58693
58694 2007-05-29  Bruno Haible  <bruno@clisp.org>
58695
58696         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58697         compiling case.
58698
58699 2007-05-29  Eric Blake  <ebb9@byu.net>
58700             Bruno Haible  <bruno@clisp.org>
58701
58702         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58703         cross compiles.
58704
58705 2007-05-28  Eric Blake  <ebb9@byu.net>
58706
58707         * modules/closein-tests (test_closein_LDADD): Support test on
58708         cygwin with libtool.
58709
58710 2007-05-28  Bruno Haible  <bruno@clisp.org>
58711
58712         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58713         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58714         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58715         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58716         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58717         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58718         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58719         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58720         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58721
58722 2007-05-28  Eric Blake  <ebb9@byu.net>
58723
58724         Unconditionally include <config.h> in unit tests.
58725         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58726         * tests/test-allocsa.c, tests/test-arcfour.c,
58727         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58728         tests/test-array_list.c, tests/test-array_oset.c,
58729         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58730         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58731         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58732         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58733         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58734         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58735         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58736         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58737         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58738         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58739         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58740         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58741         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58742         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58743         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58744         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58745         test-md5.c, test-memmem.c, test-printf-posix.c,
58746         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58747         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58748         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58749         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58750         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58751         test-vasnprintf-posix2.c, test-vasnprintf.c,
58752         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58753         test-vfprintf-posix.c, test-vprintf-posix.c,
58754         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58755         test-xvasprintf.c: Likewise.
58756
58757 2007-05-28  Bruno Haible  <bruno@clisp.org>
58758
58759         * gnulib-tool (func_import): Remember the --with-tests command-line
58760         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58761         Reported by Eric Blake.
58762
58763 2007-05-28  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/ftell-tests: New file.
58766         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58767         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58768
58769         * lib/ftell.c: New file.
58770         * modules/ftell: New file.
58771         * m4/ftell.m4: New file.
58772         * doc/functions/ftell.texi: Update.
58773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58774         REPLACE_FTELL.
58775         * lib/stdio_.h (rpl_ftell): New declaration.
58776         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58777         REPLACE_FTELL.
58778
58779 2007-05-28  Eric Blake  <ebb9@byu.net>
58780
58781         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58782
58783 2007-05-28  Bruno Haible  <bruno@clisp.org>
58784
58785         * modules/fseek-tests: New file.
58786         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58787         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58788
58789         * lib/fseek.c: New file.
58790         * modules/fseek: New file.
58791         * m4/fseek.m4: New file.
58792         * doc/functions/fseek.texi: Update.
58793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58794         REPLACE_FSEEK.
58795         * lib/stdio_.h (rpl_fseek): New declaration.
58796         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58797         REPLACE_FSEEK.
58798
58799 2007-05-28  Bruno Haible  <bruno@clisp.org>
58800
58801         * lib/stdio_.h (fflush): More comments.
58802
58803 2007-05-28  Bruno Haible  <bruno@clisp.org>
58804
58805         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58806         runtime test.
58807
58808 2007-05-28  Eric Blake  <ebb9@byu.net>
58809
58810         Improve lseek module.
58811         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58812         * lib/unistd_.h (lseek): Scale back link warning message.
58813         * tests/test-lseek.c: Beef up test.
58814         * tests/test-lseek.sh: Exercise more facets of lseek.
58815         Reported by Bruno Haible.
58816
58817 2007-05-28  Bruno Haible  <bruno@clisp.org>
58818
58819         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58820         to define.
58821
58822 2007-05-27  Bruno Haible  <bruno@clisp.org>
58823
58824         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58825
58826 2007-05-27  Bruno Haible  <bruno@clisp.org>
58827
58828         * modules/openmp: New file.
58829         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58830         Noah Misch.
58831
58832 2007-05-26  Bruno Haible  <bruno@clisp.org>
58833
58834         * modules/chdir-long (Depends-on): Add fchdir.
58835         * modules/chdir-safer (Depends-on): Likewise.
58836         * modules/fts (Depends-on): Likewise.
58837         * modules/fts-lgpl (Depends-on): Likewise.
58838         * modules/openat (Depends-on): Likewise.
58839         * modules/savewd (Depends-on): Likewise.
58840
58841 2007-05-24  Eric Blake  <ebb9@byu.net>
58842
58843         Fix lseek on mingw.
58844         * modules/lseek: New module.
58845         * m4/lseek.m4: New file.
58846         * lib/lseek.c: New file.
58847         * modules/lseek-tests: New file.
58848         * tests/test-lseek.c: New file.
58849         * tests/test-lseek.sh: New file.
58850         * MODULES.html.sh: Document lseek module.
58851         * modules/fflush (Depends-on): Add lseek, fseeko.
58852         * modules/fseeko (Depends-on): Likewise.
58853         * modules/ftello (Depends-on): Likewise.
58854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58855         broken.
58856         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58857         broken.
58858         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58859         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58860         * lib/ftello.c (rpl_ftello): Likewise.
58861         * tests/test-fseeko.c (main): Test this.
58862         * tests/test-fseeko.sh: Likewise.
58863         * tests/test-ftello.c (main): Likewise.
58864         * tests/test-ftello.sh: Likewise.
58865         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58866         implies replacing fseek.
58867         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58868         HAVE_FTELLO.
58869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58870         * modules/unistd (Makefile.am): Likewise.
58871         * lib/unistd_.h (lseek): Declare a replacement.
58872         * doc/functions/lseek.texi (lseek): Document this fix.
58873         * doc/functions/fseek.texi (fseek): Likewise.
58874         * doc/functions/ftell.texi (ftell): Likewise.
58875
58876 2007-05-24  Bruno Haible  <bruno@clisp.org>
58877
58878         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58879         in the printed representation of a NaN.
58880         * tests/test-vasprintf-posix.c (test_function): Likewise.
58881         * tests/test-snprintf-posix.h (test_function): Likewise.
58882         * tests/test-sprintf-posix.h (test_function): Likewise.
58883         Reported by Eric Blake.
58884
58885 2007-05-23  Eric Blake  <ebb9@byu.net>
58886
58887         Fix fseeko/ftello on cygwin 1.5.24.
58888         * doc/functions/fseeko.texi (fseeko): Document the fix.
58889         * doc/functions/ftello.texi (ftello): Document the fix.
58890         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58891         * doc/functions/stdout.text (stdout): New file.
58892         * doc/functions/stderr.text (stderr): New file.
58893         * doc/gnulib.texi (Function Substitutes): Use new files.
58894         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58895         prior to 1.7.0.
58896         * tests/test-ftello.c (main): Likewise for ftello.
58897         * tests/test-fseeko.sh: New file.
58898         * tests/test-ftello.sh: New file.
58899         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58900         with seekable stdin.
58901         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58903         (gl_REPLACE_FSEEKO): New macro.
58904         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58905         * modules/fseeko (Files): Distribute fseeko.c.
58906         * modules/ftello (Files): Distribute ftello.c.
58907         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58908         mode.
58909         * lib/ftello.c (rpl_ftello): New file.
58910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58911         fseeko, ftello.
58912         (gl_STDIN_LARGE_OFFSET): New macro.
58913         * modules/stdio (Makefile.am): Perform the replacement.
58914         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58915
58916 2007-05-23  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58919         GNULIB_POSIXCHECK is defined.
58920
58921 2007-05-21  Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58924         Check also the output for NaN arguments. When cross-compiling, guess
58925         no on IRIX.
58926         * lib/vasnprintf.c: Update comments.
58927         * tests/test-vasnprintf-posix.c (strisnan): New function.
58928         (test_function): Use it.
58929         * tests/test-vasprintf-posix.c (strisnan): New function.
58930         (test_function): Use it.
58931         * tests/test-snprintf-posix.h (strisnan): New function.
58932         (test_function): Use it.
58933         * tests/test-sprintf-posix.h (strisnan): New function.
58934         (test_function): Use it.
58935         Reported by Eric Blake.
58936
58937 2007-05-20  Bruno Haible  <bruno@clisp.org>
58938
58939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58940         numbers that fails on BeOS.
58941         * doc/functions/frexpl.texi: Update.
58942
58943 2007-05-20  Jim Meyering  <jim@meyering.net>
58944
58945         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58946         forced upon us by glibc-2.6.
58947
58948 2007-05-20  Bruno Haible  <bruno@clisp.org>
58949
58950         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58951         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58952         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58953         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58954         NEED_PRINTF_INFINITE.
58955         (is_infinitel): New function.
58956         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58958         gl_PREREQ_VASNPRINTF_INFINITE.
58959         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58961         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58962         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58963         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58964         gl_PREREQ_VASNPRINTF_INFINITE.
58965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58966         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58972         * doc/functions/fprintf.texi: Update.
58973         * doc/functions/printf.texi: Update.
58974         * doc/functions/snprintf.texi: Update.
58975         * doc/functions/sprintf.texi: Update.
58976         * doc/functions/vfprintf.texi: Update.
58977         * doc/functions/vprintf.texi: Update.
58978         * doc/functions/vsnprintf.texi: Update.
58979         * doc/functions/vsprintf.texi: Update.
58980
58981 2007-05-20  Bruno Haible  <bruno@clisp.org>
58982
58983         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58984         was not found in libc.
58985         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58986
58987 2007-05-20  Bruno Haible  <bruno@clisp.org>
58988
58989         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58990         printed as "-nan" instead of "nan".
58991         * tests/test-vasprintf-posix.c (test_function): Likewise.
58992         * tests/test-snprintf-posix.h (test_function): Likewise.
58993         * tests/test-sprintf-posix.h (test_function): Likewise.
58994         Needed for HP-UX 11.
58995
58996 2007-05-20  Jim Meyering  <jim@meyering.net>
58997
58998         Fix buggy test for the fchownat-deref bug.
58999         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59000         symlink required for the run-test.  Without it, this test would
59001         always declare that fchownat doesn't work, and client code would
59002         unnecessarily use the replacement function with fixed libc.
59003         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59004         Reported by Greg Schafer.
59005
59006 2007-05-19  Bruno Haible  <bruno@clisp.org>
59007
59008         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59009         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59010         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59011         Needed for IRIX 6.5 and Solaris 2.5.1.
59012
59013 2007-05-19  Bruno Haible  <bruno@clisp.org>
59014
59015         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59016         (test_function): Skip tests involving -0.0 on platforms where
59017         -0.0 = 0.0.
59018         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59019         (test_function): Skip tests involving -0.0 on platforms where
59020         -0.0 = 0.0.
59021         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59022         (test_function): Skip tests involving -0.0 on platforms where
59023         -0.0 = 0.0.
59024         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59025         (test_function): Skip tests involving -0.0 on platforms where
59026         -0.0 = 0.0.
59027         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59028         tests.
59029         * tests/test-printf-posix.h (test_function): Likewise.
59030         * tests/test-printf-posix.output: Remove all -0.0 related results.
59031         Needed for IRIX 6.5.
59032
59033 2007-05-19  Bruno Haible  <bruno@clisp.org>
59034
59035         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59036         printed as "nan0x7fffffff" instead of "nan".
59037         * tests/test-vasprintf-posix.c (test_function): Likewise.
59038         * tests/test-snprintf-posix.h (test_function): Likewise.
59039         * tests/test-sprintf-posix.h (test_function): Likewise.
59040         * tests/test-fprintf-posix.h (NaN): Remove macro.
59041         (test_function): Remove all NaN related tests.
59042         * tests/test-printf-posix.h (NaN): Remove macro.
59043         (test_function): Remove all NaN related tests.
59044         * tests/test-printf-posix.output: Remove all NaN related results.
59045         Needed for IRIX 6.5.
59046
59047 2007-05-19  Bruno Haible  <bruno@clisp.org>
59048
59049         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59051
59052 2007-05-19  Bruno Haible  <bruno@clisp.org>
59053
59054         * lib/float_.h: New file.
59055         * m4/float_h.m4: New file.
59056         * modules/float: New file.
59057         * modules/isnanl (Dependencies): Add float.
59058         * modules/isnanl-nolibm (Dependencies): Likewise.
59059         * modules/mathl (Dependencies): Likewise.
59060         * modules/printf-frexpl (Dependencies): Likewise.
59061         * modules/signbit (Dependencies): Likewise.
59062         * modules/vasnprintf (Dependencies): Likewise.
59063         * doc/headers/float.texi: Update.
59064
59065 2007-05-19  Jim Meyering  <jim@meyering.net>
59066
59067         * lib/utimens.c (gl_futimens): Rename from futimens,
59068         now that glibc-2.6 declares futimens.
59069         * lib/utimens.h: Likewise.
59070
59071 2007-05-19  Bruno Haible  <bruno@clisp.org>
59072
59073         Avoid test failures on mingw.
59074         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59075         * tests/test-printf-posix.sh: Likewise.
59076         * tests/test-vfprintf-posix.sh: Likewise.
59077         * tests/test-vprintf-posix.sh: Likewise.
59078
59079 2007-05-19  Bruno Haible  <bruno@clisp.org>
59080
59081         Fix *printf result for NaN, Inf, -0.0 on mingw.
59082         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59083         * lib/vasnprintf.c: Include math.h and isnan.h.
59084         (is_infinite_or_zero): New function.
59085         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59086         values in the %f, %F, %e, %E, %g, %G directives.
59087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59088         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59089         gl_PRINTF_INFINITE and test its result. Invoke
59090         gl_PREREQ_VASNPRINTF_INFINITE.
59091         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59092         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59093         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59094         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59095         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59096         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59097         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59098         * doc/functions/fprintf.texi: Update.
59099         * doc/functions/printf.texi: Update.
59100         * doc/functions/snprintf.texi: Update.
59101         * doc/functions/sprintf.texi: Update.
59102         * doc/functions/vfprintf.texi: Update.
59103         * doc/functions/vprintf.texi: Update.
59104         * doc/functions/vsnprintf.texi: Update.
59105         * doc/functions/vsprintf.texi: Update.
59106
59107 2007-05-19  Bruno Haible  <bruno@clisp.org>
59108
59109         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59110         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59111         Instead of multiplying with 10^k, set extra_zeroes to k.
59112         (scale10_round_long_double): Remove function.
59113
59114 2007-05-18  Bruno Haible  <bruno@clisp.org>
59115
59116         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59117         introduced on 2007-05-06.
59118
59119 2007-05-18  Bruno Haible  <bruno@clisp.org>
59120
59121         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59122         %g directives.
59123         * tests/test-vasprintf-posix.c (test_function): Likewise.
59124         * tests/test-snprintf-posix.h (test_function): Likewise.
59125         * tests/test-sprintf-posix.h (test_function): Likewise.
59126
59127 2007-05-18  Bruno Haible  <bruno@clisp.org>
59128
59129         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59130         (strmatch): New function.
59131         (test_function): Test the %f directive on numbers of various exponents.
59132         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59133         (strmatch): New function.
59134         (test_function): Test the %f directive on numbers of various exponents.
59135         * tests/test-snprintf-posix.h (strmatch): New function.
59136         (test_function): Test the %f directive on numbers of various exponents.
59137         * tests/test-sprintf-posix.h (strmatch): New function.
59138         (test_function): Test the %f directive on numbers of various exponents.
59139         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59140         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59141         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59142         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59143
59144 2007-05-18  Bruno Haible  <bruno@clisp.org>
59145
59146         Add support for 'long double' number output.
59147         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59148         * lib/vasnprintf.c: Include math.h and float+.h.
59149         (mp_limb_t): New type.
59150         (GMP_LIMB_BITS): New macro.
59151         (mp_twolimb_t): New type.
59152         (GMP_TWOLIMB_BITS): New macro.
59153         (mpn_t): New type.
59154         (multiply, divide, convert_to_decimal, decode_long_double,
59155         scale10_round_long_double, scale10_round_decimal_long_double,
59156         floorlog10l): New functions.
59157         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59158         for the %f, %F, %e, %E, %g, %G directives.
59159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59161         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59162         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59170         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59171         * modules/snprintf-posix (Depends-on): Likewise.
59172         * modules/sprintf-posix (Depends-on): Likewise.
59173         * modules/vasnprintf-posix (Depends-on): Likewise.
59174         * modules/vasprintf-posix (Depends-on): Likewise.
59175         * modules/vfprintf-posix (Depends-on): Likewise.
59176         * modules/vsnprintf-posix (Depends-on): Likewise.
59177         * modules/vsprintf-posix (Depends-on): Likewise.
59178         * modules/vasnprintf (Files): Add lib/float+.h.
59179         * doc/functions/fprintf.texi: Update.
59180         * doc/functions/printf.texi: Update.
59181         * doc/functions/snprintf.texi: Update.
59182         * doc/functions/sprintf.texi: Update.
59183         * doc/functions/vfprintf.texi: Update.
59184         * doc/functions/vprintf.texi: Update.
59185         * doc/functions/vsnprintf.texi: Update.
59186         * doc/functions/vsprintf.texi: Update.
59187
59188 2007-05-18  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59191
59192 2007-05-18  Bruno Haible  <bruno@clisp.org>
59193
59194         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59195         for printing 64-bit integers. Needed for mingw.
59196
59197 2007-05-18  Bruno Haible  <bruno@clisp.org>
59198
59199         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59200         gl_FUNC_FREXPL_WORKS.
59201         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59202
59203 2007-05-18  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/frexpl-nolibm-tests: New file.
59206
59207         * modules/frexpl-nolibm: New file.
59208         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59209
59210 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59213         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59214         GCC 4.2, which otherwise issues a lot of warnings.
59215         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59216         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59217         Likewise.
59218         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59219         * modules/iconv_open (iconv.h): Likewise.
59220         * modules/locale (locale.h): Likewise.
59221         * modules/netinet_in (netinet/in.h): Likewise.
59222         * modules/sys_select (sys_select.h): Likewise.
59223         * modules/sys_socket (sys/socket.h): Likewise.
59224         * modules/sys_stat (sys/stat.h): Likewise.
59225         * modules/sysexits (sysexits.h): Likewise.
59226         * modules/unistd (unistd.h): Likewise.
59227
59228 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59229
59230         * modules/closein-tests (Makefile.am): Distribute
59231         `test-closein.sh'.
59232
59233 2007-05-17  Bruno Haible  <bruno@clisp.org>
59234
59235         * tests/test-printf-posix.output: Renamed from
59236         tests/test-fprintf-posix.out.
59237         * modules/fprintf-posix-tests: Update.
59238         * modules/printf-posix-tests: Update.
59239         * modules/vfprintf-posix-tests: Update.
59240         * modules/vprintf-posix-tests: Update.
59241         * tests/test-fprintf-posix.sh: Update.
59242         * tests/test-printf-posix.sh: Update.
59243         * tests/test-vfprintf-posix.sh: Update.
59244         * tests/test-vprintf-posix.sh: Update.
59245         Reported by Ralf Wildenhues.
59246
59247 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59248
59249         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59250         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59251         GCC 4.2, which otherwise issues a lot of warnings.
59252         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59253         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59254         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59255         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59256         it should no longer be needed.
59257         * lib/string_.h: Likewise.
59258         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59259         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59260         * modules/inttypes (inttypes.h): Likewise.
59261         * modules/math (math.h): Likewise.
59262         * modules/search (search.h): Likewise.
59263         * modules/signal (signal.h): Likewise.
59264         * modules/stdint (stdint.h): Likewise.
59265         * modules/stdio (stdio.h): Likewise.
59266         * modules/stdlib (stdlib.h): Likewise.
59267         * modules/string (string.h): Likewise.
59268         * modules/sys_time (sys/time.h): Likewise.
59269         * modules/time (time.h): Likewise.
59270         * modules/wchar (wchar.h): Likewise.
59271         * modules/wctype (wtype.h): Likewise.
59272
59273 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59274
59275         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59276
59277 2007-05-13  Bruno Haible  <bruno@clisp.org>
59278
59279         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59280         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59281         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59282         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59283         (gl_PREREQ_STRTOK_R): Don't require it here.
59284
59285 2007-05-13  Bruno Haible  <bruno@clisp.org>
59286
59287         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59288         when used in C++ mode.
59289
59290 2007-05-12  Bruno Haible  <bruno@clisp.org>
59291
59292         * lib/linebuffer.h: Tweak doc.
59293         * lib/linebuffer.c: Likewise.
59294
59295 2007-05-12  James Youngman  <jay@gnu.org>
59296
59297         * lib/linebuffer.c (readlinebuffer_delim): New function,
59298         like readlinebuffer, but use a caller-specified delimiter.
59299         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59300         as the delimiter.
59301         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59302
59303 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59304
59305         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59306         * modules/openat (Files): Remove openat-die.c.
59307         (Depends-on): Add openat-die.
59308         * modules/openat-die: New module.
59309
59310 2007-05-06  Bruno Haible  <bruno@clisp.org>
59311
59312         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59313         Update with info about Cygwin.
59314         * doc/functions/fprintf.texi: Update.
59315         * doc/functions/printf.texi: Update.
59316         * doc/functions/snprintf.texi: Update.
59317         * doc/functions/sprintf.texi: Update.
59318         * doc/functions/vfprintf.texi: Update.
59319         * doc/functions/vprintf.texi: Update.
59320         * doc/functions/vsnprintf.texi: Update.
59321         * doc/functions/vsprintf.texi: Update.
59322         Reported by Eric Blake.
59323
59324 2007-05-06  Bruno Haible  <bruno@clisp.org>
59325
59326         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59327         padding ourselves for the floating-point directives.
59328         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59331         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59332         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59333         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59334         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59335         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59340         * tests/test-snprintf-posix.h (test_function): Also check the width
59341         and some flags in the %f directive.
59342         * tests/test-sprintf-posix.h (test_function): Likewise.
59343         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59344         * tests/test-vasprintf-posix.c (test_function): Likewise.
59345         * doc/functions/fprintf.texi: Update.
59346         * doc/functions/printf.texi: Update.
59347         * doc/functions/snprintf.texi: Update.
59348         * doc/functions/sprintf.texi: Update.
59349         * doc/functions/vfprintf.texi: Update.
59350         * doc/functions/vprintf.texi: Update.
59351         * doc/functions/vsnprintf.texi: Update.
59352         * doc/functions/vsprintf.texi: Update.
59353
59354 2007-05-06  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59357         pass the ' flag character to sprintf or snprintf.
59358         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59361         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59362         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59365         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59366         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59367         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59369         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59370         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59371         flag.
59372         * tests/test-sprintf-posix.h (test_function): Likewise.
59373         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59374         * tests/test-vasprintf-posix.c (test_function): Likewise.
59375         * doc/functions/fprintf.texi: Update.
59376         * doc/functions/printf.texi: Update.
59377         * doc/functions/snprintf.texi: Update.
59378         * doc/functions/sprintf.texi: Update.
59379         * doc/functions/vfprintf.texi: Update.
59380         * doc/functions/vprintf.texi: Update.
59381         * doc/functions/vsnprintf.texi: Update.
59382         * doc/functions/vsprintf.texi: Update.
59383
59384 2007-05-01  Bruno Haible  <bruno@clisp.org>
59385
59386         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59387
59388 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59389
59390         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59391         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59392
59393 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59394
59395         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59396         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59398
59399 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59400
59401         * lib/argp-help.c (struct hol_entry): New member `ord'.
59402         (HOL_ENTRY_PTRCMP): Use ord for comparison
59403         (hol_sort): Initialize ord.
59404
59405 2007-05-01  Bruno Haible  <bruno@clisp.org>
59406
59407         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59408         Reported by Eric Blake.
59409         * doc/gnulib.texi (Function Substitutes): Update.
59410
59411 2007-05-01  Bruno Haible  <bruno@clisp.org>
59412
59413         * doc/functions.texi: Remove file, now redundant through
59414         doc/functions/*.texi.
59415
59416 2007-05-01  Bruno Haible  <bruno@clisp.org>
59417
59418         * modules/argp (Depends-on): Add sleep.
59419
59420 2007-05-01  Bruno Haible  <bruno@clisp.org>
59421
59422         * modules/sleep-tests: New file.
59423         * tests/test-sleep.c: New file.
59424
59425         * modules/sleep: New file.
59426         * lib/sleep.c: New file.
59427         * m4/sleep.m4: New file.
59428         * lib/unistd_.h (sleep): New declaration.
59429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59430         HAVE_SLEEP.
59431         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59432         * doc/functions/sleep.texi: Document the sleep module.
59433
59434 2007-05-01  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/sigprocmask.h: Remove file.
59437         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59438         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59439         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59440         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59441         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59442         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59443         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59444         HAVE_SIGSET_T as a shell variable.
59445         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59446         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59447         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59448         (Depends-on): Add signal. Remove verify.
59449         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59450         (Include): Mention <signal.h> instead of sigprocmask.h.
59451         * NEWS: Mention the change.
59452         * lib/fatal-signal.c: Don't include sigprocmask.h.
59453
59454 2007-05-01  Bruno Haible  <bruno@clisp.org>
59455
59456         * modules/signal: New file.
59457         * lib/signal_.h: New file.
59458         * m4/signal_h.m4: New file.
59459
59460 2007-05-01  Bruno Haible  <bruno@clisp.org>
59461
59462         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59463         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59464         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59465         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59466
59467 2007-05-01  Bruno Haible  <bruno@clisp.org>
59468
59469         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59470         configure time.
59471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59472         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59473         * modules/sys_stat (Makefile.am): Substitute their values into
59474         sys/stat.h.
59475
59476 2007-05-01  Bruno Haible  <bruno@clisp.org>
59477
59478         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59479         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59480         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59481
59482 2007-05-01  Bruno Haible  <bruno@clisp.org>
59483
59484         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59485         'assert' module here.
59486
59487 2007-05-01  Bruno Haible  <bruno@clisp.org>
59488
59489         * doc/functions/*.texi: New files.
59490         * doc/functions/google-ranking.txt: New file.
59491         * doc/gnulib.texi (Function Substitutes): New chapter.
59492         (ctime, inet_ntoa): Remove sections.
59493         * doc/ctime.texi: Remove file.
59494         * doc/inet_ntoa.texi: Remove file.
59495         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59496         dependencies.
59497         (%.info): New rule, specifying a --reference-limit.
59498
59499 2007-05-01  Bruno Haible  <bruno@clisp.org>
59500
59501         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59502
59503 2007-05-01  Bruno Haible  <bruno@clisp.org>
59504
59505         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59506         the portability of 'mkdir' to mingw systems.
59507
59508 2007-05-01  Bruno Haible  <bruno@clisp.org>
59509
59510         * doc/headers/google-ranking.txt: New file.
59511
59512 2007-04-30  Eric Blake  <ebb9@byu.net>
59513
59514         Prefer fseeko to fseek.
59515         * modules/getpass (Depends-on): Add fseeko.
59516         * lib/getpass.c (getpass): Use fseeko, not fseek.
59517
59518 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59519
59520         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59521         assumes the sorting is stable, while most qsort implementations
59522         are not.  Use argument addresses to ensure they never compare as
59523         equal.
59524
59525         * tests/test-argp-2.sh (usage-indent test): Fix output
59526         (func_compare): Restore diff options
59527         * tests/test-argp.c: Restore #include "progname.h"
59528
59529 2007-04-29  Bruno Haible  <bruno@clisp.org>
59530
59531         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59533         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59535         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59536         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59537         (TESTS, check_PROGRAMS): Add test-snprintf.
59538         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59539         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59540         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59541         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59542         assertions that fail on HP-UX, OSF/1, or IRIX.
59543         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59544
59545 2007-04-29  Bruno Haible  <bruno@clisp.org>
59546
59547         * MODULES.html.sh (posix_functions): Remove 'contents'.
59548
59549 2007-04-29  Karl Berry  <karl@gnu.org>
59550
59551         * config/srclist.txt (gendocs_template_min): new entry.
59552
59553 2007-04-29  Bruno Haible  <bruno@clisp.org>
59554
59555         Work around fpurge bug on BSD systems.
59556         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59557         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59558         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59559         fpurge to rpl_fpurge if the system already has this function.
59560         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59561         the case where the system already has this function. Correct invariants
59562         on BSD systems.
59563         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59564         BSD systems.
59565
59566 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59567
59568         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59569         proposed by Sven Verdoolaege.
59570
59571         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59572         options.
59573         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59574         (usage and help tests): Update
59575
59576 2007-04-29  Bruno Haible  <bruno@clisp.org>
59577
59578         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59579         Print more information in case of failure. Disable a test on BeOS.
59580
59581 2007-04-29  Bruno Haible  <bruno@clisp.org>
59582
59583         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59584         This helps debugging on systems on which no gdb is available.
59585
59586 2007-04-29  Bruno Haible  <bruno@clisp.org>
59587
59588         * lib/freading.h: Improve comments.
59589         * lib/fwriting.h: Likewise.
59590         * tests/test-freading.c (main): Don't check freading immediately after
59591         repositioning. Needed for glibc.
59592
59593 2007-04-29  Bruno Haible  <bruno@clisp.org>
59594
59595         * lib/freading.c (freading): Trivial simplification.
59596
59597 2007-04-28  Bruno Haible  <bruno@clisp.org>
59598
59599         * tests/test-fwriting.c (main): Also test the interaction between
59600         fflush and fwriting.
59601         * modules/fwriting-tests (Depends-on): Add fflush.
59602
59603         * tests/test-freading.c (main): Also test the interaction between
59604         fflush and freading.
59605         * modules/freading-tests (Depends-on): Add fflush.
59606
59607 2007-04-28  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59610         fseeko and ftello.
59611         Suggested by Eric Blake.
59612
59613 2007-04-28  Jim Meyering  <jim@meyering.net>
59614
59615         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59616         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59617         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59618
59619 2007-04-27  Eric Blake  <ebb9@byu.net>
59620
59621         * doc/headers/assert.texi (assert.h): Document assert module use.
59622
59623 2007-04-27  Bruno Haible  <bruno@clisp.org>
59624
59625         * doc/headers/*.texi: New files.
59626         * doc/gnulib.texi (Header File Substitutes): New chapter.
59627         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59628         dependencies.
59629         (standards.info ,standards.html, standards.dvi): Update dependencies.
59630         (mostlyclean, clean): New targets.
59631
59632 2007-04-27  Bruno Haible  <bruno@clisp.org>
59633
59634         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59635         * modules/sysexits (Files, Makefile.am): Update.
59636
59637         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59638         * modules/sys_socket (Files, Makefile.am): Update.
59639
59640         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59641         * modules/sys_stat (Files, Makefile.am): Update.
59642
59643 2007-04-27  Eric Blake  <ebb9@byu.net>
59644
59645         * lib/freading.h: Improve comments.
59646         * lib/fwriting.h: Likewise.
59647         * lib/fflush.c: Likewise.
59648
59649         Fix closein for mingw.
59650         * modules/closein-tests: Add tests for closein.
59651         * tests/test-closein.c: New file.
59652         * tests/test-closein.sh: Likewise.
59653         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59654         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59655
59656 2007-04-27  Bruno Haible  <bruno@clisp.org>
59657
59658         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59659         version is < 6.
59660         * lib/math_.h [__DECC]: Likewise.
59661         * lib/stdio_.h [__DECC]: Likewise.
59662         * lib/stdlib_.h [__DECC]: Likewise.
59663         * lib/string_.h [__DECC]: Likewise.
59664         * lib/time_.h [__DECC]: Likewise.
59665         * lib/wchar_.h [__DECC]: Likewise.
59666         * lib/wctype_.h [__DECC]: Likewise.
59667
59668 2007-04-27  Bruno Haible  <bruno@clisp.org>
59669
59670         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59671
59672 2007-04-27  Bruno Haible  <bruno@clisp.org>
59673
59674         * lib/fflush.c: Add comments.
59675         * modules/fpurge-tests (Depends-on): Add fflush.
59676         * modules/freadable-tests (Depends-on): Likewise.
59677         * modules/fwritable-tests (Depends-on): Likewise.
59678
59679 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59680
59681         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59682         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59683         Report by Bruno Haible <bruno@clisp.org>.
59684
59685 2007-04-26  Eric Blake  <ebb9@byu.net>
59686
59687         Fix fflush on mingw.
59688         * modules/fflush (Depends-on): Add freading.
59689         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59690         but unread data.
59691
59692 2007-04-26  Eric Blake  <ebb9@byu.net>
59693         and Bruno Haible  <bruno@clisp.org>
59694
59695         Implement freading and fwriting.
59696         * lib/freading.c: New file.
59697         * lib/freading.h: Likewise.
59698         * m4/freading.m4: Likewise.
59699         * modules/freading: Likewise.
59700         * modules/freading-tests: Likewise.
59701         * tests/test-freading.c: Likewise.
59702         * lib/fwriting.c: New file.
59703         * lib/fwriting.h: Likewise.
59704         * m4/fwriting.m4: Likewise.
59705         * modules/fwriting: Likewise.
59706         * modules/fwriting-tests: Likewise.
59707         * tests/test-fwriting.c: Likewise.
59708         * MODULES.html.sh (File stream based Input/Output): Mention them.
59709
59710 2007-04-26  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59713         'long' when we assume it.
59714         Suggested by Eric Blake.
59715
59716 2007-04-26  Bruno Haible  <bruno@clisp.org>
59717
59718         Ensure fseeko, ftello are declared on glibc systems.
59719         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59720         * modules/fseeko (configure.ac-early): Likewise.
59721         * modules/ftello (configure.ac-early): Likewise.
59722         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59723         AC_FUNC_FSEEKO for this.
59724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59725         (gl_CHECK_FSEEKO): Remove macro.
59726
59727 2007-04-26  Bruno Haible  <bruno@clisp.org>
59728
59729         * tests/test-fflush.c (main): Also check the ftell result after
59730         fflush and fseek/fseeko.
59731         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59732         file descriptor position cache in the stream.
59733         * lib/fseeko.c (rpl_fseeko): Likewise.
59734
59735 2007-04-26  Bruno Haible  <bruno@clisp.org>
59736
59737         * modules/fflush-tests (Depends-on): Add fseeko.
59738
59739 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59740             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59741
59742         * lib/argz_.h: ensure error_t definition is obtained in same
59743         mechanism system argz.h would have.
59744         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59745         argz facilities are known bad.  Err on the side of caution if
59746         cross-compiling.
59747
59748 2007-04-25  Eric Blake  <ebb9@byu.net>
59749
59750         * lib/fpurge.c (includes): Use stdlib.h for free.
59751         * tests/test-fflush.c (main): Also test fflush-fseeko.
59752
59753 2007-04-25  Bruno Haible  <bruno@clisp.org>
59754
59755         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59756         * lib/fseeko.c: New file.
59757         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59758         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59759         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59760         gl_FUNC_FSEEKO.
59761         (gl_FUNC_FSEEKO): Invoke it.
59762         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59763         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59764         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59765
59766 2007-04-25  Bruno Haible  <bruno@clisp.org>
59767
59768         * modules/fflush (Depends-on): Add ftello.
59769
59770 2007-04-25  Bruno Haible  <bruno@clisp.org>
59771
59772         * modules/ftello-tests: New file.
59773         * tests/test-ftello.c: New file.
59774
59775         * modules/ftello: New file.
59776         * m4/ftello.m4: New file.
59777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59778         HAVE_FTELLO.
59779         * lib/stdio_.h (ftello): New declaration.
59780         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59781         HAVE_FTELLO.
59782
59783 2007-04-25  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/fseeko-tests: New file.
59786         * tests/test-fseeko.c: New file.
59787
59788         * modules/fseeko: New file.
59789         * m4/fseeko.m4: New file.
59790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59791         HAVE_FSEEKO.
59792         * lib/stdio_.h (fseeko): New declaration.
59793         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59794         HAVE_FSEEKO.
59795
59796 2007-04-25  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59799
59800 2007-04-25  Bruno Haible  <bruno@clisp.org>
59801
59802         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59803         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59804         * tests/test-unistd.c: Likewise.
59805         * tests/test-fcntl.c: Likewise.
59806
59807 2007-04-23  Eric Blake  <ebb9@byu.net>
59808
59809         * lib/fflush.c: Fix missing include.
59810         Reported by Bruno Haible.
59811
59812 2007-04-23  Bruno Haible  <bruno@clisp.org>
59813
59814         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59815         Reported by Eric Blake.
59816
59817 2007-04-23  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59820
59821 2007-04-23  Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59824
59825 2007-04-23  Bruno Haible  <bruno@clisp.org>
59826
59827         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59828         Needed on HP-UX 11.
59829
59830 2007-04-16  Eric Blake  <ebb9@byu.net>
59831
59832         Make fflush rely on fpurge.
59833         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59834         open coding all variants.
59835         * modules/fflush (Depends-on): Add fpurge and unistd.
59836         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59837         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59838
59839         Fix --with-tests compilation on cygwin.
59840         * modules/argmatch-tests (Makefile.am): List gnulib library first
59841         in LDADD.
59842         * modules/argp-tests (Makefile.am): Likewise.
59843         * modules/array-list-tests (Makefile.am): Likewise.
59844         * modules/array-oset-tests (Makefile.am): Likewise.
59845         * modules/avltree-list-tests (Makefile.am): Likewise.
59846         * modules/avltree-oset-tests (Makefile.am): Likewise.
59847         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59848         * modules/carray-list-tests (Makefile.am): Likewise.
59849         * modules/dirname-tests (Makefile.am): Likewise.
59850         * modules/frexp-tests (Makefile.am): Likewise.
59851         * modules/isnanl-tests (Makefile.am): Likewise.
59852         * modules/linked-list-tests (Makefile.am): Likewise.
59853         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59854         * modules/lock-tests (Makefile.am): Likewise.
59855         * modules/rbtree-list-tests (Makefile.am): Likewise.
59856         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59857         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59858         * modules/tls-tests (Makefile.am): Likewise.
59859         * modules/tsearch-tests (Makefile.am): Likewise.
59860         * modules/xvasprintf-tests (Makefile.am): Likewise.
59861
59862         Fix fpurge for cygwin.
59863         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59864         value.
59865         * modules/fpurge-tests (Depends-on): Clean up trash.
59866
59867 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59868
59869         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59870
59871         * m4/autobuild.m4: Re-indent.
59872
59873 2007-04-13  Bruno Haible  <bruno@clisp.org>
59874
59875         * modules/fpurge-tests: New file.
59876         * tests/test-fpurge.c: New file.
59877
59878         * modules/fpurge: New file.
59879         * lib/fpurge.h: New file.
59880         * lib/fpurge.c: New file.
59881         * m4/fpurge.m4: New file.
59882
59883 2007-04-13  Bruno Haible  <bruno@clisp.org>
59884
59885         * modules/fbufmode-tests: New file.
59886         * tests/test-fbufmode.c: New file.
59887
59888         * modules/fbufmode: New file.
59889         * lib/fbufmode.h: New file.
59890         * lib/fbufmode.c: New file.
59891         * m4/fbufmode.m4: New file.
59892
59893 2007-04-13  Bruno Haible  <bruno@clisp.org>
59894
59895         * modules/fwritable-tests: New file.
59896         * tests/test-fwritable.c: New file.
59897
59898         * modules/fwritable: New file.
59899         * lib/fwritable.h: New file.
59900         * lib/fwritable.c: New file.
59901         * m4/fwritable.m4: New file.
59902
59903 2007-04-13  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/freadable-tests: New file.
59906         * tests/test-freadable.c: New file.
59907
59908         * modules/freadable: New file.
59909         * lib/freadable.h: New file.
59910         * lib/freadable.c: New file.
59911         * m4/freadable.m4: New file.
59912
59913 2007-04-13  Bruno Haible  <bruno@clisp.org>
59914
59915         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59916         MOSTLYCLEANFILES.
59917
59918 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59921         gzip bootstrap.conf to avoid dragging in i18n machinery.
59922         (gnulib_tool_option): Use it.
59923
59924 2007-04-13  Bruno Haible  <bruno@clisp.org>
59925
59926         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59927         %F directives.
59928         * tests/test-vasprintf-posix.c (test_function): Likewise.
59929         * tests/test-snprintf-posix.h (test_function): Likewise.
59930         * tests/test-sprintf-posix.h (test_function): Likewise.
59931         * tests/test-fprintf-posix.h (test_function): Likewise.
59932         * tests/test-printf-posix.h (test_function): Likewise.
59933         * tests/test-fprintf-posix.out: Likewise.
59934
59935 2007-04-13  Bruno Haible  <bruno@clisp.org>
59936
59937         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59938         * modules/tls-tests (configure.ac): Likewise.
59939         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59940
59941 2007-04-13  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/tls.c (glthread_tls_get): Fix return type.
59944         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59945
59946 2007-04-12  Eric Blake  <ebb9@byu.net>
59947
59948         * modules/gettime (Depends-on): Remove gettime.
59949         Reported by Dmitry V. Levin.
59950
59951 2007-04-12  Bruno Haible  <bruno@clisp.org>
59952
59953         * modules/fflush (Include): Mention <stdio.h>.
59954         * modules/strtoimax (Include): Mention <inttypes.h>.
59955         * modules/strtoumax (Include): Likewise.
59956
59957 2007-04-12  Eric Blake  <ebb9@byu.net>
59958
59959         * .cvsignore: New file.
59960         * .gitignore: Likewise.
59961
59962 2007-04-12  Bruno Haible  <bruno@clisp.org>
59963
59964         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59965         not before, since $(LDADD) often contains libgnu.a.
59966         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59967         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59968         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59969         Needed on Cygwin.
59970
59971 2007-04-12  Eric Blake  <ebb9@byu.net>
59972
59973         Work around glibc's failure to flush stdin on fclose.
59974         * lib/closein.c (close_stdin): Flush stdin before closing.
59975
59976         Work around glibc's failure to reset seekable stdin on exit.
59977         * modules/closein: New module.
59978         * lib/closein.c: New file.
59979         * lib/closein.h: Likewise.
59980         * m4/closein.m4: Likewise.
59981         * MODULES.html.sh (File stream based Input/Output): Document it.
59982
59983 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59984
59985         * gnulib-tool: Rename generated 'autobuild' script to
59986         'do-autobuild' in --create-megatestdir output.
59987
59988         * doc/gnulib.texi (Build robot for gnulib): Fix.
59989
59990 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59991
59992         * modules/sysexits (Depends-on): Add absolute-header.
59993
59994 2007-04-12  Eric Blake  <ebb9@byu.net>
59995
59996         No need to preserve errno on success.
59997         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59998         Reported by Bruno Haible.
59999
60000 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60001
60002         * MODULES.html.sh (Support for maintaining and releasing
60003         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60004
60005 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60006
60007         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60008
60009 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60010
60011         * modules/autobuild: New module.
60012
60013         * m4/autobuild.m4: New file.
60014
60015 2007-04-11  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60018         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60022         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60023         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60025         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60026         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60028         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60029         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60031         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60032         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60034         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60035         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60037         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60038         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60040         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60041         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60043         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60044         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60045         Reported by Eric Blake.
60046
60047 2007-04-11  Bruno Haible  <bruno@clisp.org>
60048
60049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60050
60051 2007-04-10  Bruno Haible  <bruno@clisp.org>
60052
60053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60054         for NaN and Infinity. Needed on FreeBSD 6.1.
60055         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60056         regarding results for "%010a" of Infinity and NaN.
60057         * tests/test-vasprintf-posix.c (test_function): Likewise.
60058         * tests/test-snprintf-posix.h (test_function): Likewise.
60059         * tests/test-sprintf-posix.h (test_function): Likewise.
60060         * tests/test-fprintf-posix.h (test_function): Likewise.
60061         * tests/test-printf-posix.h (test_function): Likewise.
60062         * tests/test-fprintf-posix.out: Likewise.
60063
60064 2007-04-10  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/locale-tests: New file.
60067         * tests/test-locale.c: New file.
60068
60069         * modules/locale: New file.
60070         * lib/locale_.h: New file.
60071         * m4/locale_h.m4: New file.
60072
60073 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60074             Bruno Haible  <bruno@clisp.org>
60075
60076         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60077         be determined, test for availability of the copysignf, copysign,
60078         copysignl functions.
60079         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60080         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60081         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60082
60083 2007-04-09  Eric Blake  <ebb9@byu.net>
60084
60085         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60086         * modules/stdio (Makefile.am): Support fflush.
60087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60088         * modules/fflush: New file.
60089         * lib/fflush.c: Likewise.
60090         * m4/fflush.m4: Likewise.
60091         * modules/fflush-tests: New test.
60092         * tests/test-fflush.c: Likewise.
60093         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60094
60095 2007-04-06  Bruno Haible  <bruno@clisp.org>
60096
60097         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60098         (VASNPRINTF): Use signbit for faster determination whether to print a
60099         minus sign.
60100         * modules/vasnprintf (Files): Remove lib/float+.h.
60101         * modules/fprintf-posix (Depends-on): Add signbit.
60102         * modules/snprintf-posix (Depends-on): Likewise.
60103         * modules/sprintf-posix (Depends-on): Likewise.
60104         * modules/vasnprintf-posix (Depends-on): Likewise.
60105         * modules/vasprintf-posix (Depends-on): Likewise.
60106         * modules/vfprintf-posix (Depends-on): Likewise.
60107         * modules/vsnprintf-posix (Depends-on): Likewise.
60108         * modules/vsprintf-posix (Depends-on): Likewise.
60109
60110 2007-04-06  Bruno Haible  <bruno@clisp.org>
60111
60112         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60113         * tests/test-frexpl.c (main): Likewise.
60114         * tests/test-ldexpl.c (main): Likewise.
60115         * modules/frexp-tests (Depends-on): Add signbit.
60116         * modules/frexpl-tests (Depdends-on): Likewise.
60117         * modules/ldexpl-tests (Depdends-on): Likewise.
60118
60119 2007-04-06  Bruno Haible  <bruno@clisp.org>
60120
60121         * modules/signbit-tests: New file.
60122         * tests/test-signbit.c: New file.
60123
60124         * modules/signbit: New file.
60125         * lib/signbitf.c: New file.
60126         * lib/signbitd.c: New file.
60127         * lib/signbitl.c: New file.
60128         * m4/signbit.m4: New file.
60129         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60130         (signbit): New macro.
60131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60132         REPLACE_SIGNBIT.
60133         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60134         REPLACE_FREXPL into math.h.
60135
60136 2007-04-06  Bruno Haible  <bruno@clisp.org>
60137
60138         * modules/isnanf-nolibm-tests: New file.
60139         * tests/test-isnanf.c: New file.
60140
60141         * modules/isnanf-nolibm: New file.
60142         * lib/isnanf.h: New file.
60143         * lib/isnanf.c: New file.
60144         * lib/isnan.c: Consider the USE_FLOAT macro.
60145         * m4/isnanf.m4: New file.
60146
60147 2007-04-06  Bruno Haible  <bruno@clisp.org>
60148
60149         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60150         (Link): New section.
60151
60152         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60153
60154 2007-04-06  Bruno Haible  <bruno@clisp.org>
60155
60156         Assume the 'long double' type.
60157         * m4/longdouble.m4: Remove file.
60158         * config/srclist.txt: Don't mention longdouble.m4.
60159         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60160         * lib/float+.h: Likewise.
60161         * lib/frexp.c: Likewise.
60162         * lib/printf-args.h: Likewise.
60163         * lib/printf-args.c: Likewise.
60164         * lib/printf-frexp.c: Likewise.
60165         * lib/printf-parse.c: Likewise.
60166         * lib/vasnprintf.c: Likewise.
60167         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60168         * m4/intl.m4: Likewise.
60169         * m4/isnanl.m4: Likewise.
60170         * m4/printf.m4: Likewise.
60171         * m4/printf-frexpl.m4: Likewise.
60172         * m4/vasnprintf.m4: Likewise.
60173         * modules/allocsa (Files): Remove m4/longdouble.m4.
60174         * modules/gettext (Files): Likewise.
60175         * modules/relocatable-prog-wrapper (Files): Likewise.
60176         * modules/vasnprintf (Files): Likewise.
60177         * modules/isnanl (Files): Likewise.
60178         (Include): Simplify.
60179         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60180         (Include): Simplify.
60181         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60182         (Include): Simplify.
60183         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60184         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60185         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60186         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60187         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60188         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60189         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60190         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60191         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60192         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60193         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60194         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60195         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60196         * tests/test-isnanl.c: Likewise.
60197         * tests/test-snprintf-posix.h: Likewise.
60198         * tests/test-sprintf-posix.h: Likewise.
60199         * tests/test-vasnprintf-posix.c: Likewise.
60200         * tests/test-vasnprintf-posix2.c: Likewise.
60201         * tests/test-vasprintf-posix.c: Likewise.
60202
60203 2007-04-06  Bruno Haible  <bruno@clisp.org>
60204
60205         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60206         * lib/math_.h [__DECC]: Include the overridden include file through
60207         #include_next, outside the double-inclusion guard.
60208         * lib/stdio_.h [__DECC]: Likewise.
60209         * lib/stdlib_.h [__DECC]: Likewise.
60210         * lib/string_.h [__DECC]: Likewise.
60211         * lib/time_.h [__DECC]: Likewise.
60212         * lib/wchar_.h [__DECC]: Likewise.
60213         * lib/wctype_.h [__DECC]: Likewise.
60214         * lib/inttypes_.h [__DECC]: Likewise.
60215         Reported by Albert Chin <china@thewrittenword.com> in
60216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60217
60218 2007-04-04  Eric Blake  <ebb9@byu.net>
60219
60220         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60221         1.5.x.
60222
60223 2007-04-04  Bruno Haible  <bruno@clisp.org>
60224
60225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60226         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60227
60228 2007-04-04  Bruno Haible  <bruno@clisp.org>
60229
60230         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60231         results for "%010a" of Infinity and NaN.
60232         * tests/test-vasprintf-posix.c (test_function): Likewise.
60233         * tests/test-snprintf-posix.h (test_function): Likewise.
60234         * tests/test-sprintf-posix.h (test_function): Likewise.
60235         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60236         * tests/test-printf-posix.h (test_function): Likewise.
60237         * tests/test-fprintf-posix.out: Update.
60238         Needed for FreeBSD 6.1.
60239
60240 2007-04-04  Bruno Haible  <bruno@clisp.org>
60241
60242         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60243         directly used by the gnulib modules nor by gnulib-tool.
60244
60245 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60246
60247         * DEPENDENCIES: Give overall description of version dependency
60248         desirability.  Use more-typical names for apps.
60249         Add shell, coreutils, diffutils, grep, tar, gzip.
60250
60251 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60252
60253         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60254
60255 2007-04-04  Karl Berry  <karl@gnu.org>
60256
60257         * MODULES.html.sh (func_module): missing '.
60258
60259 2007-04-03  Bruno Haible  <bruno@clisp.org>
60260
60261         * modules/argmatch-tests (Makefile.am): New variable
60262         test_argmatch_LDADD.
60263         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60264         * modules/array-list-tests (Makefile.am): New variable
60265         test_array_list_LDADD.
60266         * modules/array-oset-tests (Makefile.am): New variable
60267         test_array_oset_LDADD.
60268         * modules/avltree-list-tests (Makefile.am): New variable
60269         test_avltree_list_LDADD.
60270         * modules/avltree-oset-tests (Makefile.am): New variable
60271         test_avltree_oset_LDADD.
60272         * modules/avltreehash-list-tests (Makefile.am): New variable
60273         test_avltreehash_list_LDADD.
60274         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60275         test_canonicalize_lgpl_LDADD.
60276         * modules/carray-list-tests (Makefile.am): New variable
60277         test_carray_list_LDADD.
60278         * modules/dirname-tests (Makefile.am): New variable
60279         test_dirname_LDADD.
60280         * modules/linked-list-tests (Makefile.am): New variable
60281         test_linked_list_LDADD.
60282         * modules/linkedhash-list-tests (Makefile.am): New variable
60283         test_linkedhash_list_LDADD.
60284         * modules/rbtree-list-tests (Makefile.am): New variable
60285         test_rbtree_list_LDADD.
60286         * modules/rbtree-oset-tests (Makefile.am): New variable
60287         test_rbtree_oset_LDADD.
60288         * modules/rbtreehash-list-tests (Makefile.am): New variable
60289         test_rbtreehash_list_LDADD.
60290         * modules/xvasprintf-tests (Makefile.am): New variable
60291         test_xvasprintf_LDADD.
60292         Reported by Eric Blake.
60293
60294 2007-04-03  Eric Blake  <ebb9@byu.net>
60295
60296         * DEPENDENCIES: Weaken m4 requirements.
60297
60298 2007-04-03  Bruno Haible  <bruno@clisp.org>
60299
60300         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60301         * modules/isnanl-tests (configure.ac): Likewise.
60302
60303 2007-04-03  Ben Pfaff  <blp@gnu.org>
60304
60305         * modules/iconv_open: Add $(srcdir)/ to source directory
60306         references in Makefile fragments that call gperf, to fix VPATH
60307         builds.
60308
60309 2007-04-03  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60312         * lib/ldexpl.c: Undo last change.
60313
60314 2007-04-03  Bruno Haible  <bruno@clisp.org>
60315
60316         * modules/printf-frexpl (Depends-on): Undo last change.
60317         (Files): Add m4/ldexpl.m4.
60318
60319 2007-04-03  Bruno Haible  <bruno@clisp.org>
60320
60321         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60322         * modules/isnanl (Link): New section.
60323
60324         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60325         * modules/frexp (Link): New section.
60326
60327         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60328         * modules/frexpl (Link): New section.
60329
60330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60331         * modules/ldexpl (Link): New section.
60332
60333 2007-04-03  Bruno Haible  <bruno@clisp.org>
60334
60335         * modules/TEMPLATE-EXTENDED: New file.
60336         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60337
60338 2007-04-03  Bruno Haible  <bruno@clisp.org>
60339
60340         * DEPENDENCIES: New file.
60341         Suggested by Simon Josefsson.
60342
60343 2007-04-03  Bruno Haible  <bruno@clisp.org>
60344
60345         * doc/gnulib.texi: Escape @.
60346
60347 2007-04-03  James Youngman  <jay@gnu.org>
60348         and Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60351         birthtime on all systems that have birthtime, not just those which
60352         use st_birthtimensec rather than st_birthtim.  Putting zero in
60353         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60354         that the birth time is not available for files on an NFS mount.
60355
60356 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60357
60358         * modules/memxor: Move back from crypto/, suggested by Bruno.
60359         * modules/crypto/hmac-sha1: Fix memxor dependency.
60360
60361         * modules/crypto/gc: Moved from ../.
60362
60363 2007-04-02  Eric Blake  <ebb9@byu.net>
60364
60365         * lib/ldexpl.c (includes): Avoid libm.
60366
60367         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60368
60369 2007-04-02  Bruno Haible  <bruno@clisp.org>
60370
60371         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60372         on IRIX.
60373
60374 2007-04-02  Bruno Haible  <bruno@clisp.org>
60375
60376         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60377         x86 or x86_64 platforms running MacOS X.
60378         Reported by Ryan Schmidt <@ryandesign.com>.
60379
60380 2007-04-02  Bruno Haible  <bruno@clisp.org>
60381
60382         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60383         i386.
60384
60385 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60386
60387         * modules/crypto/arcfour: Moved from ../.
60388         * modules/crypto/arcfour-tests: Moved from ../.
60389         * modules/crypto/arctwo: Moved from ../.
60390         * modules/crypto/arctwo-tests: Moved from ../.
60391         * modules/crypto/des: Moved from ../.
60392         * modules/crypto/des-tests: Moved from ../.
60393         * modules/crypto/gc-arcfour: Moved from ../.
60394         * modules/crypto/gc-arcfour-tests: Moved from ../.
60395         * modules/crypto/gc-arctwo: Moved from ../.
60396         * modules/crypto/gc-arctwo-tests: Moved from ../.
60397         * modules/crypto/gc-des: Moved from ../.
60398         * modules/crypto/gc-des-tests: Moved from ../.
60399         * modules/crypto/gc-hmac-md5: Moved from ../.
60400         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60401         * modules/crypto/gc-hmac-sha1: Moved from ../.
60402         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60403         * modules/crypto/gc-md2: Moved from ../.
60404         * modules/crypto/gc-md2-tests: Moved from ../.
60405         * modules/crypto/gc-md4: Moved from ../.
60406         * modules/crypto/gc-md4-tests: Moved from ../.
60407         * modules/crypto/gc-md5: Moved from ../.
60408         * modules/crypto/gc-md5-tests: Moved from ../.
60409         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60410         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60411         * modules/crypto/gc-random: Moved from ../.
60412         * modules/crypto/gc-rijndael: Moved from ../.
60413         * modules/crypto/gc-rijndael-tests: Moved from ../.
60414         * modules/crypto/gc-sha1: Moved from ../.
60415         * modules/crypto/gc-sha1-tests: Moved from ../.
60416         * modules/crypto/gc-tests: Moved from ../.
60417         * modules/crypto/hmac-md5: Moved from ../.
60418         * modules/crypto/hmac-md5-tests: Moved from ../.
60419         * modules/crypto/hmac-sha1: Moved from ../.
60420         * modules/crypto/hmac-sha1-tests: Moved from ../.
60421         * modules/crypto/md2: Moved from ../.
60422         * modules/crypto/md2-tests: Moved from ../.
60423         * modules/crypto/md4: Moved from ../.
60424         * modules/crypto/md4-tests: Moved from ../.
60425         * modules/crypto/md5: Moved from ../.
60426         * modules/crypto/md5-tests: Moved from ../.
60427         * modules/crypto/memxor: Moved from ../.
60428         * modules/crypto/rijndael: Moved from ../.
60429         * modules/crypto/rijndael-tests: Moved from ../.
60430         * modules/crypto/sha1: Moved from ../.
60431
60432 2007-03-30  James Youngman  <jay@gnu.org>
60433
60434         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60435         rename() to change the ctime of a file (because ctime is unaffected
60436         by rename on jfs2 on AIX 5.1).
60437         (main): Start by doing cleanup, in case a previous run failed leaving
60438         test files behind.
60439
60440 2007-03-31  Bruno Haible  <bruno@clisp.org>
60441
60442         Support old proprietary implementations of iconv.
60443         * modules/iconv_open: New file.
60444         * lib/iconv_.h: New file.
60445         * m4/iconv_h.m4: New file.
60446         * lib/iconv_open.c: New file.
60447         * lib/iconv_open-aix.gperf: New file.
60448         * lib/iconv_open-hpux.gperf: New file.
60449         * lib/iconv_open-irix.gperf: New file.
60450         * lib/iconv_open-osf.gperf: New file.
60451         * m4/iconv_open.m4: New file.
60452         * modules/linebreak (Depends-on): Add iconv_open.
60453         * modules/striconv (Depends-on): Likewise.
60454         * modules/striconveh (Depends-on): Likewise.
60455         * modules/unicodeio (Depends-on): Likewise.
60456         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60457         (iconv_t)(-1).
60458         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60459         conversion if cd is (iconv_t)(-1).
60460         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60461         is not possible.
60462
60463 2007-03-31  Bruno Haible  <bruno@clisp.org>
60464
60465         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60466         work on Solaris either. Protect also second use of "autodetect_jp".
60467
60468 2007-03-31  Bruno Haible  <bruno@clisp.org>
60469
60470         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60471         the function is not present.
60472
60473 2007-03-31  Bruno Haible  <bruno@clisp.org>
60474
60475         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60476         the function is not present.
60477
60478 2007-03-31  Bruno Haible  <bruno@clisp.org>
60479
60480         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60481         a bug in HP-UX iconv_open().
60482
60483 2007-03-31  Bruno Haible  <bruno@clisp.org>
60484
60485         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60486         (Mathematics <math.h>): New section, add fpieee.
60487         (Input/output <stdio.h>): Add fseterr.
60488         (Mathematics <math.h>): New section, add printf-frexp.
60489         (Container data structures): Add sublist.
60490         (Core language properties): Add fpucw, inline.
60491         (Functions for greatest-width integer types <inttypes.h>): Add
60492         imaxabs, imaxdiv, inttypes.
60493         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60494         isnanl-nolibm, ldexp.
60495         (Mathematics <math.h>): New section, add printf-frexpl.
60496         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60497         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60498         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60499         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60500         (Unicode string functions): Add unistr/u*-mbtoucr.
60501         (Java): Add javacomp-script, javaexec-script.
60502         (C#): Add csharpcomp-script, csharpexec-script.
60503         (Support for building libraries and executables): Add havelib,
60504         relocatable-*.
60505         (Support for maintaining and releasing projects): Renamed from
60506         'Support for maintaining and release projects'. Add announce-gen.
60507
60508 2007-03-31  Bruno Haible  <bruno@clisp.org>
60509
60510         * README: Talk primarily about git.
60511         (git and CVS): Renamed from CVS.
60512         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60513         gnulib is available through git.
60514         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60515
60516 2007-03-30  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60519         * lib/poll_.h: Likewise.
60520         * lib/stat_.h: Likewise.
60521         * lib/sys_time_.h: Likewise.
60522         * lib/sysexit_.h: Likewise.
60523         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60524         * lib/stdbool_.h: Likewise.
60525         * lib/byteswap_.h: Add double-inclusion guard.
60526
60527 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60528
60529         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60530
60531 2007-03-30  Karl Berry  <karl@gnu.org>
60532
60533         * config/srclist-update: double space after USA in the license
60534         substitution, since that's how it's usually (?) written.
60535
60536 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60537
60538         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60539         reported by Bruno Haible.
60540
60541 2007-03-29  Bruno Haible  <bruno@clisp.org>
60542
60543         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60544         a bug in AIX iconv().
60545
60546 2007-03-29  Bruno Haible  <bruno@clisp.org>
60547
60548         * modules/ldexpl-tests: New file.
60549         * tests/test-ldexpl.c: New file.
60550
60551 2007-03-29  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/ldexpl.c: Include fpucw.h.
60554         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60555         multiplication.
60556         * modules/ldexpl (Depends-on): Add fpucw.
60557
60558 2007-03-29  Bruno Haible  <bruno@clisp.org>
60559
60560         * modules/ldexpl: New file.
60561         * m4/ldexpl.m4: New file.
60562         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60563         set.
60564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60565         REPLACE_LDEXPL.
60566         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60567         REPLACE_LDEXPL.
60568         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60569         gl_FUNC_LDEXPL_WORKS.
60570         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60571         * modules/mathl (Files): Remove lib/ldexpl.c.
60572         (Depends-on): Add ldexpl.
60573
60574 2007-03-29  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60577
60578 2007-03-29  Bruno Haible  <bruno@clisp.org>
60579
60580         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60581         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60582         and possibly also HP-UX.
60583         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60584         work on AIX, IRIX, HP-UX, OSF/1.
60585         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60586         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60587         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60588         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60589         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60590         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60591
60592 2007-03-29  Bruno Haible  <bruno@clisp.org>
60593
60594         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60595
60596 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60599         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60600
60601 2007-03-29  Eric Blake  <ebb9@byu.net>
60602
60603         * lib/acl-internal.h: Remove redundant include.
60604         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60605         Cygwin when a file is locked.
60606
60607 2007-03-29  Bruno Haible  <bruno@clisp.org>
60608
60609         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60610         file.
60611         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60612
60613 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60614
60615         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60616         try to remove a parent directory if the child couldn't be removed
60617         (except for the first rmdir, which could fail because the child
60618         doesn't exist).  Problem reported by Jeff Blaine in
60619         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60620
60621 2007-03-28  Bruno Haible  <bruno@clisp.org>
60622
60623         * lib/striconveh.c (utf8conv_carefully): New function.
60624         (mem_cd_iconveh_internal): Invoke it.
60625
60626 2007-03-28  Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60629         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60630         input.
60631         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60632         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60633         unistr/u8-uctomb.
60634
60635 2007-03-28  Bruno Haible  <bruno@clisp.org>
60636
60637         * modules/unistr/u8-mbtoucr: New file.
60638         * lib/unistr/u8-mbtoucr.c: New file.
60639         * modules/unistr/u16-mbtoucr: New file.
60640         * lib/unistr/u16-mbtoucr.c: New file.
60641         * modules/unistr/u16-mbtoucr: New file.
60642         * lib/unistr/u16-mbtoucr.c: New file.
60643         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60644
60645 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60646             Bruno Haible  <bruno@clisp.org>
60647
60648         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60649         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60650         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60651
60652         * m4/stdio_h.m4: Add stubs for vasprintf too.
60653
60654         * modules/stdio: Support vasprintf in sed command.
60655
60656         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60657         vasprintf.h.  Add stdio module indicator.
60658
60659         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60660         vasprintf.h.
60661
60662         * lib/vasprintf.h: File removed.
60663
60664         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60665         * lib/vasprintf.c: Ditto.
60666         * lib/xvasprintf.c: Ditto.
60667         * tests/test-vasprintf-posix.c: Ditto.
60668         * tests/test-vasprintf.c: Ditto.
60669
60670 2007-03-27  Bruno Haible  <bruno@clisp.org>
60671
60672         Make vasnprintf multithread-safe.
60673         * lib/vasnprintf.c (decimal_point_char): New function.
60674         (VASNPRINTF): Use it.
60675         Suggested by Simon Josefsson.
60676
60677 2007-03-27  Eric Blake  <ebb9@byu.net>
60678
60679         Support sub-second birthtime on cygwin.
60680         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60681         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60682         (get_stat_birthtime): Also work with st_birthtim.
60683
60684 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60687         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60688         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60689         (get_stat_birthtime_ns): Simplify compile-time tests.
60690         (get_stat_birthtime): Change the API to look like
60691         get_stat_mtime etc., except return a negative tv_nsec on error.
60692         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60693         Don't check for "spare" fields.
60694         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60695         or for struct stat.st_birthtime, as these tests aren't used.
60696         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60697
60698 2007-03-27  Bruno Haible  <bruno@clisp.org>
60699
60700         * lib/stat-time.h: Include <sys/stat.h>.
60701
60702 2007-03-27  James Youngman  <jay@gnu.org>
60703
60704         * lib/stat-time.h (get_stat_birthtime): New function for
60705           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60706         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60707           and its variants.
60708         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60709         * modules/stat-time-test: New file.
60710         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60711
60712 2007-03-26  Bruno Haible  <bruno@clisp.org>
60713
60714         Better support of signalling NaNs.
60715         * lib/atanl.c: Include isnanl.h.
60716         (atanl): Perform test for NaN at the beginning of the function and
60717         through a call to isnanl.
60718         * lib/cosl.c: Include isnanl.h.
60719         (cosl): Perform test for NaN at the beginning of the function and
60720         through a call to isnanl.
60721         * lib/ldexpl.c: Include isnanl.h.
60722         (ldexpl): Perform test for NaN through a call to isnanl.
60723         * lib/logl.c: Include isnanl.h.
60724         (logl): Perform test for NaN at the beginning of the function and
60725         through a call to isnanl.
60726         * lib/sinl.c: Include isnanl.h.
60727         (sinl): Perform test for NaN at the beginning of the function and
60728         through a call to isnanl.
60729         * lib/sqrtl.c: Include isnanl.h.
60730         (sqrtl): Perform test for NaN at the beginning of the function and
60731         through a call to isnanl.
60732         * lib/tanl.c: Include isnanl.h.
60733         (tanl): Perform test for NaN at the beginning of the function and
60734         through a call to isnanl.
60735         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60736         * modules/mathl (Depends-on): Add isnanl.
60737
60738 2007-03-26  Eric Blake  <ebb9@byu.net>
60739
60740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60741         regression in logic sense of previous patch.
60742
60743 2007-03-26  Bruno Haible  <bruno@clisp.org>
60744
60745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60746         unportable shell command "if ! ...".
60747         Reported by Ralf Wildenhues.
60748
60749 2007-03-25  Bruno Haible  <bruno@clisp.org>
60750
60751         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60752         <sysexits.h> file, and only add EX_CONFIG.
60753         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60754         absolute file name and whether it is sufficient. Substitute also
60755         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60756         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60757         ABSOLUTE_SYSEXITS_H into sysexits.h.
60758
60759 2007-03-25  Bruno Haible  <bruno@clisp.org>
60760
60761         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60762         hints is NULL.
60763
60764 2007-03-25  Bruno Haible  <bruno@clisp.org>
60765
60766         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60767         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60768
60769 2007-03-25  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/vasnprintf.c: Include langinfo.h.
60772         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60773         multithread-safe.
60774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60775         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60783         Reported by Simon Josefsson.
60784
60785 2007-03-25  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60788         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60789         * modules/vasnprintf (Depends-on): Add stdint.
60790
60791 2007-03-25  Bruno Haible  <bruno@clisp.org>
60792
60793         * modules/fpieee: New file.
60794         * m4/fpieee.m4: New file.
60795         * modules/isnan-nolibm (Depends-on): Add fpieee.
60796         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60797         * modules/isnanl (Depends-on): Add fpieee.
60798
60799 2007-03-25  Bruno Haible  <bruno@clisp.org>
60800
60801         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60802
60803 2007-03-25  Bruno Haible  <bruno@clisp.org>
60804
60805         Avoid test failures on IRIX 6.5.
60806         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60807         (main): Use it.
60808         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60809         macros.
60810         (main): Use them.
60811
60812 2007-03-25  Bruno Haible  <bruno@clisp.org>
60813
60814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60815         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60816         exists but doesn't work.
60817         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60818         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60820         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60821         math.h.
60822
60823 2007-03-25  Bruno Haible  <bruno@clisp.org>
60824
60825         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60826         returns inf. Needed on IRIX 6.5.
60827
60828 2007-03-25  Bruno Haible  <bruno@clisp.org>
60829
60830         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60831         (main): Use isnanl instead of x != x idiom.
60832         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60833
60834         * tests/test-frexp.c: Include isnan.h.
60835         (main): Use isnan instead of x != x idiom.
60836         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60837
60838 2007-03-25  Bruno Haible  <bruno@clisp.org>
60839
60840         * tests/test-frexp.c (NaN): New function/macro.
60841         (main): Use it instead of 0.0 / 0.0.
60842         * tests/test-isnan.c (NaN): New function/macro.
60843         (main): Use it instead of 0.0 / 0.0.
60844         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60845         (test_function): Use it instead of 0.0 / 0.0.
60846         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60847         (test_function): Use it instead of 0.0 / 0.0.
60848         * tests/test-snprintf-posix.h (NaN): New function/macro.
60849         (test_function): Use it instead of 0.0 / 0.0.
60850         * tests/test-sprintf-posix.h (NaN): New function/macro.
60851         (test_function): Use it instead of 0.0 / 0.0.
60852         * tests/test-fprintf-posix.h (NaN): New function/macro.
60853         (test_function): Use it instead of 0.0 / 0.0.
60854         * tests/test-printf-posix.h (NaN): New function/macro.
60855         (test_function): Use it instead of 0.0 / 0.0.
60856
60857         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60858
60859 2007-03-25  Bruno Haible  <bruno@clisp.org>
60860
60861         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60862
60863 2007-03-25  Bruno Haible  <bruno@clisp.org>
60864
60865         * lib/regexec.c (merge_state_with_log): Make static.
60866
60867 2007-03-25  Bruno Haible  <bruno@clisp.org>
60868
60869         * lib/trigl.c (kernel_rem_pio2): Make static.
60870
60871 2007-03-25  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/sincosl.c (sincosl_table): Make static.
60874
60875 2007-03-25  Bruno Haible  <bruno@clisp.org>
60876
60877         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60878         if the compiler does not support C99.
60879
60880 2007-03-25  Bruno Haible  <bruno@clisp.org>
60881
60882         * modules/time (Makefile.am): Ensure all rule action lines start with a
60883         tab.
60884
60885 2007-03-24  Bruno Haible  <bruno@clisp.org>
60886
60887         * modules/tsearch-tests: New file.
60888         * tests/test-tsearch.sh: New file.
60889         * tests/test-tsearch.c: New file, mostly copied from glibc.
60890
60891         * modules/search-tests: New file.
60892         * tests/test-search.c: New file.
60893
60894         * modules/search: New file.
60895         * lib/search_.h: New file, incorporating lib/tsearch.h.
60896         * m4/search_h.m4: New file.
60897         * lib/tsearch.h: Remove file.
60898         * lib/tsearch.c: Include search.h instead of tsearch.h.
60899         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60900         HAVE_TSEARCH.
60901         * modules/tsearch (Files): Remove lib/tsearch.h.
60902         (Depends-on): Add search.
60903         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60904         (Include): Change tsearch.h into search.h.
60905
60906 2007-03-24  Bruno Haible  <bruno@clisp.org>
60907
60908         * modules/fpucw: New file.
60909         * lib/fpucw.h: New file.
60910         * lib/frexp.c: Include fpucw.h.
60911         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60912         (FUNC): Use them.
60913         * lib/printf-frexp.c: Include fpucw.h.
60914         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60915         (FUNC): Use them.
60916         * lib/vasnprintf.c: Include fpucw.h.
60917         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60918         'long double' calculations.
60919         * tests/test-frexpl.c: Include fpucw.h.
60920         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60921         * tests/test-printf-frexpl.c: Include fpucw.h.
60922         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60923         * modules/frexpl (Depends-on): Add fpucw.
60924         * modules/printf-frexpl (Depends-on): Likewise.
60925         * modules/fprintf-posix (Depends-on): Likewise.
60926         * modules/snprintf-posix (Depends-on): Likewise.
60927         * modules/sprintf-posix (Depends-on): Likewise.
60928         * modules/vasnprintf-posix (Depends-on): Likewise.
60929         * modules/vasprintf-posix (Depends-on): Likewise.
60930         * modules/vfprintf-posix (Depends-on): Likewise.
60931         * modules/vsnprintf-posix (Depends-on): Likewise.
60932         * modules/vsprintf-posix (Depends-on): Likewise.
60933         * modules/frexpl-tests (Depends-on): Likewise.
60934         * modules/printf-frexpl-tests (Depends-on): Likewise.
60935
60936 2007-03-24  Bruno Haible  <bruno@clisp.org>
60937
60938         * lib/float+.h: New file.
60939         * lib/isnan.c: Include float+.h.
60940         (SIZE): New macro.
60941         (FUNC): Compare only SIZE bytes of the value.
60942         * lib/vasnprintf.c: Include float+.h.
60943         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60944         SIZEOF_LDBL or SIZEOF_DBL bytes.
60945         * modules/isnan-nolibm (Files): Add lib/float+.h.
60946         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60947         * modules/isnanl (Files): Add lib/float+.h.
60948         * modules/vasnprintf (Files): Add lib/float+.h.
60949
60950 2007-03-24  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60953         include isnanl-nolibm.h.
60954
60955 2007-03-24  Bruno Haible  <bruno@clisp.org>
60956
60957         * tests/test-read-file.c (main): Don't produce spurious output for
60958         expected situations. Make the test fail if it encountered unexpected
60959         results.
60960
60961 2007-03-24  Bruno Haible  <bruno@clisp.org>
60962
60963         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60964         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60965
60966 2007-03-24  Bruno Haible  <bruno@clisp.org>
60967
60968         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60969
60970 2007-03-24  Bruno Haible  <bruno@clisp.org>
60971
60972         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60973         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60974
60975         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60976         * modules/utf8-ucs4: Turn into a symbolic link to module
60977         unistr/u8-mbtouc.
60978
60979         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60980         utf8-ucs4-unsafe.
60981         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60982         unistr/u8-mbtouc-unsafe.
60983
60984         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60985         * modules/utf16-ucs4: Turn into a symbolic link to module
60986         unistr/u16-mbtouc.
60987
60988         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60989         utf16-ucs4-unsafe.
60990         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60991         unistr/u16-mbtouc-unsafe.
60992
60993         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60994         * modules/ucs4-utf8: Turn into a symbolic link to module
60995         unistr/u8-ubtomb.
60996
60997         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60998         * modules/ucs4-utf16: Turn into a symbolic link to module
60999         unistr/u16-ubtomb.
61000
61001 2007-03-24  Bruno Haible  <bruno@clisp.org>
61002
61003         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61004         Enable the function only if HAVE_INLINE.
61005         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61006         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61007         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61008         Enable the function only if HAVE_INLINE.
61009         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61010         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61011         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61012         Enable the function only if HAVE_INLINE.
61013         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61014         Enable the function only if HAVE_INLINE.
61015         * modules/utf8-ucs4: Update.
61016         * modules/utf8-ucs4-unsafe: Update.
61017         * modules/utf16-ucs4: Update.
61018         * modules/utf16-ucs4-unsafe: Update.
61019         * modules/ucs4-utf8: Update.
61020         * modules/ucs4-utf16: Update.
61021
61022 2007-03-24  Bruno Haible  <bruno@clisp.org>
61023
61024         * lib/utf8-ucs4.h: Remove file.
61025         * lib/utf8-ucs4-unsafe.h: Remove file.
61026         * lib/utf16-ucs4.h: Remove file.
61027         * lib/utf16-ucs4-unsafe.h: Remove file.
61028         * lib/ucs4-utf8.h: Remove file.
61029         * lib/ucs4-utf16.h: Remove file.
61030         * lib/unistr.h: Include their previous contents.
61031         * m4/utf-ucs4.m4: Remove file.
61032         * m4/ucs4-utf.m4: Remove file.
61033         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61034         (Depends-on): Add unistr/base.
61035         (configure.ac): Remove gl_UTF_UCS4.
61036         (Makefile.am): Update.
61037         (Include): Change to unistr.h.
61038         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61039         (Depends-on): Add unistr/base.
61040         (configure.ac): Remove gl_UTF_UCS4.
61041         (Makefile.am): Update.
61042         (Include): Change to unistr.h.
61043         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61044         (Depends-on): Add unistr/base.
61045         (configure.ac): Remove gl_UTF_UCS4.
61046         (Makefile.am): Update.
61047         (Include): Change to unistr.h.
61048         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61049         (Depends-on): Add unistr/base.
61050         (configure.ac): Remove gl_UTF_UCS4.
61051         (Makefile.am): Update.
61052         (Include): Change to unistr.h.
61053         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61054         (Depends-on): Add unistr/base.
61055         (configure.ac): Remove gl_UCS4_UTF.
61056         (Makefile.am): Update.
61057         (Include): Change to unistr.h.
61058         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61059         (Depends-on): Add unistr/base.
61060         (configure.ac): Remove gl_UCS4_UTF.
61061         (Makefile.am): Update.
61062         (Include): Change to unistr.h.
61063         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61064         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61065         utf8-ucs4-unsafe.h.
61066         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61067         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61068         utf16-ucs4-unsafe.h.
61069         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61070         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61071         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61072         * lib/unistr/u8-strchr.c: Likewise.
61073         * lib/unistr/u8-strrchr.c: Likewise.
61074         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61075         * lib/unistr/u16-strchr.c: Likewise.
61076         * lib/unistr/u16-strrchr.c: Likewise.
61077         * lib/striconveh.c: Update.
61078         * lib/linebreak.c: Update.
61079
61080 2007-03-24  Bruno Haible  <bruno@clisp.org>
61081
61082         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61083         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61084
61085 2007-03-22  Bruno Haible  <bruno@clisp.org>
61086
61087         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61088
61089 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * MODULES.html.sh (File system functions): New module write-any-file.
61092         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61093         * m4/write-any-file.m4: New files.
61094
61095 2007-03-23  Eric Blake  <ebb9@byu.net>
61096
61097         * gnulib-tool: Rearrange space-tab sequences, since some editors
61098         like to eat them.
61099
61100 2007-03-23  Eric Blake  <ebb9@byu.net>
61101
61102         * lib/version-etc.c (version_etc_va): Update license wording to
61103         be more concise.  Recommended by Richard Stallman.
61104
61105 2007-03-22  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/poll.c (MSG_PEEK): New fallback definition.
61108
61109 2007-03-22  Bruno Haible  <bruno@clisp.org>
61110
61111         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61112         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61113         (main): Update.
61114         Fixes a compilation error on BeOS.
61115
61116 2007-03-22  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/frexpl-tests: New file.
61119         * tests/test-frexpl.c: New file.
61120
61121         * modules/frexpl: New file.
61122         * m4/frexpl.m4: New file.
61123         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61124         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61126         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61127         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61128         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61129
61130 2007-03-22  Bruno Haible  <bruno@clisp.org>
61131
61132         * lib/frexpl.c: Share code with lib/frexp.c.
61133         * modules/mathl (Files): Add lib/frexp.c.
61134         (Depends-on): Add isnanl-nolibm.
61135
61136 2007-03-22  Bruno Haible  <bruno@clisp.org>
61137
61138         * modules/printf-frexp (Files): Add m4/frexp.m4.
61139         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61140         only if the found frexp function actually works.
61141
61142 2007-03-22  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/frexp.c: Remove older implementation that uses divisions.
61145
61146 2007-03-21  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/frexp-tests: New file.
61149         * tests/test-frexp.c: New file.
61150
61151         * modules/frexp: New file.
61152         * lib/frexp.c: New file.
61153         * m4/frexp.m4: New file.
61154         * lib/math_.h (frexp): New declaration.
61155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61156         REPLACE_FREXP.
61157         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61158
61159 2007-03-21  Bruno Haible  <bruno@clisp.org>
61160
61161         * modules/isnanl-tests: New file.
61162         * tests/test-isnanl.c: New file.
61163
61164         * modules/isnanl: New file.
61165         * lib/isnanl.h: New file.
61166         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61167         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61168         gl_FUNC_ISNANL_WORKS.
61169         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61170         New macros.
61171
61172 2007-03-21  Bruno Haible  <bruno@clisp.org>
61173
61174         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61175         lib/isnanl.h.
61176         (Include): Update.
61177         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61178         * lib/vasnprintf.c: Update.
61179         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61180         tests/test-isnanl.h, remove tests/test-isnanl.c.
61181         (Makefile.am): Update.
61182         * tests/test-isnanl-nolibm.c: New file.
61183         * tests/test-isnanl.h: New file.
61184         * tests/test-isnanl.c: Remove file.
61185
61186 2007-03-21  Jim Meyering  <jim@meyering.net>
61187
61188         When trying to open ".", treat ESTALE like EACCES.
61189         * lib/savewd.c (savewd_save): Resort to forking not just upon
61190         failure with EACCES, but also when errno is ESTALE.
61191
61192 2007-03-20  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61195         Needed on AIX 5.1. Reported by Matthew Woehlke.
61196
61197 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61198
61199         Suggestions by Bruno Haible:
61200         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61201         our own.
61202         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61203         * modules/acl (Depends-on): Add gettext.
61204
61205 2007-03-19  Bruno Haible  <bruno@clisp.org>
61206
61207         * modules/iconvme: Remove file.
61208         * lib/iconvme.h: Remove file.
61209         * lib/iconvme.c: Remove file.
61210         * m4/iconvme.m4: Remove file.
61211
61212 2007-03-19  Bruno Haible  <bruno@clisp.org>
61213
61214         * doc/relocatable-maint.texi: Break long shell script line.
61215         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61216
61217 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61218
61219         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61220         handle file_has_acl.
61221         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61222         * lib/acl.c: Move header inclusions and related macro defns into
61223         lib/acl-internal.h.
61224         (S_ISLNK): Remove defn, since that's now done for us.
61225         (file_has_acl): Move to lib/file-has-acl.c.
61226         Call acl_trivial if available.  This is the crucial part of the fix.
61227         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61228         shared within the library.  Rewrite a bit, partly to make it compatible
61229         with the GNU coding style.
61230         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61231         Remove unnecessary double-quotes.
61232         Don't test for acl_to_text; the build will catch that.
61233         Replace acl_entries if it doesn't exist and it is needed.
61234         Check for -lsec and acl_trivial (as used on Solaris 10).
61235         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61236         lib/file-has-acl.c.
61237         (Depends-on): Add sys_stat, for S_ISLNK.
61238
61239 2007-03-19  Ben Pfaff  <blp@gnu.org>
61240
61241         * doc/gnulib.texi: Fix typos.
61242         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61243
61244 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61247         If size is zero here, buf must be zero.
61248
61249 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61250
61251         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61252         <bruno@clisp.org>.
61253
61254 2007-03-18  Bruno Haible  <bruno@clisp.org>
61255
61256         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61257         Suggested by Eric Blake.
61258
61259 2007-03-18  Ben Pfaff  <blp@gnu.org>
61260
61261         * doc/relocatable.texi: Recommend using as prefix a directory
61262         that does not exist and will never be created.  Based on
61263         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61264         and others.
61265
61266 2007-03-17  Bruno Haible  <bruno@clisp.org>
61267
61268         * lib/fchownat.c: Include lchown.h.
61269
61270 2007-03-17  Bruno Haible  <bruno@clisp.org>
61271
61272         Fix endless loop when the given allocated size was > INT_MAX.
61273         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61274         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61275         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61276         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61277         * lib/sprintf.c (sprintf): Likewise.
61278
61279 2007-03-17  Bruno Haible  <bruno@clisp.org>
61280
61281         * tests/test-argp-2.sh (func_compare): Output a context diff.
61282
61283 2007-03-17  Bruno Haible  <bruno@clisp.org>
61284
61285         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61286         locale's decimal-point character.
61287
61288 2007-03-17  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61291         before comparing it. Needed because on some platforms (e.g. x86) a
61292         'long double' occupies less bytes than sizeof (long double).
61293
61294 2007-03-17  Bruno Haible  <bruno@clisp.org>
61295
61296         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61297         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61298         * tests/test-getaddrinfo.c (simple): Likewise.
61299         * tests/test-read-file.c (main): Likewise.
61300
61301 2007-03-17  Bruno Haible  <bruno@clisp.org>
61302
61303         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61304
61305 2007-03-17  Bruno Haible  <bruno@clisp.org>
61306
61307         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61308         unused variable.
61309
61310 2007-03-17  Bruno Haible  <bruno@clisp.org>
61311
61312         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61313         * tests/test-c-strncasecmp.c: Likewise.
61314
61315 2007-03-17  Bruno Haible  <bruno@clisp.org>
61316
61317         * modules/stdlib (Depends-on): Add unistd.
61318         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61319         Needed for MacOS X 10.3.
61320
61321 2007-03-17  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61324
61325 2007-03-17  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61328
61329 2007-03-17  Bruno Haible  <bruno@clisp.org>
61330
61331         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61332         to reflect files copied from gnulib (with or without modifications).
61333         Suggested by Jim Meyering.
61334
61335 2007-03-17  Eric Blake  <ebb9@byu.net>
61336
61337         * NEWS: Document stdlib change from 2007-02-18.
61338
61339 2007-03-17  Jim Meyering  <jim@meyering.net>
61340
61341         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61342         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61343         someone uses a name containing shell meta-characters.
61344         Reported by Alfred M. Szmidt.
61345
61346         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61347
61348 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61349
61350         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61351         and copy gettext configuration files only if configure.ac contains
61352         a use of AM_GNU_GETTEXT_VERSION.
61353
61354 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61355
61356         * build-aux/bootstrap (gnulib_name): New variable.
61357         (gnulib_tool_options): Use it.
61358
61359 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61360
61361         * tests/test-des.c: Use new namespace.
61362
61363 2007-03-15  Bruno Haible  <bruno@clisp.org>
61364
61365         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61366         Reported by James Youngman <jay@gnu.org>.
61367
61368 2007-03-15  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61371         declared prototype. Needed with cc on OSF/1 5.1.
61372
61373 2007-03-15  Bruno Haible  <bruno@clisp.org>
61374
61375         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61376         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61377         (struct gl_list_implementation): Add dispose_fn argument to the
61378         'create_empty', 'create' methods.
61379         (struct gl_list_impl_base): Add field 'dispose_fn'.
61380         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61381         argument.
61382         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61383         dispose_fn argument.
61384         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61385         dispose_fn on the dropped values.
61386         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61387         dispose_fn argument.
61388         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61389         dropped values.
61390         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61391         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61392         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61393         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61394         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61395         argument.
61396         (gl_tree_list_free): Call dispose_fn on the dropped values.
61397         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61398         the dropped values.
61399         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61400         Add dispose_fn argument.
61401         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61402         Call dispose_fn on the dropped values.
61403         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61404         Add dispose_fn argument.
61405         (gl_sublist_create): Initialize the 'dispose_fn' field.
61406         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61407         * tests/test-array_list.c (main): Update.
61408         * tests/test-carray_list.c (main): Update.
61409         * tests/test-avltree_list.c (main): Update.
61410         * tests/test-rbtree_list.c (main): Update.
61411         * tests/test-avltreehash_list.c (main): Update.
61412         * tests/test-rbtreehash_list.c (main): Update.
61413         * tests/test-linked_list.c (main): Update.
61414         * tests/test-linkedhash_list.c (main): Update.
61415         * tests/test-array_oset.c (main): Update.
61416
61417 2007-03-15  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61420         (gl_oset_create_empty): Add dispose_fn argument.
61421         (struct gl_oset_implementation): Add dispose_fn argument to
61422         'create_empty' method.
61423         (struct gl_oset_impl_base): Add dispose_fn field.
61424         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61425         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61426         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61427         values.
61428         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61429         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61430         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61431         dropped value.
61432         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61433         dropped value.
61434         * tests/test-array_oset.c (main): Update.
61435         * tests/test-avltree_oset.c (main): Update.
61436         * tests/test-rbtree_oset.c (main): Update.
61437         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61438
61439 2007-03-13  Bruno Haible  <bruno@clisp.org>
61440
61441         * tests/test-stdbool.c (i): Update after last patch.
61442
61443 2007-03-12  Bruno Haible  <bruno@clisp.org>
61444
61445         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61446         the iswprint macro. Needed on Solaris 2.5.1.
61447
61448 2007-03-12  Bruno Haible  <bruno@clisp.org>
61449
61450         * tests/test-printf-frexp.c (main): Declare x as volatile.
61451
61452 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61453
61454         * doc/gnulib.texi (Build robot for gnulib): New section.
61455
61456 2007-03-12  Jim Meyering  <jim@meyering.net>
61457
61458         * build-aux/bootstrap: New file.
61459         * build-aux/bootstrap.conf: New file, from coreutils.
61460
61461 2007-03-11  Bruno Haible  <bruno@clisp.org>
61462
61463         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61464
61465 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61466
61467         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61468         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61469         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61470
61471 2007-03-11  Bruno Haible  <bruno@clisp.org>
61472
61473         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61474         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61475
61476 2007-03-11  Bruno Haible  <bruno@clisp.org>
61477
61478         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61479         formula. Needed for SunPRO C 5.0.
61480
61481 2007-03-11  Bruno Haible  <bruno@clisp.org>
61482
61483         * modules/long-options (Depends-on): Add getopt.
61484
61485 2007-03-11  Bruno Haible  <bruno@clisp.org>
61486
61487         * modules/modechange (Depends-on): Add stdbool.
61488
61489 2007-03-11  Bruno Haible  <bruno@clisp.org>
61490
61491         * modules/i-ring (Depends-on): Add stdbool.
61492
61493 2007-03-11  Bruno Haible  <bruno@clisp.org>
61494
61495         * modules/gc-des (Depends-on): Add stdbool.
61496
61497 2007-03-11  Bruno Haible  <bruno@clisp.org>
61498
61499         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61500
61501 2007-03-11  Bruno Haible  <bruno@clisp.org>
61502
61503         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61504
61505 2007-03-11  Bruno Haible  <bruno@clisp.org>
61506
61507         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61508
61509 2007-03-11  Bruno Haible  <bruno@clisp.org>
61510
61511         * lib/vasnprintf.c (sprintf): Undefine.
61512
61513 2007-03-11  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61516         initializers in SunPRO C and Compaq C compilers.
61517
61518 2007-03-11  Bruno Haible  <bruno@clisp.org>
61519
61520         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61521         decrementing code ANSI C compliant.
61522
61523 2007-03-11  Bruno Haible  <bruno@clisp.org>
61524
61525         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61526         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61527
61528 2007-03-11  Bruno Haible  <bruno@clisp.org>
61529
61530         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61531         <stdbool.h> substitute doesn't pass.
61532
61533 2007-03-11  Bruno Haible  <bruno@clisp.org>
61534
61535         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61536
61537 2007-03-11  Bruno Haible  <bruno@clisp.org>
61538
61539         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61540         script, for submission to autobuild.josefsson.org.
61541
61542 2007-03-10  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/canonicalize-lgpl-tests: New file.
61545         * tests/test-canonicalize-lgpl.sh: New file.
61546         * tests/test-canonicalize-lgpl.c: New file.
61547
61548         * modules/c-strcase-tests: New file.
61549         * tests/test-c-strcase.sh: New file.
61550         * tests/test-c-strcasecmp.c: New file.
61551         * tests/test-c-strncasecmp.c: New file.
61552
61553         * modules/atexit-tests: New file.
61554         * tests/test-atexit.sh: New file.
61555         * tests/test-atexit.c: New file.
61556
61557 2007-03-10  Bruno Haible  <bruno@clisp.org>
61558
61559         * tests/test-binary-io.sh: Use temporary filenames that are not so
61560         likely to clash with those of other tests (in a parallel make).
61561         * tests/test-binary-io.c: Likewise.
61562
61563 2007-03-10  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61566         fallback; use #error instead.
61567         Suggested by Simon Josefsson.
61568
61569 2007-03-10  Bruno Haible  <bruno@clisp.org>
61570
61571         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61572         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61573         first and the last.
61574
61575 2007-03-10  Bruno Haible  <bruno@clisp.org>
61576
61577         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61578
61579 2007-03-10  Bruno Haible  <bruno@clisp.org>
61580
61581         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61582         "make distcheck".
61583         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61584         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61585         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61586
61587 2007-03-10  Bruno Haible  <bruno@clisp.org>
61588
61589         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61590         variable.
61591         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61592         variable.
61593
61594 2007-03-09  Eric Blake  <ebb9@byu.net>
61595         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61596
61597         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61598         types are not being provided by gnulib.
61599         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61600         types are supported.
61601
61602 2007-03-10  Bruno Haible  <bruno@clisp.org>
61603
61604         * lib/stdio_.h (__attribute__): New macro.
61605         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61606         vsprintf): Specify __attribute__ __format__ for GCC.
61607         Suggested by Eric Blake.
61608
61609 2007-03-09  Bruno Haible  <bruno@clisp.org>
61610
61611         * modules/printf-posix-tests: New file.
61612         * tests/test-printf-posix.sh: New file.
61613         * tests/test-printf-posix.c: New file.
61614
61615         * modules/printf-posix: New file.
61616         * lib/printf.c: New file.
61617         * m4/printf-posix-rpl.m4: New file.
61618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61619         REPLACE_PRINTF.
61620         * lib/stdio_.h (printf): New declaration.
61621         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61622         ____strfmon____): New macros.
61623         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61624         REPLACE_PRINTF.
61625
61626 2007-03-09  Bruno Haible  <bruno@clisp.org>
61627
61628         * tests/test-vasnprintf-posix2.sh: New file.
61629         * tests/test-vasnprintf-posix2.c: New file.
61630         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61631         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61632         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61633
61634         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61635         a locale dependent decimal point, rather than always '.'.
61636
61637 2007-03-09  Eric Blake  <ebb9@byu.net>
61638
61639         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61640         spite of platforms like Tandem/NSK that define it to -1.
61641
61642 2007-03-08  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/vprintf-posix-tests: New file.
61645         * tests/test-vprintf-posix.sh: New file.
61646         * tests/test-vprintf-posix.c: New file.
61647         * tests/test-printf-posix.h: New file.
61648
61649         * modules/vprintf-posix: New file.
61650         * lib/vprintf.c: New file.
61651         * m4/vprintf-posix.m4: New file.
61652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61653         REPLACE_VPRINTF.
61654         * lib/stdio_.h (vprintf): New declaration.
61655         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61656         REPLACE_VPRINTF.
61657
61658 2007-03-08  Bruno Haible  <bruno@clisp.org>
61659
61660         * modules/fprintf-posix-tests: New file.
61661         * tests/test-fprintf-posix.sh: New file.
61662         * tests/test-fprintf-posix.c: New file.
61663
61664         * modules/fprintf-posix: New file.
61665         * lib/fprintf.c: New file.
61666         * m4/fprintf-posix.m4: New file.
61667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61668         REPLACE_FPRINTF.
61669         * lib/stdio_.h (fprintf): New declaration.
61670         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61671         REPLACE_FPRINTF.
61672
61673 2007-03-08  Bruno Haible  <bruno@clisp.org>
61674
61675         * modules/vfprintf-posix-tests: New file.
61676         * tests/test-vfprintf-posix.sh: New file.
61677         * tests/test-vfprintf-posix.c: New file.
61678         * tests/test-fprintf-posix.h: New file.
61679         * tests/test-fprintf-posix.out: New file.
61680
61681         * modules/vfprintf-posix: New file.
61682         * lib/vfprintf.c: New file.
61683         * m4/vfprintf-posix.m4: New file.
61684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61685         REPLACE_VFPRINTF.
61686         * lib/stdio_.h (vfprintf): New declaration.
61687         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61688         REPLACE_VFPRINTF.
61689
61690 2007-03-08  Bruno Haible  <bruno@clisp.org>
61691
61692         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61693
61694 2007-03-08  Bruno Haible  <bruno@clisp.org>
61695
61696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61697         instead of 'expr' invocations.
61698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61703         Suggested by Paul Eggert.
61704
61705 2007-03-08  Bruno Haible  <bruno@clisp.org>
61706
61707         * modules/fseterr-tests: New file.
61708         * tests/test-fseterr.c: New file.
61709
61710         * modules/fseterr: New file.
61711         * lib/fseterr.h: New file.
61712         * lib/fseterr.c: New file.
61713
61714 2007-03-08  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61717         * lib/getopt_.h: Likewise.
61718         * lib/mbswidth.h: Likewise.
61719         * lib/setenv.h: Likewise.
61720         * lib/vasnprintf.h: Likewise.
61721         * lib/vasprintf.h: Likewise.
61722         * lib/verror.h: Likewise.
61723         * lib/xsetenv.h: Likewise.
61724         * lib/xvasprintf.h: Likewise.
61725
61726 2007-03-08  Jim Meyering  <jim@meyering.net>
61727
61728         * users.txt: Add parted.
61729
61730         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61731
61732 2007-03-07  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/printf.m4: Make the shell script snippets copy&pastable.
61735
61736 2007-03-02  Bruno Haible  <bruno@clisp.org>
61737
61738         * lib/netinet_in_.h: New file.
61739         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61740         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61741         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61742         (Depends-on): Add absolute-header.
61743         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61744         into netinet/in.h.
61745
61746 2007-03-03  Bruno Haible  <bruno@clisp.org>
61747
61748         * lib/sys_select_.h: New file.
61749         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61750         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61751         * modules/sys_select (Files): Add lib/sys_select_.h.
61752         (Depends-on): Add absolute-header.
61753         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61754         into sys/select.h.
61755
61756 2007-03-02  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61759         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61760         values.
61761         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61762         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61763         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61764         * modules/sys_socket (Depends-on): Add absolute-header.
61765         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61766         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61767         (Include): Remove requirement of inclusion of <sys/types.h>.
61768
61769 2007-03-02  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/byteswap_.h (bswap_32): Fix formula.
61772
61773 2007-03-06  Bruno Haible  <bruno@clisp.org>
61774
61775         * modules/sprintf-posix-tests: New file.
61776         * tests/test-sprintf-posix.c: New file.
61777
61778         * modules/sprintf-posix: New file.
61779         * lib/sprintf.c: New file.
61780         * m4/sprintf-posix.m4: New file.
61781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61782         REPLACE_SPRINTF.
61783         * lib/stdio_.h (sprintf): New declaration.
61784         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61785         REPLACE_SPRINTF.
61786
61787 2007-03-06  Bruno Haible  <bruno@clisp.org>
61788
61789         * modules/vsprintf-posix-tests: New file.
61790         * tests/test-vsprintf-posix.c: New file.
61791         * tests/test-sprintf-posix.h: New file.
61792
61793         * modules/vsprintf-posix: New file.
61794         * lib/vsprintf.c: New file.
61795         * m4/vsprintf-posix.m4: New file.
61796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61797         REPLACE_VSPRINTF.
61798         * lib/stdio_.h (vsprintf): New declaration.
61799         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61800         REPLACE_VSPRINTF.
61801
61802 2007-03-06  Bruno Haible  <bruno@clisp.org>
61803
61804         * modules/vsnprintf (Depend-on): Remove minmax.
61805
61806 2007-03-06  Bruno Haible  <bruno@clisp.org>
61807
61808         * modules/snprintf-posix-tests: New file.
61809         * tests/test-snprintf-posix.c: New file.
61810
61811         * modules/snprintf-posix: New file.
61812         * m4/snprintf-posix.m4: New file.
61813         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61814         gl_FUNC_SNPRINTF.
61815         (gl_FUNC_SNPRINTF): Invoke it.
61816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61817         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61818         is set.
61819         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61820
61821 2007-03-06  Bruno Haible  <bruno@clisp.org>
61822
61823         * modules/vsnprintf-posix-tests: New file.
61824         * tests/test-vsnprintf-posix.c: New file.
61825         * tests/test-snprintf-posix.h: New file.
61826
61827         * modules/vsnprintf-posix: New file.
61828         * m4/vsnprintf-posix.m4: New file.
61829         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61830         gl_FUNC_VSNPRINTF.
61831         (gl_FUNC_VSNPRINTF): Invoke it.
61832         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61833         * lib/stdio_.h (vsnprintf): Define as a replacement if
61834         REPLACE_VSNPRINTF is set.
61835         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61836
61837 2007-03-06  Bruno Haible  <bruno@clisp.org>
61838
61839         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61841
61842 2007-03-06  Bruno Haible  <bruno@clisp.org>
61843
61844         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61845         (asinl): Declare also if HAVE_DECL_ASINL is set.
61846         (atanl): Declare also if HAVE_DECL_ATANL is set.
61847         (ceill): Declare also if HAVE_DECL_CEILL is set.
61848         (cosl): Declare also if HAVE_DECL_COSL is set.
61849         (expl): Declare also if HAVE_DECL_EXPL is set.
61850         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61851         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61852         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61853         (logl): Declare also if HAVE_DECL_LOGL is set.
61854         (sinl): Declare also if HAVE_DECL_SINL is set.
61855         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61856         (tanl): Declare also if HAVE_DECL_TANL is set.
61857         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61859         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61860         declaration of frexpl, ldexpl.
61861         * modules/printf-frexpl (Depends-on): Add math.
61862         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61863
61864 2007-03-05  Bruno Haible  <bruno@clisp.org>
61865
61866         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61867         frexpl and ldexpl are declared.
61868         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61869
61870 2007-03-05  Bruno Haible  <bruno@clisp.org>
61871
61872         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61873         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61874
61875 2007-03-05  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/stdio_.h: Include <stddef.h>.
61878
61879 2007-03-05  Bruno Haible  <bruno@clisp.org>
61880
61881         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61882
61883 2007-03-05  Bruno Haible  <bruno@clisp.org>
61884
61885         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61886         NetBSD 4, from Ralf Wildenhues.
61887
61888 2007-03-04  Bruno Haible  <bruno@clisp.org>
61889
61890         * lib/vasprintf.h: Update #if logic for the case when the functions
61891         exist but are overridden.
61892
61893 2007-03-04  Bruno Haible  <bruno@clisp.org>
61894
61895         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61896         implementations: glibc-2.4 and MacOS X 10.3.
61897         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61898         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61899         * tests/test-vasprintf-posix.c (test_function): Likewise.
61900
61901 2007-03-04  Bruno Haible  <bruno@clisp.org>
61902
61903         * modules/vasprintf-posix-tests: New file.
61904         * tests/test-vasprintf-posix.c: New file.
61905
61906         * modules/vasprintf-posix: New file.
61907         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61908         defined.
61909         * m4/vasprintf-posix.m4: New file.
61910         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61911         gl_FUNC_VASPRINTF.
61912         (gl_FUNC_VASPRINTF): Invoke it.
61913         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61914         here.
61915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61916
61917 2007-03-04  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61920         REPLACE_GETTIMEOFDAY.
61921         * modules/sys_time (Makefile.am): Likewise.
61922         * m4/sys_time_h.m4: Likewise.
61923         * m4/gettimeofday.m4: Likewise.
61924
61925 2007-03-04  Bruno Haible  <bruno@clisp.org>
61926
61927         * modules/vasnprintf-posix-tests: New file.
61928         * tests/test-vasnprintf-posix.c: New file.
61929
61930         * modules/vasnprintf-posix: New file.
61931         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61932         printf-frexpl.h.
61933         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61934         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61935         REPLACE_VASNPRINTF is defined.
61936         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61937         gl_FUNC_VASNPRINTF.
61938         (gl_FUNC_VASNPRINTF): Invoke it.
61939         * m4/vasnprintf-posix.m4: New file.
61940         * m4/printf.m4: New file.
61941
61942 2007-03-04  Bruno Haible  <bruno@clisp.org>
61943
61944         Compile progreloc.c only if --enable-relocatable is specified.
61945         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61946         if --enable-relocatable was specified.
61947         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61948         lib_SOURCES.
61949
61950 2007-03-04  Jim Meyering  <jim@meyering.net>
61951
61952         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61953         Use it consistently, rather than enumerating errno constants.
61954
61955 2007-03-04  Bruno Haible  <bruno@clisp.org>
61956
61957         * modules/xvasprintf-tests: New file.
61958         * tests/test-xvasprintf.c: New file.
61959
61960         * modules/vasprintf-tests: New file.
61961         * tests/test-vasprintf.c: New file.
61962
61963         * modules/vasnprintf-tests: New file.
61964         * tests/test-vasnprintf.c: New file.
61965
61966         * modules/vsnprintf-tests: New file.
61967         * tests/test-vsnprintf.c: New file.
61968
61969         * modules/snprintf-tests: New file.
61970         * tests/test-snprintf.c: New file.
61971
61972 2007-03-04  Bruno Haible  <bruno@clisp.org>
61973
61974         Compile relocatable.c only if --enable-relocatable is specified.
61975         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61976         gl_RELOCATABLE_LIBRARY.
61977         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61978         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61979         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61980         gl_RELOCATABLE_LIBRARY.
61981         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61982         (Makefile.am): Remove lib_SOURCES.
61983         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61984         gl_RELOCATABLE_LIBRARY.
61985         (Makefile.am): Remove lib_SOURCES.
61986         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61987         always.
61988         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61989         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61990
61991 2007-03-04  Bruno Haible  <bruno@clisp.org>
61992
61993         * modules/argmatch-tests: New file.
61994         * tests/test-argmatch.c: New file.
61995
61996         * tests/test-allocsa.c (main): Halve the number of loop runs.
61997
61998         * modules/alloca-opt-tests: New file.
61999         * tests/test-alloca-opt.c: New file.
62000
62001 2007-03-04  Jim Meyering  <jim@meyering.net>
62002
62003         Work around difference between Linux ACLs and Solaris 10 ZFS.
62004         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62005         for EINVAL.
62006
62007 2007-03-03  Bruno Haible  <bruno@clisp.org>
62008
62009         * modules/relocatable-prog (Depends-on): Add back progreloc's
62010         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62011
62012 2007-03-03  Bruno Haible  <bruno@clisp.org>
62013
62014         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62015         * modules/relocatable-lib: New file.
62016
62017 2007-03-03  Bruno Haible  <bruno@clisp.org>
62018
62019         * modules/relocatable-prog: Renamed from modules/relocatable.
62020         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62021
62022 2007-03-03  Bruno Haible  <bruno@clisp.org>
62023
62024         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62025         m4/relocatable-lib.m4.
62026         (Depends-on): Remove 'relocatable'.
62027         (configure.ac): Add gl_RELOCATABLE_NOP.
62028
62029 2007-03-03  Bruno Haible  <bruno@clisp.org>
62030
62031         * modules/relocatable-prog-wrapper: New file.
62032         * modules/relocatable (Depends-on): Add it. Remove all other
62033         dependencies except progname.
62034         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62035
62036         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62037         (gl_FUNC_STRERROR): Nop.
62038         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62039
62040         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62041         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62042
62043         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62044         (gl_FUNC_READLINK): Update.
62045
62046         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62047
62048 2007-03-03  Bruno Haible  <bruno@clisp.org>
62049
62050         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62051         * modules/xreadlink (Depends-on): Add unistd.
62052         * modules/xreadlink-with-size (Depends-on): Likewise.
62053
62054 2007-03-03  Bruno Haible  <bruno@clisp.org>
62055
62056         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62057         extracted from gt_FUNC_SETENV.
62058         (gt_FUNC_SETENV): Remove macro.
62059         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62060         remove gt_FUNC_SETENV.
62061
62062 2007-03-03  Bruno Haible  <bruno@clisp.org>
62063
62064         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62065         ENABLE_RELOCATABLE here.
62066         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62067
62068 2007-03-03  Bruno Haible  <bruno@clisp.org>
62069
62070         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62071         * tests/test-rbtreehash_list.c: Include progname.h.
62072         (main): Call set_program_name.
62073
62074         * modules/rbtree-oset-tests (Depends-on): Add progname.
62075         * tests/test-rbtree_oset.c: Include progname.h.
62076         (main): Call set_program_name.
62077
62078         * modules/rbtree-list-tests (Depends-on): Add progname.
62079         * tests/test-rbtree_list.c: Include progname.h.
62080         (main): Call set_program_name.
62081
62082         * modules/linked-list-tests (Depends-on): Add progname.
62083         * tests/test-linked_list.c: Include progname.h.
62084         (main): Call set_program_name.
62085
62086 2007-03-03  Bruno Haible  <bruno@clisp.org>
62087
62088         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62089         All uses of __restrict changed to _Restrict_.
62090         * lib/glob_.h (__restrict): Remove macro.
62091
62092 2007-03-02  Bruno Haible  <bruno@clisp.org>
62093
62094         * modules/gettext (configure.ac): Require gettext infrastructure
62095         from version 0.16.1.
62096
62097 2007-03-02  Bruno Haible  <bruno@clisp.org>
62098
62099         * modules/linkedhash-list-tests (Depends-on): Add progname.
62100         * tests/test-linkedhash_list.c: Include progname.h.
62101         (main): Call set_program_name.
62102
62103         * modules/carray-list-tests (Depends-on): Add progname.
62104         * tests/test-carray_list.c: Include progname.h.
62105         (main): Call set_program_name.
62106
62107         * modules/avltreehash-list-tests (Depends-on): Add progname.
62108         * tests/test-avltreehash_list.c: Include progname.h.
62109         (main): Call set_program_name.
62110
62111         * modules/avltree-oset-tests (Depends-on): Add progname.
62112         * tests/test-avltree_oset.c: Include progname.h.
62113         (main): Call set_program_name.
62114
62115         * modules/avltree-list-tests (Depends-on): Add progname.
62116         * tests/test-avltree_list.c: Include progname.h.
62117         (main): Call set_program_name.
62118
62119         * modules/array-oset-tests (Depends-on): Add progname.
62120         * tests/test-array_oset.c: Include progname.h.
62121         (main): Call set_program_name.
62122
62123         * modules/array-list-tests (Depends-on): Add progname.
62124         * tests/test-array_list.c: Include progname.h.
62125         (main): Call set_program_name.
62126
62127         * modules/argp-tests (Depends-on): Add progname.
62128         * tests/test-argp.c: Include argp.h first. Include progname.h.
62129         (main): Call set_program_name.
62130
62131 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         * doc/gnulib-tool.texi (Initial import): Reword description of
62134         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62135         limited effect even if defined after the first system include.
62136
62137 2007-03-01  Bruno Haible  <bruno@clisp.org>
62138
62139         * build-aux/config.libpath: Update to libtool-1.5.22.
62140         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62141
62142 2007-03-01  Bruno Haible  <bruno@clisp.org>
62143
62144         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62145         foo_CFLAGS.
62146         Reported by Ralf Wildenhues.
62147
62148 2007-03-01  Bruno Haible  <bruno@clisp.org>
62149
62150         * build-aux/install-reloc: Remove object files left over by some
62151         compilers.
62152         Reported by Ralf Wildenhues.
62153
62154 2007-03-01  Bruno Haible  <bruno@clisp.org>
62155
62156         * build-aux/install-reloc: Break long lines.
62157
62158 2007-03-01  Bruno Haible  <bruno@clisp.org>
62159
62160         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62161         Reported by Ralf Wildenhues.
62162
62163 2007-03-01  Bruno Haible  <bruno@clisp.org>
62164
62165         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62166         include ordering constraints.
62167
62168 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62172         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62173         as another example.
62174         * lib/time_.h: Fix misspelling.
62175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62176         Require gl_HEADER_TIME_H_DEFAULTS.
62177         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62178         * m4/time_r.m4 (gl_TIME_R): Likewise.
62179         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62180
62181 2007-03-01  Bruno Haible  <bruno@clisp.org>
62182
62183         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62184         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62185
62186 2007-03-01  Jim Meyering  <jim@meyering.net>
62187
62188         * modules/xreadlink (Maintainer): Add my name.
62189         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62190
62191 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62192             Bruno Haible  <bruno@clisp.org>
62193
62194         * build-aux/install-reloc: Compile also c-ctype.c.
62195         * build-aux/relocatable.sh.in: New file.
62196         * doc/relocatable.texi: New file.
62197         * doc/relocatable-maint.texi: New file.
62198         * doc/gnulib.texi: Include relocatable-maint.texi.
62199         * lib/progreloc.c: Include unistd.h unconditionally.
62200         * lib/relocwrapper.c: Include unistd.h unconditionally.
62201         Include c-ctype.h.
62202         (add_dotbin): Use c_tolower.
62203         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62204         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62205         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62206         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62207         to m4/relocatable-lib.m4.
62208         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62209         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62210         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62211         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62212         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62213         * modules/relocatable: New file.
62214         * modules/relocatable-lib: New file.
62215         * modules/relocatable-script: New file.
62216
62217 2007-02-28  Bruno Haible  <bruno@clisp.org>
62218
62219         Import --enable-relocatable infrastructure.
62220         * build-aux/config.libpath: New file, from GNU gettext.
62221         * build-aux/install-reloc: New file, from GNU gettext.
62222         * build-aux/reloc-ldflags: New file, from GNU gettext.
62223         * lib/relocatable.h: New file, from GNU gettext.
62224         * lib/relocatable.c: New file, from GNU gettext.
62225         * lib/relocwrapper.c: New file, from GNU gettext.
62226         * m4/relocatable.m4: New file, from GNU gettext.
62227
62228 2007-02-28  Bruno Haible  <bruno@clisp.org>
62229
62230         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62231
62232         * modules/xreadlink: New file, from GNU gettext with modifications.
62233         * lib/xreadlink.c: New file, from GNU gettext.
62234         * lib/xreadlink.h: Add comments.
62235         (xreadlink): New declaration.
62236
62237         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62238         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62239         lib/xreadlink-with-size.c.
62240         (configure.ac): Remove gl_XREADLINK invocation.
62241         (Makefile.am): Augment lib_SOURCES.
62242         * m4/xreadlink.m4: Remove file.
62243         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62244         (xreadlink_with_size): Renamed from xreadink.
62245         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62246         * modules/canonicalize (Depends-on): Replace xreadlink with
62247         xreadlink-with-size.
62248         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62249
62250 2007-02-25  Jim Meyering  <jim@meyering.net>
62251
62252         * build-aux/announce-gen: When complaining about excess arguments,
62253         list them.
62254
62255 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62256
62257         * README: Document signed integer overflow situation more
62258         accurately.
62259
62260 2007-02-25  Bruno Haible  <bruno@clisp.org>
62261
62262         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62263         'a' or 'A' conversion.
62264
62265 2007-02-25  Bruno Haible  <bruno@clisp.org>
62266
62267         * modules/filename: Renamed from modules/pathname.
62268         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62269         lib/concatpath.c with lib/concat-filename.c.
62270         (Makefile.am): Update.
62271         (Include): Replace pathname.h with filename.h.
62272         * lib/filename.h: Renamed from lib/pathname.h.
62273         (concatenated_filename): Renamed from concatenated_pathname.
62274         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62275         (concatenated_filename): Renamed from concatenated_pathname.
62276         * lib/findprog.c: Include filename.h instead of pathname.h.
62277         (find_in_path): Update.
62278         * lib/javacomp.c: Include filename.h instead of pathname.h.
62279         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62280         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62281         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62282         is_oldgcj_14_13_usable, is_javac_usable): Update.
62283         * lib/javaexec.c: Include filename.h instead of pathname.h.
62284         (execute_java_class): Update.
62285         * modules/findprog: Update.
62286         * modules/javacomp: Update.
62287         * modules/javaexec: Update.
62288         * MODULES.html.sh (File system functions): Add 'filename', remove
62289         'pathname'.
62290
62291 2007-02-25  Bruno Haible  <bruno@clisp.org>
62292
62293         * modules/printf-frexpl-tests: New file.
62294         * tests/test-printf-frexpl.c: New file.
62295
62296         * modules/printf-frexpl: New file.
62297         * lib/printf-frexpl.h: New file.
62298         * lib/printf-frexpl.c: New file.
62299         * m4/printf-frexpl.m4: New file.
62300
62301 2007-02-25  Bruno Haible  <bruno@clisp.org>
62302
62303         * modules/printf-frexp-tests: New file.
62304         * tests/test-printf-frexp.c: New file.
62305
62306         * modules/printf-frexp: New file.
62307         * lib/printf-frexp.h: New file.
62308         * lib/printf-frexp.c: New file.
62309         * m4/printf-frexp.m4: New file.
62310
62311 2007-02-25  Bruno Haible  <bruno@clisp.org>
62312
62313         Assume automake >= 1.10 for the tests.
62314         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62315         * modules/arctwo-tests: Likewise.
62316         * modules/argp-tests: Likewise.
62317         * modules/avltree-list-tests: Likewise.
62318         * modules/avltree-oset-tests: Likewise.
62319         * modules/avltreehash-list-tests: Likewise.
62320         * modules/carray-list-tests: Likewise.
62321         * modules/crc-tests: Likewise.
62322         * modules/des-tests: Likewise.
62323         * modules/gc-arcfour-tests: Likewise.
62324         * modules/gc-arctwo-tests: Likewise.
62325         * modules/gc-des-tests: Likewise.
62326         * modules/gc-hmac-md5-tests: Likewise.
62327         * modules/gc-hmac-sha1-tests: Likewise.
62328         * modules/gc-md2-tests: Likewise.
62329         * modules/gc-md4-tests: Likewise.
62330         * modules/gc-md5-tests: Likewise.
62331         * modules/gc-pbkdf2-sha1-tests: Likewise.
62332         * modules/gc-rijndael-tests: Likewise.
62333         * modules/gc-sha1-tests: Likewise.
62334         * modules/gc-tests: Likewise.
62335         * modules/getaddrinfo-tests: Likewise.
62336         * modules/hmac-md5-tests: Likewise.
62337         * modules/hmac-sha1-tests: Likewise.
62338         * modules/linked-list-tests: Likewise.
62339         * modules/linkedhash-list-tests: Likewise.
62340         * modules/lock-tests: Likewise.
62341         * modules/md2-tests: Likewise.
62342         * modules/md4-tests: Likewise.
62343         * modules/md5-tests: Likewise.
62344         * modules/rbtree-list-tests: Likewise.
62345         * modules/rbtree-oset-tests: Likewise.
62346         * modules/rbtreehash-list-tests: Likewise.
62347         * modules/read-file-tests: Likewise.
62348         * modules/rijndael-tests: Likewise.
62349         * modules/stdint-tests: Likewise.
62350         * modules/tls-tests: Likewise.
62351
62352 2007-02-24  Bruno Haible  <bruno@clisp.org>
62353
62354         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62355         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62356         function; instead check whether isnan with a double argument links.
62357         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62358         function; instead check whether isnan with a 'long double' argument
62359         links.
62360         Reported by Eric Blake <ebb9@byu.net>.
62361
62362 2007-02-24  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62365         defined.
62366         * lib/isnanl.c: Remove all code. Just include isnan.c.
62367         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62368
62369 2007-02-25  Jim Meyering  <jim@meyering.net>
62370
62371         Avoid conflicting types for 'unsetenv' on FreeBSD.
62372         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62373         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62374         in stdlib.h.
62375
62376 2007-02-24  Bruno Haible  <bruno@clisp.org>
62377
62378         * modules/isnanl-nolibm-tests: New file.
62379         * tests/test-isnanl.c: New file.
62380
62381         * modules/isnanl-nolibm: New file.
62382         * lib/isnanl.h: New file.
62383         * lib/isnanl.c: New file.
62384         * m4/isnanl.m4: New file.
62385
62386 2007-02-24  Bruno Haible  <bruno@clisp.org>
62387
62388         * modules/isnan-nolibm-tests: New file.
62389         * tests/test-isnan.c: New file.
62390
62391         * modules/isnan-nolibm: New file.
62392         * lib/isnan.h: New file.
62393         * lib/isnan.c: New file.
62394         * m4/isnan.m4: New file.
62395
62396 2007-02-24  Bruno Haible  <bruno@clisp.org>
62397
62398         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62399         assume that an exponent fits in 20 bits.
62400
62401 2007-02-24  Jim Meyering  <jim@meyering.net>
62402
62403         * m4/regex.m4: Update the description of the configure-time option,
62404         --without-included-regex, to state accurately what the defaults are,
62405         and perhaps to give people an idea why using this option is risky.
62406
62407 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62410         loops on small arguments.  This attempts to avoid the problem
62411         Bruno Haible reported for AIX 4.3.2 in
62412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62413
62414 2007-02-23  Bruno Haible  <bruno@clisp.org>
62415
62416         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62417         Needed for help2man.
62418
62419 2007-02-23  Karl Berry  <karl@gnu.org>
62420
62421         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62422         exists, foo.h should be cvs-ignored, not committed.
62423
62424 2007-02-23  Eric Blake  <ebb9@byu.net>
62425
62426         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62427         * lib/stat-time.h (includes): Likewise.
62428         * lib/utimecmp.c (includes): Likewise.
62429         * lib/utimens.h (includes): Likewise.
62430         * lib/getdate.y (includes): Also include "timespec.h" for use
62431         internal to the module.
62432         * modules/utimens (Depends-on): Revert yesterday's patch.
62433         * modules/nanosleep (Depends-on): Add missing dependency.
62434
62435 2007-02-22  Bruno Haible  <bruno@clisp.org>
62436
62437         * lib/glob.c: Don't include getlogin_r.h.
62438
62439 2007-02-22  Jim Meyering  <jim@meyering.net>
62440
62441         * modules/utimens (Depends-on): Add timespec, required for
62442         utimens.h's inclusion of timespec.h.
62443
62444 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62445
62446         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62447         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62448         Schwab in
62449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62450         I'll try to think of a better way to fix the Solaris problem.
62451
62452         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62453         like glibc; on Solaris 10, it fails with errno == EINVAL.
62454         POSIX says the behavior is unspecified if the first argument is NULL,
62455         so play it safe and never pass NULL to the system getcwd.
62456
62457 2007-02-21  Jim Meyering  <jim@meyering.net>
62458
62459         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62460         of gettimeofday.  It would conflict with the one now always
62461         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62462         an IRIX 6.5 build failure.
62463
62464 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62465
62466         Minor fixups to port to Solaris 10 with Sun C 5.8.
62467         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62468         * modules/getcwd (Depends-on): Add dirfd.
62469         * lib/putenv.c (putenv): #undef it.
62470         (rpl_putenv): New decl.
62471         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62472
62473 2007-02-20  Bruno Haible  <bruno@clisp.org>
62474
62475         * modules/stdio-tests: New file.
62476         * tests/test-stdio.c: New file.
62477
62478         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62479         (Depends-on): Add stdio.
62480         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62481         (Include): Use <stdio.h> instead of vsnprintf.h.
62482         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62483         HAVE_DECL_VSNPRINTF.
62484         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62485
62486         * modules/snprintf (Files): Remove lib/snprintf.h.
62487         (Depends-on): Add stdio.
62488         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62489         (Include): Use <stdio.h> instead of snprintf.h.
62490         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62491         HAVE_DECL_SNPRINTF.
62492         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62493         * lib/getaddrinfo.c: Likewise.
62494
62495         * modules/stdio: New file.
62496         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62497         * lib/snprintf.h: Remove file.
62498         * lib/vsnprintf.h: Remove file.
62499         * lib/.cppi-disable: Remove snprintf.h.
62500         * m4/stdio_h.m4: New file.
62501         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62502
62503 2007-02-20  Jim Meyering  <jim@meyering.net>
62504
62505         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62506         used by e.g., mingw.  From Bruno Haible.
62507
62508 2007-02-19  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62511         warnings.
62512         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62513
62514 2007-02-19  Bruno Haible  <bruno@clisp.org>
62515
62516         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62517         from mingw users.
62518
62519 2007-02-19  Bruno Haible  <bruno@clisp.org>
62520
62521         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62522         warnings.
62523         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62524
62525 2007-02-19  Jim Meyering  <jim@meyering.net>
62526
62527         Don't use FD after a successful "fdopendir (fd)".
62528         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62529         Reset it by calling dirfd on the just-obtained DIR*.
62530
62531         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62532         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62533
62534 2007-02-18  Bruno Haible  <bruno@clisp.org>
62535
62536         * lib/readlink.c: Include <unistd.h>.
62537         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62538         HAVE_READLINK.
62539         * modules/readlink (Depends-on): Add unistd.
62540         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62541         (Include): Add <unistd.h>.
62542
62543         * lib/getlogin_r.h: Remove file.
62544         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62545         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62546         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62547         HAVE_DECL_GETLOGIN_R.
62548         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62549         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62550         (Include): Use <unistd.h> instead of getlogin_r.h.
62551
62552         * lib/getcwd.h: Remove file.
62553         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62554         * lib/xgetcwd.c: Likewise.
62555         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62556         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62557         * modules/getcwd (Files): Remove lib/getcwd.h.
62558         (Depends-on): Add unistd.
62559         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62560         (Include): Use <unistd.h> instad of getcwd.h.
62561
62562         * lib/ftruncate.c: Include <unistd.h> first.
62563         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62564         Set HAVE_FTRUNCATE.
62565         * modules/ftruncate (Depends-on): Add unistd.
62566         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62567
62568         * lib/fchdir.c: Include <unistd.h> first.
62569         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62571         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62572         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62573         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62574
62575         * lib/dup2.c: Include <unistd.h> first.
62576         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62577         HAVE_DUP2.
62578         * modules/dup2 (Depends-on): Add unistd.
62579         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62580
62581         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62582         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62583         REPLACE_CHOWN. Don't define chown as a macro here.
62584         * modules/chown (Depends-on): Add unistd.
62585         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62586
62587         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62588         Add definition for GL_LINK_WARNING.
62589         (chown, dup2): New declarations.
62590         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62591         link warning.
62592         (ftruncate): New declaration.
62593         (getcwd): New declaration, taken from old getcwd.h.
62594         (getlogin_r): New declaration, taken from old getlogin_r.h.
62595         (readlink): New declaration.
62596         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62597         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62598         (gl_PREREQ_UNISTD): Remove macro.
62599         (gl_UNISTD_MODULE_INDICATOR): New macro.
62600         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62601         many new variables. Don't set UNISTD_H.
62602         * modules/unistd (Description): Change.
62603         (Depends-on): Add link-warning.
62604         (configure.ac): Update.
62605         (Makefile.am): Create unistd.h always. Substitute many new variables
62606         into it.
62607
62608 2007-02-18  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62611         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62612         HAVE_GETSUBOPT.
62613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62614         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62615         * lib/getsubopt.h: Remove file.
62616         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62617         (Depends-on): Add stdlib.
62618         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62619         (Includes): Use <stdlib.h> instead of getsubopt.h.
62620         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62621         Set HAVE_GETSUBOPT.
62622         * lib/getsubopt.c: Don't include getsubopt.h.
62623
62624 2007-02-18  Bruno Haible  <bruno@clisp.org>
62625
62626         * modules/fchdir (Depends-on): Add dup2.
62627
62628 2007-02-18  Bruno Haible  <bruno@clisp.org>
62629
62630         * lib/stdlib_.h: Handle glibc's special invocation convention
62631         specially.
62632
62633 2007-02-18  Bruno Haible  <bruno@clisp.org>
62634
62635         * modules/stdlib-tests: New file.
62636         * tests/test-stdlib.c: New file.
62637
62638         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62639         (Depends-on): Add stdlib.
62640         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62641         (Includes): Use <stdlib.h> instead of mkstemp.h.
62642         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62643         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62644         * lib/mkstemp.c: Don't include mkstemp.h.
62645         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62646         * lib/stdlib--.h: Don't include mkstemp.h.
62647
62648         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62649         (Depends-on): Add stdlib.
62650         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62651         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62652         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62653         HAVE_MKDTEMP.
62654         * lib/mkdtemp.c: Don't include mkdtemp.h.
62655         * lib/clean-temp.c: Don't include mkdtemp.h.
62656
62657         * modules/exit (Files): Remove lib/exit.h.
62658         (Depends-on): Add stdlib.
62659         (Makefile.am): Remove lib_SOURCES.
62660         (Include): Use <stdlib.h> instead of exit.h.
62661         * lib/argmatch.c: Don't include exit.h.
62662         * lib/execute.c: Likewise.
62663         * lib/pagealign_alloc.c: Likewise.
62664         * lib/pipe.c: Likewise.
62665         * lib/wait-process.c: Likewise.
62666         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62667         * lib/exitfail.c: Likewise.
62668         * lib/savewd.c: Likewise.
62669         * lib/xsetenv.c: Likewise.
62670
62671         * modules/stdlib: New file.
62672         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62673         and extra comments about mkstemp().
62674         * lib/exit.h: Remove file.
62675         * lib/mkdtemp.h: Remove file.
62676         * lib/mkstemp.h: Remove file.
62677         * m4/stdlib_h.m4: New file.
62678         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62679
62680 2007-02-18  Bruno Haible  <bruno@clisp.org>
62681
62682         * modules/math-tests: New file.
62683         * tests/test-math.c: New file.
62684
62685         * modules/math: New file.
62686         * modules/mathl (Files): Remove lib/mathl.h.
62687         (Depends-on): Add math.
62688         (Makefile.am): Don't mention mathl.h.
62689         (Include): Use <math.h> instead of mathl.h.
62690         * lib/math_.h: New file.
62691         * lib/mathl.h: Remove file.
62692         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62693         mathl.h.
62694         * lib/asinl.c: Likewise.
62695         * lib/atanl.c: Likewise.
62696         * lib/ceill.c: Likewise.
62697         * lib/cosl.c: Likewise.
62698         * lib/expl.c: Likewise.
62699         * lib/floorl.c: Likewise.
62700         * lib/frexpl.c: Likewise.
62701         * lib/ldexpl.c: Likewise.
62702         * lib/logl.c: Likewise.
62703         * lib/sincosl.c: Likewise.
62704         * lib/sinl.c: Likewise.
62705         * lib/sqrtl.c: Likewise.
62706         * lib/tanl.c: Likewise.
62707         * lib/trigl.c: Likewise.
62708         * m4/math_h.m4: New file.
62709         * MODULES.html.sh (Mathematics): Add math.
62710
62711 2007-02-17  Bruno Haible  <bruno@clisp.org>
62712
62713         * modules/wctype-tests: New file.
62714         * tests/test-wctype.c: New file.
62715
62716         * modules/wchar-tests: New file.
62717         * tests/test-wchar.c: New file.
62718
62719         * modules/unistd-tests: New file.
62720         * tests/test-unistd.c: New file.
62721
62722         * modules/time-tests: New file.
62723         * tests/test-time.c: New file.
62724
62725         * modules/sysexits-tests: New file.
62726         * tests/test-sysexits.c: New file.
62727
62728         * modules/sys_time-tests: New file.
62729         * tests/test-sys_time.c: New file.
62730
62731         * modules/sys_stat-tests: New file.
62732         * tests/test-sys_stat.c: New file.
62733
62734         * modules/sys_socket-tests: New file.
62735         * tests/test-sys_socket.c: New file.
62736
62737         * modules/sys_select-tests: New file.
62738         * tests/test-sys_select.c: New file.
62739
62740         * modules/string-tests: New file.
62741         * tests/test-string.c: New file.
62742
62743         * modules/stdbool-tests: New file.
62744         * tests/test-stdbool.c: New file.
62745
62746         * modules/netinet_in-tests: New file.
62747         * tests/test-netinet_in.c: New file.
62748
62749         * modules/inttypes-tests: New file.
62750         * tests/test-inttypes.c: New file.
62751
62752         * modules/fcntl-tests: New file.
62753         * tests/test-fcntl.c: New file.
62754
62755         * modules/byteswap-tests: New file.
62756         * tests/test-byteswap.c: New file.
62757
62758         * modules/arpa_inet-tests: New file.
62759         * tests/test-arpa_inet.c: New file.
62760
62761 2007-02-17  Bruno Haible  <bruno@clisp.org>
62762
62763         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62764         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62765         if the corresponding module is not enabled. Emit link warnings if
62766         the function is used nevertheless.
62767         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62768         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62769         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62770         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62771         * modules/inttypes (Depends-on): Add link-warning.
62772         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62773         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62774         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62775         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62776         * modules/imaxdiv (configure.ac): Likewise.
62777         * modules/strtoimax (configure.ac): Likewise.
62778         * modules/strtoumax (configure.ac): Likewise.
62779
62780 2007-02-17  Bruno Haible  <bruno@clisp.org>
62781
62782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62783         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62784         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62785         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62786
62787 2007-02-17  Bruno Haible  <bruno@clisp.org>
62788
62789         * modules/link-warning: New file.
62790         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62791         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62792         * modules/string (Depends-on): Add link-warning.
62793         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62794         string.h.
62795         * MODULES.html.sh (Support for building libraries and executables): Add
62796         link-warning.
62797
62798 2007-02-17  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62801         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62802         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62803         long lines.
62804
62805 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62806             Bruno Haible  <bruno@clisp.org>
62807
62808         * modules/tmpfile: New file.
62809         * lib/tmpfile.c: New file.
62810         * m4/tmpfile.m4: New file.
62811         * MODULES.html.sh (func_all_modules): New section "Input/output".
62812
62813 2007-02-15  Bruno Haible  <bruno@clisp.org>
62814
62815         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62816         (supports_delete_on_close): New function.
62817         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62818
62819 2007-02-14  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/mbspcasecmp-tests: New file.
62822         * tests/test-mbspcasecmp.sh: New file.
62823         * tests/test-mbspcasecmp.c: New file.
62824
62825         New module mbspcasecmp.
62826         * modules/mbspcasecmp: New file.
62827         * lib/mbspcasecmp.c: New file.
62828         * lib/string_.h (strncasecmp): Change warning message.
62829         (mbspcasecmp): New declaration.
62830         * m4/mbspcasecmp.m4: New file.
62831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62832         GNULIB_MBSPCASECMP.
62833         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62834         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62835
62836 2007-02-14  Bruno Haible  <bruno@clisp.org>
62837
62838         * modules/mbsncasecmp-tests: New file.
62839         * tests/test-mbsncasecmp.sh: New file.
62840         * tests/test-mbsncasecmp.c: New file.
62841
62842         New module mbsncasecmp.
62843         * modules/mbsncasecmp: New file.
62844         * lib/mbsncasecmp.c: New file.
62845         * lib/string_.h (mbsncasecmp): New declaration.
62846         * m4/mbsncasecmp.m4: New file.
62847         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62848         GNULIB_MBSNCASECMP.
62849         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62850         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62851
62852 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62853
62854         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62855         Verify that it doesn't overlap with our flags.
62856         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62857         do not have the desired effect in multibyte locales; instead, use
62858         mbscasecmp.
62859         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62860         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62861         we don't require GNU fnmatch ourselves (if our users require it, they
62862         should do so explicitly).
62863
62864         Fix regex code so it doesn't rely on strcasecmp.
62865         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62866         Otherwise, include gnulib's langinfo.h.
62867         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62868         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62869         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62870         * modules/regex (FILES): Remove m4/codeset.m4.
62871         (Depends-on): Add localcharset.  Remove strcase.
62872
62873 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62874
62875         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62876         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62877
62878 2007-02-13  Bruno Haible  <bruno@clisp.org>
62879
62880         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62881         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62882
62883 2007-02-12  Bruno Haible  <bruno@clisp.org>
62884
62885         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62886         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62887         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62888         time warning rather than a link error.
62889
62890 2007-02-12  Bruno Haible  <bruno@clisp.org>
62891
62892         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62895
62896 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62897
62898         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62899         args, not 2.
62900
62901 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62902
62903         New module 'time', so that apps can include <time.h> as per
62904         POSIX and GNU instead of separate include files like time_r.h
62905         and timegm.h.  This implementation tries out a simpler approach
62906         for replacing decls in standard include files (as compared to
62907         the string module), somewhat as an experiment.
62908
62909         * config/srclist.txt: Comment out mktime.c for now.
62910         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62911         since it doesn't apply any more.  Use generic wording instead.
62912         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62913         'time'.
62914         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62915         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62916         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62917         Don't include <sys/types.h>; no longer needed since we assume C89.
62918         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62919         * lib/strftime.c: Likewise.
62920         * lib/time_r.c: Likewise.
62921         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62922         * lib/nanosleep.c: Include <time.h> first, to check interface.
62923         * lib/strptime.c: Likewise.
62924         * lib/time_r.c: Likewise.
62925         * lib/timegm.c: Likewise.
62926         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62927         needed.
62928         * lib/timegm.c: Don't include timegm.h; no longer needed.
62929         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62930         time.h now handles any problems in that area.
62931         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62932         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62933         that time.h defines struct timespec.
62934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62935         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62936         handles that.
62937         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62938         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62939         needed.  Set REPLACE_LOCALTIME.
62940         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62941         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62942         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62943         nanosleep; time_h.m4 now does that.  Don't require
62944         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62945         module handles this now.
62946         * modules/getdate (Depends-on): Remove timespec.  Add time.
62947         * modules/nanosleep (Depends-on): Likewise.
62948         * modules/stat-time (Depends-on): Likewise.
62949         * modules/nanosleep (Include): Include time.h, not timespec.h.
62950         * modules/strptime (Files): Remove lib/strptime.h.
62951         (Depends-on): Add extensions, time.
62952         (Include): Include time.h, not strptime.h.
62953         * modules/time_r (Files): Remove lib/time_r.h.
62954         (Depends-on): Add time.
62955         (Include): Include time.h, not time_r.h.
62956         * modules/timegm: Likewise.
62957         * modules/timespec (Description): Now does timespec-related decls
62958         of our own, instead of struct timespec itself.
62959         (Depends-on): Add time; remove extensions.
62960         (Maintainer): Add self.
62961         * modules/utimecmp (Depends-on): Add time; remove timespec.
62962         * modules/utimens (Depends-on): Likewise.
62963         * modules/xnanosleep (Depends-on): Likewise.
62964
62965 2007-02-11  Bruno Haible  <bruno@clisp.org>
62966
62967         * lib/c-strstr.c: Include allocsa.h.
62968         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62969         * lib/c-strcasestr.c: Include allocsa.h.
62970         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62971         * lib/strcasestr.c: Include allocsa.h.
62972         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62973         * lib/mbsstr.c: Include allocsa.h.
62974         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62975         allocsa/freesa instead of malloc/free.
62976         * lib/mbscasestr.c: Include allocsa.h.
62977         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62978         allocsa/freesa instead of malloc/free.
62979         * modules/c-strstr (Depends-on): Add allocsa.
62980         * modules/c-strcasestr (Depends-on): Likewise.
62981         * modules/strcasestr (Depends-on): Likewise.
62982         * modules/mbsstr (Depends-on): Likewise.
62983         * modules/mbscasestr (Depends-on): Likewise.
62984
62985 2007-02-11  Bruno Haible  <bruno@clisp.org>
62986
62987         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62988
62989         * modules/mbsspn-tests: New file.
62990         * tests/test-mbsspn.sh: New file.
62991         * tests/test-mbsspn.c: New file.
62992
62993 2007-02-11  Bruno Haible  <bruno@clisp.org>
62994
62995         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62996
62997         * modules/mbspbrk-tests: New file.
62998         * tests/test-mbspbrk.sh: New file.
62999         * tests/test-mbspbrk.c: New file.
63000
63001 2007-02-11  Bruno Haible  <bruno@clisp.org>
63002
63003         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63004         unneeded cast.
63005
63006         * modules/mbscspn-tests: New file.
63007         * tests/test-mbscspn.sh: New file.
63008         * tests/test-mbscspn.c: New file.
63009
63010 2007-02-11  Bruno Haible  <bruno@clisp.org>
63011
63012         * modules/mbscasecmp-tests: New file.
63013         * tests/test-mbscasecmp.sh: New file.
63014         * tests/test-mbscasecmp.c: New file.
63015
63016 2007-02-11  Bruno Haible  <bruno@clisp.org>
63017
63018         Ensure O(n) worst-case complexity of mbscasestr.
63019         * lib/mbscasestr.c: Include stdbool.h.
63020         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63021         functions.
63022         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63023         the bookkeeping indicates that it's worth it.
63024         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63025
63026         * modules/mbscasestr-tests: New file.
63027         * tests/test-mbscasestr1.c: New file.
63028         * tests/test-mbscasestr2.sh: New file.
63029         * tests/test-mbscasestr2.c: New file.
63030         * tests/test-mbscasestr3.sh: New file.
63031         * tests/test-mbscasestr3.c: New file.
63032         * tests/test-mbscasestr4.sh: New file.
63033         * tests/test-mbscasestr4.c: New file.
63034         * m4/locale-tr.m4: New file.
63035
63036 2007-02-11  Bruno Haible  <bruno@clisp.org>
63037
63038         Ensure O(n) worst-case complexity of mbsstr.
63039         * lib/mbsstr.c: Include stdbool.h.
63040         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63041         functions.
63042         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63043         bookkeeping indicates that it's worth it.
63044         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63045
63046         * modules/mbsstr-tests: New file.
63047         * tests/test-mbsstr1.c: New file.
63048         * tests/test-mbsstr2.sh: New file.
63049         * tests/test-mbsstr2.c: New file.
63050         * tests/test-mbsstr3.sh: New file.
63051         * tests/test-mbsstr3.c: New file.
63052         * m4/locale-fr.m4: New file.
63053
63054 2007-02-11  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/mbsrchr.c (mbsrchr): Fix bug.
63057
63058         * modules/mbsrchr-tests: New file.
63059         * tests/test-mbsrchr.sh: New file.
63060         * tests/test-mbsrchr.c: New file.
63061
63062 2007-02-11  Bruno Haible  <bruno@clisp.org>
63063
63064         * lib/mbschr.c (mbschr): Fix bug.
63065
63066         * modules/mbschr-tests: New file.
63067         * tests/test-mbschr.sh: New file.
63068         * tests/test-mbschr.c: New file.
63069         * m4/locale-zh.m4: New file.
63070
63071 2007-02-11  Bruno Haible  <bruno@clisp.org>
63072
63073         Support for copying multibyte string iterators.
63074         * lib/mbiter.h: Include <string.h>.
63075         (mbiter_multi_copy): New function.
63076         (mbi_copy): New macro.
63077         * lib/mbuiter.h: Include <string.h>.
63078         (mbuiter_multi_copy): New function.
63079         (mbui_copy): New macro.
63080
63081 2007-02-11  Bruno Haible  <bruno@clisp.org>
63082
63083         New module mbslen.
63084         * modules/mbslen: New file.
63085         * lib/mbslen.c: New file.
63086         * lib/string_.h (mbslen): New declaration.
63087         * m4/mbslen.m4: New file.
63088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63089         GNULIB_MBSLEN.
63090         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63091         * MODULES.html.sh (Internationalization functions): Add mbslen.
63092
63093 2007-02-11  Bruno Haible  <bruno@clisp.org>
63094
63095         Ensure O(n) worst-case complexity of strcasestr substitute.
63096         * lib/strcasestr.c: Include stdbool.h.
63097         (knuth_morris_pratt): New function.
63098         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63099         bookkeeping indicates that it's worth it.
63100         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63101
63102         * modules/strcasestr-tests: New file.
63103         * tests/test-strcasestr.c: New file.
63104
63105 2007-02-11  Bruno Haible  <bruno@clisp.org>
63106
63107         Ensure O(n) worst-case complexity of c_strcasestr.
63108         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63109         (knuth_morris_pratt): New function.
63110         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63111         the bookkeeping indicates that it's worth it.
63112         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63113
63114         * modules/c-strcasestr-tests: New file.
63115         * tests/test-c-strcasestr.c: New file.
63116
63117 2007-02-11  Bruno Haible  <bruno@clisp.org>
63118
63119         Ensure O(n) worst-case complexity of c_strstr.
63120         * lib/c-strstr.c: Include stdbool.h, string.h.
63121         (knuth_morris_pratt): New function.
63122         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63123         bookkeeping indicates that it's worth it.
63124         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63125
63126         * lib/c-strstr.c: Complete rewrite for maintainability.
63127
63128         * modules/c-strstr-tests: New file.
63129         * tests/test-c-strstr.c: New file.
63130
63131 2007-02-11  Bruno Haible  <bruno@clisp.org>
63132
63133         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63134         5.2.1 and earlier, whereby \055 was treated just like the range
63135         delimiter '-'.
63136         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63137
63138 2007-02-08  Bruno Haible  <bruno@clisp.org>
63139
63140         * modules/regex (Depends-on): Add stdbool.
63141         Reported by Dalibor Topic <robilad@kaffe.org>.
63142
63143 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63144
63145         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63146         Prefer returning from main to exiting from it.
63147         Remove unnecessary parens after sizeof.
63148
63149 2007-02-05  Bruno Haible  <bruno@clisp.org>
63150
63151         New module mbssep.
63152         * modules/mbssep: New file.
63153         * lib/mbssep.c: New file.
63154         * lib/string_.h (strsep): Add a conditional link warning.
63155         (mbssep): New declaration.
63156         * m4/mbssep.m4: New file.
63157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63158         GNULIB_MBSSEP.
63159         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63160         * MODULES.html.sh (Internationalization functions): Add mbssep.
63161
63162 2007-02-05  Bruno Haible  <bruno@clisp.org>
63163
63164         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63165         Optimize search in case of 1 delimiter.
63166
63167 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63168
63169         * lib/acl.h: Include sys/types.h before sys/acl.h.
63170
63171 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63172
63173         Merge upstream fix for glibc bugzilla #3957:
63174
63175         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63176
63177         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63178         bit for RE_HAT_LISTS_NOT_NEWLINE.
63179         (build_charclass_op): Remove bogus comment.
63180
63181 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63182
63183         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63184
63185 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63186
63187         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63188         * lib/memmem.c [!defined _LIBC]: Include config.h.
63189
63190 2007-02-04  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63193         warning message.
63194
63195 2007-02-04  Bruno Haible  <bruno@clisp.org>
63196
63197         New module mbstok_r.
63198         * modules/mbstok_r: New file.
63199         * lib/mbstok_r.c: New file.
63200         * lib/string_.h (strtok_r): Change argument names to match the
63201         comments. Add a conditional link warning.
63202         (mbstok_r): New declaration.
63203         * m4/mbstok_r.m4: New file.
63204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63205         GNULIB_MBSTOK_R.
63206         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63207         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63208
63209 2007-02-04  Bruno Haible  <bruno@clisp.org>
63210
63211         New module mbsspn.
63212         * modules/mbsspn: New file.
63213         * lib/mbsspn.c: New file.
63214         * lib/string_.h (strspn): Add a conditional link warning.
63215         (mbsspn): New declaration.
63216         * m4/mbsspn.m4: New file.
63217         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63218         GNULIB_MBSSPN.
63219         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63220         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63221
63222 2007-02-04  Bruno Haible  <bruno@clisp.org>
63223
63224         New module mbspbrk.
63225         * modules/mbspbrk: New file.
63226         * lib/mbspbrk.c: New file.
63227         * lib/string_.h (strpbrk): Add a conditional link warning.
63228         (mbspbrk): New declaration.
63229         * m4/mbspbrk.m4: New file.
63230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63231         GNULIB_MBSPBRK.
63232         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63233         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63234
63235 2007-02-04  Bruno Haible  <bruno@clisp.org>
63236
63237         New module mbscspn.
63238         * modules/mbscspn: New file.
63239         * lib/mbscspn.c: New file.
63240         * lib/string_.h (strcspn): Add a conditional link warning.
63241         (mbscspn): New declaration.
63242         * m4/mbscspn.m4: New file.
63243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63244         GNULIB_MBSCSPN.
63245         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63246         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63247
63248 2007-02-04  Bruno Haible  <bruno@clisp.org>
63249
63250         New module mbscasestr, reduced goal of strcasestr.
63251         * modules/mbscasestr: New file.
63252         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63253         (mbscasestr): Renamed from strcasestr.
63254         * lib/strcasestr.c: Don't include mbuiter.h.
63255         (strcasestr): Remove support for multibyte locales.
63256         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63257         Change the conditional link warning.
63258         (mbscasestr): New declaration.
63259         * m4/mbscasestr.m4: New file.
63260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63261         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63262         REPLACE_STRCASESTR.
63263         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63265         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63266         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63267         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63268         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63269         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63270         (Depends-on): Remove mbuiter.
63271         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63272
63273 2007-02-04  Bruno Haible  <bruno@clisp.org>
63274
63275         Simplify handling of strncasecmp.
63276         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63277         the conditional link warning.
63278         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63279         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63280         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63281         * modules/strcase (configure.ac): Don't invoke
63282         gl_STRING_MODULE_INDICATOR.
63283         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63284
63285 2007-02-04  Bruno Haible  <bruno@clisp.org>
63286
63287         New module mbscasecmp, reduced goal of strcasecmp.
63288         * modules/mbscasecmp: New file.
63289         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63290         (mbscasecmp): Renamed from strcasecmp.
63291         * lib/strcasecmp.c: Don't include mbuiter.h.
63292         (strcasecmp): Remove support for multibyte locales.
63293         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63294         Change the conditional link warning.
63295         (mbscasecmp): New declaration.
63296         * m4/mbscasecmp.m4: New file.
63297         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63298         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63299         REPLACE_STRCASECMP.
63300         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63302         GNULIB_MBSCASECMP.
63303         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63304         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63305         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63306         (Depends-on): Remove mbuiter.
63307         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63308
63309 2007-02-04  Bruno Haible  <bruno@clisp.org>
63310
63311         New module mbsstr. Remove module strstr.
63312         * modules/mbsstr: New file.
63313         * modules/strstr: Remove file.
63314         * lib/mbsstr.c: Renamed from lib/strstr.c.
63315         (mbsstr): Renamed from strstr.
63316         * lib/string_.h (strstr): Remove declaration. Change the conditional
63317         link warning.
63318         (mbsstr): New declaration.
63319         * m4/mbsstr.m4: New file.
63320         * m4/strstr.m4: Remove file.
63321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63322         REPLACE_STRSTR.
63323         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63324         Don't initialize GNULIB_STRSTR.
63325         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63326         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63327         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63328         (Support for systems lacking ANSI C 89): Remove strstr.
63329
63330 2007-02-04  Bruno Haible  <bruno@clisp.org>
63331
63332         New module mbsrchr.
63333         * modules/mbsrchr: New file.
63334         * lib/mbsrchr.c: New file.
63335         * lib/string_.h (strrchr): Add a conditional link warning.
63336         (mbsrchr): New declaration.
63337         * m4/mbsrchr.m4: New file.
63338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63339         GNULIB_MBSRCHR.
63340         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63341         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63342
63343 2007-02-04  Bruno Haible  <bruno@clisp.org>
63344
63345         New module mbschr.
63346         * modules/mbschr: New file.
63347         * lib/mbschr.c: New file.
63348         * lib/string_.h (strchr): Add a conditional link warning.
63349         (mbschr): New declaration.
63350         * m4/mbschr.m4: New file.
63351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63352         GNULIB_MBSCHR.
63353         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63354         * MODULES.html.sh (Internationalization functions): Add mbschr.
63355
63356 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63357
63358         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63359
63360         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63361
63362 2007-02-04  Bruno Haible  <bruno@clisp.org>
63363
63364         New module description section 'configure.ac-early'.
63365         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63366         (func_get_autoconf_early_snippet): New function.
63367         (func_import, func_create_testdir): Use it. Remove special cases for
63368         modules 'extensions' and 'lock'.
63369         * modules/extensions (configure.ac-early): Require
63370         gl_USE_SYSTEM_EXTENSIONS.
63371         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63372
63373 2007-02-04  Bruno Haible  <bruno@clisp.org>
63374
63375         Make use of gcj-4.3's -fsource and -ftarget option.
63376         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63377         and if so try the options -fsource and -ftarget.
63378         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63379         source_version, ftarget_option, target_version arguments.
63380         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63381         (is_envjavac_oldgcj_14_14_usable): Renamed from
63382         is_envjavac_gcj_14_14_usable.
63383         (is_envjavac_oldgcj_14_13_usable): Renamed from
63384         is_envjavac_gcj_14_13_usable.
63385         (is_gcj_present): Update.
63386         (is_gcj_43, is_gcj43_usable): New functions.
63387         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63388         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63389         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63390         try the options -fsource and -ftarget.
63391
63392 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63393
63394         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63395         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63396         larger value.
63397
63398 2007-02-03  Jim Meyering  <jim@meyering.net>
63399
63400         Give tools a better chance to allocate space for very large buffers.
63401         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63402
63403         Make pwd and readlink work also when run with an unreadable parent dir
63404         on systems with openat support.
63405         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63406         provided getcwd function, even when we have openat support.
63407         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63408
63409 2007-02-02  Bruno Haible  <bruno@clisp.org>
63410
63411         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63412         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63413         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63414         portability problems if one of these functions is only used on specific
63415         platforms.
63416         Reported by Paul Eggert.
63417
63418 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63421         is causing more trouble than it's curing.
63422         * lib/regex_internal.h (__mempcpy): Remove.
63423         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63424         (and make the code a tad smaller to boot).
63425         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63426
63427 2007-02-02  Jim Meyering  <jim@meyering.net>
63428
63429         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63430         section, not in the Makefile.am: one.
63431
63432 2007-02-02  Eric Blake  <ebb9@byu.net>
63433
63434         * lib/strchrnul.c: Always include config.h first.
63435
63436         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63437         gnulib strstr is not necessary here.
63438
63439 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63440
63441         * m4/socklen.m4: Fix typo.
63442
63443 2007-02-02  Eric Blake  <ebb9@byu.net>
63444
63445         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63446         * modules/netinet_in (Makefile.am): Likewise.
63447
63448 2007-02-01  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/string_.h (GL_LINK_WARNING): New macro.
63451         (strcasecmp, strstr, strcasestr): If provided by the system,
63452         conditionally define as a macro that leads to a warning instead of to
63453         an error.
63454         (strncasecmp): Conditionally define as a macro that leads to a warning.
63455
63456 2007-02-01  Karl Berry  <karl@gnu.org>
63457
63458         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63459
63460 2007-02-01  Bruno Haible  <bruno@clisp.org>
63461
63462         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63463         renamings.
63464
63465 2007-02-01  Eric Blake  <ebb9@byu.net>
63466
63467         * modules/regex (Depends-on): Revert dependence on mempcpy.
63468         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63469         module's definition of mempcpy.
63470         Reported by Paul Eggert.
63471
63472 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63473
63474         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63475         the symbol XYZ before redefining it.  This fixes a problem with
63476         programs that don't use XYZ, when compiled on systems that define
63477         XYZ to something else.
63478
63479 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63480
63481         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63482         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63483         writeable to group or other and (2) is intended to have a special
63484         mode bit that is set or cleared.  In such a case, the directory
63485         should be neither group- nor other-writeable until the special
63486         mode bits are right.
63487
63488 2007-01-31  Eric Blake  <ebb9@byu.net>
63489
63490         * modules/mountlist (Depends-on): Add strstr.
63491
63492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63493         bug.
63494         * modules/string (Makefile.am): Remove redundant replacement.
63495         * modules/regex (Depends-on): Add mempcpy.
63496
63497 2007-01-31  Bruno Haible  <bruno@clisp.org>
63498
63499         New module description field 'Link'.
63500         * gnulib-tool (func_usage): Document --extract-link-directive.
63501         (sed_extract_prog): Recognize 'Link' directive.
63502         (func_get_link_directive): New function.
63503         (func_import): Show summary of link directives.
63504         Handle --extract-link-directive option.
63505         * modules/acl (Link): New section.
63506         * modules/clock-time (Link): New section.
63507         * modules/euidaccess (Link): New section.
63508         * modules/gettext (Link): New section.
63509         * modules/iconv (Link): New section.
63510         * modules/lock (Link): New section.
63511         * modules/nanosleep (Link): New section.
63512         * modules/readline (Link): New section.
63513
63514 2007-01-27  Bruno Haible  <bruno@clisp.org>
63515
63516         Enforce the use of gnulib modules for unportable <string.h> functions.
63517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63518         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63519         (gl_HEADER_STRING_H_BODY): Require it.
63520         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63521         the symbol XYZ to one that gives a link error.
63522         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63523         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63524         * modules/mempcpy (configure.ac): Likewise.
63525         * modules/memrchr (configure.ac): Likewise.
63526         * modules/stpcpy (configure.ac): Likewise.
63527         * modules/stpncpy (configure.ac): Likewise.
63528         * modules/strcase (configure.ac): Likewise.
63529         * modules/strcasestr (configure.ac): Likewise.
63530         * modules/strchrnul (configure.ac): Likewise.
63531         * modules/strdup (configure.ac): Likewise.
63532         * modules/strndup (configure.ac): Likewise.
63533         * modules/strnlen (configure.ac): Likewise.
63534         * modules/strpbrk (configure.ac): Likewise.
63535         * modules/strsep (configure.ac): Likewise.
63536         * modules/strstr (configure.ac): Likewise.
63537         * modules/strtok_r (configure.ac): Likewise.
63538
63539 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63540
63541         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63542
63543 2007-01-30  Jim Meyering  <jim@meyering.net>
63544
63545         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63546
63547 2007-01-29  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63550         * lib/execute.c: Likewise.
63551         * lib/pipe.c: Likewise.
63552         * lib/printf-args.h: Likewise.
63553         * lib/printf-args.c: Likewise.
63554         * lib/printf-parse.c: Likewise.
63555         * lib/vasnprintf.c: Likewise.
63556
63557 2007-01-29  Eric Blake  <ebb9@byu.net>
63558
63559         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63560         declaration.
63561
63562 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63563
63564         * lib/strptime.h (strptime): Use 'restrict' for args where
63565         POSIX requires this.
63566         * lib/strptime.c (strptime): Likewise.
63567         Change license notice from LGPL to GPL, since gnulib-tool will
63568         change this as needed.
63569         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63570         defined.
63571         Include "strptime.h" first, to check interface.
63572         Do not #undef _LIBC and _NL_CURRENT.
63573         Do not include <stdlib.h>; no longer needed.
63574         Include "time_r.h" and declare ptime_locale_status
63575         only if _LIBC is not defined.
63576         (__P): Remove unused macro.
63577         (match_string): Bring back glibc version, but use it only if _LIBC
63578         is defined.
63579         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63580         Remove unnecessary assertion and abort() call.
63581         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63582         * m4/strptime.m4: Fix serial number comment.
63583         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63584         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63585         (Depends-on): Add time_r.
63586
63587 2007-01-29  Bruno Haible  <bruno@clisp.org>
63588
63589         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63590         strptime.
63591         * modules/strptime (Depends-on): Add stdbool.
63592         * lib/strptime.h: Include <time.h> always. Add comments.
63593
63594 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63595
63596         * modules/strptime: New file.
63597         * lib/strptime.h: New file.
63598         * lib/strptime.c: New file.
63599         * m4/strptime.m4: New file.
63600
63601 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63602
63603         * MODULES.html.sh: New module mpsort.
63604         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63605
63606         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63607         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63609         All uses changed.
63610         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63611         All uses changed.
63612         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63613         to _Restrict_.
63614         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63615         the parameter matches the prototype.
63616
63617 2007-01-28  Jim Meyering  <jim@meyering.net>
63618
63619         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63620         sys/time.h here, reverting that part of the previous patch:
63621         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63622
63623 2007-01-28  Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63626         value of $(SYS_TIME_H).
63627         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63628         remove it conditionally, too. [added by Jim Meyering]
63629         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63631         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63632         GETTIMEOFDAY_REPLACEMENT to 1.
63633
63634 2007-01-28  Bruno Haible  <bruno@clisp.org>
63635
63636         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63637         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63639         Set UNISTD_H instead of UNISTD_H2.
63640         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63641
63642 2007-01-28  Bruno Haible  <bruno@clisp.org>
63643
63644         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63645         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63646
63647 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63648
63649         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63650         (func_create_testdir): Ensure C locale for `grep' and `tr'
63651         character ranges.
63652         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63653         ACLOCAL_AMFLAGS parsing state machine.
63654
63655 2007-01-27  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/unistr/base: Update.
63658
63659 2007-01-27  Bruno Haible  <bruno@clisp.org>
63660
63661         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63662         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63663         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63664         modules/unistr/u32-mbtouc.
63665         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63666         * lib/unistr.h: Update.
63667         * lib/linebreak.c: Update.
63668         * modules/unistr/u32-mbtouc: Renamed from
63669         modules/unistr/u32-mbtouc-safe.
63670         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63671         * lib/unistr.h: Update.
63672         * lib/unistr/u32-to-u8.c: Update.
63673         * lib/unistr/u32-to-u16.c: Update.
63674
63675 2007-01-27  Bruno Haible  <bruno@clisp.org>
63676
63677         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63678         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63679         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63680         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63681         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63682         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63683         modules/unistr/u16-mbtouc.
63684         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63685         * lib/unistr.h: Update.
63686         * lib/linebreak.c: Update.
63687         * modules/linebreak: Update.
63688         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63689         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63690         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63691         * modules/unistr/u16-mbtouc: Renamed from
63692         modules/unistr/u16-mbtouc-safe.
63693         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63694         * lib/unistr.h: Update.
63695         * lib/unistr/u16-to-u8.c: Update.
63696         * modules/unistr/u16-to-u8: Update.
63697         * lib/unistr/u16-to-u32.c: Update.
63698         * modules/unistr/u16-to-u32: Update.
63699
63700 2007-01-27  Bruno Haible  <bruno@clisp.org>
63701
63702         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63703         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63704         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63705         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63706         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63707         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63708         modules/unistr/u8-mbtouc.
63709         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63710         * lib/unistr.h: Update.
63711         * lib/striconveh.c: Update.
63712         * modules/striconveh: Update.
63713         * lib/linebreak.c: Update.
63714         * modules/linebreak: Update.
63715         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63716         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63717         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63718         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63719         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63720         * lib/unistr.h: Update.
63721         * lib/striconveh.c: Update.
63722         * modules/striconveh: Update.
63723         * lib/unistr/u8-to-u16.c: Update.
63724         * modules/unistr/u8-to-u16: Update.
63725         * lib/unistr/u8-to-u32.c: Update.
63726         * modules/unistr/u8-to-u32: Update.
63727
63728 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63729
63730         Sync from Libtool.
63731         * lib/argz.c: Do not include strings.h nor memory.h, include
63732         string.h unconditionally.  Patch by Simon Josefsson.
63733
63734 2007-01-27  Bruno Haible  <bruno@clisp.org>
63735
63736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63737         from gl_HEADER_STRING_H_BODY.
63738         (gl_HEADER_STRING_H_BODY): Require it.
63739         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63740         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63741         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63742         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63744         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63746         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63747         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63748         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63749         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63750         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63751         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63752         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63753         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63754
63755 2007-01-27  Bruno Haible  <bruno@clisp.org>
63756
63757         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63758         check_PROGRAMS into noinst_PROGRAMS.
63759         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63760         check_PROGRAMS in this case.
63761         (func_import): Set for_test to false.
63762         (func_create_testdir): Set for_test to true.
63763
63764 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63765             Bruno Haible  <bruno@clisp.org>
63766
63767         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63768         (Depends-on): Add string.
63769         (Includes): Use <string.h> instead of strcasestr.h.
63770         * modules/string (Makefile.am): Also substitute the value of
63771         REPLACE_STRCASESTR.
63772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63773         assume strcasestr is declared in <string.h> not <strings.h>. Also
63774         set REPLACE_STRCASESTR.
63775         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63776         REPLACE_STRCASESTR.
63777         * lib/strcasestr.h: Remove file.
63778         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63779         * lib/string_.h (strcasestr): New declaration.
63780
63781 2007-01-27  Bruno Haible  <bruno@clisp.org>
63782
63783         * lib/string_.h: Use 'extern'.
63784
63785 2007-01-27  Jim Meyering  <jim@meyering.net>
63786
63787         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63788         of set-but-not-used local, "q".
63789
63790         * lib/mempcpy.c: Include <config.h> before <string.h>.
63791         This fixes a compilation error on HP-UX, due to the system's
63792         "restrict"-using mempcpy prototype.
63793
63794 2007-01-26  Bruno Haible  <bruno@clisp.org>
63795
63796         Small optimization.
63797         * lib/javacomp.c: Include c-strstr.h.
63798          (is_envjavac_gcj): Use c_strstr instead of strstr.
63799         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63800
63801 2007-01-26  Bruno Haible  <bruno@clisp.org>
63802
63803         * MODULES.html.sh (Unicode string functions): Add the new modules.
63804
63805         * modules/uniconv/u32-strconv-to-locale: New file.
63806         * lib/uniconv/u32-strconv-to-locale.c: New file.
63807
63808         * modules/uniconv/u16-strconv-to-locale: New file.
63809         * lib/uniconv/u16-strconv-to-locale.c: New file.
63810
63811         * modules/uniconv/u8-strconv-to-locale: New file.
63812         * lib/uniconv/u8-strconv-to-locale.c: New file.
63813
63814         * modules/uniconv/u32-strconv-from-locale: New file.
63815         * lib/uniconv/u32-strconv-from-locale.c: New file.
63816
63817         * modules/uniconv/u16-strconv-from-locale: New file.
63818         * lib/uniconv/u16-strconv-from-locale.c: New file.
63819
63820         * modules/uniconv/u8-strconv-from-locale: New file.
63821         * lib/uniconv/u8-strconv-from-locale.c: New file.
63822
63823         * modules/uniconv/u32-strconv-to-enc: New file.
63824         * lib/uniconv/u32-strconv-to-enc.c: New file.
63825         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63826         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63827
63828         * modules/uniconv/u16-strconv-to-enc: New file.
63829         * lib/uniconv/u16-strconv-to-enc.c: New file.
63830         * lib/uniconv/u-strconv-to-enc.h: New file.
63831         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63832         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63833
63834         * modules/uniconv/u8-strconv-to-enc: New file.
63835         * lib/uniconv/u8-strconv-to-enc.c: New file.
63836         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63837         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63838
63839         * modules/uniconv/u32-strconv-from-enc: New file.
63840         * lib/uniconv/u32-strconv-from-enc.c: New file.
63841         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63842         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63843
63844         * modules/uniconv/u16-strconv-from-enc: New file.
63845         * lib/uniconv/u16-strconv-from-enc.c: New file.
63846         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63847         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63848
63849         * modules/uniconv/u8-strconv-from-enc: New file.
63850         * lib/uniconv/u8-strconv-from-enc.c: New file.
63851         * lib/uniconv/u-strconv-from-enc.h: New file.
63852         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63853         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63854
63855         * modules/uniconv/u32-conv-from-enc: New file.
63856         * lib/uniconv/u32-conv-from-enc.c: New file.
63857         * modules/uniconv/u32-conv-from-enc-tests: New file.
63858         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63859
63860         * modules/uniconv/u16-conv-from-enc: New file.
63861         * lib/uniconv/u16-conv-from-enc.c: New file.
63862         * lib/uniconv/u-conv-from-enc.h: New file.
63863         * modules/uniconv/u16-conv-from-enc-tests: New file.
63864         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63865
63866         * modules/uniconv/u8-conv-from-enc: New file.
63867         * lib/uniconv/u8-conv-from-enc.c: New file.
63868         * modules/uniconv/u8-conv-from-enc-tests: New file.
63869         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63870
63871         * modules/uniconv/base: New file.
63872         * lib/uniconv.h: New file.
63873
63874 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * doc/gnulib-tool.texi (Initial import): Update to match current
63877         behavior with strdup module.
63878         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63879         * lib/memmem.h: Remove; all uses removed.  This is now done
63880         by <string.h>.
63881         * lib/mempcpy.h: Likewise.
63882         * lib/memrchr.h: Likewise.
63883         * lib/stpcpy.h: Likewise.
63884         * lib/stpncpy.h: Likewise.
63885         * lib/strcase.h: Likewise.
63886         * lib/strchrnul.h: Likewise.
63887         * lib/strdup.h: Likewise.
63888         * lib/strndup.h: Likewise.
63889         * lib/strnlen.h: Likewise.
63890         * lib/strpbrk.h: Likewise.
63891         * lib/strsep.h: Likewise.
63892         * lib/strstr.h: Likewise.
63893         * lib/strtok_r.h: Likewise.
63894         * lib/string_.h: New file.
63895         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63896         Rely on <string.h> instead.
63897         * lib/canon-host.c: Likewise.
63898         * lib/chdir-long.c: Likewise.
63899         * lib/concatpath.c: Likewise.
63900         * lib/exclude.c: Likewise.
63901         * lib/fchdir.c: Likewise.
63902         * lib/getaddrinfo.c: Likewise.
63903         * lib/getcwd.c: Likewise.
63904         * lib/getsubopt.c: Likewise.
63905         * lib/glob.c: Likewise.
63906         * lib/hard-locale.c: Likewise.
63907         * lib/iconvme.c: Likewise.
63908         * lib/javacomp.c: Likewise.
63909         * lib/mempcpy.c: Likewise.
63910         * lib/memrchr.c: Likewise.
63911         * lib/regex_internal.h: Likewise.
63912         * lib/stpncpy.c: Likewise.
63913         * lib/strcasecmp.c: Likewise.
63914         * lib/strchrnul.c: Likewise.
63915         * lib/strdup.c: Likewise.
63916         * lib/striconv.c: Likewise.
63917         * lib/striconveh.c: Likewise.
63918         * lib/striconveha.c: Likewise.
63919         * lib/strncasecmp.c: Likewise.
63920         * lib/strndup.c: Likewise.
63921         * lib/strnlen.c: Likewise.
63922         * lib/strsep.c: Likewise.
63923         * lib/strstr.c: Likewise.
63924         * lib/strtok_r.c: Likewise.
63925         * lib/userspec.c: Likewise.
63926         * lib/w32spawn.h: Likewise.
63927         * lib/xstrndup.c: Likewise.
63928         * lib/mountlist.c (strstr): Remove decl.
63929         * m4/string_h.m4: New file.
63930         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63931         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63932         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63933         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63934         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63935         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63936         Set REPLACE_STRCASECMP if necessary.
63937         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63938         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63939         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63940         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63941         HAVE_DECL_STRDUP if necessary.
63942         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63943         since gl_FUNC_STRNDUP does that now.
63944         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63945         Check for decl here...
63946         (gl_PREREQ_STRNLEN): ... not here.
63947         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63948         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63949         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63950         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63951         necessary.
63952         * modules/string: New file.
63953         * modules/memmem (Files): Remove special-purpose include file.
63954         (Depends-on): Add string.
63955         (Include): Include <string.h>, not the removed file.
63956         * modules/mempcpy: Likewise.
63957         * modules/memrchr: Likewise.
63958         * modules/stpcpy: Likewise.
63959         * modules/stpncpy: Likewise.
63960         * modules/strcase: Likewise.
63961         * modules/strchrnul: Likewise.
63962         * modules/strdup: Likewise.
63963         * modules/strndup: Likewise.
63964         * modules/strnlen: Likewise.
63965         * modules/strpbrk: Likewise.
63966         * modules/strsep: Likewise.
63967         * modules/strstr: Likewise.
63968         * modules/strtok_r: Likewise.
63969         * tests/test-dirname.c: Don't include "strdup.h", since
63970         <string.h> now suffices.
63971         * tests/test-memmem.c: Don't include "memmem.h", since
63972         <string.h> now suffices.
63973
63974 2007-01-25  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63977         *resultp is 0.
63978
63979         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63980         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63981         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63982         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63983
63984         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63985         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63986         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63987         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63988         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63989         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63990
63991 2007-01-24  Bruno Haible  <bruno@clisp.org>
63992
63993         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63994         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63995         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63996         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63997         gl_FUNC_FTS_CORE.
63998         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63999         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64000         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64001         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64002         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64003         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64004         gl_FUNC_FCHOWNAT.
64005         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64006         gl_FUNC_STRFTIME.
64007         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64008         Reported by Ralf Wildenhues.
64009
64010 2007-01-24  Bruno Haible  <bruno@clisp.org>
64011
64012         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64013         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64014         gl_GETADDRINFO.
64015         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64016         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64017         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64018
64019 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64022         Don't use 'exit'; just return from 'main'.
64023         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64024
64025         * lib/fnmatch_.h: Readjust white space and comments to match
64026         glibc, to avoid spurious diffs.
64027
64028 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64031         2004-12-01 change by Jakub Jelinek, since this code won't compile
64032         if !LIBC.  Problem reported by Bob Proulx.
64033
64034 2007-01-23  Bruno Haible  <bruno@clisp.org>
64035
64036         * lib/striconveh.c: Include c-strcaseeq.h.
64037         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64038         * modules/striconveh (Depends-on): Add c-strcaseeq.
64039
64040 2007-01-23  Bruno Haible  <bruno@clisp.org>
64041
64042         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64043
64044         * modules/c-strcaseeq: New file.
64045         * lib/c-strcaseeq.h: New file.
64046
64047         * modules/streq: New file.
64048         * lib/streq.h: New file.
64049
64050 2007-01-23  Bruno Haible  <bruno@clisp.org>
64051
64052         * modules/striconveha-tests: New file.
64053         * tests/test-striconveha.c: New file.
64054
64055         * lib/striconveha.h: Include <stdbool.h>.
64056         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64057         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64058         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64059         (mem_iconveha): New function.
64060         (str_iconveha_notranslit): Renamed from str_iconveha.
64061         (str_iconveha): New function.
64062         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64063         c-strcase.
64064
64065 2007-01-23  Bruno Haible  <bruno@clisp.org>
64066
64067         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64068         encodings without forgiving before trying any encoding with handler.
64069         (str_iconveha): Try all encodings without forgiving before trying any
64070         encoding with handler.
64071
64072 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64073
64074         Import the following changes from libc.
64075
64076         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64077
64078         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64079
64080         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64081
64082         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64083         normal_bracket label.
64084
64085         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64086
64087         [BZ #361]
64088         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64089         to normal_bracket after fetching the next character.
64090
64091 2007-01-22  Bruno Haible  <bruno@clisp.org>
64092
64093         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64094         argument.
64095         * lib/striconveh.c (iconv_carefully_1): New function.
64096         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64097         argument.
64098         (str_cd_iconveh): Update.
64099         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64100         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64101         * tests/test-striconveh.c (MAGIC): New macro.
64102         (new_offsets): New function.
64103         (main): Test call with and without offsets.
64104
64105 2007-01-22  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64108         * modules/sys_select (Makefile.am): Likewise.
64109         * modules/sys_socket (Makefile.am): Likewise.
64110         * modules/sys_time (Makefile.am): Likewise.
64111
64112 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64113
64114         * modules/gettimeofday (License): Change from GPL to LGPL, since
64115         gettimeofday is a library function.
64116
64117 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64118
64119         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64120
64121 2007-01-21  Bruno Haible  <bruno@clisp.org>
64122
64123         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64124
64125 2007-01-21  Bruno Haible  <bruno@clisp.org>
64126
64127         * modules/striconveha: New file.
64128         * lib/striconveha.h: New file.
64129         * lib/striconveha.c: New file.
64130         * MODULES.html.sh (Internationalization functions): Add striconveha.
64131         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64132         string.
64133         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64134
64135 2007-01-21  Bruno Haible  <bruno@clisp.org>
64136
64137         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64138         * lib/striconveh.c (str_iconveh): Likewise.
64139
64140 2007-01-21  Bruno Haible  <bruno@clisp.org>
64141
64142         * lib/striconveh.h (mem_iconveh): New declaration.
64143         * lib/striconveh.c (mem_iconveh): New function.
64144         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64145
64146 2007-01-21  Bruno Haible  <bruno@clisp.org>
64147
64148         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64149
64150         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64151         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64152         original result buffer.
64153         (str_cd_iconveh): Update.
64154         * tests/test-striconveh.c (main): Update.
64155
64156         * lib/striconv.h (mem_cd_iconv): Change specification.
64157         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64158         result buffer.
64159         (str_cd_iconv): Update.
64160         * tests/test-striconv.c (main): Update.
64161
64162 2007-01-21  Bruno Haible  <bruno@clisp.org>
64163
64164         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64165
64166 2007-01-20  Jim Meyering  <jim@meyering.net>
64167
64168         * lib/userspec.c (parse_with_separator): If a user or group string
64169         starts with "+", skip the corresponding name-to-ID look-up, since
64170         such a look-up must fail: user and group names may not include "+".
64171
64172 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64175         since we now assume the sys_time module.
64176         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64177         check for sys/time.h; no longer needed.
64178         * modules/poll (Depends-on): Depend on sys_time.
64179
64180 2007-01-18  Bruno Haible  <bruno@clisp.org>
64181
64182         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64183         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64184
64185         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64186         gettimeofday.
64187
64188         * tests/test-gettimeofday.c: Include <time.h>.
64189         (dummy): Remove variable.
64190
64191         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64192         gl_HEADER_SYS_TIME_H.
64193         (gl_HEADER_SYS_TIME_H): New macro.
64194
64195         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64196         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64198         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64199         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64201         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64202         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64203         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64204         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64205         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64206
64207         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64208         last change; it caused a compilation error when cross-compiling to
64209         Cygwin.
64210
64211 2007-01-18  Jim Meyering  <jim@meyering.net>
64212
64213         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64214         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64215         than the race-prone "test -d sys || mkdir sys".
64216         (configure.ac): Use AC_PROG_MKDIR_P.
64217         * modules/sys_select: Likewise.
64218         * modules/sys_socket: Likewise.
64219         * modules/sys_time: Likewise.
64220
64221 2007-01-18  Eric Blake  <ebb9@byu.net>
64222
64223         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64224         replace gettimeofday.
64225         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64226         name, to avoid infinite recursion.
64227
64228 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64231         module sys_time.
64232         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64233         assume timespec.h defines struct timeval.
64234         * lib/settime.c: Likewise.
64235         * lib/utimens.c: Likewise.
64236         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64237         since we now assume the gettimeofday module.
64238         * lib/tempname.c (__gen_tempname): Likewise.
64239         * lib/gettimeofday.h: Remove.
64240         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64241         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64242         Include <time.h>, for 'time()'.
64243         (localtime_buffer_addr): Also use this workaround if
64244         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64245         to simplify the uses.  All uses changed.
64246         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64247         that #undef is inside {}, and 'const' follows type name consistently.
64248         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64249         (gettimeofday): Do not use the maximum possible value for
64250         tv->tv_usec, since that might break usages other than ls.c.
64251         Instead, we'll leave ls.c alone.  This undoes today's patch
64252         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64253         we've never observed the problem but might as well keep the
64254         canary.
64255         * lib/nanosleep.c: Include timespec.h first, for interface check.
64256         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64257         now assume the sys_time module.
64258         * lib/tempname.c: Likewise.
64259         * lib/timespec.h: Likewise.
64260         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64261         needed.
64262         * lib/strftime.c: Likewise.
64263         * lib/timespec.h: Likewise.
64264         * lib/posixtm.c: Include posixtm.h first, for interface check.
64265         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64266         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64267         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64268         * lib/sys_time_.h: New file.
64269         * lib/timespec.h (struct timespec): Use long int, not long.
64270         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64271         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64272         Remove obsolescent call to AC_HEADER_TIME.
64273         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64275         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64276         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64277         Likewise.
64278         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64279         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64281         into the sys_time module.  Check for gettimeofday just once.
64282         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64283         for gettimeofday signature to just check the signature.  Merely
64284         compile it, since linking doesn't test signature.  Improve test for
64285         whether gettimeofday.o is actually needed.
64286         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64287         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64288         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64289         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64290         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64291         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64292         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64293         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64294         than worrying about sys/time.h.
64295         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64296         Don't bother worrying about TIME_WITH_SYS_TIME.
64297         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64298         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64299         * m4/sys_time_h.m4: New file.
64300         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64301         Don't include sys/time.h.  Return from main rather than exiting.
64302         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64303         all uses changed.
64304         * modules/gethrxtime (Depends-on): Add sys_time.
64305         * modules/gettime (Depends-on): Likewise.
64306         * modules/gettimeofday (Depends-on): Likewise.
64307         * modules/nanosleep (Depends-on): Likewise.
64308         * modules/settime (Depends-on): Likewise.
64309         * modules/tempname (Depends-on): Likewise.
64310         * modules/utimens (Depends-on): Likewise.
64311         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64312         (Include): Change back to <sys/time.h>.
64313         (Maintainer): Add self.
64314         * modules/sys_time: New file.
64315         * modules/tempname (Depends-on): Add gettimeofday.
64316         * tests/test-gettimeofday.c: Include <sys/time.h>
64317         rather than gettimeofday.h.
64318
64319 2007-01-17  Bruno Haible  <bruno@clisp.org>
64320
64321         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64322         the license default to GPL.
64323         (func_create_testdir): Don't complain if a module is LGPL and its
64324         tests module depends on GPLed modules.
64325
64326 2007-01-17  Bruno Haible  <bruno@clisp.org>
64327
64328         * lib/gettimeofday.c (gettimeofday): Add code for the case
64329         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64330         maximum possible value for tv->tv_usec, rather than the minimum one.
64331
64332 2005-10-08  Martin Lambers  <marlam@marlam.de>
64333 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64334 2007-01-16  Bruno Haible  <bruno@clisp.org>
64335
64336         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64337         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64338         gl_FUNC_GETTIMEOFDAY.
64339         (Include): Add gettimeofday.h.
64340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64341         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64342         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64343         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64344         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64345         * lib/gettimeofday.h: New file.
64346         * lib/gettimeofday.c: Include <sys/timeb.h>.
64347         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64348         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64349         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64350         fall back on time().
64351
64352         * tests/test-gettimeofday.c: New file.
64353         * modules/gettimeofday-tests: New file.
64354
64355 2007-01-16  Eric Blake  <ebb9@byu.net>
64356
64357         * modules/fnmatch (Depends-on): Depend on wchar.
64358         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64359         * m4/fnmatch.m4: Likewise.
64360         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64361         * m4/mbchar.m4: Likewise.
64362         * modules/mbswidth (Depends-on): Depend on wchar.
64363         * lib/mbswidth.c: Assume <wchar.h>.
64364         * m4/mbswidth.m4: Likewise.
64365         * modules/quotearg (Depends-on): Depend on wchar.
64366         * lib/quotearg.c: Assume <wchar.h>.
64367         * m4/quotearg.m4: Likewise.
64368         * modules/regex (Depends-on): Depend on wchar.
64369         * lib/regex_internal.h: Assume <wchar.h>.
64370         * m4/regex.m4: Likewise.
64371         * modules/stdint (Depends-on): Depend on wchar.
64372         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64373         * m4/stdint.m4: Likewise.
64374         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64375         * modules/strftime (Depends-on): Depend on wchar.
64376         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64377         * modules/strtol (Depends-on): Depend on wchar.
64378         * lib/strtol.c: Assume <wchar.h>.
64379         * modules/wcwidth (Depends-on): Depend on wchar.
64380         * lib/wcwidth.h: Assume <wchar.h>.
64381         * m4/wcwidth.m4: Likewise.
64382
64383 2007-01-16  Bruno Haible  <bruno@clisp.org>
64384
64385         * modules/csharpexec-script: New, created from...
64386         * modules/csharpexec: ... this.
64387
64388 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64389
64390         * modules/javaexec-script: New, created from...
64391         * modules/javaexec: ... this.
64392
64393 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64394
64395         * modules/poll (Dependencies): Add sys_select.
64396
64397 2007-01-15  Jim Meyering  <jim@meyering.net>
64398
64399         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64400         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64401         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64402         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64403
64404 2007-01-15  Bruno Haible  <bruno@clisp.org>
64405
64406         * modules/striconveh: New file.
64407         * lib/striconveh.h: New file.
64408         * lib/striconveh.c: New file.
64409         * MODULES.html.sh (Internationalization functions): Add striconveh.
64410
64411         * modules/striconveh-tests: New file.
64412         * tests/test-striconveh.c: New file.
64413
64414 2007-01-15  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64417         not from GNU libiconv or GNU libc.
64418
64419 2007-01-15  Bruno Haible  <bruno@clisp.org>
64420
64421         * doc/gnulib-intro.texi (Copyright): Explain the different license
64422         terms for module descriptions, autoconf macros, tests, documentation.
64423
64424 2007-01-14  Bruno Haible  <bruno@clisp.org>
64425
64426         * modules/striconv-tests: New file.
64427         * tests/test-striconv.c: New file.
64428
64429 2007-01-14  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/iconv-tests: New file.
64432         * tests/test-iconv.c: New file.
64433
64434 2007-01-14  Bruno Haible  <bruno@clisp.org>
64435
64436         * gnulib-tool (func_get_license): For test modules, use the license of
64437         the main module.
64438
64439 2007-01-14  Bruno Haible  <bruno@clisp.org>
64440
64441         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64442         if iconv is found to exist.
64443
64444 2007-01-14  Bruno Haible  <bruno@clisp.org>
64445
64446         * modules/c-ctype-tests: New file.
64447         * tests/test-c-ctype.c: New file.
64448
64449 2007-01-14  Bruno Haible  <bruno@clisp.org>
64450
64451         * modules/binary-io-tests: New file.
64452         * tests/test-binary-io.sh: New file.
64453         * tests/test-binary-io.c: New file.
64454
64455 2007-01-14  Bruno Haible  <bruno@clisp.org>
64456
64457         * modules/array-oset-tests: New file.
64458         * tests/test-array_oset.c: New file.
64459
64460 2007-01-14  Bruno Haible  <bruno@clisp.org>
64461
64462         * modules/array-list-tests: New file.
64463         * tests/test-array_list.c: New file.
64464
64465 2007-01-14  Bruno Haible  <bruno@clisp.org>
64466
64467         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64468         and make.
64469         Reported by Simon Josefsson in
64470         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64471
64472 2007-01-14  Bruno Haible  <bruno@clisp.org>
64473
64474         * modules/allocsa-tests: New file.
64475         * tests/test-allocsa.c: New file.
64476
64477 2007-01-14  Bruno Haible  <bruno@clisp.org>
64478
64479         * modules/fchdir (Depends-on): Add absolute-header.
64480         * modules/unistd (Depends-on): Likewise.
64481
64482 2006-12-30  Bruno Haible  <bruno@clisp.org>
64483
64484         * modules/fchdir: New file.
64485         * modules/unistd (Files): Add lib/unistd_.h.
64486         (Makefile.am): Generate unistd.h from unistd_.h.
64487         * lib/fchdir.c: New file.
64488         * lib/dirent_.h: New file.
64489         * lib/unistd_.h: New file.
64490         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64491         * m4/fchdir.m4: New file.
64492         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64493         (gl_HEADER_UNISTD): Invoke it.
64494         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64495         function.
64496         * lib/backupfile.c (opendir, closedir): Undefine.
64497         * lib/chown.c (open, close): Undefine.
64498         * lib/clean-temp.c (open, close): Undefine.
64499         * lib/copy-file.c (open, close): Undefine.
64500         * lib/execute.c (open, close): Undefine.
64501         * lib/fsusage.c (open, close): Undefine.
64502         * lib/gc-gnulib.c (open, close): Undefine.
64503         * lib/getcwd.c (opendir, closedir): Undefine.
64504         * lib/glob.c (opendir, closedir): Undefine.
64505         * lib/javacomp.c (open, close): Undefine.
64506         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64507         * lib/openat-proc.c (open, close): Undefine.
64508         * lib/pagealign_alloc.c (open, close): Undefine.
64509         * lib/pipe.c (open, close): Undefine.
64510         * lib/progreloc.c (open, close): Undefine.
64511         * lib/savedir.c (opendir, closedir): Undefine.
64512         * lib/utime.c (open, close): Undefine.
64513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64514
64515 2007-01-10  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64518
64519 2007-01-12  Eric Blake  <ebb9@byu.net>
64520
64521         Provide a robust <wchar.h>.  Further simplifications are now
64522         possible in other modules, but not included here.
64523         * modules/wchar: New module.
64524         * m4/wchar.m4: New file.
64525         * lib/wchar_.h: Likewise.
64526         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64527         of the new module.
64528         * MODULES.html.sh (Extended multibyte and wide character utilities):
64529         New section.
64530
64531 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64534         to a reasonable default for memory allocation.
64535         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64536         file system that reports garbage st_size values for symlinks.
64537         Problem reported by Liyang Hu.
64538
64539 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64540
64541         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64542         Emacs .#* auto-save files).
64543
64544 2007-01-11  Bruno Haible  <bruno@clisp.org>
64545
64546         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64547         directory.
64548
64549 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         Use @...@ consistently in lib/wctype_.h.
64552         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64553         on it being set to 1 or 0.
64554         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64555         go back to AC_SUBSTing it.
64556         * modules/wctype (Makefile.am): Undo previous change.
64557
64558 2007-01-10  Eric Blake  <ebb9@byu.net>
64559
64560         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64561         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64562         * modules/wctype (Makefile.am): Likewise.
64563         Reported by Chris McGuire.
64564
64565 2007-01-10  Jim Meyering  <jim@meyering.net>
64566
64567         fts.c: a small readability/maintainability improvement
64568         * lib/fts.c (fts_read): Make this code slightly more readable and
64569         maintainable by hoisting the "sp->fts_cur = p" assignments to
64570         immediately follow the statements that set P.  Derived from
64571         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64572
64573 2007-01-10  Eric Blake  <ebb9@byu.net>
64574
64575         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64576         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64578         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64579         Reported by Chris McGuire.
64580
64581 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64582
64583         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64584         in sed script.
64585
64586 2007-01-09  Bruno Haible  <bruno@clisp.org>
64587
64588         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64589         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64590         variables.
64591         (func_module): Use them.
64592
64593 2007-01-09  Bruno Haible  <bruno@clisp.org>
64594
64595         * modules/unistr/base: New file.
64596         * lib/unistr.h: New file.
64597
64598         * modules/unistr/u8-to-u16: New file.
64599         * lib/unistr/u8-to-u16.c: New file.
64600
64601         * modules/unistr/u8-to-u32: New file.
64602         * lib/unistr/u8-to-u32.c: New file.
64603
64604         * modules/unistr/u16-to-u8: New file.
64605         * lib/unistr/u16-to-u8.c: New file.
64606
64607         * modules/unistr/u16-to-u32: New file.
64608         * lib/unistr/u16-to-u32.c: New file.
64609
64610         * modules/unistr/u32-to-u8: New file.
64611         * lib/unistr/u32-to-u8.c: New file.
64612
64613         * modules/unistr/u32-to-u16: New file.
64614         * lib/unistr/u32-to-u16.c: New file.
64615
64616         * modules/unistr/u8-check: New file.
64617         * modules/unistr/u16-check: New file.
64618         * modules/unistr/u32-check: New file.
64619         * lib/unistr/u8-check.c: New file.
64620         * lib/unistr/u16-check.c: New file.
64621         * lib/unistr/u32-check.c: New file.
64622
64623         * modules/unistr/u8-chr: New file.
64624         * modules/unistr/u16-chr: New file.
64625         * modules/unistr/u32-chr: New file.
64626         * lib/unistr/u8-chr.c: New file.
64627         * lib/unistr/u16-chr.c: New file.
64628         * lib/unistr/u32-chr.c: New file.
64629
64630         * modules/unistr/u8-cmp: New file.
64631         * modules/unistr/u16-cmp: New file.
64632         * modules/unistr/u32-cmp: New file.
64633         * lib/unistr/u8-cmp.c: New file.
64634         * lib/unistr/u16-cmp.c: New file.
64635         * lib/unistr/u32-cmp.c: New file.
64636
64637         * modules/unistr/u8-cpy: New file.
64638         * modules/unistr/u16-cpy: New file.
64639         * modules/unistr/u32-cpy: New file.
64640         * lib/unistr/u8-cpy.c: New file.
64641         * lib/unistr/u16-cpy.c: New file.
64642         * lib/unistr/u32-cpy.c: New file.
64643         * lib/unistr/u-cpy.h: New file.
64644
64645         * modules/unistr/u8-cpy-alloc: New file.
64646         * modules/unistr/u16-cpy-alloc: New file.
64647         * modules/unistr/u32-cpy-alloc: New file.
64648         * lib/unistr/u8-cpy-alloc.c: New file.
64649         * lib/unistr/u16-cpy-alloc.c: New file.
64650         * lib/unistr/u32-cpy-alloc.c: New file.
64651         * lib/unistr/u-cpy-alloc.h: New file.
64652
64653         * modules/unistr/u8-endswith: New file.
64654         * modules/unistr/u16-endswith: New file.
64655         * modules/unistr/u32-endswith: New file.
64656         * lib/unistr/u8-endswith.c: New file.
64657         * lib/unistr/u16-endswith.c: New file.
64658         * lib/unistr/u32-endswith.c: New file.
64659         * lib/unistr/u-endswith.h: New file.
64660
64661         * modules/unistr/u8-mblen: New file.
64662         * modules/unistr/u16-mblen: New file.
64663         * modules/unistr/u32-mblen: New file.
64664         * lib/unistr/u8-mblen.c: New file.
64665         * lib/unistr/u16-mblen.c: New file.
64666         * lib/unistr/u32-mblen.c: New file.
64667
64668         * modules/unistr/u8-mbtouc: New file.
64669         * modules/unistr/u16-mbtouc: New file.
64670         * modules/unistr/u32-mbtouc: New file.
64671         * lib/unistr/u8-mbtouc.c: New file.
64672         * lib/unistr/u16-mbtouc.c: New file.
64673         * lib/unistr/u32-mbtouc.c: New file.
64674
64675         * modules/unistr/u8-mbtouc-safe: New file.
64676         * modules/unistr/u16-mbtouc-safe: New file.
64677         * modules/unistr/u32-mbtouc-safe: New file.
64678         * lib/unistr/u8-mbtouc-safe.c: New file.
64679         * lib/unistr/u16-mbtouc-safe.c: New file.
64680         * lib/unistr/u32-mbtouc-safe.c: New file.
64681
64682         * modules/unistr/u8-move: New file.
64683         * modules/unistr/u16-move: New file.
64684         * modules/unistr/u32-move: New file.
64685         * lib/unistr/u8-move.c: New file.
64686         * lib/unistr/u16-move.c: New file.
64687         * lib/unistr/u32-move.c: New file.
64688         * lib/unistr/u-move.h: New file.
64689
64690         * modules/unistr/u8-next: New file.
64691         * modules/unistr/u16-next: New file.
64692         * modules/unistr/u32-next: New file.
64693         * lib/unistr/u8-next.c: New file.
64694         * lib/unistr/u16-next.c: New file.
64695         * lib/unistr/u32-next.c: New file.
64696
64697         * modules/unistr/u8-prev: New file.
64698         * modules/unistr/u16-prev: New file.
64699         * modules/unistr/u32-prev: New file.
64700         * lib/unistr/u8-prev.c: New file.
64701         * lib/unistr/u16-prev.c: New file.
64702         * lib/unistr/u32-prev.c: New file.
64703
64704         * modules/unistr/u8-set: New file.
64705         * modules/unistr/u16-set: New file.
64706         * modules/unistr/u32-set: New file.
64707         * lib/unistr/u8-set.c: New file.
64708         * lib/unistr/u16-set.c: New file.
64709         * lib/unistr/u32-set.c: New file.
64710         * lib/unistr/u-set.h: New file.
64711
64712         * modules/unistr/u8-startswith: New file.
64713         * modules/unistr/u16-startswith: New file.
64714         * modules/unistr/u32-startswith: New file.
64715         * lib/unistr/u8-startswith.c: New file.
64716         * lib/unistr/u16-startswith.c: New file.
64717         * lib/unistr/u32-startswith.c: New file.
64718         * lib/unistr/u-startswith.h: New file.
64719
64720         * modules/unistr/u8-stpcpy: New file.
64721         * modules/unistr/u16-stpcpy: New file.
64722         * modules/unistr/u32-stpcpy: New file.
64723         * lib/unistr/u8-stpcpy.c: New file.
64724         * lib/unistr/u16-stpcpy.c: New file.
64725         * lib/unistr/u32-stpcpy.c: New file.
64726         * lib/unistr/u-stpcpy.h: New file.
64727
64728         * modules/unistr/u8-stpncpy: New file.
64729         * modules/unistr/u16-stpncpy: New file.
64730         * modules/unistr/u32-stpncpy: New file.
64731         * lib/unistr/u8-stpncpy.c: New file.
64732         * lib/unistr/u16-stpncpy.c: New file.
64733         * lib/unistr/u32-stpncpy.c: New file.
64734         * lib/unistr/u-stpncpy.h: New file.
64735
64736         * modules/unistr/u8-strcat: New file.
64737         * modules/unistr/u16-strcat: New file.
64738         * modules/unistr/u32-strcat: New file.
64739         * lib/unistr/u8-strcat.c: New file.
64740         * lib/unistr/u16-strcat.c: New file.
64741         * lib/unistr/u32-strcat.c: New file.
64742         * lib/unistr/u-strcat.h: New file.
64743
64744         * modules/unistr/u8-strchr: New file.
64745         * modules/unistr/u16-strchr: New file.
64746         * modules/unistr/u32-strchr: New file.
64747         * lib/unistr/u8-strchr.c: New file.
64748         * lib/unistr/u16-strchr.c: New file.
64749         * lib/unistr/u32-strchr.c: New file.
64750
64751         * modules/unistr/u8-strcmp: New file.
64752         * modules/unistr/u16-strcmp: New file.
64753         * modules/unistr/u32-strcmp: New file.
64754         * lib/unistr/u8-strcmp.c: New file.
64755         * lib/unistr/u16-strcmp.c: New file.
64756         * lib/unistr/u32-strcmp.c: New file.
64757
64758         * modules/unistr/u8-strcpy: New file.
64759         * modules/unistr/u16-strcpy: New file.
64760         * modules/unistr/u32-strcpy: New file.
64761         * lib/unistr/u8-strcpy.c: New file.
64762         * lib/unistr/u16-strcpy.c: New file.
64763         * lib/unistr/u32-strcpy.c: New file.
64764         * lib/unistr/u-strcpy.h: New file.
64765
64766         * modules/unistr/u8-strcspn: New file.
64767         * modules/unistr/u16-strcspn: New file.
64768         * modules/unistr/u32-strcspn: New file.
64769         * lib/unistr/u8-strcspn.c: New file.
64770         * lib/unistr/u16-strcspn.c: New file.
64771         * lib/unistr/u32-strcspn.c: New file.
64772         * lib/unistr/u-strcspn.h: New file.
64773
64774         * modules/unistr/u8-strdup: New file.
64775         * modules/unistr/u16-strdup: New file.
64776         * modules/unistr/u32-strdup: New file.
64777         * lib/unistr/u8-strdup.c: New file.
64778         * lib/unistr/u16-strdup.c: New file.
64779         * lib/unistr/u32-strdup.c: New file.
64780         * lib/unistr/u-strdup.h: New file.
64781
64782         * modules/unistr/u8-strlen: New file.
64783         * modules/unistr/u16-strlen: New file.
64784         * modules/unistr/u32-strlen: New file.
64785         * lib/unistr/u8-strlen.c: New file.
64786         * lib/unistr/u16-strlen.c: New file.
64787         * lib/unistr/u32-strlen.c: New file.
64788         * lib/unistr/u-strlen.h: New file.
64789
64790         * modules/unistr/u8-strmblen: New file.
64791         * modules/unistr/u16-strmblen: New file.
64792         * modules/unistr/u32-strmblen: New file.
64793         * lib/unistr/u8-strmblen.c: New file.
64794         * lib/unistr/u16-strmblen.c: New file.
64795         * lib/unistr/u32-strmblen.c: New file.
64796
64797         * modules/unistr/u8-strmbtouc: New file.
64798         * modules/unistr/u16-strmbtouc: New file.
64799         * modules/unistr/u32-strmbtouc: New file.
64800         * lib/unistr/u8-strmbtouc.c: New file.
64801         * lib/unistr/u16-strmbtouc.c: New file.
64802         * lib/unistr/u32-strmbtouc.c: New file.
64803
64804         * modules/unistr/u8-strncat: New file.
64805         * modules/unistr/u16-strncat: New file.
64806         * modules/unistr/u32-strncat: New file.
64807         * lib/unistr/u8-strncat.c: New file.
64808         * lib/unistr/u16-strncat.c: New file.
64809         * lib/unistr/u32-strncat.c: New file.
64810         * lib/unistr/u-strncat.h: New file.
64811
64812         * modules/unistr/u8-strncmp: New file.
64813         * modules/unistr/u16-strncmp: New file.
64814         * modules/unistr/u32-strncmp: New file.
64815         * lib/unistr/u8-strncmp.c: New file.
64816         * lib/unistr/u16-strncmp.c: New file.
64817         * lib/unistr/u32-strncmp.c: New file.
64818
64819         * modules/unistr/u8-strncpy: New file.
64820         * modules/unistr/u16-strncpy: New file.
64821         * modules/unistr/u32-strncpy: New file.
64822         * lib/unistr/u8-strncpy.c: New file.
64823         * lib/unistr/u16-strncpy.c: New file.
64824         * lib/unistr/u32-strncpy.c: New file.
64825         * lib/unistr/u-strncpy.h: New file.
64826
64827         * modules/unistr/u8-strnlen: New file.
64828         * modules/unistr/u16-strnlen: New file.
64829         * modules/unistr/u32-strnlen: New file.
64830         * lib/unistr/u8-strnlen.c: New file.
64831         * lib/unistr/u16-strnlen.c: New file.
64832         * lib/unistr/u32-strnlen.c: New file.
64833         * lib/unistr/u-strnlen.h: New file.
64834
64835         * modules/unistr/u8-strpbrk: New file.
64836         * modules/unistr/u16-strpbrk: New file.
64837         * modules/unistr/u32-strpbrk: New file.
64838         * lib/unistr/u8-strpbrk.c: New file.
64839         * lib/unistr/u16-strpbrk.c: New file.
64840         * lib/unistr/u32-strpbrk.c: New file.
64841         * lib/unistr/u-strpbrk.h: New file.
64842
64843         * modules/unistr/u8-strrchr: New file.
64844         * modules/unistr/u16-strrchr: New file.
64845         * modules/unistr/u32-strrchr: New file.
64846         * lib/unistr/u8-strrchr.c: New file.
64847         * lib/unistr/u16-strrchr.c: New file.
64848         * lib/unistr/u32-strrchr.c: New file.
64849
64850         * modules/unistr/u8-strspn: New file.
64851         * modules/unistr/u16-strspn: New file.
64852         * modules/unistr/u32-strspn: New file.
64853         * lib/unistr/u8-strspn.c: New file.
64854         * lib/unistr/u16-strspn.c: New file.
64855         * lib/unistr/u32-strspn.c: New file.
64856         * lib/unistr/u-strspn.h: New file.
64857
64858         * modules/unistr/u8-strstr: New file.
64859         * modules/unistr/u16-strstr: New file.
64860         * modules/unistr/u32-strstr: New file.
64861         * lib/unistr/u8-strstr.c: New file.
64862         * lib/unistr/u16-strstr.c: New file.
64863         * lib/unistr/u32-strstr.c: New file.
64864         * lib/unistr/u-strstr.h: New file.
64865
64866         * modules/unistr/u8-strtok: New file.
64867         * modules/unistr/u16-strtok: New file.
64868         * modules/unistr/u32-strtok: New file.
64869         * lib/unistr/u8-strtok.c: New file.
64870         * lib/unistr/u16-strtok.c: New file.
64871         * lib/unistr/u32-strtok.c: New file.
64872         * lib/unistr/u-strtok.h: New file.
64873
64874         * modules/unistr/u8-uctomb: New file.
64875         * modules/unistr/u16-uctomb: New file.
64876         * modules/unistr/u32-uctomb: New file.
64877         * lib/unistr/u8-uctomb.c: New file.
64878         * lib/unistr/u16-uctomb.c: New file.
64879         * lib/unistr/u32-uctomb.c: New file.
64880
64881         * MODULES.html.sh (Unicode string functions): Add the new modules.
64882
64883 2007-01-08  Bruno Haible  <bruno@clisp.org>
64884
64885         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64886         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64887         subdirectories.
64888
64889 2007-01-08  Karl Berry  <karl@gnu.org>
64890
64891         * doc/error.texi: mention that main() fns must set program_name
64892         when progname is used.
64893
64894 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64895
64896         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64897         WCTYPE_H is empty, for the benefit of builds from non-distclean
64898         directories.  Problem reported by Eric Blake in
64899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64900
64901 2007-01-08  Bruno Haible  <bruno@clisp.org>
64902
64903         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64904         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64905         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64906         PROVIDE_CANONICALIZE_FILENAME_MODE.
64907         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64908
64909 2007-01-08  Bruno Haible  <bruno@clisp.org>
64910
64911         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64912         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64913         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64914         * lib/fts.c: Likewise.
64915         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64916
64917 2006-12-25  Bruno Haible  <bruno@clisp.org>
64918
64919         * modules/utf8-ucs4-safe: New file.
64920         * lib/utf8-ucs4-safe.h: New file.
64921         * lib/unistr/utf8-ucs4-safe.c: New file.
64922
64923         * modules/utf16-ucs4-safe: New file.
64924         * lib/utf16-ucs4-safe.h: New file.
64925         * lib/unistr/utf16-ucs4-safe.c: New file.
64926
64927         * MODULES.html.sh (Unicode string functions): Add the new modules.
64928
64929 2007-01-08  Bruno Haible  <bruno@clisp.org>
64930
64931         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64932         (Depends-on): Add unitypes.
64933         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64934         (u8_mbtouc_aux): Move out to separate file.
64935         (u8_mbtouc): Use ucs4_t, uint8_t types.
64936         * lib/unistr/utf8-ucs4.c: New file.
64937
64938         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64939         (Depends-on): Add unitypes.
64940         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64941         (u16_mbtouc_aux): Move out to separate file.
64942         (u16_mbtouc): Use ucs4_t, uint16_t types.
64943         * lib/unistr/utf16-ucs4.c: New file.
64944
64945         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64946         (Depends-on): Add unitypes.
64947         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64948         (u8_uctomb_aux): Move out to separate file.
64949         (u8_uctomb): Use ucs4_t, uint8_t types.
64950         * lib/unistr/ucs4-utf8.c: New file.
64951
64952         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64953         (Depends-on): Add unitypes.
64954         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64955         (u16_uctomb_aux): Move out to separate file.
64956         (u16_uctomb): Use ucs4_t, uint16_t types.
64957         * lib/unistr/ucs4-utf16.c: New file.
64958
64959 2006-12-25  Bruno Haible  <bruno@clisp.org>
64960
64961         * modules/unitypes: New file.
64962         * lib/unitypes.h: New file.
64963         * MODULES.html.sh (func_all_modules): New section "Unicode string
64964         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64965         this section. Add unitypes.
64966
64967 2007-01-08  Bruno Haible  <bruno@clisp.org>
64968
64969         Avoid variable names that conflict with those from libtool.
64970         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64971         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64972         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64973         library_names_spec to acl_library_names_spec, hardcode_* to
64974         acl_hardcode_*.
64975         Reported by Ralf Wildenhues.
64976
64977 2007-01-08  Bruno Haible  <bruno@clisp.org>
64978
64979         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64980         definition.
64981         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64982         definition.
64983         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64984         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64985         definition.
64986         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64987         definition.
64988         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64989         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64990         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64991         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64992         definition.
64993         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64994         definition.
64995         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64996         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64997         GC_USE_<algorithm>.
64998         * lib/gc-libgcrypt.c: Likewise.
64999         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65000         * modules/gc-arctwo (configure.ac): Likewise.
65001         * modules/gc-des (configure.ac): Likewise.
65002         * modules/gc-hmac-md5 (configure.ac): Likewise.
65003         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65004         * modules/gc-md2 (configure.ac): Likewise.
65005         * modules/gc-md4 (configure.ac): Likewise.
65006         * modules/gc-md5 (configure.ac): Likewise.
65007         * modules/gc-random (configure.ac): Likewise.
65008         * modules/gc-rijndael (configure.ac): Likewise.
65009         * modules/gc-sha1 (configure.ac): Likewise.
65010
65011 2007-01-08  Bruno Haible  <bruno@clisp.org>
65012
65013         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65014         macro definition.
65015         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65016         definition.
65017         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65018         definition.
65019         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65020         * modules/fcntl-safer (configure.ac): Likewise.
65021         * modules/fopen-safer (configure.ac): Likewise.
65022         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65023         GNULIB_FWRITEERROR macro definition.
65024
65025 2007-01-08  Bruno Haible  <bruno@clisp.org>
65026
65027         * m4/gnulib-common.m4: New file.
65028         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65029         (func_get_filelist): Add m4/gnulib-common.m4.
65030
65031 2007-01-08  Bruno Haible  <bruno@clisp.org>
65032
65033         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65034         command.
65035
65036 2007-01-08  Jim Meyering  <jim@meyering.net>
65037
65038         Use a more robust test for a "can't happen" condition.
65039         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65040         narrowed the st_size value.  Presuming the "can't happen" condition
65041         is true, that narrowing could conceivably convert an invalid st_size
65042         value into a valid one.  Instead, use a change based on Matthew
65043         Woehlke's original patch.
65044
65045         Slight readability improvement: use an assert-like macro
65046         in place of literal "abort ()" uses.
65047         * lib/fts.c (fts_assert): Define.
65048         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65049         Use this macro instead of a bare 'abort'.
65050
65051 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65054         simply work around them.
65055         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65056         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65057         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65058         declaring.
65059         Don't bother to define as macros, since the standard doesn't require it.
65060         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65061         longer worry about IRIX 5.3.
65062         (HAVE_WCTYPE_CTMP_BUG): Remove.
65063
65064 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65065
65066         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65067         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65068         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65069         Problems reported by Georg Schwarz for IRIX 5.3.
65070
65071         * gnulib-tool (autoconf_minversion): Take the maximum version number
65072         found, not the minimum.  Problem reported by James Youngman.
65073
65074 2007-01-03  Karl Berry  <karl@gnu.org>
65075
65076         * doc/error.texi: new file, explaining interaction with progname.
65077         * doc/gnulib.texi: include it.  Update copyright.
65078
65079 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65080
65081         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65082         AC_CANONICAL_HOST, to improve autobuild outputs.
65083
65084 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65085             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65086
65087         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65088         sockets, server sockets, and other file descriptors.  Count errors
65089         to compute the return value.  Reorder the code a bit to be easier
65090         to follow.  Don't set event bits that were not requested (except
65091         POLLERR and POLLHUP).
65092
65093 2007-01-01  Bruno Haible  <bruno@clisp.org>
65094
65095         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65096
65097 2007-01-03  Jim Meyering  <jim@meyering.net>
65098
65099         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65100
65101 2007-01-02  Bruno Haible  <bruno@clisp.org>
65102
65103         * modules/settime (Include): Require timespec.h.
65104         * modules/nanosleep (Include): Likewise.
65105
65106 2007-01-01  Bruno Haible  <bruno@clisp.org>
65107
65108         * gnulib-tool (func_emit_copyright_notice): Bump year.
65109         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65110
65111 2007-01-01  Bruno Haible  <bruno@clisp.org>
65112
65113         Improve support for OpenBSD.
65114         * build-aux/config.rpath (libname_spec): Export.
65115         (library_names_spec): New variable. Export.
65116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65117         library_names_spec from the config.rpath output. Locate shared library
65118         through the name pattern in library_names_spec.
65119
65120 2007-01-01  Eric Blake  <ebb9@byu.net>
65121
65122         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65123
65124 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65127         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65128         assume the C locale, and avoid an "eval" that could cause trouble.
65129         Problem with SORT reported by Bob Proulx.
65130
65131         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65132         Define.  Trivial patch from Henning Nielsen Lund, originally
65133         sent to bug-grep@gnu.org today.
65134
65135 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65136
65137         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65138         struct stat.  Problem reported by Henning Nielsen Lund.
65139         * lib/acl.c: Include acl.h first, to check interface.  Don't
65140         bother to include sys/types.h and sys/stat.h again.
65141
65142 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         Import the following change from libc; problem reported by
65145         Sven Verdoolaege.
65146
65147         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65148
65149         [BZ #1373]
65150         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65151
65152 2006-12-28  Jim Meyering  <jim@meyering.net>
65153
65154         * build-aux/announce-gen: Do not assume that the package
65155         builds any of tar.gz, tar.bz2, and .xdelta files.
65156         Suggestion from Simon Josefsson.
65157
65158 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65159
65160         * modules/announce-gen: New file.
65161
65162 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65163
65164         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65165         handles its gotchas now.
65166         * lib/mbswidth.c: Likewise.
65167         * lib/wcwidth.h: Likewise.
65168         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65169         and iswcntrl; the wctype module does this stuff now.
65170         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65172         * modules/mbchar (Depends-on): Add wctype.
65173         * modules/mbswidth (Depends-on): Likewise.
65174         * modules/wcwidth (Depends-on): Likewise.
65175
65176 2006-12-27  Eric Blake  <ebb9@byu.net>
65177
65178         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65179         module uses more than what <wctype.h> is required to provide.
65180
65181 2006-12-26  Eric Blake  <ebb9@byu.net>
65182
65183         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65184
65185 2006-12-26  Eric Blake  <ebb9@byu.net>
65186
65187         * modules/absolute-header: New module.
65188         * modules/fcntl (Depends-on): Depend on it.
65189         * modules/inttypes (Depends-on): Likewise.
65190         * modules/stdint (Depends-on): Likewise.
65191         * modules/sys_stat (Depends-on): Likewise.
65192         * modules/wctype (Depends-on): Likewise.
65193         * MODULES.html.sh (Support for building libraries and
65194         executables): Document it.
65195
65196 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65197
65198         * gnulib-tool (SED): Remove, undoing previous change.
65199         The problem was that it broke coreutils on Solaris, because
65200         "sed --posix" leaked into a makefile.
65201         (sed): New alias, if 'alias' and GNU sed.
65202
65203 2006-12-24  Jim Meyering  <jim@meyering.net>
65204
65205         Work around an fchownat bug in glibc-2.4:
65206         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65207         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65208         in spite of the -P option.
65209         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65210         New macros.
65211         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65212         * modules/openat (Files): Add lib/fchownat.c.
65213         * lib/openat.c (fchownat): Don't define here.  Move to...
65214         * lib/fchownat.c: ...this new file.
65215
65216 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65217
65218         Fix bug reported by Bruno Haible in
65219         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65220         where quotearg.c didn't compile on Mac OS X 10.2 because it
65221         lacks <wchar.h> and wint_t.
65222         * lib/wctype_.h (__wctype_wint_t): New type.
65223         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65224         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65225         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65226         Arg is now of type __wctype_wint_t, not wint_t.
65227         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65228         substitute HAVE_WINT_T.
65229         * modules/wctype (Files): Add m4/wint_t.m4.
65230         (wctype.h): Substitute HAVE_WINT_T.
65231
65232 2006-12-23  Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65235
65236 2006-12-23  Bruno Haible  <bruno@clisp.org>
65237
65238         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65239         S_ISLNK.
65240         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65241         mingw.
65242
65243 2006-12-22  Bruno Haible  <bruno@clisp.org>
65244
65245         * lib/copy-file.c: Include acl.h.
65246         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65247         Close the file descriptors only after being done with copy_acl.
65248         * modules/copy-file (Depends-on): Add acl.
65249
65250 2006-12-22  Bruno Haible  <bruno@clisp.org>
65251
65252         * gnulib-tool (SED): New variable.
65253         Use $SED instead of sed everywhere.
65254
65255 2006-12-22  Bruno Haible  <bruno@clisp.org>
65256
65257         * modules/no-c++: New file.
65258         * m4/no-c++.m4: New file.
65259         * MODULES.html.sh (Support for building libraries and executables):
65260         Add no-c++.
65261
65262 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65265         Include <limits.h>, and use its INT_MAX to rewrite the
65266         j loop so that it does not overflow 'int'.  Problem reported by
65267         Ralf Wildenhues in
65268         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65269         Play it safe by shifting left by 1 rather than multiplying by 2,
65270         as GCC is less likely to optimize this away when the value
65271         is signed (when it assumes overflow leads to undefined behavior).
65272         Also, don't assume time_t uses two's complement.
65273
65274 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * MODULES.html.sh: New module wctype.
65277         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65278         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65279         <wctype.h>, since the new wctype module should fix this.
65280         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65281         the wctype module should arrange for it.
65282         * lib/regex_internal.h: Likewise.
65283         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65284         since the wctype module should handle this now.
65285         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65286         * modules/fnmatch (Depends-on): Add wctype.
65287         * modules/quotearg (Depends-on): Likewise.
65288         * modules/regex (Depends-on): Likewise.
65289
65290 2006-12-19  Bruno Haible  <bruno@clisp.org>
65291
65292         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65293         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65294
65295 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65296
65297         * modules/savewd (Depends-on): Fix dependency on fcntl.
65298
65299 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65300
65301         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65302         conforms to C99, rather than relying on the user's environment
65303         setting of STDINT_H.
65304
65305 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65306         and Eric Blake  <ebb9@byu.net>
65307
65308         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65309         This is more consistent with the other defines here.
65310         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65311         Port to z/OS.  Problem reported by Paul Gilmartin.
65312         Change local vars to use gl_ prefix rather than ac_.
65313         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65314         with other defines.
65315         * modules/double-slash-root: New module.
65316         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65317         (Depends-on): Add double-slash-root.
65318         * MODULES.html.sh (File system functions): Mention new module.
65319
65320 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65321
65322         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65323         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65324         This is for the benefit of gzip, which doesn't do i18n.
65325
65326 2006-12-12  Jim Meyering  <jim@meyering.net>
65327
65328         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65329         Reported by Andreas Schwab <schwab@suse.de>.
65330
65331 2006-12-12  Bruno Haible  <bruno@clisp.org>
65332
65333         Merge these changes.
65334         2006-09-05  Bruno Haible  <bruno@clisp.org>
65335         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65336         iconv_alloc succeeded.
65337         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65338         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65339         test for " && dest " at the end - dest is always != NULL there. Call
65340         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65341         with 2xNULL arguments, also to flush the state storage. Handle the
65342         IRIX iconv behaviour. Realloc the final result, to throw away unused
65343         memory.
65344
65345 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65348         and fchmodat unconditionally, since glibc 2.4 has them.
65349         Problem reported by Arkadiusz Miskiewicz.
65350
65351 2006-12-10  Bruno Haible  <bruno@clisp.org>
65352
65353         * gnulib-tool (func_import): Show the include files only for those
65354         modules that are copied and specified.
65355         Reported by Karl Berry.
65356
65357 2006-12-08  Jim Meyering  <jim@meyering.net>
65358
65359         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65360         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65361
65362         * build-aux/announce-gen: Add two new options, both optional:
65363         --bootstrap-tools=TOOL_LIST
65364               a comma-separated list of tools, e.g.,
65365               autoconf,automake,bison,gnulib
65366         --gnulib-snapshot-date=DATE
65367               if gnulib is in the bootstrap tool list,
65368               then report this as the snapshot date.
65369               If not specified, use the current date/time.
65370               If you specify a date here, be sure it's UTC.
65371
65372 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65373
65374         * tests/test-argp-2.sh: Fix test to match actual output.
65375         (func_compare): Fix sed script to be portable.
65376
65377 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65380         workaround for this case.  It is not autoconfigured now; offhand
65381         it's hard to see how to autoconfigure it.
65382
65383 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65384
65385         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65386         a directory that is about to be chowned.  Such a directory's
65387         initial file permissions should permit the owner only and this
65388         should not be changed until after the chown, since the group and
65389         other bits would be incorrect if they granted permission before
65390         the chown.
65391
65392         Fix porting problem for iswctype reported by Georg Schwarz in:
65393         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65394         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65395         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65396         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65397         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65398
65399 2006-12-03  Jim Meyering  <jim@meyering.net>
65400
65401         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65402         p->fts_statp may not yet be defined.
65403         (fts_read): Instead, set it in the caller, once p->fts_statp is
65404         sure to be defined, and corresponds to a top-level directory.
65405         This bug made du -x fail.  Here's the coreutils test case:
65406         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65407         Reported by Mike Frysinger.
65408
65409 2006-12-01  Jim Meyering  <jim@meyering.net>
65410
65411         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65412         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65413         Reported by Simon Josefsson.
65414
65415 2006-11-30  Jim Meyering  <jim@meyering.net>
65416
65417         * m4/warning.m4: Use the all-permissive copyright notice
65418         recommended by RMS (rather than LGPL).
65419         * m4/vararrays.m4: Likewise.
65420         * m4/flexmember.m4: Likewise.
65421
65422 2006-11-29  Bruno Haible  <bruno@clisp.org>
65423
65424         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65425         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65426         using +=.
65427         Reported by Simon Josefsson <simon@josefsson.org>.
65428
65429 2006-11-28  James Youngman <jay@gnu.org>
65430
65431         * README: Advise users that they might find the bug-gnulib@gnu.org
65432         and autotools-announce@gnu.org mailing lists useful.
65433
65434 2006-11-28  Bruno Haible  <bruno@clisp.org>
65435
65436         * m4/ptrdiff_max.m4: Remove file.
65437
65438 2006-11-21  Bruno Haible  <bruno@clisp.org>
65439
65440         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65441         _AC_COMPUTE_INT.
65442         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65443         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65444         _AC_COMPUTE_INT.
65445         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65446         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65447         _AC_COMPUTE_INT.
65448         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65449
65450 2006-11-28  Jim Meyering  <jim@meyering.net>
65451
65452         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65453         warning from "gcc -Wshadow" about shadowing the builtin.
65454
65455 2006-11-27  Bruno Haible  <bruno@clisp.org>
65456
65457         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65458         _AC_COMPUTE_INT.
65459         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65460
65461 2006-11-27  Bruno Haible  <bruno@clisp.org>
65462             Paul Eggert  <eggert@cs.ucla.edu>
65463
65464         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65465
65466 2006-11-26  Bruno Haible  <bruno@clisp.org>
65467
65468         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65469         noinst_LTLIBRARIES.
65470
65471 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65472             Bruno Haible  <bruno@clisp.org>
65473
65474         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65475         if compiling with "gcc -ansi".
65476
65477 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65478
65479         Fix some incompatibilities with gcc -ansi -pedantic.
65480         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65481         if compiling pedantically with GCC, unless it's C99 or later.
65482         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65483         it mishandles gcc -ansi -pedantic as well.
65484         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65485         if gcc -pedantic.
65486         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65487         initializers for struct if -pedantic, unless it's C99 or later.
65488
65489 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65490
65491         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65492         Don't close an fd more than once. Identical atimes indicate
65493         success, not failure.
65494
65495 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65496
65497         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65498
65499 2006-11-23  Jim Meyering  <jim@meyering.net>
65500
65501         * build-aux/announce-gen: New file.  From coreutils.
65502
65503 2006-11-22  Jim Meyering  <jim@meyering.net>
65504
65505         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65506         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65507         (fts_read): Use a temporary to narrow the overused st_size member
65508         before using it in a switch statement.  Reported by Matthew Woehlke.
65509
65510         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65511         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65512
65513 2006-11-20  Bruno Haible  <bruno@clisp.org>
65514
65515         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65516         changequote instead of pairs of brackets.
65517         Reported by Andreas Schwab <schwab@suse.de>.
65518
65519 2006-11-21  Jim Meyering  <jim@meyering.net>
65520
65521         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65522         so as to remain compatible with older compilers.
65523         Patch from Michael Deutschmann.
65524
65525 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65526
65527         * MODULES.html.sh (File system functions): Add openat.
65528
65529         * lib/openat.h (rpl_fstatat): New macro, if
65530         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65531         (fstatat): Define to rpl_fstatat under the same conditions,
65532         unless COMPILING_FSTATAT.
65533         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65534         seems to have the bug.
65535         * lib/fstatat.c: New file.
65536         * modules/openat (Files): Add it.
65537
65538 2006-11-20  Bruno Haible  <bruno@clisp.org>
65539
65540         * Makefile: New file.
65541
65542 2006-11-20  Jim Meyering  <jim@meyering.net>
65543
65544         The beginnings of syntax-related checks for gnulib.
65545         * lib/Makefile: New file.
65546         * lib/t-idcache: New script.  Ensure that the two halves of
65547         idcache.c stay in sync.
65548
65549         * lib/idcache.c: Adjust comments in user- and group- portions to
65550         be more accurate, and to be consistent with one another.
65551
65552 2006-11-20  Jim Meyering  <jim@meyering.net>
65553
65554         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65555         continue using the flexible array member (thus, this module performs
65556         half as many malloc calls), with the addition that...
65557         (getgroup, getuser): Consistently record a non-match via an empty
65558         "name" string, and map an empty string match to a NULL return value.
65559         * modules/idcache (Depends-on): Re-add flexmember.
65560
65561         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65562         (getuidbyname, getgroup, getgidbyname): Likewise.
65563
65564         Use cleaner syntax: NULL rather than 0.
65565         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65566
65567 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65568
65569         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65570         It mishandled the case where the group was missing.
65571         Problem reported by Greg Schafer.
65572         * modules/idcache: Likewise.
65573
65574 2006-11-18  Jim Meyering  <jim@meyering.net>
65575
65576         * check-module (%exempt_header): Add exception for some
65577         conditionally-included headers.
65578
65579         * modules/i-ring (Depends-on): Add verify.
65580         (License): Change to LGPL.
65581
65582 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65585         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65586         and inttostr.h.  Use snprintf rather than uinttostr, so that
65587         LGPLed code doesn't depend on GPLed.
65588
65589 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65590
65591         * modules/inline (License): Change from GPL to LGPL.
65592
65593 2006-11-17  Jim Meyering  <jim@meyering.net>
65594
65595         * modules/d-type (License): Switch to LGPL.
65596
65597 2006-11-15  Bruno Haible  <bruno@clisp.org>
65598
65599         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65600
65601 2006-11-15  Eric Blake  <ebb9@byu.net>
65602
65603         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65604         the module dependency.
65605
65606 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65607             Bruno Haible  <bruno@clisp.org>
65608
65609         * gnulib-tool (func_create_testdir): Add license consistency check.
65610
65611 2006-11-15  Eric Blake  <ebb9@byu.net>
65612
65613         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65614         random "(cached)" in configure output.
65615
65616 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65617
65618         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65619         test for conforming inttypes.h is both announced and cached.
65620
65621         * MODULES.html.sh (seen_modules, seen_files): New variables.
65622         (func_module): Rewrite to use a few less gnulib-tool and sed
65623         invocations.  Avoid a couple of quadratic algorithms for ...
65624         (missed_modules, missed_files): ... these, with ...
65625         (func_append, func_tmpdir): ... these new functions, from
65626         gnulib-tool.  Analogously, install traps for cleanup.
65627
65628         * tests/test-gc.c (main): Remove unused variables.
65629         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65630
65631 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65632
65633         * modules/inttostr (License): Change to LGPL.
65634
65635 2006-11-14  Eric Blake  <ebb9@byu.net>
65636
65637         * modules/tempname (License): Change to LGPL.
65638
65639 2006-11-14  Eric Blake  <ebb9@byu.net>
65640
65641         * doc/functions.texi (Function Portability): *printf functions on
65642         Cygwin now understand all POSIX size specifiers.
65643
65644 2006-11-14  Bruno Haible  <bruno@clisp.org>
65645
65646         * modules/c-ctype (License): Change to LGPL.
65647
65648 2006-11-12  Bruno Haible  <bruno@clisp.org>
65649
65650         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65651         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65652         for GNOME libraries, for which the include files are installed in
65653         subdirectories of $prefix/include.
65654
65655 2006-11-12  Bruno Haible  <bruno@clisp.org>
65656
65657         * m4/lib-link.m4: Require at least autoconf-2.54.
65658         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65659         name to underscores for the --with option.
65660
65661 2006-11-13  Bruno Haible  <bruno@clisp.org>
65662
65663         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65664         the tests directory.
65665         Reported by Ralf Wildenhues.
65666
65667 2006-11-13  Bruno Haible  <bruno@clisp.org>
65668
65669         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65670         (func_emit_initmacro_end): Undo the override here.
65671         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65672         Works around the famous automake error in coreutils.
65673
65674 2006-11-13  Eric Blake  <ebb9@byu.net>
65675
65676         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65677         element, not its node.
65678
65679 2006-11-12  Bruno Haible  <bruno@clisp.org>
65680
65681         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65682         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65683
65684 2006-11-12  Bruno Haible  <bruno@clisp.org>
65685
65686         * gnulib-tool: New option --local-symlink.
65687         (func_usage): Document it.
65688         (lsymbolic): New variable.
65689         (func_import, func_create_testdir): If --symlink was not specified,
65690         test whether --local-symlink was specified and the file comes from
65691         the local_gnulib_dir.
65692
65693 2006-11-12  Bruno Haible  <bruno@clisp.org>
65694
65695         * gnulib-tool (func_ln): New function.
65696         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65697
65698 2006-11-12  Bruno Haible  <bruno@clisp.org>
65699
65700         Finish support for source files in subdirectories.
65701         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65702         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65703         AUTOMAKE_OPTIONS.
65704         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65705
65706 2006-11-12  Bruno Haible  <bruno@clisp.org>
65707
65708         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65709         EXTRA_lib_SOURCES augmentation.
65710         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65711
65712 2006-11-12  Jim Meyering  <jim@meyering.net>
65713
65714         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65715         file descriptors.  This also averts a failure on systems with
65716         native openat support when a traversed directory lacks "x" access.
65717         * lib/fts_.h: Include "i-ring.h"
65718         (struct FTS) [fts_fd_ring]: New member.
65719         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65720         (FCHDIR): Add parentheses.
65721         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65722         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65723         When descending, rather than simply closing the previous
65724         fts_cwd_fd value, push that file descriptor onto the ring.
65725         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65726         (fts_open): Initialize the new fd_ring member.
65727         (fts_close): Clear the ring.
65728         (fts_safe_changedir): When possible, use our new fd_ring to skip
65729         the diropen and fstat and dev/ino comparison that would normally
65730         accompany a virtual `chdir ("..")'.
65731
65732         * modules/fts (Depends-on): Add i-ring.
65733         * modules/i-ring: New module.
65734         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65735         * m4/i-ring.m4: New file.
65736
65737 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65738
65739         * gnulib-tool (func_create_testdir): Fix replacement of
65740         `build-aux' in configure.ac.  Run autotools in gltests
65741         subdirectory.
65742         (func_create_testdir, func_create_megatestdir, test): There is
65743         no need for '--force' in most autotool invocations in a new
65744         tree.  Actually fail the whole test if any of the tools, or the
65745         configure or make stages fail.
65746
65747         Sync from Automake.
65748         * build-aux/gnupload: Revert last change.  Add pointer to upload
65749         instructions of the GNU Maintenance Instructions.
65750         Suggestion by Karl Berry.
65751
65752 2006-11-10  Jim Meyering  <jim@meyering.net>
65753
65754         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65755
65756 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65759         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65760         (bind_textdomain_codeset) [! ENABLE_NLS]:
65761         Evaluate all the arguments.  That way, callers get compatible behavior
65762         if the arguments have side effects.  Also, it avoids some GCC
65763         diagnostics in some cases; Joel E. Denny reported problems when Bison
65764         was configured with --enable-gcc-warnigs.
65765
65766 2006-11-10  Jim Meyering  <jim@meyering.net>
65767
65768         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65769         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65770         account.
65771
65772 2006-11-10  Jim Meyering  <jim@meyering.net>
65773
65774         * modules/inline: New file/module.
65775         * modules/xalloc (Files): Remove m4/inline.m4.
65776         (Depends-on): Add inline, instead.
65777         * modules/oset: Likewise.
65778         * modules/list: Likewise.
65779
65780 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65781
65782         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65783         Problem reported by Matthew Woehlke.
65784
65785 2006-11-09  Bruno Haible  <bruno@clisp.org>
65786
65787         * lib/tempname.c (gen_tempname): Remove variant that invokes
65788         __gen_tempname.
65789         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65790         __gen_tempname.
65791
65792 2006-11-08  Bruno Haible  <bruno@clisp.org>
65793
65794         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65795         to 'yes' instead of 'cross-compiling'.
65796
65797 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * lib/quotearg.h (quotearg_free): New decl.
65800         * lib/quotearg.c (quotearg_free): New function.
65801         (slot0, nslots, slotvec0, slotvec):
65802         Now file-scope so that quotearg_free can get at them.
65803
65804 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65805
65806         Sync from Automake.
65807         * build-aux/gnupload: Add missing 'gnu' to example URL.
65808         Report by Karl Berry.
65809
65810 2006-11-08  Bruno Haible  <bruno@clisp.org>
65811
65812         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65813         Suggested by Paul Eggert.
65814
65815 2006-11-08  Jim Meyering  <jim@meyering.net>
65816
65817         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65818         It's already included if !_LIBC.
65819         (fts_safe_changedir): Add a comment.
65820
65821 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65824         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65825         Matthew Woehlke.
65826
65827         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65828         definitions up, to avoid colliding with change below.
65829         (static_inline) [HAVE_INLINE]: New macro.
65830         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65831         Provide extern decls when !HAVE_INLINE.  Do not define unless
65832         static_inline is defined, either by us or by xmalloc.c.  Use
65833         static_inline rather than static inline.
65834         (XCALLOC): Optimize sizeof(T) = 1 case.
65835         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65836
65837 2006-11-07  Bruno Haible  <bruno@clisp.org>
65838
65839         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65840         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65841         AC_C_INLINE.
65842         * modules/xalloc (Files): Add m4/inline.m4.
65843
65844 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65845
65846         * README: Fix typo.
65847         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65848         (Miscellanous Notes): ...from this.
65849
65850 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65851
65852         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65853         Mention that offsetof should be used instead of sizeof.
65854         From Bruno Haible.
65855
65856 2006-11-07  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65859
65860 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65863         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65864         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65865         (gl_tree_add_before, gl_tree_add_after):
65866         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65867         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65868         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65869         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65870         (gl_linked_add_after, gl_linked_add_at): Likewise.
65871         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65872         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65873         (gl_tree_add_before, gl_tree_add_after): Likewise.
65874         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65875         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65876         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65877
65878 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65879
65880         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65881
65882 2006-11-06  Bruno Haible  <bruno@clisp.org>
65883
65884         * m4/inline.m4: New file.
65885         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65886         * modules/list (Files): Add m4/inline.m4.
65887         * modules/oset (Files): Likewise.
65888
65889 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65890
65891         * lib/idcache.c: Include <stddef.h>, for offsetof.
65892         (struct userid.name): Change from char * to a flexible array member.
65893         All uses changed.
65894         * modules/idcache (Depends-on): Add flexmember.
65895
65896         * MODULES.html.sh (Core language properties): New module flexmember.
65897         * modules/flexmember, m4/flexmember.m4: New files.
65898
65899         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65900         inline functions that are identical with the old xnmalloc_inline,
65901         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65902         that we can avoid some unnecessary integer multiplications and
65903         divisions in the common case where the element size is known at
65904         compile time.
65905         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65906         needed.
65907         (xnboundedmalloc): Remove.
65908         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65909         arguments, for consistency with rest of this header.
65910         (xcharalloc): Rewrite using XNMALLOC.
65911         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65912         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65913         versions have been moved to lib/xalloc.h and renamed to be the
65914         non-*_inline versions.
65915         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65916         and xnrealloc functions, since those functions are now inline and
65917         now call us.
65918         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65919         renaming described above.
65920         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65921         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65922         captures the dependency in AC_C_INLINE.
65923
65924         New module canonicalize-lgpl, proposed by Charles Wilson in
65925         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65926         with a few small changes afterwards.
65927         * MODULES.html.sh (File system functions): New module
65928         canonicalize-lgpl.
65929         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65930         and canonicalize_file_name.
65931         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65932         * modules/canonicalize-lgpl: New files.
65933
65934 2006-11-05  Bruno Haible  <bruno@clisp.org>
65935
65936         * gnulib-tool (func_import, func_create_testdir): Create directories
65937         also for files in subdirectories of lib/.
65938
65939 2006-11-05  Bruno Haible  <bruno@clisp.org>
65940
65941         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65942         ANSI C compliant.
65943
65944 2006-11-03  Bruno Haible  <bruno@clisp.org>
65945
65946         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65947         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65948         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65949         (xnboundedmalloc): New inline function.
65950         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65951         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65952         xmalloc.
65953         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65954         xmalloc.
65955         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65956         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65957         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65958         xmalloc.
65959         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65960         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65961         xmalloc.
65962         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65963         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65964         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65965         xmalloc.
65966         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65967         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65968         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65969         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65970         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65971         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65972         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65973
65974 2006-11-03  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/c-ctype.h [C++]: Define functions without name mangling.
65977         * lib/fwriteerror.h [C++]: Likewise.
65978         * lib/gcd.h [C++]: Likewise.
65979         * lib/linebreak.h [C++]: Likewise.
65980
65981 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65982
65983         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65984         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65985         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65986         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65987         Check for functions and headers just once.
65988         Check for declaration of canonicalize_file_name.
65989         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65990
65991 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65992
65993         * gnulib-tool (func_import): Fix typo in actioncmd.
65994
65995 2006-11-02  Bruno Haible  <bruno@clisp.org>
65996
65997         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65998         newline sequence in the Makefile.am snippet as a space, like "make"
65999         does.
66000         Reported by Roger Persson <perrog@gmail.com>.
66001
66002 2006-11-01  Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66005         already declared in <string.h>.
66006         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66007
66008 2006-11-01  Bruno Haible  <bruno@clisp.org>
66009
66010         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66011         * lib/strcase.h: Include <string.h>.
66012         (strcasecmp): Define to rpl_strcasecmp here.
66013
66014 2006-11-01  Bruno Haible  <bruno@clisp.org>
66015
66016         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66017
66018 2006-11-01  Eric Blake  <ebb9@byu.net>
66019
66020         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66021
66022         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66023
66024 2006-10-29  Bruno Haible  <bruno@clisp.org>
66025
66026         Make it compile in C++ mode.
66027         * lib/full-write.c (full_rw): Add a cast.
66028
66029 2006-11-01  Bruno Haible  <bruno@clisp.org>
66030
66031         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66032         be POSIX compliant.
66033         Reported by Roger Persson <perrog@gmail.com>.
66034
66035 2006-11-01  Eric Blake  <ebb9@byu.net>
66036
66037         * lib/getopt_.h: Fix comments.
66038
66039 2006-10-31  Eric Blake  <ebb9@byu.net>
66040
66041         * modules/tmpdir (Depends-on): Add sys_stat.
66042         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66043         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66044         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66045         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66046         tempname.
66047
66048 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66049
66050         Avoid some C++ diagnostics reported by Bruno Haible.
66051         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66052         xmalloc.
66053         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66054         (struct slotvec): Move to top level.
66055         (quotearg_n_options): Rewrite to avoid xmalloc.
66056         * lib/xalloc.h (xcharalloc): New function.
66057         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66058         [defined __cplusplus]: Add function template that provides result
66059         type propagation.  This part of the change is from Bruno Haible.
66060
66061 2006-10-29  Bruno Haible  <bruno@clisp.org>
66062
66063         Make it compile in C++ mode.
66064         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66065         * lib/strnlen1.c (strnlen1): Cast memchr result.
66066         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66067         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66068         (create_temp_dir): Rename local variable 'template'.
66069         (compile_csharp_using_sscli): Add cast.
66070         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66071         * lib/findprog.c (find_in_path): Likewise.
66072         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66073         * lib/wait-process.c (register_slave_subprocess): Likewise.
66074
66075 2006-10-22  Bruno Haible  <bruno@clisp.org>
66076
66077         * modules/tsearch: New file.
66078         * lib/tsearch.h: New file.
66079         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66080         * m4/tsearch.m4: New file.
66081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66082
66083 2006-10-29  Eric Blake  <ebb9@byu.net>
66084
66085         * lib/arcfour.c: Assume config.h.
66086         * lib/arctwo.c: Likewise.
66087         * lib/base64.c: Likewise.
66088         * lib/check-version.c: Likewise.
66089         * lib/crc.c: Likewise.
66090         * lib/des.c: Likewise.
66091         * lib/gc-gnulib.c: Likewise.
66092         * lib/gc-libgcrypt.c: Likewise.
66093         * lib/gc-pbkdf2-sha1.c: Likewise.
66094         * lib/getaddrinfo.c: Likewise.
66095         * lib/getdelim.c: Likewise.
66096         * lib/getline.c: Likewise.
66097         * lib/hmac-md5.c: Likewise.
66098         * lib/hmac-sha1.c: Likewise.
66099         * lib/iconvme.c: Likewise.
66100         * lib/md2.c: Likewise.
66101         * lib/md4.c: Likewise.
66102         * lib/memxor.c: Likewise.
66103         * lib/read-file.c: Likewise.
66104         * lib/readline.c: Likewise.
66105         * lib/rijndael-alg-fst.c: Likewise.
66106         * lib/rijndael-api-fst.c: Likewise.
66107         * lib/xgetdomainname.c: Likewise.
66108
66109 2006-10-28  Eric Blake  <ebb9@byu.net>
66110
66111         * lib/xstrndup.c: Assume config.h.
66112
66113 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66114
66115         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66116         stat-macros.h is now for our own macros, whereas stat_h is for
66117         macros in the <sys/stat.h> name space.
66118         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66119         (STAT_MACROS_H): Remove.
66120         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66121         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66122         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66123         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66124         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66125         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66126         Move these macros to ...
66127         * lib/stat_.h: here.  Don't include stat-macros.h.
66128         * lib/canonicalize.c: Don't include stat-macros.h.
66129         * lib/chown.c: Likewise.
66130         * lib/euidaccess.c: Likewise.
66131         * lib/file-type.c: Likewise.
66132         * lib/filemode.c: Likewise.
66133         * lib/glob.c: Likewise.
66134         * lib/isapipe.c: Likewise.
66135         * lib/lchown.c: Likewise.
66136         * lib/lstat.c: Likewise.
66137         * lib/mkdir-p.c: Likewise.
66138         * lib/rmdir.c: Likewise.
66139         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66141         unless mkdir isn't declared, to speed up 'configure'.
66142         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66143         would define all the S_* symbols.
66144         * modules/canonicalize (Depends-on):
66145         Depend on sys_stat, not stat-macros.
66146         * modules/chown: Likewise.
66147         * modules/euidaccess: Likewise.
66148         * modules/filemode: Likewise.
66149         * modules/file-type: Likewise.
66150         * modules/glob: Likewise.
66151         * modules/isapipe: Likewise.
66152         * modules/lchown: Likewise.
66153         * modules/lstat: Likewise.
66154         * modules/mkancesdirs: Likewise.
66155         * modules/rmdir: Likewise.
66156         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66157         * modules/modechange: Likewise.
66158         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66159         (configure.ac): Remove gl_STAT_MACROS.
66160         * modules/sys_stat (Depends-on): Remove stat-macros.
66161
66162 2006-10-27  Bruno Haible  <bruno@clisp.org>
66163
66164         * m4/signed.m4: Remove file.
66165         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66166         invocation.
66167         * modules/vasnprintf (Files): Remove m4/signed.m4.
66168
66169 2006-10-27  Bruno Haible  <bruno@clisp.org>
66170
66171         Update to GNU gettext 0.16.
66172         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66173         m4/inttypes-h.m4, m4/signed.m4.
66174         * m4/gettext.m4: Update to GNU gettext 0.16.
66175         * m4/intl.m4: New file, from GNU gettext.
66176         * m4/intldir.m4: New file, from GNU gettext.
66177         * config/srclist.txt: Update
66178
66179 2006-10-27  Eric Blake  <ebb9@byu.net>
66180
66181         * MODULES.html.sh: Document tempname.
66182         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66183         dependencies.
66184         (Files): Move lib/tempname.c...
66185         * modules/tempname: ...to this new module.
66186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66187         (gl_PREREQ_TEMPNAME): Move...
66188         * m4/tempname.m4: ...to this new file.
66189         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66190         * modules/sys_stat (Depends-on): Add stat-macros.
66191         * lib/stat_.h (includes): Pick up stat macros.
66192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66193         if stat macros are broken.
66194         * lib/tempname.c (includes): No need to include "stat-macros.h".
66195         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66196         (direxists, __path_search) [!_LIBC]: Don't compile these in
66197         gnulib; the tmpdir module covers that.
66198         * lib/tempname.h: New file.
66199
66200 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         * COPYING: Explain how gnulib-tool converts licence headers.
66203         Almost all wording by Eric Blake.
66204
66205 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66206
66207         * lib/mbchar.h (is_basic_table): Make read-only.
66208         * lib/mbchar.c (is_basic_table): Likewise.
66209         Reported by John Darrington.
66210
66211 2006-10-25  Bruno Haible  <bruno@clisp.org>
66212
66213         * lib/progname.h (set_program_name): Undefine before defining.
66214
66215 2006-10-25  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66218         false for non-gcc C++ compilers.
66219         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66220
66221 2006-10-24  Bruno Haible  <bruno@clisp.org>
66222
66223         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66224         iconv implementations like Irix iconv.
66225
66226 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         * modules/vararrays: New file.
66229         * m4/vararrays.m4: New file, taken from diffutils.
66230         * MODULES.html.sh: New module vararrays.
66231
66232 2006-10-24  Karl Berry  <karl@gnu.org>
66233
66234         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66235         Don't call GNU Unix.
66236
66237 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66238
66239         * users.txt: Add Libtool.
66240
66241         Sync from Libtool:
66242
66243         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66244
66245         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66246         to gnulib's policy of including config.h unconditionally.
66247
66248 2006-10-24  Bruno Haible  <bruno@clisp.org>
66249
66250         * modules/wcwidth (Files): Add m4/wint_t.m4.
66251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66252         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66253
66254 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66255
66256         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66257         to pacify GCC with some -W flags enabled.  Problem reported by
66258         Bruno Haible.
66259
66260 2006-10-24  Jim Meyering  <jim@meyering.net>
66261
66262         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66263         Reported by Karl Berry.
66264
66265 2006-10-23  Bruno Haible  <bruno@clisp.org>
66266
66267         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66268
66269 2006-10-24  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/gl_list.h: Use C comment style, not C++ comment style.
66272
66273 2006-10-23  Eric Blake  <ebb9@byu.net>
66274
66275         * lib/getaddrinfo.c (includes): Add missing include.
66276
66277 2006-10-23  Bruno Haible  <bruno@clisp.org>
66278             Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         Ability to rename obstack_free.
66281         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66282         obstack_free.
66283         (obstack_free): Invoke the __obstack_free macro.
66284         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66285
66286 2006-10-23  Bruno Haible  <bruno@clisp.org>
66287             Paul Eggert  <eggert@cs.ucla.edu>
66288
66289         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66290         __argc, __argv from the declaration. (They are defined as macros on
66291         mingw.)
66292
66293 2006-10-22  Bruno Haible  <bruno@clisp.org>
66294
66295         * doc/gnulib-intro.texi: New file.
66296         * doc/gnulib.texi: Include it.
66297
66298 2006-10-21  Bruno Haible  <bruno@clisp.org>
66299
66300         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66301         "Introduction", "Miscellanous Notes", "Particular Modules".
66302
66303 2006-10-21  Bruno Haible  <bruno@clisp.org>
66304
66305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66306         Change mostlyclean-local rule to avoid sh syntax error from bash
66307         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66308
66309 2006-10-23  Jim Meyering  <jim@meyering.net>
66310
66311         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66312         in place of snprintf.
66313
66314         * modules/inttostr (Files): Add lib/uinttostr.c.
66315         * lib/uinttostr.c (inttostr): New file/function.
66316         * lib/inttostr.h (uinttostr): Declare.
66317         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66318         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66319         Add uinttostr.
66320         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66321
66322 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66323
66324         * lib/canonicalize.c (ELOOP): Define if not already defined.
66325         Problem reported by Bruno Haible in
66326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66327
66328 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66331         Problem reported by Perry Smith and Ville Laurikari.
66332
66333         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66334         uses.
66335
66336 2006-10-19  Bruno Haible  <bruno@clisp.org>
66337
66338         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66339         for mingw.
66340
66341 2006-10-19  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66344         Needed for mingw.
66345
66346 2006-10-19  Bruno Haible  <bruno@clisp.org>
66347
66348         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66349
66350 2006-10-19  Bruno Haible  <bruno@clisp.org>
66351
66352         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66353         it.
66354
66355 2006-10-19  Bruno Haible  <bruno@clisp.org>
66356
66357         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66358         invocation.
66359
66360 2006-10-19  Bruno Haible  <bruno@clisp.org>
66361
66362         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66363         mountlist by default.
66364
66365 2006-10-16  Bruno Haible  <bruno@clisp.org>
66366
66367         * lib/c-strstr.c: Include c-strstr.h.
66368
66369 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66370
66371         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66372         in a slash.
66373
66374 2006-10-18  Bruno Haible  <bruno@clisp.org>
66375
66376         * lib/lock.h [C++]: Wrap definitions in extern "C".
66377
66378 2006-10-18  Bruno Haible  <bruno@clisp.org>
66379
66380         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66381         gl_LIBOBJS list.
66382
66383 2006-10-18  Bruno Haible  <bruno@clisp.org>
66384
66385         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66386
66387 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * lib/xstrtol.h: Include gettext.h.
66390         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66391         Problem reported by Eric Blake.
66392         * modules/xstrtol (Depends-on): Add gettext-h.
66393
66394 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66395
66396         * lib/strftime.c (advance): New macro.
66397         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66398         incomplete type, so you can't add 0 to it.  Problem and patch
66399         reported by Eelco Dolstra for dietlibc.
66400
66401 2006-10-18  Jim Meyering  <jim@meyering.net>
66402
66403         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66404         type for a local, and rename it: s/up/user_proc/.
66405
66406 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66407
66408         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66409         READ_UTMP_USER_PROCESS.
66410         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66411
66412 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66415         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66416
66417 2006-10-17  Eric Blake  <ebb9@byu.net>
66418
66419         * lib/sigprocmask.c (sigprocmask): Fix typo.
66420
66421         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66422
66423         * modules/clean-temp (Makefile.am): Don't add to make output...
66424         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66425         config.h.
66426
66427 2006-10-17  Bruno Haible  <bruno@clisp.org>
66428
66429         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66430         differently if DEFAULT_TEXT_DOMAIN is set.
66431
66432 2006-10-16  Bruno Haible  <bruno@clisp.org>
66433
66434         * lib/clean-temp.c: Include fwriteerror.h.
66435
66436 2006-10-16  Bruno Haible  <bruno@clisp.org>
66437
66438         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66439
66440 2006-10-16  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66443         * lib/sigprocmask.h: Include <sys/types.h>.
66444         (sigset_t): Use the system's definition if present.
66445
66446 2006-10-17  Eric Blake  <ebb9@byu.net>
66447
66448         * lib/xvasprintf.c (includes): Assume config.h.
66449         * lib/xasprintf.c (includes): Likewise.
66450
66451 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66452
66453         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66454         at least as wide as intmax_t.
66455
66456 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66457
66458         (Imported from Automake.)
66459         * build-aux/gnupload: Update to version 1.1 of directive file.
66460
66461 2006-10-16  Eric Blake  <ebb9@byu.net>
66462
66463         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66464         match Automake 1.10a.
66465
66466 2006-10-14  Bruno Haible  <bruno@clisp.org>
66467
66468         * modules/sigprocmask: New file.
66469         * lib/sigprocmask.h: New file.
66470         * lib/sigprocmask.c: New file.
66471         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66472         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66473         request sigprocmask.o.
66474         (gl_PREREQ_SIGPROCMASK): New macro.
66475         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66476         (Depends-on): Add sigprocmask.
66477         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66478         gt_SIGNALBLOCKING. Test for 'raise' only once.
66479         * lib/fatal-signal.c: Include sigprocmask.h.
66480         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66481         unblock_fatal_signals): Define always.
66482         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66483         sigprocmask.
66484
66485 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66486
66487         Sync from Automake.
66488         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66489         which incorrectly sets the mode of an existing destination
66490         directory.  In some cases the unpatched install-sh could do the
66491         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66492         system.  We hope this is rare in practice, but it's clearly worth
66493         fixing.  Problem reported by Alex Unleashed in
66494         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66495         Also, don't bother to check for -m bugs unless we're using -m;
66496         suggested by Stepan Kasal.
66497
66498 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66499
66500         Sync from Automake.
66501         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66502         `-c' flag, so they appear at the same position as in %FASTDEP%
66503         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66504         which ignores unknown options only after the first non-option.
66505         Bug report against M4 by Nelson H. F. Beebe.
66506
66507 2006-10-13  Jim Meyering  <jim@meyering.net>
66508
66509         Fix a bug in yesterday's change.
66510         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66511         p->fts_statp->st_dev would be used uninitialized.
66512         Ensures that we always call fts_stat on the very first entry.
66513         Miklos Szeredi reported that find -xdev stopped working.
66514
66515 2006-10-12  Bruno Haible  <bruno@clisp.org>
66516
66517         * gnulib-tool (func_get_automake_snippet): Append an automatically
66518         computed EXTRA_DIST augmentation.
66519         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66520         * modules/alloca-opt (Makefile.am): Likewise.
66521         * modules/allocsa (Makefile.am): Likewise.
66522         * modules/arcfour (Makefile.am): Likewise.
66523         * modules/arctwo (Makefile.am): Likewise.
66524         * modules/argmatch (Makefile.am): Likewise.
66525         * modules/argz (Makefile.am): Likewise.
66526         * modules/atexit (Makefile.am): Likewise.
66527         * modules/backupfile (Makefile.am): Likewise.
66528         * modules/byteswap (Makefile.am): Likewise.
66529         * modules/c-strtod (Makefile.am): Likewise.
66530         * modules/c-strtold (Makefile.am): Likewise.
66531         * modules/calloc (Makefile.am): Likewise.
66532         * modules/canon-host (Makefile.am): Likewise.
66533         * modules/canonicalize (Makefile.am): Likewise.
66534         * modules/chdir-long (Makefile.am): Likewise.
66535         * modules/chdir-safer (Makefile.am): Likewise.
66536         * modules/check-version (Makefile.am): Likewise.
66537         * modules/chown (Makefile.am): Likewise.
66538         * modules/cloexec (Makefile.am): Likewise.
66539         * modules/close-stream (Makefile.am): Likewise.
66540         * modules/closeout (Makefile.am): Likewise.
66541         * modules/crc (Makefile.am): Likewise.
66542         * modules/csharpexec (Makefile.am): Likewise.
66543         * modules/cycle-check (Makefile.am): Likewise.
66544         * modules/des (Makefile.am): Likewise.
66545         * modules/dev-ino (Makefile.am): Likewise.
66546         * modules/dirfd (Makefile.am): Likewise.
66547         * modules/dirname (Makefile.am): Likewise.
66548         * modules/dup2 (Makefile.am): Likewise.
66549         * modules/eealloc (Makefile.am): Likewise.
66550         * modules/error (Makefile.am): Likewise.
66551         * modules/euidaccess (Makefile.am): Likewise.
66552         * modules/exclude (Makefile.am): Likewise.
66553         * modules/exitfail (Makefile.am): Likewise.
66554         * modules/fcntl-safer (Makefile.am): Likewise.
66555         * modules/fcntl (Makefile.am): Likewise.
66556         * modules/file-type (Makefile.am): Likewise.
66557         * modules/fileblocks (Makefile.am): Likewise.
66558         * modules/filemode (Makefile.am): Likewise.
66559         * modules/filenamecat (Makefile.am): Likewise.
66560         * modules/fnmatch (Makefile.am): Likewise.
66561         * modules/fopen-safer (Makefile.am): Likewise.
66562         * modules/fpending (Makefile.am): Likewise.
66563         * modules/fprintftime (Makefile.am): Likewise.
66564         * modules/free (Makefile.am): Likewise.
66565         * modules/fsusage (Makefile.am): Likewise.
66566         * modules/ftruncate (Makefile.am): Likewise.
66567         * modules/fts (Makefile.am): Likewise.
66568         * modules/gc-arcfour (Makefile.am): Likewise.
66569         * modules/gc-des (Makefile.am): Likewise.
66570         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66571         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66572         * modules/gc-md4 (Makefile.am): Likewise.
66573         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66574         * modules/gc-sha1 (Makefile.am): Likewise.
66575         * modules/gc (Makefile.am): Likewise.
66576         * modules/getaddrinfo (Makefile.am): Likewise.
66577         * modules/getcwd (Makefile.am): Likewise.
66578         * modules/getdelim (Makefile.am): Likewise.
66579         * modules/getdomainname (Makefile.am): Likewise.
66580         * modules/getgroups (Makefile.am): Likewise.
66581         * modules/gethostname (Makefile.am): Likewise.
66582         * modules/gethrxtime (Makefile.am): Likewise.
66583         * modules/getline (Makefile.am): Likewise.
66584         * modules/getloadavg (Makefile.am): Likewise.
66585         * modules/getlogin_r (Makefile.am): Likewise.
66586         * modules/getndelim2 (Makefile.am): Likewise.
66587         * modules/getopt (Makefile.am): Likewise.
66588         * modules/getpagesize (Makefile.am): Likewise.
66589         * modules/getpass-gnu (Makefile.am): Likewise.
66590         * modules/getpass (Makefile.am): Likewise.
66591         * modules/getsubopt (Makefile.am): Likewise.
66592         * modules/gettime (Makefile.am): Likewise.
66593         * modules/gettimeofday (Makefile.am): Likewise.
66594         * modules/getugroups (Makefile.am): Likewise.
66595         * modules/getusershell (Makefile.am): Likewise.
66596         * modules/glob (Makefile.am): Likewise.
66597         * modules/group-member (Makefile.am): Likewise.
66598         * modules/hard-locale (Makefile.am): Likewise.
66599         * modules/hash (Makefile.am): Likewise.
66600         * modules/hmac-md5 (Makefile.am): Likewise.
66601         * modules/hmac-sha1 (Makefile.am): Likewise.
66602         * modules/human (Makefile.am): Likewise.
66603         * modules/idcache (Makefile.am): Likewise.
66604         * modules/imaxabs (Makefile.am): Likewise.
66605         * modules/imaxdiv (Makefile.am): Likewise.
66606         * modules/inet_ntop (Makefile.am): Likewise.
66607         * modules/inet_pton (Makefile.am): Likewise.
66608         * modules/intprops (Makefile.am): Likewise.
66609         * modules/inttostr (Makefile.am): Likewise.
66610         * modules/inttypes (Makefile.am): Likewise.
66611         * modules/isapipe (Makefile.am): Likewise.
66612         * modules/javaversion (Makefile.am): Likewise.
66613         * modules/lchmod (Makefile.am): Likewise.
66614         * modules/lchown (Makefile.am): Likewise.
66615         * modules/localcharset (Makefile.am): Likewise.
66616         * modules/long-options (Makefile.am): Likewise.
66617         * modules/lstat (Makefile.am): Likewise.
66618         * modules/malloc (Makefile.am): Likewise.
66619         * modules/mathl (Makefile.am): Likewise.
66620         * modules/mbchar (Makefile.am): Likewise.
66621         * modules/md2 (Makefile.am): Likewise.
66622         * modules/md4 (Makefile.am): Likewise.
66623         * modules/md5 (Makefile.am): Likewise.
66624         * modules/memcasecmp (Makefile.am): Likewise.
66625         * modules/memchr (Makefile.am): Likewise.
66626         * modules/memcmp (Makefile.am): Likewise.
66627         * modules/memcoll (Makefile.am): Likewise.
66628         * modules/memcpy (Makefile.am): Likewise.
66629         * modules/memmem (Makefile.am): Likewise.
66630         * modules/memmove (Makefile.am): Likewise.
66631         * modules/mempcpy (Makefile.am): Likewise.
66632         * modules/memrchr (Makefile.am): Likewise.
66633         * modules/memset (Makefile.am): Likewise.
66634         * modules/memxor (Makefile.am): Likewise.
66635         * modules/mkancesdirs (Makefile.am): Likewise.
66636         * modules/mkdir-p (Makefile.am): Likewise.
66637         * modules/mkdir (Makefile.am): Likewise.
66638         * modules/mkdtemp (Makefile.am): Likewise.
66639         * modules/mkstemp (Makefile.am): Likewise.
66640         * modules/mktime (Makefile.am): Likewise.
66641         * modules/modechange (Makefile.am): Likewise.
66642         * modules/mountlist (Makefile.am): Likewise.
66643         * modules/nanosleep (Makefile.am): Likewise.
66644         * modules/obstack (Makefile.am): Likewise.
66645         * modules/openat (Makefile.am): Likewise.
66646         * modules/pagealign_alloc (Makefile.am): Likewise.
66647         * modules/pathmax (Makefile.am): Likewise.
66648         * modules/physmem (Makefile.am): Likewise.
66649         * modules/poll (Makefile.am): Likewise.
66650         * modules/posixtm (Makefile.am): Likewise.
66651         * modules/posixver (Makefile.am): Likewise.
66652         * modules/putenv (Makefile.am): Likewise.
66653         * modules/quote (Makefile.am): Likewise.
66654         * modules/quotearg (Makefile.am): Likewise.
66655         * modules/raise (Makefile.am): Likewise.
66656         * modules/read-file (Makefile.am): Likewise.
66657         * modules/readline (Makefile.am): Likewise.
66658         * modules/readlink (Makefile.am): Likewise.
66659         * modules/readtokens (Makefile.am): Likewise.
66660         * modules/readutmp (Makefile.am): Likewise.
66661         * modules/realloc (Makefile.am): Likewise.
66662         * modules/regex (Makefile.am): Likewise.
66663         * modules/rename-dest-slash (Makefile.am): Likewise.
66664         * modules/rename (Makefile.am): Likewise.
66665         * modules/rijndael (Makefile.am): Likewise.
66666         * modules/rmdir (Makefile.am): Likewise.
66667         * modules/rpmatch (Makefile.am): Likewise.
66668         * modules/safe-read (Makefile.am): Likewise.
66669         * modules/safe-write (Makefile.am): Likewise.
66670         * modules/same-inode (Makefile.am): Likewise.
66671         * modules/same (Makefile.am): Likewise.
66672         * modules/save-cwd (Makefile.am): Likewise.
66673         * modules/savedir (Makefile.am): Likewise.
66674         * modules/setenv (Makefile.am): Likewise.
66675         * modules/settime (Makefile.am): Likewise.
66676         * modules/sha1 (Makefile.am): Likewise.
66677         * modules/sig2str (Makefile.am): Likewise.
66678         * modules/snprintf (Makefile.am): Likewise.
66679         * modules/stat-macros (Makefile.am): Likewise.
66680         * modules/stat-time (Makefile.am): Likewise.
66681         * modules/stdbool (Makefile.am): Likewise.
66682         * modules/stdint (Makefile.am): Likewise.
66683         * modules/stdlib-safer (Makefile.am): Likewise.
66684         * modules/stpcpy (Makefile.am): Likewise.
66685         * modules/stpncpy (Makefile.am): Likewise.
66686         * modules/strcase (Makefile.am): Likewise.
66687         * modules/strcasestr (Makefile.am): Likewise.
66688         * modules/strchrnul (Makefile.am): Likewise.
66689         * modules/strcspn (Makefile.am): Likewise.
66690         * modules/strdup (Makefile.am): Likewise.
66691         * modules/strerror (Makefile.am): Likewise.
66692         * modules/strftime (Makefile.am): Likewise.
66693         * modules/strndup (Makefile.am): Likewise.
66694         * modules/strnlen (Makefile.am): Likewise.
66695         * modules/strpbrk (Makefile.am): Likewise.
66696         * modules/strsep (Makefile.am): Likewise.
66697         * modules/strstr (Makefile.am): Likewise.
66698         * modules/strtod (Makefile.am): Likewise.
66699         * modules/strtoimax (Makefile.am): Likewise.
66700         * modules/strtok_r (Makefile.am): Likewise.
66701         * modules/strtol (Makefile.am): Likewise.
66702         * modules/strtoll (Makefile.am): Likewise.
66703         * modules/strtoul (Makefile.am): Likewise.
66704         * modules/strtoull (Makefile.am): Likewise.
66705         * modules/strtoumax (Makefile.am): Likewise.
66706         * modules/strverscmp (Makefile.am): Likewise.
66707         * modules/sys_socket (Makefile.am): Likewise.
66708         * modules/sys_stat (Makefile.am): Likewise.
66709         * modules/sysexits (Makefile.am): Likewise.
66710         * modules/time_r (Makefile.am): Likewise.
66711         * modules/timegm (Makefile.am): Likewise.
66712         * modules/timespec (Makefile.am): Likewise.
66713         * modules/tmpfile-safer (Makefile.am): Likewise.
66714         * modules/trim (Makefile.am): Likewise.
66715         * modules/unistd-safer (Makefile.am): Likewise.
66716         * modules/unlinkdir (Makefile.am): Likewise.
66717         * modules/unlocked-io (Makefile.am): Likewise.
66718         * modules/userspec (Makefile.am): Likewise.
66719         * modules/utime (Makefile.am): Likewise.
66720         * modules/utimecmp (Makefile.am): Likewise.
66721         * modules/utimens (Makefile.am): Likewise.
66722         * modules/vasnprintf (Makefile.am): Likewise.
66723         * modules/vasprintf (Makefile.am): Likewise.
66724         * modules/vsnprintf (Makefile.am): Likewise.
66725         * modules/xalloc (Makefile.am): Likewise.
66726         * modules/xgetcwd (Makefile.am): Likewise.
66727         * modules/xnanosleep (Makefile.am): Likewise.
66728         * modules/xreadlink (Makefile.am): Likewise.
66729         * modules/xstrtod (Makefile.am): Likewise.
66730         * modules/xstrtol (Makefile.am): Likewise.
66731         * modules/xstrtold (Makefile.am): Likewise.
66732         * modules/yesno (Makefile.am): Likewise.
66733         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66734
66735 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66736
66737         * modules/error (Makefile.am): Distribute files through
66738         EXTRA_DIST, not lib_SOURCES.
66739
66740 2006-10-12  Eric Blake  <ebb9@byu.net>
66741
66742         * modules/error (Makefile.am): Distribute files in /lib.
66743         * modules/obstack (Makefile.am): Likewise.
66744
66745 2006-10-12  Bruno Haible  <bruno@clisp.org>
66746
66747         * modules/acl (Makefile.am): Distribute all files in lib/ through
66748         EXTRA_DIST.
66749         * modules/arcfour (Makefile.am): Likewise.
66750         * modules/arctwo (Makefile.am): Likewise.
66751         * modules/argmatch (Makefile.am): Likewise.
66752         * modules/argz (Makefile.am): Likewise.
66753         * modules/atexit (Makefile.am): Likewise.
66754         * modules/backupfile (Makefile.am): Likewise.
66755         * modules/c-strtod (Makefile.am): Likewise.
66756         * modules/c-strtold (Makefile.am): Likewise.
66757         * modules/calloc (Makefile.am): Likewise.
66758         * modules/canon-host (Makefile.am): Likewise.
66759         * modules/canonicalize (Makefile.am): Likewise.
66760         * modules/chdir-long (Makefile.am): Likewise.
66761         * modules/chdir-safer (Makefile.am): Likewise.
66762         * modules/check-version (Makefile.am): Likewise.
66763         * modules/chown (Makefile.am): Likewise.
66764         * modules/cloexec (Makefile.am): Likewise.
66765         * modules/close-stream (Makefile.am): Likewise.
66766         * modules/closeout (Makefile.am): Likewise.
66767         * modules/crc (Makefile.am): Likewise.
66768         * modules/cycle-check (Makefile.am): Likewise.
66769         * modules/des (Makefile.am): Likewise.
66770         * modules/dirfd (Makefile.am): Likewise.
66771         * modules/dirname (Makefile.am): Likewise.
66772         * modules/dup2 (Makefile.am): Likewise.
66773         * modules/euidaccess (Makefile.am): Likewise.
66774         * modules/exclude (Makefile.am): Likewise.
66775         * modules/exitfail (Makefile.am): Likewise.
66776         * modules/fcntl-safer (Makefile.am): Likewise.
66777         * modules/file-type (Makefile.am): Likewise.
66778         * modules/fileblocks (Makefile.am): Likewise.
66779         * modules/filemode (Makefile.am): Likewise.
66780         * modules/filenamecat (Makefile.am): Likewise.
66781         * modules/fnmatch (Makefile.am): Likewise.
66782         * modules/fopen-safer (Makefile.am): Likewise.
66783         * modules/fpending (Makefile.am): Likewise.
66784         * modules/fprintftime (Makefile.am): Likewise.
66785         * modules/free (Makefile.am): Likewise.
66786         * modules/fsusage (Makefile.am): Likewise.
66787         * modules/ftruncate (Makefile.am): Likewise.
66788         * modules/fts (Makefile.am): Likewise.
66789         * modules/gc (Makefile.am): Likewise.
66790         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66791         * modules/getaddrinfo (Makefile.am): Likewise.
66792         * modules/getcwd (Makefile.am): Likewise.
66793         * modules/getdelim (Makefile.am): Likewise.
66794         * modules/getdomainname (Makefile.am): Likewise.
66795         * modules/getgroups (Makefile.am): Likewise.
66796         * modules/gethostname (Makefile.am): Likewise.
66797         * modules/gethrxtime (Makefile.am): Likewise.
66798         * modules/getline (Makefile.am): Likewise.
66799         * modules/getloadavg (Makefile.am): Likewise.
66800         * modules/getlogin_r (Makefile.am): Likewise.
66801         * modules/getopt (Makefile.am): Likewise.
66802         * modules/getpass (Makefile.am): Likewise.
66803         * modules/getpass-gnu (Makefile.am): Likewise.
66804         * modules/getsubopt (Makefile.am): Likewise.
66805         * modules/gettime (Makefile.am): Likewise.
66806         * modules/gettimeofday (Makefile.am): Likewise.
66807         * modules/getugroups (Makefile.am): Likewise.
66808         * modules/getusershell (Makefile.am): Likewise.
66809         * modules/glob (Makefile.am): Likewise.
66810         * modules/group-member (Makefile.am): Likewise.
66811         * modules/hard-locale (Makefile.am): Likewise.
66812         * modules/hash (Makefile.am): Likewise.
66813         * modules/hmac-md5 (Makefile.am): Likewise.
66814         * modules/hmac-sha1 (Makefile.am): Likewise.
66815         * modules/human (Makefile.am): Likewise.
66816         * modules/idcache (Makefile.am): Likewise.
66817         * modules/imaxabs (Makefile.am): Likewise.
66818         * modules/imaxdiv (Makefile.am): Likewise.
66819         * modules/inet_ntop (Makefile.am): Likewise.
66820         * modules/inet_pton (Makefile.am): Likewise.
66821         * modules/inttostr (Makefile.am): Likewise.
66822         * modules/isapipe (Makefile.am): Likewise.
66823         * modules/lchown (Makefile.am): Likewise.
66824         * modules/long-options (Makefile.am): Likewise.
66825         * modules/lstat (Makefile.am): Likewise.
66826         * modules/malloc (Makefile.am): Likewise.
66827         * modules/mathl (Makefile.am): Likewise.
66828         * modules/mbchar (Makefile.am): Likewise.
66829         * modules/md2 (Makefile.am): Likewise.
66830         * modules/md4 (Makefile.am): Likewise.
66831         * modules/md5 (Makefile.am): Likewise.
66832         * modules/memcasecmp (Makefile.am): Likewise.
66833         * modules/memchr (Makefile.am): Likewise.
66834         * modules/memcmp (Makefile.am): Likewise.
66835         * modules/memcoll (Makefile.am): Likewise.
66836         * modules/memcpy (Makefile.am): Likewise.
66837         * modules/memmem (Makefile.am): Likewise.
66838         * modules/memmove (Makefile.am): Likewise.
66839         * modules/mempcpy (Makefile.am): Likewise.
66840         * modules/memrchr (Makefile.am): Likewise.
66841         * modules/memset (Makefile.am): Likewise.
66842         * modules/memxor (Makefile.am): Likewise.
66843         * modules/mkancesdirs (Makefile.am): Likewise.
66844         * modules/mkdir (Makefile.am): Likewise.
66845         * modules/mkdir-p (Makefile.am): Likewise.
66846         * modules/mkdtemp (Makefile.am): Likewise.
66847         * modules/mkstemp (Makefile.am): Likewise.
66848         * modules/mktime (Makefile.am): Likewise.
66849         * modules/modechange (Makefile.am): Likewise.
66850         * modules/mountlist (Makefile.am): Likewise.
66851         * modules/nanosleep (Makefile.am): Likewise.
66852         * modules/openat (Makefile.am): Likewise.
66853         * modules/pagealign_alloc (Makefile.am): Likewise.
66854         * modules/physmem (Makefile.am): Likewise.
66855         * modules/poll (Makefile.am): Likewise.
66856         * modules/posixtm (Makefile.am): Likewise.
66857         * modules/posixver (Makefile.am): Likewise.
66858         * modules/putenv (Makefile.am): Likewise.
66859         * modules/quote (Makefile.am): Likewise.
66860         * modules/quotearg (Makefile.am): Likewise.
66861         * modules/raise (Makefile.am): Likewise.
66862         * modules/read-file (Makefile.am): Likewise.
66863         * modules/readline (Makefile.am): Likewise.
66864         * modules/readlink (Makefile.am): Likewise.
66865         * modules/readtokens (Makefile.am): Likewise.
66866         * modules/readutmp (Makefile.am): Likewise.
66867         * modules/realloc (Makefile.am): Likewise.
66868         * modules/regex (Makefile.am): Likewise.
66869         * modules/rename (Makefile.am): Likewise.
66870         * modules/rename-dest-slash (Makefile.am): Likewise.
66871         * modules/rijndael (Makefile.am): Likewise.
66872         * modules/rmdir (Makefile.am): Likewise.
66873         * modules/rpmatch (Makefile.am): Likewise.
66874         * modules/safe-read (Makefile.am): Likewise.
66875         * modules/safe-write (Makefile.am): Likewise.
66876         * modules/same (Makefile.am): Likewise.
66877         * modules/save-cwd (Makefile.am): Likewise.
66878         * modules/savedir (Makefile.am): Likewise.
66879         * modules/setenv (Makefile.am): Likewise.
66880         * modules/settime (Makefile.am): Likewise.
66881         * modules/sha1 (Makefile.am): Likewise.
66882         * modules/sig2str (Makefile.am): Likewise.
66883         * modules/snprintf (Makefile.am): Likewise.
66884         * modules/stdlib-safer (Makefile.am): Likewise.
66885         * modules/stpcpy (Makefile.am): Likewise.
66886         * modules/stpncpy (Makefile.am): Likewise.
66887         * modules/strcase (Makefile.am): Likewise.
66888         * modules/strcasestr (Makefile.am): Likewise.
66889         * modules/strchrnul (Makefile.am): Likewise.
66890         * modules/strcspn (Makefile.am): Likewise.
66891         * modules/strdup (Makefile.am): Likewise.
66892         * modules/strerror (Makefile.am): Likewise.
66893         * modules/strftime (Makefile.am): Likewise.
66894         * modules/strndup (Makefile.am): Likewise.
66895         * modules/strnlen (Makefile.am): Likewise.
66896         * modules/strpbrk (Makefile.am): Likewise.
66897         * modules/strsep (Makefile.am): Likewise.
66898         * modules/strstr (Makefile.am): Likewise.
66899         * modules/strtod (Makefile.am): Likewise.
66900         * modules/strtoimax (Makefile.am): Likewise.
66901         * modules/strtok_r (Makefile.am): Likewise.
66902         * modules/strtol (Makefile.am): Likewise.
66903         * modules/strtoll (Makefile.am): Likewise.
66904         * modules/strtoul (Makefile.am): Likewise.
66905         * modules/strtoull (Makefile.am): Likewise.
66906         * modules/strtoumax (Makefile.am): Likewise.
66907         * modules/strverscmp (Makefile.am): Likewise.
66908         * modules/time_r (Makefile.am): Likewise.
66909         * modules/timegm (Makefile.am): Likewise.
66910         * modules/tmpfile-safer (Makefile.am): Likewise.
66911         * modules/unistd-safer (Makefile.am): Likewise.
66912         * modules/unlinkdir (Makefile.am): Likewise.
66913         * modules/userspec (Makefile.am): Likewise.
66914         * modules/utime (Makefile.am): Likewise.
66915         * modules/utimecmp (Makefile.am): Likewise.
66916         * modules/utimens (Makefile.am): Likewise.
66917         * modules/vasnprintf (Makefile.am): Likewise.
66918         * modules/vasprintf (Makefile.am): Likewise.
66919         * modules/vsnprintf (Makefile.am): Likewise.
66920         * modules/xalloc (Makefile.am): Likewise.
66921         * modules/xgetcwd (Makefile.am): Likewise.
66922         * modules/xnanosleep (Makefile.am): Likewise.
66923         * modules/xreadlink (Makefile.am): Likewise.
66924         * modules/xstrtod (Makefile.am): Likewise.
66925         * modules/xstrtol (Makefile.am): Likewise.
66926         * modules/xstrtold (Makefile.am): Likewise.
66927         * modules/yesno (Makefile.am): Likewise.
66928
66929 2006-10-12  Jim Meyering  <jim@meyering.net>
66930
66931         * m4/getloadavg.m4: Revert the change below.
66932
66933         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66934         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66935         fail with a symlink, which is what coreutils' ./bootstrap now
66936         creates by default.
66937
66938 2006-10-12  Bruno Haible  <bruno@clisp.org>
66939
66940         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66941         mingw.
66942         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66943         MSVC and mingw explicitly.
66944
66945 2006-10-11  Simon Josefsson  <jas@extundo.com>
66946             Bruno Haible  <bruno@clisp.org>
66947
66948         Add support for multiple gnulib-tool invocations in the scope of a
66949         single configure.ac file.
66950         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66951         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66952         with the same contents as the _LIBADD variable.
66953         (func_emit_initmacro_start, func_emit_initmacro_end,
66954         func_emit_initmacro_done): New functions.
66955         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66956         gl_LIBOBJS and gl_LTLIBOBJS.
66957
66958 2006-10-11  Bruno Haible  <bruno@clisp.org>
66959
66960         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66961         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66962         autoreconf. Instead, invoke autopoint explicitly but move back the
66963         *.m4 files from gnulib.
66964
66965 2006-10-11  Bruno Haible  <bruno@clisp.org>
66966
66967         * gnulib-tool (func_usage): Make module names after --create-testdir
66968         optional.
66969         (func_create_testdir): If no module was specified, use nearly all
66970         modules.
66971
66972 2006-10-12  Jim Meyering  <jim@meyering.net>
66973
66974         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66975         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66976         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66977         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66978         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66979         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66980         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66981         (fts_set_stat_required): New function.
66982         (fts_open): Defer the calls to fts_stat, if possible or requested.
66983         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66984         into fts_stat itself.
66985         (fts_read): Perform any required (deferred) fts_stat call.
66986         (fts_build): Likewise, for the directory we're about to open and read.
66987         In the readdir loop, carefully decide whether each entry will require
66988         an eventual call to fts_stat, using dirent.d_type info if available.
66989         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66990         a command line argument into this function.  Update all callers.
66991         Map a return value of FTS_DOT to FTS_D for a command line argument.
66992         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66993         Thanks to Miklos Szeredi for his tenacity and for the initial
66994         bug report about "find" failing on a FUSE-based file system.
66995
66996         * lib/fts.c (fts_open): Use consistent indentation.
66997
66998 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66999
67000         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67001         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67002         reported by Jim Meyering.  All uses of cache variables renamed
67003         to match Autoconf's.
67004         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67005         the other one.
67006
67007         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67008         Fix misspelling in diagnostic.
67009
67010 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67011
67012         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67013         defined.  Problem reported by Matthew Woehlke.
67014
67015         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67016         Add support for Tandem NonStop R series.
67017         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67018         Use new macro.
67019
67020         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67021         (has_trailing_slash): Omit size arg; all callers changed.
67022         Omit 'inline', since it doesn't help performance and we'd
67023         need to configure it.
67024         Don't count //, ///, etc. as having a trailing slash.
67025         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67026         (rpl_rename_dest_slash): On failure, use rename's errno rather
67027         than (in some cases) an incorrect or junk errno.
67028         Simplify code by removing need to compute length; this does
67029         cause it to make two passes instead of one over the file name,
67030         but it's worth it.
67031
67032         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67033         change, since Autoconf's version may no longer be appropriate now
67034         that we are using CVS Autoconf's version.  Add support for Tandem.
67035
67036 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67037             Bruno Haible  <bruno@clisp.org>
67038
67039         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67040         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67041         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67042         gl_AC_TYPE_LONG_LONG.
67043
67044         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67045         instead of HAVE_LONG_LONG.
67046         * lib/printf-args.c (printf_fetchargs): Likewise.
67047         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67048         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67049         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67050         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67051         gl_AC_TYPE_LONG_LONG.
67052
67053 2006-10-11  Bruno Haible  <bruno@clisp.org>
67054
67055         * m4/longlong.m4: Add comments.
67056         * m4/ulonglong.m4: Likewise.
67057
67058 2006-10-10  Bruno Haible  <bruno@clisp.org>
67059
67060         Make it possible to #define stpcpy, strdup to aliases.
67061         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67062         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67063
67064 2006-10-10  Bruno Haible  <bruno@clisp.org>
67065
67066         Make it possible to #define gcd to an alias.
67067         * lib/gcd.c: Include config.h.
67068
67069 2006-10-10  Bruno Haible  <bruno@clisp.org>
67070
67071         Make it possible to #define c_isascii to an alias.
67072         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67073         defined. Undefine the macros before defining them, to avoid gcc
67074         warnings.
67075         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67076         define NO_C_CTYPE_MACROS early.
67077
67078 2006-10-10  Bruno Haible  <bruno@clisp.org>
67079
67080         Make it possible to #define set_program_name to an alias.
67081         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67082         ENABLE_RELOCATABLE early.
67083
67084 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67085
67086         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67087         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67088         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67089         More generally, don't assume that 64-bit signed int is available
67090         if unsigned int is, and vice versa.
67091         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67092         unsigned symbols, not on their signed counterparts.
67093         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67094         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67095         (UINT64_C, UINTMAX_C):
67096         Likewise.
67097         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67098         unsigned counterparts.
67099         (Have_long_long, Unsigned): New macros.
67100         (Int): Renamed from INT.
67101         (strtoimax): Use the new macros.
67102         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67103         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67104         * modules/inttypes (inttypes.h): Substitute
67105         HAVE_UNSIGNED_LONG_LONG_INT.
67106         * modules/stdint (stdint.h): Likewise.
67107         (Files): Add m4/ulonglong.m4.
67108
67109 2006-10-10  Bruno Haible  <bruno@clisp.org>
67110
67111         Fix a gcc -Wshadow warning.
67112         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67113         to 'bucket'.
67114         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67115         gl_linked_indexof_from_to): Likewise.
67116         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67117         Likewise.
67118         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67119         Likewise.
67120         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67121         Reported by Eric Blake.
67122
67123 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67124
67125         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67126         for NetBSD.  Problem reported by Bruno Haible.
67127
67128 2006-10-09  Jim Meyering  <jim@meyering.net>
67129
67130         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67131         Patch from Bruno Haible.
67132
67133 2006-10-09  Jim Meyering  <jim@meyering.net>
67134
67135         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67136         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67137         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67138
67139 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         Don't include <config.h> twice; this doesn't work in some cases,
67142         e.g., when config.h has "#define intmax_t long long int" and
67143         we include <config.h>, <inttypes.h>, <config.h> in that order.
67144         Problem reported by Matthew Woehlke in:
67145         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67146         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67147         * lib/fts-cycle.c: Don't include config.h.
67148         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67149         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67150         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67151         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67152         inttypes.h.
67153         * lib/xstrtoumax.c: Likewise.
67154         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67155         __strtol and the like, so that this module is more like its siblings.
67156         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67157         Remove; no longer needed now that we assume gnulib inttypes.h.
67158
67159 2006-10-08  Bruno Haible  <bruno@clisp.org>
67160
67161         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67162         option.
67163
67164 2006-10-07  Jim Meyering  <jim@meyering.net>
67165
67166         * modules/inttypes (inttypes.h): Revert what seems to have been
67167         an inadvertent part of today's change: use "|", not "/" in the
67168         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67169
67170 2006-10-07  Bruno Haible  <bruno@clisp.org>
67171
67172         * modules/sublist: New file.
67173
67174 2006-10-07  Bruno Haible  <bruno@clisp.org>
67175
67176         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67177         * modules/argz (argz.h): Likewise.
67178         * modules/arpa_inet (arpa/inet.h): Likewise.
67179         * modules/byteswap (byteswap.h): Likewise.
67180         * modules/configmake (configmake.h): Likewise.
67181         * modules/fcntl (fcntl.h): Likewise.
67182         * modules/fnmatch (fnmatch.h): Likewise.
67183         * modules/getopt (getopt.h): Likewise.
67184         * modules/glob (glob.h): Likewise.
67185         * modules/inttypes (inttypes.h): Likewise.
67186         * modules/netinet_in (netinet/in.h): Likewise.
67187         * modules/poll (poll.h): Likewise.
67188         * modules/stdbool (stdbool.h): Likewise.
67189         * modules/stdint (stdint.h): Likewise.
67190         * modules/sys_select (sys/select.h): Likewise.
67191         * modules/sys_socket (sys/socket.h): Likewise.
67192         * modules/sys_stat (sys/stat.h): Likewise.
67193         * modules/sysexits (sysexits.h): Likewise.
67194         * modules/unistd (unistd.h): Likewise.
67195         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67196         Add a "DO NOT EDIT" comment to the generated file.
67197         (func_import): Likewise for gnulib-comp.m4.
67198
67199 2006-10-07  Bruno Haible  <bruno@clisp.org>
67200
67201         * lib/gl_sublist.h: New file.
67202         * lib/gl_sublist.c: New file.
67203
67204 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67205
67206         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67207         name (relative to the original working directory) and the file
67208         name component (relative to the temporary working directory).  All
67209         callers changed.
67210         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67211         * lib/mkdir-p.c (make_dir_parents): Likewise.
67212         * lib/mkdir-p.h (make_dir_parents): Likewise.
67213
67214 2006-10-06  Eric Blake  <ebb9@byu.net>
67215
67216         Define several macros for use by the clean-temp module.
67217         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67218         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67219         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67220
67221         * lib/clean-temp.h (close_stream_temp): New declaration.
67222         * lib/clean-temp.c (includes): Pull in headers according to what
67223         other modules are in use.
67224         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67225
67226 2006-10-06  Bruno Haible  <bruno@clisp.org>
67227
67228         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67229         instead of fopen, fwriteerror.
67230
67231 2006-10-06  Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67234         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67235         int.
67236         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67237         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67238         Return an error indicator.
67239         Suggested by Eric Blake.
67240
67241 2006-10-06  Bruno Haible  <bruno@clisp.org>
67242
67243         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67244         Reported by Eric Blake.
67245
67246 2006-10-06  Bruno Haible  <bruno@clisp.org>
67247
67248         * modules/closeout (Description): Mention stderr too.
67249
67250 2006-10-06  Bruno Haible  <bruno@clisp.org>
67251         and Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * lib/closeout.c (close_stdout): Also close stderr.
67254         * lib/closeout.h: Update comment.
67255
67256 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67259         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67260         * lib/dirchownmod.c: Include lchown.h.
67261         * lib/lchown.c: Don't include files that lchown.h now includes.
67262         Don't declare chown, since lchown.h now does that.
67263         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67264         (lchown): Define to rpl_chown if lchown is declared but
67265         does not exist.  Declare using a prototype if lchown is not
67266         declared.  Add a copyright notice.
67267         * lib/mkstemp.h: Include <unistd.h>.
67268         * lib/openat.c: Include lchown.h.
67269
67270         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67271         we now test for that separately.
67272         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67273         rather than O_NOFOLLOW, when testing whether it's possible to
67274         avoid a race condition reliably.
67275         * lib/savewd.c (savewd_chdir): Likewise.
67276
67277         Remove macros that are no longer needed now that stdint.h is
67278         reliable.
67279         * lib/fsusage.c (UINTMAX_MAX): Remove.
67280         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67281         * lib/utimecmp.c (SIZE_MAX): Remove.
67282
67283         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67284
67285         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67286         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67287         O_NOATIME works.
67288
67289 2006-10-05  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/gl_list.h (gl_sortedlist_search_from_to,
67292         gl_sortedlist_indexof_from_to): New declarations.
67293         (gl_list_implementation): New fields sortedlist_search_from_to,
67294         sortedlist_indexof_from_to.
67295         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67296         inline functions.
67297         * lib/gl_list.c (gl_sortedlist_search_from_to,
67298         gl_sortedlist_indexof_from_to): New functions.
67299         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67300         function.
67301         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67302         (gl_array_sortedlist_search_from_to): New function.
67303         (gl_array_list_implementation): Update.
67304         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67305         function.
67306         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67307         (gl_carray_sortedlist_search_from_to): New function.
67308         (gl_carray_list_implementation): Update.
67309         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67310         gl_linked_sortedlist_indexof_from_to): New functions.
67311         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67312         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67313         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67314         gl_tree_sortedlist_indexof_from_to): New functions.
67315         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67316         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67317         Update.
67318         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67319         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67320         Update.
67321
67322 2006-10-05  Bruno Haible  <bruno@clisp.org>
67323
67324         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67325         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67326         (struct gl_list_implementation): Add fields search_from_to,
67327         indexof_from_to. Remove fields search, indexof.
67328         (gl_list_search): Use the search_from_to method.
67329         (gl_list_search_from, gl_list_search_from_to): New functions.
67330         (gl_list_indexof): Use the indexof_from_to method.
67331         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67332         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67333         (gl_list_search_from, gl_list_search_from_to): New functions.
67334         (gl_list_indexof): Use the indexof_from_to method.
67335         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67336         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67337         gl_array_indexof. Add start_index, end_index arguments.
67338         (gl_array_search_from_to): Renamed from gl_array_search. Add
67339         start_index, end_index arguments.
67340         (gl_array_remove, gl_array_list_implementation): Update.
67341         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67342         gl_carray_indexof. Add start_index, end_index arguments.
67343         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67344         start_index, end_index arguments.
67345         (gl_carray_remove, gl_carray_list_implementation): Update.
67346         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67347         gl_linked_search. Add start_index, end_index arguments.
67348         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67349         start_index, end_index arguments.
67350         (gl_linked_remove): Update.
67351         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67352         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67353         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67354         field to 'size_t'.
67355         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67356         gl_tree_search. Add start_index, end_index arguments.
67357         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67358         start_index, end_index arguments.
67359         (gl_tree_remove): Update.
67360         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67361         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67362         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67363         function.
67364         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67365         gl_tree_search. Add start_index, end_index arguments.
67366         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67367         start_index, end_index arguments.
67368         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67369         Update.
67370         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67371
67372 2006-10-05  Bruno Haible  <bruno@clisp.org>
67373
67374         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67375
67376         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67377         fwriteerror_temp): New declarations.
67378         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67379         (descriptors): New variable.
67380         (cleanup): First, close the descriptors.
67381         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67382         fclose_temp, fwriteerror_temp): New functions.
67383
67384 2006-10-04  Jim Meyering  <jim@meyering.net>
67385
67386         * lib/fts.c (fts_open): Tiny comment change.
67387
67388 2006-10-04  Bruno Haible  <bruno@clisp.org>
67389
67390         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67391         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67392         gl_LOCK_BODY.
67393         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67394         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67395         gl_LOCK_EARLY_BODY.
67396         (gl_LOCK): Require gl_LOCK_BODY.
67397
67398 2006-10-04  Bruno Haible  <bruno@clisp.org>
67399
67400         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67401         (gl_oset_search_atleast): New declaration.
67402         (struct gl_oset_implementation): Add field 'search_atleast'.
67403         (gl_oset_search_atleast): New inline function.
67404         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67405         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67406         (gl_array_oset_implementation): Update.
67407         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67408         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67409         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67410
67411 2006-10-04  Bruno Haible  <bruno@clisp.org>
67412
67413         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67414
67415 2006-10-03  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67418         from gl_avltreehash_list_implementation.
67419
67420 2006-10-03  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/gl_oset.c (gl_oset_add): Fix return type.
67423
67424 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67425
67426         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67427
67428 2006-10-02  Eric Blake  <ebb9@byu.net>
67429
67430         * modules/strnlen (Depends-on): Add extensions.
67431
67432 2006-10-02  Eric Blake  <ebb9@byu.net>
67433
67434         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67435         definition in 2.60+.
67436
67437 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67438
67439         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67440         checks.
67441
67442 2006-10-02  Bruno Haible  <bruno@clisp.org>
67443
67444         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67445         to the AUTOMAKE_OPTIONS.
67446         Reported by Jim Meyering.
67447
67448 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67449
67450         Work around bug in Solaris 10 /proc file system:
67451         /proc/self/fd/NNN/.. isn't the parent directory of
67452         the directory whose file descriptor is NNN.  This needs to
67453         be worked around at run time, not compile time, since a
67454         program might be built on Solaris 8, where things work, and
67455         run on Solaris 10.
67456         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67457         to use the following interface instead:
67458         (OPENAT_BUFFER_SIZE): New macro.
67459         (openat_proc_name): New function.
67460         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67461         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67462         Likewise.
67463         * lib/openat-proc.c: New file.
67464         * modules/openat (Files): Add lib/openat-proc.c.
67465         (Depends-on): Add same-inode, stdbool.
67466         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67467
67468 2006-09-29  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67471         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67472         argument. Set stdout_closed before testing for ferror, not after.
67473         (fwriteerror, fwriteerror_no_ebadf): New functions.
67474
67475 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67476
67477         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67478
67479 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67480
67481         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67482         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67483
67484 2006-09-28  Jim Meyering  <jim@meyering.net>
67485
67486         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67487         Include <unistd.h>.
67488
67489 2006-09-28  Bruno Haible  <bruno@clisp.org>
67490
67491         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67492         * modules/linkedhash-list (Depends-on): Likewise.
67493         * modules/rbtreehash-list (Depends-on): Likewise.
67494
67495 2006-09-28  Bruno Haible  <bruno@clisp.org>
67496
67497         * lib/strndup.h: Simplify the redefinition of strndup.
67498         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67499         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67500
67501 2006-09-28  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67504         * lib/gl_linkedhash_list.c: Likewise.
67505         * lib/gl_rbtreehash_list.c: Likewise.
67506
67507 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67510         getaddrinfo.
67511
67512         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67513         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67514         it causes <stdio_ext.h> to cause a compile-time error.
67515         Problem reported by Nelson H. F. Beebe.
67516         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67517         of HAVE_DECL___PENDING.
67518
67519         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67520         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67521         declaration.
67522
67523 2006-09-27  Jim Meyering  <jim@meyering.net>
67524
67525         This file could end up with a definition for a function
67526         named __strndup, rather than rpl_strndup on a system with
67527         incomplete weak_alias support.
67528         * lib/strndup.c (strndup): Rename from __strndup.
67529         Remove #defines that used to map __strndup to strndup.
67530         Don't use K&R prototypes.
67531         Remove LIBC-related code, since this file is not sync'd with glibc.
67532         * lib/strndup.h: Revamp, accordingly.
67533         * m4/strndup.m4: Modernize.
67534
67535 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67536
67537         * modules/savewd (Depends-on): Add 'raise'.
67538         * lib/savewd.c: Include <signal.h>, for 'raise'.
67539
67540 2006-09-26  Jim Meyering  <jim@meyering.net>
67541
67542         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67543         when we detect Darwin 8.7.0's acl_get_file bug.
67544         Rearrange to perform the new (below) run-test while $LIBS
67545         contains any acl-related library.  Set USE_ACL at the end.
67546         (gl_ACL_GET_FILE): New function.
67547
67548 2006-09-26  Eric Blake  <ebb9@byu.net>
67549
67550         * lib/verror.c: Include <config.h> unconditionally.
67551
67552 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67553
67554         * modules/clock-time (Maintainer): Add self.
67555         * modules/getlogin_r (Depends-on): Add extensions.
67556
67557 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67558
67559         * modules/clock-time: New module.
67560         * modules/nanosleep (Depends-on): Add clock-time.
67561         * modules/gethrxtime (Depends-on): Likewise.
67562         * modules/gettime (Depends-on): Likewise.
67563         * modules/settime (Depends-on): Likewise.
67564
67565         * modules/fts-lgpl: Depend on openat.
67566         * modules/mkancesdirs: Depend on savewd.
67567         * modules/mkdir-p: Likewise.
67568
67569 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67570
67571         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67572
67573         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67574         `gl_have_arbitrary_file_name_length_limit' to
67575         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67576         actually works between configure runs.
67577
67578 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67579             Bruno Haible  <bruno@clisp.org>
67580
67581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67582
67583 2006-09-25  Jim Meyering  <jim@meyering.net>
67584
67585         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67586         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67587
67588 2006-09-25  Eric Blake  <ebb9@byu.net>
67589
67590         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67591         exec's in 2006-09-18 patch when shuffling fds.
67592
67593 2006-09-25  Bruno Haible  <bruno@clisp.org>
67594
67595         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67596         Reported by Jim Meyering.
67597
67598 2006-09-24  Jim Meyering  <jim@meyering.net>
67599
67600         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67601         compare a pointer against a literal "0".  That caused failures with
67602         at least HP-UX's hpcc.
67603
67604 2006-09-22  Simon Josefsson  <jas@extundo.com>
67605
67606         * modules/gc-sha1:
67607         * modules/gc-md4:
67608         * modules/gc-hmac-sha1:
67609         * modules/gc-hmac-md5:
67610         * modules/gc-des:
67611         * modules/gc-arcfour: Distribute more files.
67612
67613 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67614
67615         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67616         (gl_linked_iterator_from_to): Initialize struct completely.
67617         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67618         (gl_tree_iterator_from_to): Likewise
67619         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67620         * lib/gl_array_list.c [lint] (gl_array_iterator)
67621         (gl_array_iterator_from_to): Likewise.
67622         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67623         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67624         (gl_carray_iterator_from_to): Likewise.
67625
67626         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67627         * lib/md4.c (md4_process_block): Remove unused variable.
67628         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67629         parentheses for clarity.
67630
67631 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67632
67633         * modules/bison-i18n (Depends-on): Add gettext.
67634
67635 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67636
67637         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67638         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67639         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67640         also add missing comma that caused broken test.
67641         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67642         stdlib.h, for `abort'.
67643         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67644         variables.
67645         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67646         include unistd.h if present, for `rmdir'.
67647         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67648         variables.
67649         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67650         in the process include standard headers for prototypes.
67651         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67652         gets declared on GNU/Linux.
67653         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67654         unistd.h, for `rmdir'.
67655         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67656
67657         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67658         always true.
67659         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67660
67661         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67662
67663 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67664
67665         * gnulib-tool (func_version): Create output all at once.  This
67666         may help avoid triggering unnecessary SIGPIPEs, and at any
67667         rate it doesn't hurt.
67668
67669 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67670             Bruno Haible  <bruno@clisp.org>
67671
67672         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67673         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67674         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67675
67676         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67677         (gl_FUNC_VASPRINTF): Invoke it.
67678
67679 2006-09-22  Bruno Haible  <bruno@clisp.org>
67680
67681         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67682         getloadavg.c as first argument.
67683
67684 2006-09-22  Bruno Haible  <bruno@clisp.org>
67685
67686         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67687         at the beginning of the gl_INIT macro.
67688         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67689         gl_GETLOADAVG.
67690
67691 2006-09-22  Bruno Haible  <bruno@clisp.org>
67692
67693         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67694         module.
67695         Suggested by Ralf Wildenhues.
67696
67697 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67698
67699         Import this patch from libc:
67700
67701         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67702
67703         * lib/regex_internal.c (re_string_reconstruct): Handle
67704         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67705         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67706         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67707         re_string_context_at.
67708
67709         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67710         now requires it.
67711         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67712         gl_REGEX now does it for us.
67713         (gl_REGEX): Add test taken from
67714         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67715
67716         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67717         Check that large offsets work.  Modernize Autoconf usages.
67718         Prefer "yes" to mean a good thing rather than a bad.
67719         Don't put "#define mkstemp" in config.h, as this might interfere
67720         with standard system headers that "#define mkstemp mkstemp64".
67721
67722         * modules/mkstemp (Depends-on): Add extensions, so that
67723         mkstemp is visible on some platforms.
67724         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67725         (Include): Change to "mkstemp.h" from <stdlib.h>.
67726         (Files): Add mkstemp.h.
67727
67728         * lib/mkstemp.h: New file, since some standard headers
67729         #define mkstemp.
67730         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67731         Include "mkstemp.h".
67732         Make the _LIBC code resemble glibc original more,
67733         e.g., use K&R style.
67734         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67735         (mkstemp): Remove, since mkstemp.h does this for us.
67736         * lib/stdlib--.h: Include mkstemp.h.
67737
67738         Import this patch from libc:
67739
67740         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67741
67742         * lib/tempname.c (__gen_tempname): Change attempts_min
67743         into a macro.  Use preprocessor to decide how to initialize
67744         attempts [Coverity CID 67].
67745
67746 2006-09-20  Bruno Haible  <bruno@clisp.org>
67747
67748         * lib/mkdtemp.c: Import from libc.
67749         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67750                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67751                 attempts_min into a macro.  Use preprocessor to decide how to
67752                 initialize attempts [Coverity CID 67].
67753         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67754                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67755                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67756
67757 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67758
67759         * gnulib-tool (func_exit): New function, to allow to pass the
67760         exit status portably through the trap.  Use everywhere.
67761         (--help, --version): Signal a write error.
67762         (trap): catch SIGPIPE, for write errors.
67763         Exit at the end of the trap, with the correct exit status.
67764
67765 2006-09-19  Karl Berry  <karl@gnu.org>
67766
67767         * doc/gnulib.texi: note about the license texinfo files.
67768
67769 2006-09-19  Eric Blake  <ebb9@byu.net>
67770
67771         * gnulib-tool: Avoid space-tab.
67772
67773 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67776         that prevented coreutils 6.1 from building.  Problem reported
67777         by Petter Reinholdtsen.
67778
67779 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * gnulib-tool (avoidlist): Fix typo that broke options like
67782         --avoid=lock that are used by coreutils bootstrap.
67783
67784 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67785
67786         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67787         more systematically.
67788
67789 2006-09-18  Jim Meyering  <jim@meyering.net>
67790
67791         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67792
67793 2006-09-18  Bruno Haible  <bruno@clisp.org>
67794
67795         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67796
67797 2006-09-18  Bruno Haible  <bruno@clisp.org>
67798
67799         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67800         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67801         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67802         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67803         * m4/gettext.m4: Require autoconf >= 2.52.
67804         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67805         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67806         of gl_cv_header_inttypes_h.
67807
67808 2006-09-18  Bruno Haible  <bruno@clisp.org>
67809
67810         * lib/javaversion.c: Include configmake.h.
67811
67812 2006-09-18  Bruno Haible  <bruno@clisp.org>
67813
67814         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67815         avoid that the while loops be executed in a subshell.
67816
67817 2006-09-18  Bruno Haible  <bruno@clisp.org>
67818
67819         * MODULES.html.sh (func_module): Break long lines.
67820         Suggested by Bruce Korb <bkorb@gnu.org>.
67821
67822 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67823
67824         Speed up by a factor of 1.12.
67825         * gnulib-tool (nl): New variable.
67826         (func_import): Rewrite include directive extraction to only read each
67827         directive once.
67828
67829 2006-09-17  Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/javaversion (Makefile.am): Remove DEFS setting.
67832         (Depends-on): Add configmake, for PKGDATADIR definition.
67833
67834 2006-09-17  Bruno Haible  <bruno@clisp.org>
67835
67836         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67837
67838 2006-09-17  Bruno Haible  <bruno@clisp.org>
67839
67840         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67841         (func_modules_transitive_closure, func_modules_add_dummy,
67842         func_modules_to_filelist, func_import, func_create_testdir,
67843         func_create_megatestdir, ...): Use it wherever possible.
67844         Suggested by Ralf Wildenhues.
67845
67846 2006-09-16  Karl Berry  <karl@gnu.org>
67847
67848         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67849         to avoid sectioning errors.
67850         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67851         [ifinfo]: blank line after @center-ed titles.
67852         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67853         Spell FSF address consistently with others.
67854         (These changes approved by rms.)
67855
67856 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67857
67858         Speed up by a factor of 1.61.
67859         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67860         already checked module names again.
67861
67862 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67863
67864         Speed up by a factor of 1.13.
67865         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67866         for new_files, and the input to func_add_or_update.
67867
67868 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67869
67870         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67871         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67872
67873 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * modules/mkancesdirs (Depends-on): Add fcntl.
67876         * modules/savewd: New file.
67877         * MODULES.html.sh (File system functions): Add savewd.
67878
67879         * modules/configmake (Makefile.am): Add support for the
67880         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67881
67882 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         * m4/savewd.m4: New file.
67885
67886 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67889         (dirchownmod): New arg FD.  All callers changed.
67890         Use FD rather than opening the directory ourself, as opening is
67891         now the caller's responsibility.
67892         * lib/dirchownmod.h: Likewise.
67893         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67894         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67895         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67896         (test_dir): Remove.
67897         (mkancesdirs): Return length of prefix of FILE that has already
67898         been made, or -2 if there is a child doing the work.  Redo
67899         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67900         ".", and treat ".." specially since it might stray back into
67901         already-created areas.  Use a subprocess if necessary.  New arg
67902         WD; all users changed.  MAKE_DIR function should now return 1
67903         if it creates a directory that is not readable.  Return -2 if
67904         a child process is spun off.
67905         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67906         Adjust signature to match code.
67907         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67908         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67909         all users changed.
67910         * lib/savewd.c, lib/savewd.h: New files.
67911
67912 2006-09-15  Jim Meyering  <jim@meyering.net>
67913
67914         * modules/rename-dest-slash: New module.
67915         * MODULES.html.sh (posix_compat): Add it here.
67916
67917         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67918
67919 2006-09-15  Jim Meyering  <jim@meyering.net>
67920
67921         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67922         file.
67923
67924         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67925
67926 2006-09-15  Jim Meyering  <jim@meyering.net>
67927
67928         * lib/rename-dest-slash.c (has_trailing_slash): Use
67929         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67930         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67931         test before testing whether SRC is a directory.
67932         Suggestions from Bruno Haible.
67933
67934         Avoid a warning about an unused variable.
67935         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67936         into the #ifdef block where it's used.
67937
67938         * lib/rename-dest-slash.c: New file.
67939
67940 2006-09-14  Bruno Haible  <bruno@clisp.org>
67941
67942         * lib/allocsa.c: Include <config.h> unconditionally.
67943         * lib/asnprintf.c: Likewise.
67944         * lib/asprintf.c: Likewise.
67945         * lib/c-strcasecmp.c: Likewise.
67946         * lib/c-strcasestr.c: Likewise.
67947         * lib/c-strncasecmp.c: Likewise.
67948         * lib/c-strstr.c: Likewise.
67949         * lib/classpath.c: Likewise.
67950         * lib/clean-temp.c: Likewise.
67951         * lib/concatpath.c: Likewise.
67952         * lib/copy-file.c: Likewise.
67953         * lib/csharpcomp.c: Likewise.
67954         * lib/csharpexec.c: Likewise.
67955         * lib/execute.c: Likewise.
67956         * lib/fatal-signal.c: Likewise.
67957         * lib/findprog.c: Likewise.
67958         * lib/fwriteerror.c: Likewise.
67959         * lib/gl_array_list.c: Likewise.
67960         * lib/gl_array_oset.c: Likewise.
67961         * lib/gl_avltree_list.c: Likewise.
67962         * lib/gl_avltree_oset.c: Likewise.
67963         * lib/gl_avltreehash_list.c: Likewise.
67964         * lib/gl_carray_list.c: Likewise.
67965         * lib/gl_linked_list.c: Likewise.
67966         * lib/gl_linkedhash_list.c: Likewise.
67967         * lib/gl_list.c: Likewise.
67968         * lib/gl_oset.c: Likewise.
67969         * lib/gl_rbtree_list.c: Likewise.
67970         * lib/gl_rbtree_oset.c: Likewise.
67971         * lib/gl_rbtreehash_list.c: Likewise.
67972         * lib/imaxabs.c: Likewise.
67973         * lib/imaxdiv.c: Likewise.
67974         * lib/javacomp.c: Likewise.
67975         * lib/javaexec.c: Likewise.
67976         * lib/javaversion.c: Likewise.
67977         * lib/linebreak.c: Likewise.
67978         * lib/localcharset.c: Likewise.
67979         * lib/lock.c: Likewise.
67980         * lib/mbchar.c: Likewise.
67981         * lib/mbswidth.c: Likewise.
67982         * lib/mkdtemp.c: Likewise.
67983         * lib/pipe.c: Likewise.
67984         * lib/printf-args.c: Likewise.
67985         * lib/printf-parse.c: Likewise.
67986         * lib/progname.c: Likewise.
67987         * lib/progreloc.c: Likewise.
67988         * lib/readlink.c: Likewise.
67989         * lib/sh-quote.c: Likewise.
67990         * lib/stpcpy.c: Likewise.
67991         * lib/stpncpy.c: Likewise.
67992         * lib/strcasecmp.c: Likewise.
67993         * lib/strcasestr.c: Likewise.
67994         * lib/strcspn.c: Likewise.
67995         * lib/striconv.c: Likewise.
67996         * lib/strncasecmp.c: Likewise.
67997         * lib/strnlen1.c: Likewise.
67998         * lib/strstr.c: Likewise.
67999         * lib/strtok_r.c: Likewise.
68000         * lib/tls.c: Likewise.
68001         * lib/tmpdir.c: Likewise.
68002         * lib/unicodeio.c: Likewise.
68003         * lib/unsetenv.c: Likewise.
68004         * lib/vasnprintf.c: Likewise.
68005         * lib/vasprintf.c: Likewise.
68006         * lib/wait-process.c: Likewise.
68007         * lib/xallocsa.c: Likewise.
68008         * lib/xsetenv.c: Likewise.
68009         * lib/xstriconv.c: Likewise.
68010
68011 2006-09-13  Simon Josefsson  <jas@extundo.com>
68012
68013         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68014         that internally, suggested by Ralf Wildenhues
68015         <Ralf.Wildenhues@gmx.de>.
68016
68017 2006-09-13  Simon Josefsson  <jas@extundo.com>
68018
68019         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68020         @LIBOBJS@.
68021         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68022
68023 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68024
68025         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68026         longer worry about uses that don't define HAVE_CONFIG_H.
68027         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68028         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68029         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68030         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68031         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68032         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68033         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68034         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68035         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68036         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68037         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68038         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68039         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68040         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68041         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68042         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68043         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68044         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68045         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68046         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68047         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68048         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68049         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68050         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68051         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68052         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68053         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68054         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68055         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68056         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68057         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68058         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68059         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68060         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68061         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68062         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68063         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68064         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68065         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68066         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68067         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68068         Likewise.
68069
68070 2006-09-13  Eric Blake  <ebb9@byu.net>
68071
68072         * lib/getopt.c: Fix typo in last commit.
68073
68074 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68075
68076         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68077         dgettext.
68078
68079 2006-09-12  Jim Meyering  <jim@meyering.net>
68080
68081         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68082         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68083         Reported by Nelson H. F. Beebe.
68084
68085 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68086
68087         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68088         program_invocation_name and program_invocation_short_name are
68089         initialized.
68090         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68091         and program_invocation_short_name to argp.h, so they are visible
68092         to user programs.
68093         * lib/argp.h: Likewise
68094
68095 2006-09-10  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68098         m4/inttypes_h.m4, m4/uintmax_t.m4.
68099
68100 2006-09-10  Bruno Haible  <bruno@clisp.org>
68101
68102         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68103         gl_AC_TYPE_UINTMAX_T.
68104
68105 2006-09-10  Bruno Haible  <bruno@clisp.org>
68106
68107         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68108
68109 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68110
68111         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68112         convention.  Text proposed by Bruno Haible.
68113         (struct argp_option): Document the use of N_() wrappers.
68114
68115         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68116         '\v', and translate the two parts separately, instead of feeding
68117         the whole string to gettext.  This allows to exclude
68118         '\v' from the strings visible to the translator by writing doc
68119         strings as N_("..") "\v" N_("..").
68120
68121 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68122
68123         * config/srclist.txt: Undo latest change; the bug was fixed.
68124
68125 2006-09-09  Bruno Haible  <bruno@clisp.org>
68126
68127         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68128         assignments if building a library without libtool.
68129         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68130         in func_emit_lib_Makefile_am.
68131         (func_import): When building a static library libfoo.a, arrange to
68132         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68133         (func_create_testdir): Likewise.
68134         * modules/gc (configure.ac, Makefile.am): If building statically,
68135         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68136         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68137         * modules/striconv (configure.ac, Makefile.am): Likewise.
68138         Based on a suggestion by Ralf Wildenhues.
68139
68140 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68141
68142         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68143         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68144         Also:
68145
68146         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68147         Add year_2050_test to catch glibc bug 2821
68148         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68149
68150         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68151         Prefer #ifdef to #if.
68152
68153         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68154         Return from 'main' instead of calling 'exit'.
68155
68156 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68157
68158         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68159         returned the maximum time_t value rather than (time_t) -1.
68160         Problem originally reported by William Bardwell
68161         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68162
68163         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68164         Moved to here ...
68165         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68166         ... from here.
68167
68168 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68169
68170         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68171         2821 is fixed.
68172
68173 2006-09-08  Jim Meyering  <jim@meyering.net>
68174
68175         Don't make generated files read-only.  That would bother too many
68176         people.  However, do retain the ability to work when targets are
68177         read-only: remove the destination and temporary files before writing
68178         them (when generated via sed or echo), or by using the -f option for
68179         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68180         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68181         * modules/byteswap, modules/configmake, modules/fcntl:
68182         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68183         * modules/localcharset, modules/netinet_in, modules/poll:
68184         * modules/stdbool, modules/stdint, modules/sys_select:
68185         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68186
68187 2006-09-08  Jim Meyering  <jim@meyering.net>
68188
68189         Avoid new build failure on FreeBSD 6.0.
68190         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68191         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68192         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68193
68194 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68195
68196         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68197
68198 2006-09-07  Jim Meyering  <jim@meyering.net>
68199
68200         Fix global typo in last change: use chmod u-w, not chmod u-x.
68201         Spotted by Paul Eggert and Bruce Korb.
68202         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68203         * modules/byteswap, modules/configmake, modules/fcntl:
68204         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68205         * modules/localcharset, modules/netinet_in, modules/poll:
68206         * modules/stdbool, modules/stdint, modules/sys_select:
68207         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68208
68209 2006-09-06  Jim Meyering  <jim@meyering.net>
68210
68211         Make generated files be read-only.
68212         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68213         Ensure that each generated file is now read-only.
68214         * modules/argz: Likewise.
68215         * modules/arpa_inet: Likewise.
68216         * modules/byteswap: Likewise.
68217         * modules/configmake: Likewise.
68218         * modules/fcntl: Likewise.
68219         * modules/fnmatch: Likewise.
68220         * modules/getopt: Likewise.
68221         * modules/glob: Likewise.
68222         * modules/inttypes: Likewise.
68223         * modules/netinet_in: Likewise.
68224         * modules/poll: Likewise.
68225         * modules/stdbool: Likewise.
68226         * modules/stdint: Likewise.
68227         * modules/sys_select: Likewise.
68228         * modules/sys_socket: Likewise.
68229         * modules/sys_stat: Likewise.
68230         * modules/sysexits: Likewise.
68231         * modules/localcharset: Same as above, but continue using temporary
68232         file named "t-$@" (why different?) rather than the "$@-t" used
68233         everywhere else.
68234
68235         * modules/sysexits (Makefile.am): Replace literal occurrences
68236         of "sysexit.h" more readable, and more consistent, "$@".
68237
68238 2006-09-06  Bruno Haible  <bruno@clisp.org>
68239
68240         * modules/striconv: New file.
68241         * modules/xstriconv: New file.
68242         * MODULES.html.sh (Internationalization functions): Add striconv,
68243         xstriconv.
68244
68245 2006-09-06  Bruno Haible  <bruno@clisp.org>
68246
68247         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68248         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68249         not using libtool correctly.
68250
68251 2006-09-06  Bruno Haible  <bruno@clisp.org>
68252
68253         * lib/striconv.h: New file.
68254         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68255         iconvstring.c.
68256         * lib/xstriconv.h: New file.
68257         * lib/xstriconv.c: New file.
68258
68259 2006-09-06  Bruno Haible  <bruno@clisp.org>
68260
68261         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68262         lib_..._LDFLAGS.
68263
68264 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68265
68266         * lib/argz_.h: Sync from Libtool.
68267
68268         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68269                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68270
68271         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68272
68273 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68274
68275         * modules/trim: New file.
68276
68277 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68278
68279         * lib/trim.h: New file.
68280         * lib/trim.c: New file.
68281
68282 2006-09-05  Bruno Haible  <bruno@clisp.org>
68283
68284         * MODULES.html.sh (String handling): Add trim.
68285
68286 2006-09-04  Karl Berry  <karl@gnu.org>
68287
68288         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68289         until next release.
68290
68291 2006-09-03  Bruno Haible  <bruno@clisp.org>
68292
68293         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68294         correctly.
68295
68296 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68299         not gl_GETLOADAVG.  Omit unneeded semicolons.
68300         Problems reported by Ralf Wildenhues in
68301         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68302         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68303         at the end, which is the usual gnulib style.
68304
68305         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68306         of doing all the work ourselves.
68307         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68308         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68309
68310 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68313         Problem reported by Ralf Wildenhues in
68314         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68315
68316         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68317         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68318
68319 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68322         yesterday's patch by changing test -n to test -z.
68323
68324 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68327         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68328         the former is now obsolescent.
68329
68330         * modules/chdir-long (Depends-on): Add fcntl.
68331
68332 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68333
68334         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68335         obsolescent, and programs should use gnulib instead.
68336         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68337         but with prefixes changed.
68338
68339 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68340
68341         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68342         or stdbool.h, because they might not exist while configuring.
68343
68344         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68345         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68346         does that for us.
68347         (O_DIRECTORY): Remove.
68348
68349 2006-08-31  Eric Blake  <ebb9@byu.net>
68350
68351         * gnulib-tool: Don't let emacs change spaces to TAB.
68352
68353 2006-08-31  Bruno Haible  <bruno@clisp.org>
68354
68355         * gnulib-tool: When calling func_import more than once, do it in a
68356         subshell.
68357         Reported by Eric Blake <ebb9@byu.net>.
68358
68359 2006-08-31  Bruno Haible  <bruno@clisp.org>
68360
68361         * gnulib-tool (nl): Remove variable.
68362         (sed_transform_lib_file): Use more robust test for config-h module.
68363         (func_import): Fix typo in 2006-08-25 patch.
68364
68365 2006-08-31  Bruno Haible  <bruno@clisp.org>
68366
68367         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68368         specified, augment Makefile.am variables instead of assigning them.
68369
68370 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         Work around a bug in both the Linux and SunOS 64-bit kernels:
68373         nanosleep mishandles sleeps for longer than 2**31 seconds.
68374         Problem reported by Frank v Waveren in
68375         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68377         Check for nanosleep bug.
68378         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68379
68380 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68381
68382         Work around a bug in both the Linux and SunOS 64-bit kernels:
68383         nanosleep mishandles sleeps for longer than 2**31 seconds.
68384         Problem reported by Frank v Waveren in
68385         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68386         * lib/nanosleep.c (BILLION): New constant.
68387         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68388         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68389         implementation.
68390
68391 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68392
68393         * modules/nanosleep (Depends-on): Add gettime.
68394
68395 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68396         and Simon Josefsson  <jas@extundo.com>
68397         and Oskar Liljeblad  <oskar@osk.mine.nu>
68398
68399         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68400         * gnulib-tool (func_import): New license type 'unmodifiable license
68401         text'.
68402         * modules/fdl: Use it.  Longer description.
68403         * module/gpl, module/lgpl: New files.
68404
68405 2006-08-30  Jim Meyering  <jim@meyering.net>
68406
68407         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68408         shadowing the parameter.
68409
68410 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68411
68412         Sync from Libtool:
68413
68414         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68415
68416         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68417         sharing with gnulib.  Report by Eric Blake.
68418
68419 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * modules/isapipe: New file.
68422         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68423
68424 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * modules/configmake (Makefile.am): Add a comment, and omit
68427         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68428         by Bruno Haible.
68429
68430 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68431
68432         * m4/isapipe.m4: New file.
68433
68434 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68435
68436         * lib/isapipe.c, lib/isapipe.h: New files.
68437
68438 2006-08-29  Jim Meyering  <jim@meyering.net>
68439
68440         * modules/configmake (Makefile.am): Make configmake.h depend on
68441         Makefile.  Otherwise, a stale configmake.h could hang around.
68442
68443 2006-08-29  Eric Blake  <ebb9@byu.net>
68444
68445         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68446         resolution of upstream bug 3044.
68447
68448 2006-08-29  Bruno Haible  <bruno@clisp.org>
68449
68450         * modules/localcharset (Depends-on): Add configmake.
68451         (Makefile.am): Remove setting of LIBDIR through DEFS.
68452
68453 2006-08-29  Bruno Haible  <bruno@clisp.org>
68454
68455         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68456         defined.
68457
68458 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * modules/fcntl: New file.
68461         * modules/chdir-safer (Depends-on): Add fcntl.
68462         * modules/fts: Likewise.
68463         * modules/mkdir-p: Likewise.
68464
68465         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68466         This undoes the most recent change, since we're now addressing the
68467         problem in a different way.
68468
68469         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68470         into output, since the output might be called Makefile.am even
68471         if $makefile_name is something different.
68472         (func_import): Use $makefile_am rather than
68473         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68474         empty.
68475
68476         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68477
68478 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68481         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68482         recent change to stdint.m4, since we're now addressing the problem in a
68483         different way.
68484
68485 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68486
68487         * m4/fcntl_h.m4: New file.
68488
68489 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         * lib/fcntl_.h: New file.
68492         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68493         the fcntl module.
68494         * lib/dirchownmod.c: Likewise.
68495         * lib/fts.c: Likewise.
68496
68497         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68498         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68499         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68500         just before including <inttypes.h>, to avoid circular inclusion.
68501
68502 2006-08-28  Jim Meyering  <jim@meyering.net>
68503
68504         * doc/visibility.texi: Actually read and correct the grammar of the
68505         sentence affected by yesterday's change.
68506
68507 2006-08-28  Eric Blake  <ebb9@byu.net>
68508
68509         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68510         needs wrapper.
68511
68512 2006-08-28  Eric Blake  <ebb9@byu.net>
68513
68514         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68515
68516 2006-08-28  Eric Blake  <ebb9@byu.net>
68517
68518         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68519
68520 2006-08-28  Bruno Haible  <bruno@clisp.org>
68521
68522         * modules/c-strstr: New file, from GNU gettext.
68523         * MODULES.html.sh (String handling): Add c-strstr.
68524
68525 2006-08-28  Bruno Haible  <bruno@clisp.org>
68526
68527         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68528         macros.
68529         Reported by Eric Blake.
68530
68531 2006-08-28  Bruno Haible  <bruno@clisp.org>
68532
68533         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68534         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68535         * lib/vasprintf.c: Include errno.h, limits.h.
68536         (EOVERFLOW): New fallback definition.
68537         (vasprintf): Test here whether the string length is > INT_MAX.
68538         * lib/vsnprintf.c: Include errno.h, limits.h.
68539         (EOVERFLOW): New fallback definition.
68540         (vsnprintf): Fix bug when generated string was too long for the buffer.
68541         Test here whether the string length is > INT_MAX.
68542
68543 2006-08-28  Bruno Haible  <bruno@clisp.org>
68544
68545         * lib/inttypes_.h (SCNX*): Remove definitions.
68546         Reported by Eric Blake.
68547
68548 2006-08-28  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/c-strstr.h: New file, from GNU gettext.
68551         * lib/c-strstr.c: New file, from GNU gettext.
68552
68553 2006-08-28  Bruno Haible  <bruno@clisp.org>
68554
68555         * gnulib-tool: Reorder some statements.
68556
68557 2006-08-28  Bruno Haible  <bruno@clisp.org>
68558
68559         * gnulib-tool: New option --makefile-name.
68560         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68561         $makefile_name.
68562         (func_import): Write $makefile_name to the cache file, and read it from
68563         there unless explicitly specified. Use $makefile_name as file name
68564         instead of Makefile.am. Adjust the recommendations accordingly.
68565
68566 2006-08-28  Bruno Haible  <bruno@clisp.org>
68567
68568         * gnulib-tool (func_verify_module): Check against misapplying patch.
68569
68570 2006-08-28  Bruno Haible  <bruno@clisp.org>
68571
68572         * gnulib-tool (func_relativize, func_relconcat): New functions.
68573         Give an error if --local-dir is given with --update.
68574         Remove trailing slashes from $local_gnulib_dir.
68575         (func_import): Store the relativized $local_gnulib_dir in
68576         gnulib-cache.m4, and read it from there if not specified explicitly.
68577
68578 2006-08-28  Bruno Haible  <bruno@clisp.org>
68579
68580         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68581         is the current directory. Respect also $local_gnulib_dir.
68582
68583 2006-08-28  Bruno Haible  <bruno@clisp.org>
68584             Simon Josefsson  <jas@extundo.com>
68585
68586         BeOS portability.
68587         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68588
68589 2006-08-27  Jim Meyering  <jim@meyering.net>
68590
68591         * doc/visibility.texi: Remove duplicate word: "pointer".
68592
68593 2006-08-26  Bruno Haible  <bruno@clisp.org>
68594
68595         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68596         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68597         (Makefile.am): Create inttypes.h from inttypes_.h.
68598         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68599
68600         * modules/imaxabs: New file.
68601
68602         * modules/imaxdiv: New file.
68603
68604 2006-08-26  Bruno Haible  <bruno@clisp.org>
68605
68606         * m4/inttypes.m4: New file.
68607         * m4/_inttypes_h.m4: Remove file.
68608         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68609         PRI_MACROS_BROKEN.
68610         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68611
68612         * m4/imaxabs.m4: New file.
68613
68614         * m4/imaxdiv.m4: New file.
68615
68616 2006-08-26  Bruno Haible  <bruno@clisp.org>
68617
68618         * lib/inttypes_.h: New file.
68619         * lib/inttypes.h: Remove file.
68620         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68621
68622         * lib/imaxabs.c: New file.
68623
68624         * lib/imaxdiv.c: New file.
68625
68626 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         New config-h module, so that "make" output needn't be cluttered
68629         by -DHAVE_CONFIG_H.
68630         * MODULES.html.sh (Support for building libraries and executables):
68631         Add config-h.
68632         * modules/config-h: New file.
68633         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68634         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68635         the config-h module is used.
68636
68637         New configmake module, so that "make" output needn't be cluttered
68638         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68639         * MODULES.html.sh (Support for building libraries and executables):
68640         Add configmake.
68641         * modules/configmake: New file.
68642
68643 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68644
68645         * m4/config-h.m4: New file.
68646
68647 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         * config/srclist.txt: Add elisp-comp.
68650
68651 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68652
68653         * MODULES.html.sh (Support for building libraries and executables):
68654         Add elisp-comp.
68655         * build-aux/elisp-comp: New file.
68656         * modules/elisp-comp: New file.
68657
68658 2006-08-24  Bruno Haible  <bruno@clisp.org>
68659
68660         * gnulib-tool (func_create_testdir): Use non-default values of
68661         sourcebase and m4base.
68662
68663 2006-08-24  Bruno Haible  <bruno@clisp.org>
68664
68665         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68666         HTML structure.
68667
68668 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * modules/openat (Depends-on): Add lchown.
68671
68672 2006-08-23  Bruno Haible  <bruno@clisp.org>
68673
68674         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68675         of gl_LOCK_EARLY instead of gl_LOCK.
68676
68677 2006-08-23  Bruno Haible  <bruno@clisp.org>
68678
68679         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68680         on OSF/1 to no.
68681         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68682
68683 2006-08-23  Bruno Haible  <bruno@clisp.org>
68684
68685         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68686         as unusable.
68687
68688         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68689         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68690         (gl_LOCK): New macro.
68691
68692 2006-08-22  Simon Josefsson  <jas@extundo.com>
68693
68694         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68695         to md5 module.
68696
68697 2006-08-22  Simon Josefsson  <jas@extundo.com>
68698
68699         * MODULES.html.sh: Add "Support for maintaining and release
68700         projects".
68701
68702         * build-aux/gnupload: New file, from coreutils.
68703
68704 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68705
68706         Avoid the need for AC_LIBSOURCES in m4 macros.
68707         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68708         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68709         * modules/check-version (EXTRA_DIST): Add check-version.h.
68710         * modules/crc (EXTRA_DIST): Add crc.h.
68711         * modules/des (EXTRA_DIST): Add des.h.
68712         * modules/gc (EXTRA_DIST): Add gc.h.
68713         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68714         * modules/getline (EXTRA_DIST): Add getline.h.
68715         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68716         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68717         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68718         * modules/md2 (EXTRA_DIST): Add md2.h.
68719         * modules/md4 (EXTRA_DIST): Add md4.h.
68720         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68721         * modules/read-file (EXTRA_DIST): Add read-file.h.
68722         * modules/readline (EXTRA_DIST): Add readline.h.
68723         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68724         rijndael-api-fst.h.
68725
68726 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68727
68728         * m4/rijndael.m4 (gl_ARCFOUR):
68729         * m4/arctwo.m4 (gl_ARCTWO):
68730         * m4/check-version.m4 (gl_CHECK_VERSION):
68731         * m4/crc.m4 (gl_CRC):
68732         * m4/des.m4 (gl_DES):
68733         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68734         * m4/gc.m4 (gl_GC):
68735         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68736         * m4/getline.m4 (gl_FUNC_GETLINE):
68737         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68738         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68739         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68740         * m4/md2.m4 (gl_MD2):
68741         * m4/md4.m4 (gl_MD4):
68742         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68743         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68744         * m4/readline.m4 (gl_FUNC_READLINE):
68745         * m4/rijndael.m4 (gl_RIJNDAEL):
68746         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68747         to get the necessary .h files and whatnot.
68748
68749 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68752         gnulib rather than the other way around.
68753         * config/srclistvars.sh (COREUTILS): Remove.
68754
68755 2006-08-22  Jim Meyering  <jim@meyering.net>
68756
68757         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68758
68759         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68760
68761 2006-08-22  Eric Blake  <ebb9@byu.net>
68762
68763         * modules/regexprops-generic: New file.
68764         * MODULES.html.sh (Support for building documentation): List it.
68765
68766 2006-08-22  Eric Blake  <ebb9@byu.net>
68767
68768         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68769         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68771         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68772
68773 2006-08-22  Bruno Haible  <bruno@clisp.org>
68774
68775         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68776         and lib_LTLIBRARIES like the other lib_* variables.
68777
68778 2006-08-22  Bruno Haible  <bruno@clisp.org>
68779
68780         * build-aux/x-to-1.in: New file, from GNU gettext.
68781
68782 2006-08-22  Bruno Haible  <bruno@clisp.org>
68783
68784         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68785         <utmpx.h> exists.
68786
68787 2006-08-22  Bruno Haible  <bruno@clisp.org>
68788
68789         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68790         <utmpx.h> exists.
68791
68792 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         BeOS portability.
68795         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68796         exist.
68797         Problem reported by Bruno Haible.
68798
68799 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         Avoid the need for AC_LIBSOURCES in m4 macros.
68802         * modules/acl (EXTRA_DIST): Add acl.h.
68803         * modules/argmatch (Files): Add m4/argmatch.m4.
68804         (configure.ac): Add gl_ARGMATCH.
68805         (EXTRA_DIST): Renamed from lib_SOURCES, for
68806         consistency with the other modules.  Remove argmatch.c.
68807         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68808         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68809         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68810         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68811         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68812         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68813         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68814         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68815         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68816         * modules/closeout (EXTRA_DIST): Add closeout.h.
68817         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68818         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68819         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68820         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68821         dirname.h; remove basename.c and stripslash.c.
68822         * modules/exclude (EXTRA_DIST): Add exclude.h.
68823         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68824         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68825         * modules/file-type (EXTRA_DIST): Add file-type.h.
68826         * modules/filemode (EXTRA_DIST): Add filemode.h.
68827         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68828         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68829         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68830         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68831         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68832         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68833         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68834         * modules/getdate (EXTRA_DIST): Add getdate.c.
68835         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68836         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68837         * modules/getpass (EXTRA_DIST): Add getpass.h.
68838         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68839         * modules/group-member (EXTRA_DIST): Add group-member.h.
68840         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68841         * modules/hash (EXTRA_DIST): Add hash.h.
68842         * modules/human (EXTRA_DIST): Add human.h.
68843         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68844         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68845         * modules/lchown (EXTRA_DIST): Add lchown.h.
68846         * modules/long-options (EXTRA_DIST): Add long-options.h.
68847         * modules/lstat (EXTRA_DIST): Add lstat.h.
68848         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68849         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68850         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68851         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68852         * modules/memxor (EXTRA_DIST): Add memxor.h.
68853         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68854         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68855         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68856         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68857         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68858         * modules/physmem (EXTRA_DIST): Add physmem.h.
68859         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68860         * modules/posixver (EXTRA_DIST): Add posixver.h.
68861         * modules/quote (EXTRA_DIST): Add quote.h.
68862         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68863         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68864         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68865         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68866         regex_internal.h regexec.c.
68867         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68868         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68869         * modules/same (EXTRA_DIST): Add same.h.
68870         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68871         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68872         * modules/savedir (EXTRA_DIST): Add savedir.h.
68873         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68874         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68875         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68876         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68877         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68878         * modules/strdup (EXTRA_DIST): Add strdup.h.
68879         * modules/strftime (EXTRA_DIST): Add strftime.h.
68880         * modules/strndup (EXTRA_DIST): Add strndup.h.
68881         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68882         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68883         * modules/time_r (EXTRA_DIST): Add time_r.h.
68884         * modules/timespec (EXTRA_DIST): Add timespec.h.
68885         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68886         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68887         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68888         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68889         * modules/userspec (EXTRA_DIST): Add userspec.h.
68890         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68891         * modules/utimens (EXTRA_DIST): Add utimens.h.
68892         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68893         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68894         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68895         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68896         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68897         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68898         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68899         * modules/yesno (EXTRA_DIST): Add yesno.h.
68900
68901 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68904
68905         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68906         * m4/dev-ino.m4, same-inode.m4: Remove.
68907
68908         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68909         * m4/acl.m4 (AC_FUNC_ACL):
68910         * m4/backupfile.m4 (gl_BACKUPFILE):
68911         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68912         * m4/canon-host.m4 (gl_CANON_HOST):
68913         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68914         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68915         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68916         * m4/cloexec.m4 (gl_CLOEXEC):
68917         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68918         * m4/closeout.m4 (gl_CLOSEOUT):
68919         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68920         * m4/dirname.m4 (gl_DIRNAME):
68921         * m4/exclude.m4 (gl_EXCLUDE):
68922         * m4/exitfail.m4 (gl_EXITFAIL):
68923         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68924         * m4/file-type.m4 (gl_FILE_TYPE):
68925         * m4/filemode.m4 (gl_FILEMODE):
68926         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68927         * m4/fpending.m4 (gl_FUNC_FPENDING):
68928         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68929         * m4/fts.m4 (gl_FUNC_FTS):
68930         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68931         * m4/getdate.m4 (gl_GETDATE):
68932         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68933         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68934         * m4/getpass.m4 (gl_FUNC_GETPASS):
68935         * m4/gettime.m4 (gl_GETTIME):
68936         * m4/getugroups.m4 (gl_GETUGROUPS):
68937         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68938         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68939         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68940         * m4/hash.m4 (gl_HASH):
68941         * m4/idcache.m4 (gl_IDCACHE):
68942         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68943         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68944         * m4/long-options.m4 (gl_LONG_OPTIONS):
68945         * m4/lstat.m4 (gl_FUNC_LSTAT):
68946         * m4/md5.m4 (gl_MD5):
68947         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68948         * m4/memcoll.m4 (gl_MEMCOLL):
68949         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68950         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68951         * m4/memxor.m4 (gl_MEMXOR):
68952         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68953         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68954         * m4/modechange.m4 (gl_MODECHANGE):
68955         * m4/mountlist.m4 (gl_MOUNTLIST):
68956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68957         * m4/openat.m4 (gl_FUNC_OPENAT):
68958         * m4/pathmax.m4 (gl_PATHMAX):
68959         * m4/physmem.m4 (gl_PHYSMEM):
68960         * m4/posixtm.m4 (gl_POSIXTM):
68961         * m4/posixver.m4 (gl_POSIXVER):
68962         * m4/quote.m4 (gl_QUOTE):
68963         * m4/quotearg.m4 (gl_QUOTEARG):
68964         * m4/readtokens.m4 (gl_READTOKENS):
68965         * m4/readutmp.m4 (gl_READUTMP):
68966         * m4/regex.m4 (gl_REGEX):
68967         * m4/safe-read.m4 (gl_SAFE_READ):
68968         * m4/safe-write.m4 (gl_SAFE_WRITE):
68969         * m4/same.m4 (gl_SAME):
68970         * m4/save-cwd.m4 (gl_SAVE_CWD):
68971         * m4/savedir.m4 (gl_SAVEDIR):
68972         * m4/settime.m4 (gl_SETTIME):
68973         * m4/sha1.m4 (gl_SHA1):
68974         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68975         * m4/stat-macros.m4 (gl_STAT_MACROS):
68976         * m4/stat-time.m4 (gl_STAT_TIME):
68977         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68978         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68979         * m4/strdup.m4 (gl_FUNC_STRDUP):
68980         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68981         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68982         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68983         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68984         * m4/time_r.m4 (gl_TIME_R):
68985         * m4/timespec.m4 (gl_TIMESPEC):
68986         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68987         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68988         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68989         * m4/userspec.m4 (gl_USERSPEC):
68990         * m4/utimecmp.m4 (gl_UTIMECMP):
68991         * m4/utimens.m4 (gl_UTIMENS):
68992         * m4/xalloc.m4 (gl_XALLOC):
68993         * m4/xgetcwd.m4 (gl_XGETCWD):
68994         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68995         * m4/xreadlink.m4 (gl_XREADLINK):
68996         * m4/xstrtod.m4 (gl_XSTRTOD):
68997         * m4/yesno.m4 (gl_YESNO):
68998         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68999         to get the necessary .h files and whatnot.
69000
69001 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69002             Bruno Haible  <bruno@clisp.org>
69003
69004         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69005         /bin/sh understanding of '!' conditional negation.
69006
69007 2006-08-21  Jim Meyering  <jim@meyering.net>
69008
69009         * modules/openat (Depends-on): Really alphabetize.
69010
69011         * modules/acl (Depends-on): Add error and quote.
69012
69013         * check-module (find_included_lib_files): Add at-func.c to the
69014         ok-to-include-more-than-once white list.
69015
69016         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69017
69018 2006-08-21  Bruno Haible  <bruno@clisp.org>
69019
69020         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69021         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69022         Reported by Martin Lambers <marlam@marlam.de>.
69023
69024 2006-08-21  Bruno Haible  <bruno@clisp.org>
69025
69026         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69027         specify an installation location, don't emit a noinst_LIBRARIES or
69028         noinst_LTLIBRARIES assignment.
69029
69030 2006-08-21  Bruno Haible  <bruno@clisp.org>
69031
69032         BeOS portability.
69033         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69034         BeOS has mbrtowc() but no <wctype.h>.
69035
69036 2006-08-21  Bruno Haible  <bruno@clisp.org>
69037
69038         BeOS portability.
69039         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69040         exist.
69041
69042 2006-08-21  Bruno Haible  <bruno@clisp.org>
69043
69044         BeOS portability.
69045         * lib/mbchar.h: Include <wctype.h> only if it exists.
69046
69047 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69048
69049         Remove files that are no longer needed by their respective modules.
69050         * m4/obstack.m4: Remove.
69051         * m4/strerror_r.m4: Remove.
69052         * m4/uint32_t.m4: Remove.
69053         * m4/uintptr_t.m4: Remove.
69054         * m4/ullong_max.m4: Remove.
69055         * m4/xstrtoimax.m4: Remove.
69056         * m4/xstrtoumax.m4: Remove.
69057
69058         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69059         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69060         dependencies now capture this.
69061
69062         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69063         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69064         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69065         * m4/human.m4 (gl_HUMAN): Likewise.
69066         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69067         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69068
69069         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69070
69071         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69072         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69073         stdint.
69074         * m4/human.m4 (gl_HUMAN): Likewise.
69075         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69076         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69077         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69078         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69079         * m4/xstrtol (gl_XSTRTOL): Likewise.
69080
69081         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69082         AC_TYPE_LONG_LONG_INT.
69083         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69084         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69085         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69086         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69087
69088         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69089         on stdbool.
69090
69091         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69092         (gl_PREREQ_XSTRTOUL): Remove.
69093
69094         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69095
69096         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69097         mode.
69098
69099 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69100
69101         Add and change modules to make it easier for coreutils to use
69102         gnulib-tool.
69103         * modules/backupfile (Files): Remove m4/d-ino.m4.
69104         (Depends-on): Add d-ino.
69105         * modules/cycle-check (Depends-on): Add stdint.
69106         (lib_SOURCES): Add cycle-check.h.
69107         * modules/d-ino: New module.
69108         * modules/d-type: New module.
69109         * modules/error (Files): Remove m4/strerror_r.m4.
69110         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69111         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69112         m4/inttypes_h.m4, m4/uintmax_t.m4.
69113         (Depends-on): Add stdint.
69114         (lib_SOURCES): Add fsusage.h.
69115         * modules/getcwd (Files): Remove d-ino.m4.
69116         (Depends-on): Add d-ino.
69117         * modules/getndelim2 (Depends-on): Add stdint.
69118         * modules/glob (Files): Remove m4/d-type.m4.
69119         (Depends-on): Add d-type.
69120         * modules/host-os: New module.
69121         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69122         m4/inttypes_h.m4, m4/uintmax_t.m4.
69123         * Depends-on: Add stdint.
69124         (lib_SOURCES): Add human.h.
69125         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69126         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69127         m4/uintmax_t.m4, m4/ulonglong.m4.
69128         (Depends-on): Add stdint.
69129         (EXTRA_DIST): Add inttostr.h.
69130         * modules/lchmod: New module.
69131         * modules/link-follow: New module.
69132         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69133         (Depends-on): Add lchmod.
69134         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69135         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69136         (Depends-on): Add stdint.
69137         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69138         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69139         (Depends-on): Add stdint.
69140         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69141         * modules/perl: New module.
69142         * modules/regex (Depends-on): Add stdint.
69143         * modules/rmdir-errno: New module.
69144         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69145         m4/intmax_t.m4.
69146         (Depends-on): Add stdint.
69147         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69148         m4/uintmax_t.m4.
69149         (Depends-on): Add stdint.
69150         * modules/unlink-busy: New module.
69151         * modules/utimecmp (Depends-on): Add stdint.
69152         * modules/uptime: New module.
69153         * modules/winsz-ioctl: New module.
69154         * modules/winsz-termios: New module.
69155         * modules/xnanosleep (Depends-on): Add nanosleep.
69156         * modules/ullong_max: Remove.
69157         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69158         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69159         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69160         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69161         (Depends-on): Add inttypes.
69162         (lib_SOURCES): Add xstrtol.h.
69163         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69164         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69165         * MODULES.html.sh: Move 'assert' into the assert section.
69166         Move 'dummy' into the linking section.
69167         Remove ullong_max.
69168         Add section for compatibility checks for POSIX:2001 functions,
69169         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69170         winsz-ioctl, and winsz-termios into it.
69171         Add lchmod.
69172         Add top-level Misc section and put host-os, perl, and uptime
69173         into it.
69174
69175 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69178         now assume the stdint module.  Do not include inttypes.h.
69179         * lib/fsusage.h: Likewise.
69180         * lib/getndelim2.c: Likewise.
69181         * lib/human.h: Likewise.
69182         * lib/inttostr.h: Likewise.
69183         * lib/obstack.c: Likewise.
69184         * lib/regex_internal.h: Likewise.
69185         * lib/tempname.c: Likewise.
69186         * lib/utimecmp.c: Likewise.
69187         * lib/xstrtol.h: Likewise.
69188
69189         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69190
69191         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69192         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69193         * lib/xtime.h: Likewise.
69194
69195 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69196
69197         * modules/openat (Files): Add lib/fchmodat.c.
69198         Fixes problem reported by Jay Youngman.
69199
69200 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69201
69202         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69203         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69204
69205 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69206             Bruno Haible  <bruno@clisp.org>
69207
69208         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69209         and is a script that invokes bison. Tighten the code. Add comments.
69210
69211 2006-08-18  Jim Meyering  <jim@meyering.net>
69212
69213         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69214         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69215         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69216         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69217
69218 2006-08-18  Bruno Haible  <bruno@clisp.org>
69219
69220         * modules/bison-i18n: New file.
69221         * MODULES.html.sh (Internationalization functions): Add it.
69222
69223 2006-08-18  Bruno Haible  <bruno@clisp.org>
69224
69225         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69226         sys/statvfs.h. When getmntinfo was found, check its declaration and
69227         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69228
69229 2006-08-18  Bruno Haible  <bruno@clisp.org>
69230
69231         * m4/bison-i18n.m4: New file, from bison.
69232
69233 2006-08-18  Bruno Haible  <bruno@clisp.org>
69234
69235         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69236         (ME_DUMMY): Treat "kernfs" as a dummy.
69237         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69238
69239 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69240
69241         Update from coreutils.
69242
69243         2006-08-15  Jim Meyering  <jim@meyering.net>
69244
69245         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69246
69247         2006-01-17  Jim Meyering  <jim@meyering.net>
69248
69249         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69250
69251         2006-01-11  Jim Meyering  <jim@meyering.net>
69252
69253         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69254         Check for the lchmod function.
69255
69256 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69257
69258         Update from coreutils.
69259
69260         * lib/__fpending.h: Add copyright notice.
69261         * lib/fprintftime.h: Likewise.
69262         * lib/savedir.c: Use (C) in copyright notice.
69263         * lib/savedir.h: Likewise.
69264
69265         2006-08-15  Jim Meyering  <jim@meyering.net>
69266
69267         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69268         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69269         in support of the EXPECTED_ERRNO macro.
69270         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69271         definitions.  Instead, define the appropriate symbols and include
69272         "at-func.c".
69273         * lib/mkdirat.c (mkdirat): Likewise.
69274         * lib/fchmodat.c (fchmodat): Likewise.
69275         (ENOSYS): Remove definition.
69276         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69277         it.  Don't include "unistd--.h" -- it wasn't ever used.
69278
69279         2006-01-17  Jim Meyering  <jim@meyering.net>
69280
69281         Rewrite fts.c not to change the current working directory,
69282         by using openat, fstatat, fdopendir, etc..
69283
69284         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69285         (HAVE_OPENAT_SUPPORT): Define.
69286         [_LIBC] (fchdir): Don't undef or define; no longer used.
69287         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69288         Now, this `function' always succeeds, and consumes its file descriptor
69289         parameter -- so callers must not close such FDs.  Update callers.
69290         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69291         (diropen): Add parameter, SP.  Adjust all callers.
69292         Implement using diropen_fd, rather than open.
69293         (fts_open): Initialize new member, fts_cwd_fd.
69294         Remove fts_rft-setting code.
69295         (fts_close): Close fts_cwd_fd, if necessary.
69296         (__opendir2): Define in terms of opendir or opendirat,
69297         depending on whether the FST_NOCHDIR flag is set.
69298         (fts_build): Since fts_safe_changedir consumes its FD, and since
69299         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69300         and close the dup'd file descriptor upon failure.
69301         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69302         (fts_safe_changedir): Tweak semantics to reflect that this function
69303         now calls cwd_advance_fd and hence consumes its FD argument.
69304         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69305         [struct FTS] (fts_rft): Remove now-unused member.
69306         [struct FTS] (fts_cycle.state): Improve comment.
69307
69308         * lib/openat.c (openat_needs_fchdir): New function.
69309         * lib/openat.h (openat_needs_fchdir): Declare it.
69310
69311 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69314         Problem and fix reported by Pádraig Brady in
69315         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69316
69317 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69320
69321 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * lib/memcoll.c (memcoll): Optimize for the common case where the
69324         arguments are bytewise equal.
69325
69326 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69327
69328         * doc/regexprops-generic.texi: Add a copyright notice.
69329
69330 2006-08-15  Bruno Haible  <bruno@clisp.org>
69331
69332         * modules/tmpdir (License): Change to LGPL.
69333
69334 2006-08-15  Bruno Haible  <bruno@clisp.org>
69335
69336         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69337         module.
69338
69339 2006-08-14  Simon Josefsson  <jas@extundo.com>
69340
69341         * config/srclist.txt: Add gnupload.
69342
69343 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69344
69345         Change copyright notice from LGPL 2 to GPL 2, since that's the
69346         standard form used in the gnulib repository.
69347         * tests/test-lock.c: Likewise.
69348         * tests/test-stdint.c: Likewise.
69349         * tests/test-tls.c: Likewise.
69350
69351         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69352         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69353         Add copyright notice.
69354
69355         * check-module: Add copyright notice.  Output a copyright
69356         notice if "--version" is specified.
69357         * modules/COPYING: New file.
69358         * tests/test-getaddrinfo.c: Add copyright notice.
69359         * tests/test-verify.c: Likewise.
69360
69361 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69362
69363         Change copyright notice from LGPL 2 to GPL 2, since that's the
69364         standard form used in the gnulib repository.
69365         * lib/lock.c: LGPL -> GPL.
69366         * lib/lock.h: Likewise.
69367         * lib/strnlen1.c: Likewise.
69368         * lib/strnlen1.h: Likewise.
69369         * lib/tls.c: Likewise.
69370         * lib/tls.h: Likewise.
69371         * lib/tmpdir.c: Likewise.
69372
69373         * lib/TODO: Remove; this belongs only in coreutils.
69374
69375 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         Add copyright notices to long-enough files that lack them, since
69378         otherwise the files aren't clearly free.  Use the same notice that
69379         getdate.texi already uses.
69380         * doc/alloca-opt.texi: Add copyright notice.
69381         * doc/alloca.texi: Likewise.
69382         * doc/ctime.texi: Likewise.
69383         * doc/functions.texi: Likewise.
69384         * doc/gcd.texi: Likewise.
69385         * doc/gnulib-tool.texi: Likewise.
69386         * doc/inet_ntoa.texi: Likewise.
69387         * doc/visibility.texi: Likewise.
69388
69389         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69390         * doc/quote.texi: Add copyright notice.
69391
69392         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69393         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69394         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69395         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69396         is now obsolete, and give a pointer to the Sun list.
69397         Add copyright notice.
69398
69399 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69400
69401         * config/srclistvars.sh: Add copyright notice.
69402
69403 2006-08-14  Eric Blake  <ebb9@byu.net>
69404
69405         Import the following change from libc:
69406
69407         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69408
69409         Upstream bug 2997.
69410         * lib/misc/error.c: Add space between program name and message if file
69411         name is missing.
69412
69413 2006-08-12  Karl Berry  <karl@gnu.org>
69414
69415         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69416         remove, these originate in gnulib now.
69417
69418 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69419
69420         * doc/Makefile (standards.info standards.html standards.dvi):
69421         Also depend on make-stds.texi.
69422
69423 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69426         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69427
69428         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69429         in wchar_t.  Problem reported by Eric Blake.
69430
69431         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69432         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69433         Also, help the compiler to keep LEN in a register.
69434
69435 2006-08-11  Eric Blake  <ebb9@byu.net>
69436
69437         * users.txt: Sort.  Add tar.
69438
69439 2006-08-11  Bruno Haible  <bruno@clisp.org>
69440
69441         * users.txt: New file.
69442
69443 2006-08-11  Bruno Haible  <bruno@clisp.org>
69444
69445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69446         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69447
69448 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69449
69450         * modules/snprintf (Depends-on): Remove minmax.
69451         (Maintainer): Add self and Bruno.
69452
69453 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69456         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69457         (EOVERFLOW): Define if the system does not.
69458         Do not include "minmax.h"; it wasn't used.
69459         (snprintf): Don't assume size_t promotes to an unsigned type.
69460         Fix bug when generated string was too long for the buffer: the
69461         buffer's contents are supposed to be the initial prefix of the
69462         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69463         exceeds INT_MAX; do the check ourselves.
69464
69465         Import the following changes from libc:
69466
69467         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69468
69469         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69470         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69471         set wc to the byte which couldn't be converted.
69472         (re_string_reconstruct): Don't clear valid_raw_len before calling
69473         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69474         tip_context using re_string_context_at.
69475
69476         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69477
69478         * lib/posix/regex.h: g++ still cannot handled [restrict].
69479
69480         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69481
69482         * lib/posix/regex.h: Remove special handling for VMS.
69483
69484 2006-08-10  Jim Meyering  <jim@meyering.net>
69485
69486         * modules/same-inode: New module.
69487         * modules/dev-ino: New module.
69488         * modules/cycle-check: Depend on these modules, rather than simply
69489         including their .h files.
69490         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69491         required via m4/cycle-check.m4.
69492         * modules/same: Depend on new same-inode module, rather than
69493         including same-inode.h.
69494         * modules/chdir-safer: New file.
69495
69496         * modules/chown (Depends-on): Add stat-macros.
69497
69498 2006-08-10  Jim Meyering  <jim@meyering.net>
69499
69500         * m4/cycle-check.m4: New file.
69501         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69502         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69503
69504 2006-08-10  Eric Blake  <ebb9@byu.net>
69505
69506         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69507         in from original proposal.
69508
69509 2006-08-10  Eric Blake  <ebb9@byu.net>
69510         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69511
69512         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69513         namespace.
69514
69515 2006-08-10  Bruno Haible  <bruno@clisp.org>
69516
69517         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69518         as well.
69519
69520 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         Sync from coreutils.
69523
69524         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69525
69526         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69527         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69528
69529 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         * modules/restrict: Remove; no longer needed now that we assume
69532         Autoconf 2.59 or later.
69533         * MODULES.html.sh: Remove 'restrict'.
69534         * modules/argp (Depends-on): Remove 'restrict'.
69535         * modules/base64 (Depends-on): Likewise.
69536         * modules/gc (Depends-on): Likewise.
69537         * modules/getaddrinfo (Depends-on): Likewise.
69538         * modules/glob (Depends-on): Likewise.
69539         * modules/inet_ntop (Depends-on): Likewise.
69540         * modules/inet_pton (Depends-on): Likewise.
69541         * modules/memxor (Depends-on): Likewise.
69542         * modules/regex (Depends-on): Likewise.
69543         * modules/strtok_r (Depends-on): Likewise.
69544         * modules/time_r (Depends-on): Likewise.
69545
69546 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69549         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69550         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69551         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69552         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69553         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69554         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69555         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69556
69557         Merge from coreutils.
69558         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69559         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69560         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69561         * m4/time_r.m4 (gl_TIME_R): Likewise.
69562
69563 2006-08-09  Karl Berry  <karl@gnu.org>
69564
69565         * config/srclist.txt: no more gettext-tools, per Bruno.
69566
69567 2006-08-08  Eric Blake  <ebb9@byu.net>
69568
69569         * modules/verror: New module.
69570         * MODULES.html.sh: Document it.
69571
69572 2006-08-08  Eric Blake  <ebb9@byu.net>
69573
69574         * lib/verror.h, lib/verror.c: New files.
69575
69576 2006-08-08  Eric Blake  <ebb9@byu.net>
69577
69578         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69579         verror_at_line output complies with GNU Coding Standards even when
69580         file is NULL.
69581
69582 2006-08-07  Bruno Haible  <bruno@clisp.org>
69583
69584         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69585         versions of AIX.
69586         Reported by Ralf Wildenhues.
69587
69588 2006-08-07  Bruno Haible  <bruno@clisp.org>
69589
69590         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69591         in an AC_DEFUN. Needed so that the autoconf snippets can use
69592         AC_REQUIRE.
69593
69594 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69595
69596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69597         Initialize pkgdata_DATA.
69598         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69599         overriding it.
69600
69601 2006-08-06  Eric Blake  <ebb9@byu.net>
69602
69603         * lib/error.h: Fold in some upstream changes from glibc.
69604         * lib/error.c: Likewise.
69605
69606 2006-08-04  Bruno Haible  <bruno@clisp.org>
69607
69608         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69609         Make the mostlyclean-local rule depend on mostlyclean-generic.
69610         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69611
69612 2006-07-31  Bruno Haible  <bruno@clisp.org>
69613
69614         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69615         <stdlib.h>, <string.h>.
69616
69617 2006-07-30  Bruno Haible  <bruno@clisp.org>
69618
69619         * modules/readlink (License): Change to LGPL.
69620
69621 2006-07-30  Bruno Haible  <bruno@clisp.org>
69622
69623         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69624         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69625         set PKGDATADIR to point to it.
69626
69627 2006-07-30  Bruno Haible  <bruno@clisp.org>
69628
69629         * modules/csharpexec (configure.ac): Comment out macro invocation.
69630         * modules/javaexec (configure.ac): Likewise.
69631         * modules/javacomp-script (configure.ac): Likewise.
69632
69633         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69634
69635 2006-07-30  Bruno Haible  <bruno@clisp.org>
69636
69637         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69638         linked-list.
69639
69640 2006-07-30  Bruno Haible  <bruno@clisp.org>
69641
69642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69643
69644 2006-07-30  Bruno Haible  <bruno@clisp.org>
69645
69646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69647         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69648         get removed.
69649
69650 2006-07-29  Bruno Haible  <bruno@clisp.org>
69651
69652         Make it possible for gnulib-tool to work with locally modified or
69653         augmented gnulib repositories.
69654         * gnulib-tool (func_usage): Document --local-dir option.
69655         (local_gnulib_dir): New variable.
69656         Handle --local-dir option.
69657         (func_lookup_file): New function.
69658         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69659         (func_get_description, func_get_filelist, func_get_description,
69660         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69661         func_get_automake_snippet, func_get_include_directive,
69662         func_get_license, func_get_maintainer): Use func_lookup_file.
69663         (func_import, func_create_testdir): Use func_lookup_file.
69664
69665 2006-07-29  Bruno Haible  <bruno@clisp.org>
69666
69667         * modules/setenv (Depends-on): Add unistd.
69668
69669 2006-07-29  Bruno Haible  <bruno@clisp.org>
69670
69671         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69672
69673 2006-07-29  Bruno Haible  <bruno@clisp.org>
69674
69675         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69676
69677 2006-07-29  Bruno Haible  <bruno@clisp.org>
69678
69679         * gnulib-tool (import, update): If there is no Makefile.am, look at
69680         aclocal.m4, instead of bailing out.
69681
69682 2006-07-29  Bruno Haible  <bruno@clisp.org>
69683
69684         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69685         Categorize the options by when they are useful.
69686
69687 2006-07-29  Bruno Haible  <bruno@clisp.org>
69688
69689         * gnulib-tool (func_usage): Document option --no-libtool.
69690         Handle option --no-libtool.
69691         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69692         for changed semantics of $libtool variable.
69693         (func_import): Likewise. If libtool is not used, show this through
69694         an option --no-libtool.
69695         (func_create_testdir): Update.
69696
69697 2006-07-29  Bruno Haible  <bruno@clisp.org>
69698
69699         * gnulib-tool (func_import): Extend error message about missing
69700         --doc-base.
69701
69702 2006-07-29  Bruno Haible  <bruno@clisp.org>
69703
69704         * gnulib-tool (func_import): Don't create the $docbase directory if
69705         there is no file to store there.
69706
69707 2006-07-29  Bruno Haible  <bruno@clisp.org>
69708
69709         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69710         relevant, look for configure.ac there, not in the current directory.
69711         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69712
69713 2006-07-29  Bruno Haible  <bruno@clisp.org>
69714
69715         * gnulib-tool (SORT): New variable.
69716         (func_usage): Undocument --assume-autoconf option.
69717         Remove --assume-autoconf option handling.
69718         (autoconf_minversion): Determine from the contents of configure.ac.
69719         (func_import): Remove autoconf_minversion handling.
69720         Suggested by Eric Blake.
69721
69722 2006-07-29  Bruno Haible  <bruno@clisp.org>
69723
69724         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69725
69726 2006-07-29  Bruno Haible  <bruno@clisp.org>
69727
69728         * config/srclist.txt (*setenv.[ch]): Remove rules.
69729
69730 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69731
69732         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69733
69734 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69735
69736         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69737         arpa/inet.h.
69738
69739 2006-07-28  Simon Josefsson  <jas@extundo.com>
69740
69741         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69742         * modules/inet_pton (Depends-on): Likewise.
69743
69744 2006-07-28  Simon Josefsson  <jas@extundo.com>
69745
69746         * m4/netinet_in_h.m4: New file.
69747
69748 2006-07-28  Simon Josefsson  <jas@extundo.com>
69749
69750         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69751         #include's.
69752
69753 2006-07-28  Simon Josefsson  <jas@extundo.com>
69754
69755         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69756         #include's.
69757
69758 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69759
69760         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69761         setgid on directories only if they set these bits.
69762         * lib/modechange.h: Remove obsolete comment about masks.
69763
69764 2006-07-28  Eric Blake  <ebb9@byu.net>
69765
69766         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69767         macro expansion.
69768
69769 2006-07-28  Bruno Haible  <bruno@clisp.org>
69770
69771         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69772
69773 2006-07-28  Bruno Haible  <bruno@clisp.org>
69774
69775         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69776
69777 2006-07-28  Bruno Haible  <bruno@clisp.org>
69778
69779         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69780         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69781         Define fallbacks.
69782         Avoids link error on FreeBSD 4.x.
69783         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69784
69785         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69786         encoding.
69787         * lib/mbswidth.c (iswcntrl): Likewise.
69788
69789 2006-07-27  Bruno Haible  <bruno@clisp.org>
69790
69791         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69792         test.
69793
69794 2006-07-27  Bruno Haible  <bruno@clisp.org>
69795
69796         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69797         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69798         defined.
69799
69800 2006-07-26  Eric Blake  <ebb9@byu.net>
69801
69802         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69803
69804 2006-07-26  Eric Blake  <ebb9@byu.net>
69805
69806         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69807         like mingw that lack mkstemp.
69808         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69809         avoid compilation warning on mingw.
69810
69811 2006-07-26  Bruno Haible  <bruno@clisp.org>
69812
69813         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69814         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69815         INT_FAST*_MIN, INTPTR_MIN.
69816
69817 2006-07-25  Bruno Haible  <bruno@clisp.org>
69818
69819         * modules/version-etc (Depends-on): Add stdarg.
69820
69821 2006-07-25  Bruno Haible  <bruno@clisp.org>
69822
69823         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69824         complex commands.
69825
69826 2006-07-25  Bruno Haible  <bruno@clisp.org>
69827
69828         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69829         defined in <stdarg.h> or config.h.
69830
69831 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69832
69833         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69834         (gl_STDIO_SAFER): Remove.
69835
69836 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * MODULES.html.sh (File stream based Input/Output):
69839         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69840         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69841         * modules/fopen-safer, modules/tmpfile-safer: New files.
69842         * modules/stdio-safer: Remove.
69843
69844 2006-07-24  Bruno Haible  <bruno@clisp.org>
69845
69846         * modules/tmpdir: New file.
69847         * MODULES.html.sh (File system functions): Add it.
69848
69849 2006-07-24  Bruno Haible  <bruno@clisp.org>
69850
69851         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69852         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69853
69854 2006-07-24  Bruno Haible  <bruno@clisp.org>
69855
69856         * modules/clean-temp: New file.
69857
69858 2006-07-24  Bruno Haible  <bruno@clisp.org>
69859
69860         * m4/tmpdir.m4: New file, from GNU gettext.
69861
69862 2006-07-24  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/tmpdir.h: New file, from GNU gettext.
69865         * lib/tmpdir.c: New file, from GNU gettext.
69866
69867 2006-07-24  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/clean-temp.h: New file, from GNU gettext.
69870         * lib/clean-temp.c: New file, from GNU gettext.
69871
69872 2006-07-23  Eric Blake  <ebb9@byu.net>
69873
69874         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69875         (Depends-on): Add binary-io.
69876
69877 2006-07-23  Eric Blake  <ebb9@byu.net>
69878
69879         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69880
69881 2006-07-23  Eric Blake  <ebb9@byu.net>
69882
69883         * lib/tmpfile-safer.c: New file.
69884         * lib/stdio-safer.h (fopen_safer): Add prototype.
69885         * lib/stdio--.h (tmpfile): Make safer.
69886
69887 2006-07-23  Bruno Haible  <bruno@clisp.org>
69888
69889         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69890         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69891         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69892         gl_linked_remove_at): Use it.
69893
69894 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69895         and Simon Josefsson <jas@extundo.com>
69896
69897         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69898
69899         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69900
69901 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * modules/close-stream: New file.
69904         * modules/closeout (Description): Make it clear that it exits
69905         with a diagnostic on error.
69906         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69907         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69908
69909 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69910
69911         * m4/close-stream.m4: New file.
69912
69913 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69914
69915         * lib/close-stream.c, lib/close-stream.h: New files.
69916
69917 2006-07-22  Bruno Haible  <bruno@clisp.org>
69918
69919         Merge from GNU gettext 0.15.
69920
69921         2006-05-01  Bruno Haible  <bruno@clisp.org>
69922
69923                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69924
69925         2006-07-22  Bruno Haible  <bruno@clisp.org>
69926
69927                 * modules/javaversion: New file.
69928                 * MODULES.html.sh (Java): Add javaversion.
69929
69930         2006-03-12  Bruno Haible  <bruno@clisp.org>
69931
69932                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69933
69934         2005-12-04  Bruno Haible  <bruno@clisp.org>
69935
69936                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69937                 (untested).
69938
69939         2006-06-21  Bruno Haible  <bruno@clisp.org>
69940
69941                 Avoid warnings from recent versions of mcs.
69942                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69943                 -o, -L, -r any more. Use options documented since mcs-1.0
69944                 instead. Similarly for -g.
69945
69946         2005-12-04  Bruno Haible  <bruno@clisp.org>
69947
69948                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69949                 .resources, not .resource.
69950
69951         2005-07-09  Bruno Haible  <bruno@clisp.org>
69952
69953                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69954                 add a .dll suffix.
69955                 Reported by Mark Junker <mjscod@gmx.de>.
69956
69957         2006-07-22  Bruno Haible  <bruno@clisp.org>
69958
69959                 * modules/gettext: Upgrade to gettext-0.15.
69960                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69961                 m4/visibility.m4.
69962                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69963
69964 2006-07-22  Bruno Haible  <bruno@clisp.org>
69965
69966         Merge from GNU gettext 0.15.
69967
69968         2006-03-25  Bruno Haible  <bruno@clisp.org>
69969
69970                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69971
69972         2006-07-21  Bruno Haible  <bruno@clisp.org>
69973
69974                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69975                 "1.1".
69976
69977         2006-05-09  Bruno Haible  <bruno@clisp.org>
69978
69979                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69980                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69981                 for the conftestver execution.
69982
69983         2006-05-01  Bruno Haible  <bruno@clisp.org>
69984
69985                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69986                 optional target-version argument. Verify that the compiler
69987                 groks source of the specified source-version, or add -source
69988                 option as necessary. Verify that the compiler produces
69989                 bytecode in the specified target-version, or add -target and
69990                 -source options as necessary. Make the result of the test
69991                 available as variable CONF_JAVAC. Also log error output in
69992                 config.log.
69993
69994         2006-03-11  Bruno Haible  <bruno@clisp.org>
69995
69996                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69997
69998         2006-05-09  Bruno Haible  <bruno@clisp.org>
69999
70000                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70001                 CLASSPATH_SEPARATOR to a semicolon.
70002
70003         2006-03-12  Bruno Haible  <bruno@clisp.org>
70004
70005                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70006                 available as variable CONF_JAVA, for subsequent autoconf
70007                 tests. Also log error output in config.log.
70008
70009         2006-07-19  Bruno Haible  <bruno@clisp.org>
70010
70011                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70012                 that getline works on glibc2 systems. Needed to avoid trouble
70013                 in relocatable.c.
70014                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70015
70016         2005-12-04  Bruno Haible  <bruno@clisp.org>
70017
70018                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70019                 launcher (untested).
70020
70021         2005-12-04  Bruno Haible  <bruno@clisp.org>
70022
70023                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70024
70025         2006-07-22  Bruno Haible  <bruno@clisp.org>
70026
70027                 * gettext.m4: Update from GNU gettext-0.15.
70028                 * nls.m4: Likewise.
70029                 * po.m4: Likewise.
70030                 * inttypes-pri.m4: Likewise.
70031                 * inttypes-h.m4: Renamed from inttypes.m4.
70032                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70033
70034 2006-07-22  Bruno Haible  <bruno@clisp.org>
70035
70036         Merge from GNU gettext 0.15.
70037
70038         2005-07-05  Bruno Haible  <bruno@clisp.org>
70039
70040                 * printf-args.c (printf_fetchargs): Work around broken
70041                 definition of wint_t on mingw.
70042
70043         2005-02-12  Bruno Haible  <bruno@clisp.org>
70044
70045                 * xallocsa.h: Add extern "C" for C++.
70046
70047         2006-05-17  Bruno Haible  <bruno@clisp.org>
70048
70049                 Cygwin portability.
70050                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70051
70052         2006-04-30  Bruno Haible  <bruno@clisp.org>
70053
70054                 * progreloc.c: Include <mach-o/dyld.h> if available.
70055                 (find_executable): Use _NSGetExecutablePath when possible.
70056
70057         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70058
70059                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70060                 function.
70061
70062         2005-12-29  Bruno Haible  <bruno@clisp.org>
70063
70064                 * progreloc.c (set_program_name_and_installdir): Fix
70065                 compilation error.
70066
70067         2005-12-04  Bruno Haible  <bruno@clisp.org>
70068
70069                 Cygwin portability.
70070                 * progreloc.c: Include <windows.h> also on Cygwin.
70071                 (find_executable): Add support for Cygwin.
70072                 (set_program_name_and_installdir): Handle also platforms with
70073                 nonempty EXEEXT.
70074
70075         2006-07-11  Bruno Haible  <bruno@clisp.org>
70076
70077                 * javacomp.c: Fix a comment.
70078                 Reported by Jim Meyering.
70079
70080         2006-04-30  Bruno Haible  <bruno@clisp.org>
70081
70082                 * javacomp.h (compile_java_class): Add source_version,
70083                 target_version arguments.
70084                 * javacomp.c: Rewritten to choose only a compiler that
70085                 respects the specified source_version and target_version.
70086
70087         2006-06-27  Bruno Haible  <bruno@clisp.org>
70088
70089                 Assume correct S_ISDIR macro.
70090                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70091
70092         2006-07-22  Bruno Haible  <bruno@clisp.org>
70093
70094                 * javaversion.h: New file, from GNU gettext.
70095                 * javaversion.c: New file, from GNU gettext.
70096                 * javaversion.java: New file, from GNU gettext.
70097                 * javaversion.class: New file, from GNU gettext.
70098
70099         2006-05-17  Bruno Haible  <bruno@clisp.org>
70100
70101                 Cygwin portability.
70102                 * javaexec.c (execute_java_class): Test for jview program
70103                 also on Cygwin.
70104
70105         2006-04-09  Bruno Haible  <bruno@clisp.org>
70106
70107                 * fatal-signal.c: Don't include string.h.
70108                 (at_fatal_signal): Use a copying loop instead of memcpy.
70109
70110         2005-12-04  Bruno Haible  <bruno@clisp.org>
70111
70112                 * csharpexec.c: Add support for 'clix' launcher (untested).
70113                 (execute_csharp_using_sscli): New function.
70114                 (execute_csharp_program): Call it.
70115
70116         2006-06-21  Bruno Haible  <bruno@clisp.org>
70117
70118                 Avoid warnings from recent versions of mcs.
70119                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70120                 -o, -L, -r any more. Use options documented since mcs-1.0
70121                 instead. Similarly for -g.
70122
70123         2005-07-09  Bruno Haible  <bruno@clisp.org>
70124
70125                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70126                 add a .dll suffix.
70127                 Reported by Mark Junker <mjscod@gmx.de>.
70128
70129         2006-06-17  Bruno Haible  <bruno@clisp.org>
70130
70131                 * config.charset: Update for NetBSD 3.0.
70132
70133         2006-05-17  Bruno Haible  <bruno@clisp.org>
70134
70135                 Cygwin portability.
70136                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70137
70138         2006-05-16  Bruno Haible  <bruno@clisp.org>
70139
70140                 * localcharset.c [CYGWIN]: Include <windows.h>.
70141                 (get_charset_aliases): For Cygwin, return the same CPxxx
70142                 aliases list as under WIN32.
70143                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70144                 the environment variables. Fall back to GetACP().
70145
70146         2006-04-05  Bruno Haible  <bruno@clisp.org>
70147
70148                 * config.charset: Update Juan Manuel Guerrero's address.
70149
70150         2005-02-12  Bruno Haible  <bruno@clisp.org>
70151
70152                 * allocsa.h: Add extern "C" for C++.
70153
70154         2005-02-10  Bruno Haible  <bruno@clisp.org>
70155
70156                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70157                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70158
70159         2006-07-22  Bruno Haible  <bruno@clisp.org>
70160
70161                 * gettext.h: Update to GNU gettext-0.15.
70162
70163 2006-07-22  Bruno Haible  <bruno@clisp.org>
70164
70165         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70166         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70167         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70168
70169 2006-07-21  Eric Blake  <ebb9@byu.net>
70170
70171         * modules/stdlib-safer: New file.
70172         * MODULES.html.sh (File stream based Input/Output): Add
70173         stdlib-safer.
70174
70175 2006-07-21  Eric Blake  <ebb9@byu.net>
70176
70177         * lib/stdlib-safer.h: New file from coreutils, required by
70178         stdlib--.h.
70179
70180 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70181
70182         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70183
70184 2006-07-20  Bruno Haible  <bruno@clisp.org>
70185
70186         * gnulib-tool: Recognize new option --assume-autoconf.
70187         (autoconf_minversion): New variable.
70188         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70189
70190 2006-07-20  Bruno Haible  <bruno@clisp.org>
70191
70192         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70193
70194 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70195
70196         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70197         Reindent and repaginate.
70198
70199 2006-07-19  Derek Price  <derek@ximbiot.com>
70200
70201         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70202         Correct grammar.
70203
70204 2006-07-17  Bruno Haible  <bruno@clisp.org>
70205
70206         * modules/list: New file.
70207         * modules/array-list: New file.
70208         * modules/carray-list, modules/carray-list-tests: New files.
70209         * modules/linked-list, modules/linked-list-tests: New files.
70210         * modules/avltree-list, modules/avltree-list-tests: New files.
70211         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70212         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70213         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70214         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70215         * modules/oset: New file.
70216         * modules/array-oset: New file.
70217         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70218         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70219         * tests/test-carray_list.c: New file.
70220         * tests/test-linked_list.c: New file.
70221         * tests/test-avltree_list.c: New file.
70222         * tests/test-rbtree_list.c: New file.
70223         * tests/test-linkedhash_list.c: New file.
70224         * tests/test-avltreehash_list.c: New file.
70225         * tests/test-rbtreehash_list.c: New file.
70226         * tests/test-avltree_oset.c: New file.
70227         * tests/test-rbtree_oset.c: New file.
70228         * MODULES.html.sh (Container data structures): New section.
70229
70230 2006-07-17  Bruno Haible  <bruno@clisp.org>
70231
70232         * m4/gl_list.m4: New file.
70233
70234 2006-07-17  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/gl_list.h: New file.
70237         * lib/gl_list.c: New file.
70238         * lib/gl_array_list.h: New file.
70239         * lib/gl_array_list.c: New file.
70240         * lib/gl_carray_list.h: New file.
70241         * lib/gl_carray_list.c: New file.
70242         * lib/gl_linked_list.h: New file.
70243         * lib/gl_linked_list.c: New file.
70244         * lib/gl_anylinked_list1.h: New file.
70245         * lib/gl_anylinked_list2.h: New file.
70246         * lib/gl_avltree_list.h: New file.
70247         * lib/gl_avltree_list.c: New file.
70248         * lib/gl_anyavltree_list1.h: New file.
70249         * lib/gl_anyavltree_list2.h: New file.
70250         * lib/gl_rbtree_list.h: New file.
70251         * lib/gl_rbtree_list.c: New file.
70252         * lib/gl_anyrbtree_list1.h: New file.
70253         * lib/gl_anyrbtree_list2.h: New file.
70254         * lib/gl_anytree_list1.h: New file.
70255         * lib/gl_anytree_list2.h: New file.
70256         * lib/gl_linkedhash_list.h: New file.
70257         * lib/gl_linkedhash_list.c: New file.
70258         * lib/gl_anyhash_list1.h: New file.
70259         * lib/gl_anyhash_list2.h: New file.
70260         * lib/gl_avltreehash_list.h: New file.
70261         * lib/gl_avltreehash_list.c: New file.
70262         * lib/gl_rbtreehash_list.h: New file.
70263         * lib/gl_rbtreehash_list.c: New file.
70264         * lib/gl_anytreehash_list1.h: New file.
70265         * lib/gl_anytreehash_list2.h: New file.
70266
70267         * lib/gl_oset.h: New file.
70268         * lib/gl_oset.c: New file.
70269         * lib/gl_array_oset.h: New file.
70270         * lib/gl_array_oset.c: New file.
70271         * lib/gl_avltree_oset.h: New file.
70272         * lib/gl_avltree_oset.c: New file.
70273         * lib/gl_rbtree_oset.h: New file.
70274         * lib/gl_rbtree_oset.c: New file.
70275         * lib/gl_anytree_oset.h: New file.
70276
70277 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * m4/mkancesdirs.m4: New file.
70280         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70281         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70282         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70283         it.
70284
70285 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70288         * lib/mkancesdirs.h: New files.
70289         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70290         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70291         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70292         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70293         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70294         callers changed.  Revamp internals significantly, by not
70295         attempting to create directories that are temporarily more
70296         permissive than the final results.  Do not attempt to use
70297         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70298         This removes some race conditions, fixes some bugs, and simplifies
70299         things.  Use new dirchownmod function to do owner and mode changes.
70300         * lib/mkdir-p.h: Likewise.
70301         * lib/modechange.c (octal_to_mode): New function.
70302         (struct mode_change): New member mentioned.
70303         (make_node_op_equals): New arg mentioned.  All callers changed.
70304         (mode_compile): Keep track of which mode bits the user has explicitly
70305         mentioned.
70306         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70307         New arg PMODE_BITS, to keep track of which mode bits the user
70308         mentioned; it treats S_ISUID and S_ISGID speciall.
70309         All callers changed.
70310         * lib/modechange.h: Likewise.
70311
70312 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * MODULES.html.sh: Add mkancestors.
70315         * modules/mkancesdirs: New module.
70316         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70317         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70318         The chdir-safer and afs files are now orphans; I'll remove them
70319         unless someone speaks up.
70320         Add lib/dirchownmod.c, lib/dirchownmod.h.
70321         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70322         Add lchown, mkancesdirs.
70323         (Maintainer): Add self.
70324
70325 2006-07-15  Karl Berry  <karl@gnu.org>
70326
70327         * gnulib-tool: help message wording/arrangement.
70328
70329 2006-07-14  Simon Josefsson  <jas@extundo.com>
70330
70331         * doc/gnulib.texi (Libtool and Windows): New section.
70332
70333 2006-07-12  Simon Josefsson  <jas@extundo.com>
70334
70335         * modules/gendocs (License): Fix license, approved by Karl.
70336
70337 2006-07-12  Eric Blake  <ebb9@byu.net>
70338
70339         * MODULES.html.sh: Add gendocs.
70340
70341 2006-07-11  Eric Blake  <ebb9@byu.net>
70342
70343         * modules/fdl: New module, to install doc/fdl.texi.
70344         * MODULES.html.sh: Add new section for documentation modules.
70345         * gnulib-tool: Avoid space-tab.
70346         (--doc-base): New option, to manage files from doc.
70347
70348 2006-07-11  Eric Blake  <ebb9@byu.net>
70349
70350         * m4/absolute-header.m4: Fix comments to match recent change.
70351
70352 2006-07-11  Eric Blake  <ebb9@byu.net>
70353
70354         * gnulib-tool: List --doc-base before --tests-base.
70355
70356 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70357
70358         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70359
70360 2006-07-11  Bruno Haible  <bruno@clisp.org>
70361
70362         * README: Mention where to put documentation.
70363
70364 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70365
70366         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70367
70368 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70371         to stdint.m4.
70372
70373 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70376         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70377         "no/such/file/stdint.h" when there is no such file, so that
70378         the resulting C code can be parsed by dodgy compilers.
70379         Problems reported by Bob Proulx.
70380
70381 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70382
70383         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70384         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70385         macros into the GNU _D_EXACT_NAMLEN.
70386         * lib/savedir.c:  Likewise.
70387         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70388
70389 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70390         and Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70393         * m4/savedir.m4:
70394         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70395         macros into the GNU _D_EXACT_NAMLEN.
70396
70397 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70400         around the absolute name, to work around a problem with the HP-UX
70401         11.23 native C compiler, reported by Bob Proulx.
70402
70403 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70404
70405         * doc/maintain.texi, make-stds.texi: Sync from
70406         <http://savannah.gnu.org/projects/gnustandards>.
70407
70408 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70409
70410         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70411
70412 2006-07-09  Jim Meyering  <jim@meyering.net>
70413
70414         * m4/glob.m4: Remove a doubled word in a comment.
70415
70416 2006-07-09  Jim Meyering  <jim@meyering.net>
70417
70418         * lib/argp-pv.c: Remove a doubled word in a comment.
70419         * lib/check-version.c (check_version): Likewise.
70420         * lib/javacomp.c (compile_java_class): Likewise.
70421
70422 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70423
70424         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70425         for the benefit of people using Autoconf 2.60.  If you want to
70426         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70427         (or m4/onceonly.m4, if pre-2.57) manually.
70428
70429 2006-07-08  Jim Meyering  <jim@meyering.net>
70430
70431         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70432         comment.
70433         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70434         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70435         comment.
70436
70437 2006-07-08  Jim Meyering  <jim@meyering.net>
70438
70439         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70440
70441 2006-07-07  Simon Josefsson  <jas@extundo.com>
70442
70443         * tests/test-crc.c: Change expected crc value, the test vector
70444         were probably computed using the old broken crc.c?
70445
70446 2006-07-06  Simon Josefsson  <jas@extundo.com>
70447
70448         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70449         now the canonical place for the M4 file).
70450
70451         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70452         from the sys_socket dependency now.
70453
70454         * modules/inet_pton (Files): Ditto.
70455
70456         * modules/inet_ntop (Files): Ditto.
70457
70458 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70459
70460         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70461         not gl_PREREQ_GETUSERSHELL.
70462
70463 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70464
70465         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70466         with only one argument, for Autoconf 2.60.
70467         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70468         expand to nothing, so add a shell command to avoid syntax error.
70469         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70470
70471 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70472
70473         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70474
70475 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70478         no longer needed.  Check for isblank decl.
70479         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70480         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70481         of existence.
70482
70483 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         * lib/getloadavg.c: Use __VMS, not VMS.
70486         * lib/getopt.c: Likewise.
70487         * lib/getpagesize.h: Likewise.
70488         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70489         and probably does not work.
70490
70491 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70492
70493         * lib/.cppi-disable: Add wcwidth.
70494         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70495         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70496         (ISGRAPH): Remove.  All uses changed to isgraph.
70497         (FOLD) [!defined _LIBC]: Remove special case.
70498         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70499         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70500         HAVE_ISBLANK.
70501         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70502         case.
70503
70504 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70505
70506         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70507         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70508         brackets.  Other minor changes to suppress some compiler
70509         warnings.
70510
70511 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70512         and Paul Eggert  <eggert@cs.ucla.edu>
70513
70514         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70515         of invoking obsolescent AC_HEADER_DIRENT macro.
70516         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70517         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70518         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70519         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70520         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70521         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70522         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70523         * m4/readdir.m4: Remove; no longer needed.
70524
70525 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70526         and Paul Eggert  <eggert@cs.ucla.edu>
70527
70528         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70529         Don't worry about this obsolete case any more.
70530         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70531         directories.
70532         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70533         worry about this obsolete case any more.
70534         * lib/fts.c: Likewise.
70535         * lib/getcwd.c: Likewise.
70536         * lib/glob.h: Likewise.
70537         * lib/savedir.c: Likewise.
70538
70539 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70542         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70543         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70544         needed.
70545         All uses removed.
70546         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70547         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70548         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70549         needed.
70550         * m4/getdate.m4 (gl_GETDATE): Likewise.
70551         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70552         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70553         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70554         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70555         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70556         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70557         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70558         needed.
70559
70560 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70561
70562         * lib/memcasecmp.c: Include <limits.h>.
70563         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70564         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70565         Don't assume isdigit succeeds only on '0' through '9'.
70566
70567 2006-07-05  Eric Blake  <ebb9@byu.net>
70568
70569         * modules/getaddrinfo (Depends-on): Add snprintf.
70570
70571 2006-07-05  Eric Blake  <ebb9@byu.net>
70572
70573         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70574         to avoid 'header present but could not be compiled' on cygwin.
70575
70576 2006-07-05  Eric Blake  <ebb9@byu.net>
70577
70578         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70579         missing from netdb.h.
70580         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70581
70582 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70583
70584         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70585         no longer needed.
70586         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70587         * m4/getdate.m4 (gl_GETDATE): Likewise.
70588         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70589         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70590         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70591         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70592         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70593
70594 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70595
70596         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70597         All uses of is_space replaced by isspace.
70598         * lib/exit.h: Don't talk about STDC_HEADERS.
70599         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70600         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70601         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70602         replaced by isprint etc.
70603         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70604         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70605         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70606         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70607         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70608         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70609
70610 2006-07-05  Bruno Haible  <bruno@clisp.org>
70611
70612         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70613         the function exists, before testing against AIX.
70614         Reported by Martin Lambers <marlam@marlam.de>.
70615
70616 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70619         From Mark D. Baushke.
70620
70621 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70624         to the absolute name, not just one, to bypass Sun C 5.8's
70625         "warning: #include of /usr/include/... may be non-portable".
70626
70627 2006-07-04  Eric Blake  <ebb9@byu.net>
70628
70629         * modules/dirname-tests: New test module.
70630         * tests/test-dirname.c: New file, replacing dirname.c
70631         TEST_DIRNAME section that was recently deleted.
70632
70633 2006-07-04  Bruno Haible  <bruno@clisp.org>
70634
70635         Assume ANSI C header files and <ctype.h> functions.
70636         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70637         (mbsnwidth): Use isprint, iscntrl instead.
70638
70639 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70640
70641         Merge from coreutils.
70642         * MODULES.html.sh: Add xstrtold.
70643         * modules/xstrtold: New file.
70644         * modules/cycle-check (Files): Add lib/same-inode.h.
70645         * modules/dirname (Files): Add m4/double-slash-root.m4.
70646         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70647         * modules/mkdir-p (Files): Add lib/same-inode.h.
70648         * modules/same (Files): Add lib/same-inode.h.
70649
70650 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70651
70652         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70653         This is to keep the terminology clean; POSIX talks about
70654         "absolute pathnames", not "full pathnames", but the GNU
70655         Coding Standards say to use "path" for something else;
70656         so use "absolute" to keep both sides happy.
70657         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70658         Set gl_absolute_header, not gl_full_header_path.
70659         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70660         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70661         All uses changed.
70662
70663         Merge from coreutils.
70664
70665         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70668         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70669         want to require the building of c-strtod.o.
70670         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70671         needs -lm directly.
70672         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70673
70674         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70675
70676         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70677         --as-needed option if available.  Problem reported by Albert Chin in
70678         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70679         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70680         cc merely issues a bunch of annoying warnings for --as-needed
70681         (this problem was reported by Bob Proulx).  Also, try linking with
70682         -lm to detect a bug in binutils 2.16 (this problem was reported
70683         by Ralf Wildenhues).
70684
70685         2006-06-18  Jim Meyering  <jim@meyering.net>
70686
70687         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70688         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70689         macro.
70690         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70691         also check for glibc-2.4's abort-inducing bug.
70692
70693         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70694         Low-probability clean-up should be to use rmdir to get rid of
70695         the just-created directory, not unlink.
70696
70697         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70698         configure fail, and request a bug report to inform us about it.
70699         Add a comment that, barring reports to the contrary, in 2007 we'll
70700         assume ftruncate is universally available.
70701
70702         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70703
70704         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70705
70706         2006-03-12  Jim Meyering  <jim@meyering.net>
70707
70708         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70709         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70710         * m4/same.m4 (gl_SAME): Likewise.
70711         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70712
70713         2006-03-11  Eric Blake  <ebb9@byu.net>
70714
70715         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70716         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70717         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70718         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70719
70720 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70723         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70724         reported by Mark D. Baushke, one in
70725         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70726
70727         Merge from coreutils.
70728
70729         * lib/.cppi-disable: Add stdint_.h.
70730         * lib/.cvsignore: Add stdint.h.
70731
70732         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70735         both double and long double versions.
70736         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70737         * lib/xstrtold.c: New file.
70738         * lib/xstrtod.h (xstrtold): New decl.
70739
70740         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70741
70742         * lib/filemode.c (setst): Remove.
70743         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70744         (arguably) clearer, and the generated code is a bit smaller on my
70745         Debian GNU/Linux stable x86 host.
70746
70747         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70748
70749         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70750         Assume that filemode.h includes sys/types.h and sys/stat.h.
70751         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70752         (ftypelet): Reorder to put common cases first, for efficiency.
70753         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70754         to do 'M'.
70755         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70756         of 10, for compatibility with FreeBSD.  All callers changed.
70757         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70758         types that can't be deduced solely from st_mode.  First arg is now a
70759         const pointer.
70760         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70761         (strmode): Renamed from mode_string.
70762         (filemodestring): New decl.
70763         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70764         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70765         needed.
70766         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70767
70768         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70771         fsusage.h now does that.  Include fsusage.h first, to test interface.
70772         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70773         at most one method (the old code could have generated decls that
70774         didn't conform to C89, not that this was ever exercised).
70775         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70776
70777         2006-03-19  Jim Meyering  <jim@meyering.net>
70778
70779         Work even in a chroot where d_ino values for entries in "/"
70780         don't match the stat.st_ino values for the same names.
70781         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70782         number, iterate through all entries again, using lstat instead.
70783         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70784         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70785
70786         * lib/getcwd.c (__getcwd): Clarify a comment.
70787         Use memcpy in place of a call to strcpy.
70788
70789         2006-03-12  Jim Meyering  <jim@meyering.net>
70790
70791         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70792         matches that of the current directory (which we're about to chdir ".."
70793         out of), then save the dev-ino of the parent, instead.
70794
70795         * lib/same-inode.h (SAME_INODE): New file/macro.
70796         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70797         Include "same-inode.h", instead.
70798         * lib/same.c: Likewise.
70799         * lib/cycle-check.h: Include "same-inode.h".
70800         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70801         * lib/cycle-check.c (SAME_INODE): Remove definition.
70802         * lib/root-dev-ino.h: Include "same-inode.h".
70803
70804         2006-03-11  Eric Blake  <ebb9@byu.net>
70805
70806         * lib/same.c (same_name): s/base_name/last_component/
70807         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70808         * lib/filenamecat.c (file_name_concat): Likewise.
70809
70810         2006-03-11  Eric Blake  <ebb9@byu.net>,
70811                     Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70814         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70815         drive prefix.
70816         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70817         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70818         (last_component): New method.
70819         * lib/dirname.c (dir_len): Determine when drive letters need a
70820         subsequent slash.  Preserve // when it is special.
70821         (dir_name): Don't append dot when drive letter is absolute.
70822         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70823         * lib/basename.c (base_name): New semantics - malloc the result.
70824         Preserve // when it is special.  Preserve relative files that look
70825         like drive letters.
70826         (base_len): Preserve // when it is special.
70827         (last_component): New method, similar to old base_name semantics.
70828         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70829         base_name.  Strip redundant slashes from ///.
70830
70831 2006-07-03  Jim Meyering  <jim@meyering.net>
70832
70833         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70834         macro is used before the first cycle_check call.
70835
70836 2006-07-03  Eric Blake  <ebb9@byu.net>
70837
70838         * modules/dirname (Depends-on): Add xstrndup.
70839
70840 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70843         test cases, so that config.log is a bit easier to follow.
70844
70845 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70848         both are 64 bits, since this seems to be the tradition, and this
70849         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70850         we ever run into a host that prefers long long to long in this
70851         case, we'll need another configure-time test.  Problem reported by
70852         Jim Meyering.
70853
70854 2006-07-02  Eric Blake  <ebb9@byu.net>
70855
70856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70857
70858 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * modules/inttypes (Depends-on): No longer depends on stdint.
70861         * modules/stdint (Description): Say more about assumptions.
70862         Say that the fast types might differ.  Say macros are used.
70863         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70864         (Makefile.am): Revise list of substituted symbols to match
70865         new stdint.m4.
70866         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70867         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70868         * tests/test-stdint.c (verify_same_types)
70869         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70870         the code conforms to C99/C89.
70871         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70872         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70873
70874 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70875
70876         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70877         but fix a bug, by requiring at least 64 bits.
70878         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70879         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70880         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70881         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70882
70883         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70884         changes.  Make 2.59 a prerequisite.  Check and substitute for
70885         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70886         inttypes.h.  Do not use special include files; just use the
70887         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70888         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70889         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70890         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70891         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70892         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70893         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70894         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70895         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70896         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70897         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70898         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70899         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70900         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70901         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70902         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70903         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70904         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70905         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70906         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70907         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70908         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70909         not check for things that C99 does not require, e.g., int8_t.  If
70910         a test isn't needed unless <stdint.h> isn't working, and is
70911         unlikely to be needed for any other reason, then don't do it
70912         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70913         size_t, since we assume C89 freestanding at least.  Do not check
70914         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70915         the right thing even if the types are not defined.  Instead use:
70916         (gl_STDINT_TYPE_PROPERTIES): New macro.
70917         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70918         testing whether <sys/types.h> clashes, as Autoconf does this for
70919         us now.  All uses removed.
70920         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70921         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70922         (gl_CHECK_TYPE_SAME):
70923         Remove; no longer needed.
70924         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70925         exists, since we'll return 0 anyway in that case.
70926         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70927
70928 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70929
70930         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70931         possible collision with system files.
70932         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70933         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70934         WCHAR_MIN and WCHAR_MAX in this case.
70935         (<stddef.h>): Do not include; no longer needed.
70936         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70937         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70938         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70939         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70940         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70941         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70942         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70943         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70944         !defined(__c99))]: Include in this case too, since it's harmless
70945         now.
70946         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70947         dangerous to do so.
70948         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70949         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70950         (_STDINT_MIN, _STDINT_MAX): New macros.
70951         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70952         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70953         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70954         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70955         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70956         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70957         macros, not typedefs; this simplifies things quite a bit.
70958         Use long int for all types narrower than int64_t.
70959         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70960         Define in terms of long long int or int64_t or long int,
70961         not int64_t or int32_t.  This saves some compile-time testing.
70962         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70963         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70964         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70965         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70966         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70967         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70968         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70969         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70970         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70971         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70972         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70973         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70974         undef any previous version and define our own version, for
70975         simplicity and consistency with the new macros for types.
70976         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70977         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70978         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70979         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70980         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70981         @WINT_T_SUFFIX@ to keep things simple here.
70982         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70983         Simplify by assuming typical 8/16/32/64 host, since we're
70984         already doing that elsewhere anyway.
70985         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70986         and assume long long int is 64 bits if available.  This
70987         speeds up 'configure'.
70988
70989 2006-07-01  Eric Blake  <ebb9@byu.net>
70990
70991         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70992         Reported by Andreas Buening.
70993
70994 2006-07-01  Eric Blake  <ebb9@byu.net>
70995
70996         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70997
70998 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70999
71000         * lib/getaddrinfo.c: fixed typo
71001
71002 2006-06-29  Jim Meyering  <jim@meyering.net>
71003
71004         * modules/strftime (Maintainer): Add my name, since with the
71005         FPRINTFTIME changes strftime.c has forked from glibc.
71006
71007 2006-06-29  Eric Blake  <ebb9@byu.net>
71008
71009         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71010
71011 2006-06-29  Eric Blake  <ebb9@byu.net>
71012
71013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71014
71015 2006-06-29  Eric Blake  <ebb9@byu.net>
71016
71017         * lib/stat_.h: New file.
71018
71019 2006-06-29  Eric Blake  <ebb9@byu.net>
71020
71021         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71022         unused static function.
71023
71024 2006-06-29  Eric Blake  <ebb9@byu.net>
71025
71026         * doc/functions.texi (Function Portability): Document missing lstat
71027         on mingw.
71028
71029 2006-06-29  Eric Blake  <ebb9@byu.net>
71030
71031         * MODULES.html.sh: Add sys_stat.
71032         * modules/sys_stat: New module.
71033         * modules/mkstemp (Depends-on): Add sys_stat.
71034
71035 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71036
71037         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71038
71039 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71040
71041         * m4/c-bs-a.m4: Removed.
71042
71043 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71044
71045         * lib/strftime.c: Assume strftime() exists.
71046
71047 2006-06-29  Derek Price  <derek@ximbiot.com>
71048
71049         * modules/c-bs-a: Removed - \a is C89.
71050         * MODULES.html.sh: Remove c-bs-a.
71051
71052 2006-06-29  Bruno Haible  <bruno@clisp.org>
71053
71054         * modules/wcwidth (License): Change to LGPL.
71055
71056 2006-06-28  Simon Josefsson  <jas@extundo.com>
71057
71058         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71059         on _WIN32.
71060
71061         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71062         getnameinfo.
71063
71064 2006-06-28  Simon Josefsson  <jas@extundo.com>
71065
71066         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71067
71068 2006-06-28  Simon Josefsson  <jas@extundo.com>
71069
71070         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71071         functions there.  It will succeed on Windows XP, but on Windows
71072         2000 and (presumably) earlier, it will fail, and use the internal
71073         re-implementation.
71074         (use_win32_p): New function.
71075         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71076         Support AI_NUMERICSERV to disable getservbyname.
71077         (getnameinfo): New function, only supports
71078         NI_NUMERICHOST|NI_NUMERICSERV for now.
71079
71080         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71081         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71082         getnameinfo.
71083
71084 2006-06-28  Eric Blake  <ebb9@byu.net>
71085
71086         * modules/wcwidth: New file.
71087         * modules/mbchar (Depends-on): Add wcwidth.
71088         * modules/mbswidth (Depends-on): Add wcwidth.
71089         * MODULES.html.sh: Add wcwidth.
71090
71091 2006-06-28  Eric Blake  <ebb9@byu.net>
71092
71093         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71095
71096 2006-06-28  Eric Blake  <ebb9@byu.net>
71097
71098         * lib/xvasprintf.h: Fix comments.
71099
71100 2006-06-28  Eric Blake  <ebb9@byu.net>
71101
71102         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71103         * lib/mbswidth.c (wcwidth): Move from here...
71104         * lib/wcwidth.h: ...to this new file.
71105
71106 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71107
71108         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71109
71110         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71111         it's obsolete.
71112         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71113
71114 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71115
71116         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71117         Autoconf 2.60 says this stuff was obsolete.
71118
71119 2006-06-28  Bruno Haible  <bruno@clisp.org>
71120
71121         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71122
71123 2006-06-28  Bruno Haible  <bruno@clisp.org>
71124
71125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71126         gt_TYPE_WCHAR_T.
71127
71128 2006-06-28  Bruno Haible  <bruno@clisp.org>
71129
71130         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71131         declaration for wcwidth.
71132         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71133
71134 2006-06-28  Bruno Haible  <bruno@clisp.org>
71135
71136         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71137         (mkdir): Define using _mkdir.
71138
71139 2006-06-28  Bruno Haible  <bruno@clisp.org>
71140
71141         * lib/getaddrinfo.h: Fix POSIX URL.
71142         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71143         _WIN32.
71144         (use_win32_p): Make static.
71145         (getaddrinfo): Reject service name if it is empty or does not consist
71146         solely of decimal digits, or if its value is > 65535.
71147         (getnameinfo): Remove useless casts.
71148
71149 2006-06-27  Simon Josefsson  <jas@extundo.com>
71150
71151         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71152         Eggert and Martin Lambers.
71153
71154 2006-06-27  Simon Josefsson  <jas@extundo.com>
71155
71156         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71157         Eggert and Martin Lambers.
71158
71159 2006-06-27  Bruno Haible  <bruno@clisp.org>
71160
71161         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71162         result to 0, not to empty.
71163         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71164
71165 2006-06-27  Bruno Haible  <bruno@clisp.org>
71166
71167         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71168
71169 2006-06-26  Simon Josefsson  <jas@extundo.com>
71170
71171         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71172         present.
71173
71174 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71177         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71179
71180 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71181
71182         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71183
71184 2006-06-26  Bruno Haible  <bruno@clisp.org>
71185
71186         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71187
71188 2006-06-26  Bruno Haible  <bruno@clisp.org>
71189
71190         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71191
71192 2006-06-26  Bruno Haible  <bruno@clisp.org>
71193
71194         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71195         SGI C compiler in pre-C99 mode.
71196         Suggested by Mark D. Baushke and Larry Jones.
71197
71198 2006-06-26  Bruno Haible  <bruno@clisp.org>
71199
71200         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71201         WCHAR_MAX.
71202         Reported by Mark D. Baushke and Larry Jones.
71203
71204 2006-06-26  Bruno Haible  <bruno@clisp.org>
71205
71206         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71207         in pre-C99 mode.
71208         Suggested by Mark D. Baushke and Larry Jones.
71209
71210 2006-06-23  Simon Josefsson  <jas@extundo.com>
71211             Bruno Haible  <bruno@clisp.org>
71212
71213         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71214         Emit mostlyclean-local rule.
71215         (func_emit_tests_Makefile_am): Likewise.
71216         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71217
71218 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71219
71220         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71221
71222 2006-06-23  Bruno Haible  <bruno@clisp.org>
71223
71224         * tests/test-stdint.c: Update to match ISO C 99 Technical
71225         Corrigendum 1.
71226
71227 2006-06-23  Bruno Haible  <bruno@clisp.org>
71228
71229         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71230
71231 2006-06-23  Bruno Haible  <bruno@clisp.org>
71232
71233         * lib/stdint_.h: Treat IRIX like OpenBSD.
71234
71235 2006-06-23  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71238         ISO C 99 Technical Corrigendum 1.
71239
71240 2006-06-22  Simon Josefsson  <jas@extundo.com>
71241
71242         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71243         MinGW.
71244
71245 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71248         needed.  Some compiler complained about some of them.  Problem reported
71249         by Larry Jones in
71250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71251
71252 2006-06-21  Simon Josefsson  <jas@extundo.com>
71253
71254         * tests/test-getaddrinfo.c: New file.
71255
71256         * modules/getaddrinfo-tests: New file.
71257
71258         * MODULES.html.sh: Add inet_pton.
71259
71260         * modules/inet_pton: New file.
71261
71262 2006-06-21  Simon Josefsson  <jas@extundo.com>
71263
71264         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71265         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71266         of using the (limited) gnulib implementation on Windows XP.
71267
71268         * m4/inet_pton.m4: New file.
71269
71270 2006-06-21  Simon Josefsson  <jas@extundo.com>
71271
71272         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71273         variable.
71274
71275         * lib/socket_.h: Don't define WINVER.
71276
71277         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71278         slightly modified to work in gnulib.
71279
71280 2006-06-21  Simon Josefsson  <jas@extundo.com>
71281
71282         * doc/gnulib.texi (Windows sockets): Add.
71283
71284 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         * lib/read-file.c (fread_file): Start with buffer allocation of
71287         0 bytes rather than 1 byte; this simplifies the code.
71288         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71289         code to free buffer and save/restore errno.
71290         (internal_read_file): Remove unused local.
71291
71292 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71295         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71296         Problem reported by Denis Excoffier in
71297         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71298
71299 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71300
71301         * modules/sys_socket, modules/socklen: Include sys/types since
71302         FreeBSD 4.x's sys/socket.h needs it.
71303
71304 2006-06-19  Simon Josefsson  <jas@extundo.com>
71305
71306         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71307
71308 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71309
71310         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71311
71312 2006-06-19  Bruno Haible  <bruno@clisp.org>
71313
71314         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71315         and FULL_PATH_INTTYPES_H in angle brackets.
71316         Reported by Mark D. Baushke <mdb@gnu.org>.
71317
71318 2006-06-17  Eric Blake  <ebb9@byu.net>
71319
71320         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71321         errno.
71322
71323 2006-06-17  Bruno Haible  <bruno@clisp.org>
71324
71325         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71326         <sys/inttypes.h>.
71327
71328 2006-06-17  Bruno Haible  <bruno@clisp.org>
71329
71330         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71331         whether errno is declared. Assume <errno.h> declares errno.
71332
71333 2006-06-17  Bruno Haible  <bruno@clisp.org>
71334
71335         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71336
71337 2006-06-17  Bruno Haible  <bruno@clisp.org>
71338
71339         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71340         problem on Solaris 2.5.1.
71341
71342 2006-06-16  Eric Blake  <ebb9@byu.net>
71343
71344         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71345         * lib/unicodeio.c [!defined errno]: Likewise.
71346         * lib/strtol.c [!defined errno]: Likewise.
71347         * lib/strtod.c [!defined errno]: Likewise.
71348
71349 2006-06-15  Eric Blake  <ebb9@byu.net>
71350
71351         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71352
71353 2006-06-15  Eric Blake  <ebb9@byu.net>
71354
71355         * config/srclist.txt (ssize_t.m4): Lose sync.
71356
71357 2006-06-15  Bruno Haible  <bruno@clisp.org>
71358
71359         * modules/stdint (Files): Include m4/full-header-path.m4,
71360         m4/size_max.m4, m4/wchar_t.m4.
71361         (Makefile.am): Many more substitutions.
71362         * modules/stdint-tests: New file.
71363         * tests/test-stdint.c: New file.
71364
71365 2006-06-15  Bruno Haible  <bruno@clisp.org>
71366
71367         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71368         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71369         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71370         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71371         gl_CHECK_TYPE_SAME): New macros.
71372
71373 2006-06-15  Bruno Haible  <bruno@clisp.org>
71374
71375         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71376
71377 2006-06-15  Bruno Haible  <bruno@clisp.org>
71378
71379         * lib/stdint_.h: Rewritten to be fully auto-configured.
71380         Fixes bug on HP-UX/IA64.
71381
71382 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * lib/getdate.y (__attribute__): Don't define if already defined.
71385         Problem reported by Larry Jones.
71386         * lib/utimens.c (__attribute__): Likewise.
71387
71388 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71389
71390         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71391         reported by Andreas Schwab.
71392
71393 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71394             Bruno Haible  <bruno@clisp.org>
71395
71396         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71397         check for the declaration of strnlen and a run test that exposes the
71398         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71399         rpl_strndup.
71400
71401 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71402             Bruno Haible  <bruno@clisp.org>
71403
71404         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71405
71406 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71407
71408         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71409         compile test, for Tru64 4.0D.
71410
71411 2006-05-28  Karl Berry  <karl@gnu.org>
71412
71413         * config/srclist.txt (printf-args.c): lose sync.
71414
71415 2006-05-26  Martin Lambers  <marlam@marlam.de>
71416
71417         * lib/getpass.c: Updates the test for the native W32 API, and adds
71418         missing includes, thus fixing compilation warnings.
71419
71420 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71421
71422         * lib/exclude.c (exclude_fnmatch): New function.
71423         (excluded_file_name): Call exclude_fnmatch.
71424         * lib/exclude.h (excluded_file_name): New prototype
71425
71426 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71427
71428         * lib/tempname.c (small_open, large_open): New macros.
71429         (__open, __open64) [!_LIBC]: Remove.
71430         (__gen_tempname): Use small_open and large_open instead of __open
71431         and __open64.  This fixes a portability bug on HP-UX 11.11i
71432         reported by Simon Wing-Tang in
71433         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71434
71435 2006-05-24  Bruno Haible  <bruno@clisp.org>
71436
71437         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71438         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71439         Reported by Thorsten Maerz <torte@netztorte.de> via
71440         Aaron Stone <aaron@serendipity.cx>.
71441
71442 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71443
71444         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71445         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71446         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71447         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71448         not really conditional on the cache.
71449         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71450
71451 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71452
71453         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71454         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71455         (my_usleep): Don't mishandle maximum value.
71456
71457 2006-05-19  Jim Meyering  <jim@meyering.net>
71458
71459         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71460
71461 2006-05-17  Bruno Haible  <bruno@clisp.org>
71462
71463         Cygwin portability.
71464         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71465
71466 2006-05-17  Bruno Haible  <bruno@clisp.org>
71467
71468         * lib/stdint_.h: Fix recognition of Cygwin.
71469
71470 2006-05-15  Bruno Haible  <bruno@clisp.org>
71471
71472         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71473         on libtool patch by Ralf Wildenhues.
71474
71475 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71476
71477         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71478         test for C99 conformance; (bool) 0.5 is an integer constant
71479         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71480         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71481
71482 2006-05-11  Simon Josefsson  <jas@extundo.com>
71483
71484         * m4/xvasprintf.m4: Fix obvious typo.
71485
71486 2006-05-11  Jim Meyering  <jim@meyering.net>
71487
71488         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71489         James Lemley.
71490
71491 2006-05-10  Simon Josefsson  <jas@extundo.com>
71492
71493         * lib/md4.c: Typo fix, update copyright years.
71494         (K1, K2): Don't use L because it turn computations into 64-bit on
71495         64-bit platforms.
71496
71497 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71500         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71501         unwanted sign propagation, e.g., on hosts with 64-bit int.
71502         There still are some problems with reeelly weird theoretical hosts
71503         (e.g., 33-bit int) but it's not worth worrying about now.
71504         * lib/sha1.c (rol): Likewise.
71505         (K1, K2, K3, K4): Remove unnecessary L suffix.
71506
71507 2006-05-10  Bruno Haible  <bruno@clisp.org>
71508
71509         * lib/des.c: Cast to avoid warnings.
71510
71511 2006-05-09  Bruno Haible  <bruno@clisp.org>
71512
71513         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71514         (Depends-on): Depend also on xsize, stdarg.
71515         (configure.ac): Add gl_XVASPRINTF.
71516
71517 2006-05-09  Bruno Haible  <bruno@clisp.org>
71518
71519         * m4/xvasprintf.m4: New file.
71520
71521 2006-05-09  Bruno Haible  <bruno@clisp.org>
71522
71523         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71524         (EOVERFLOW): Define fallback value.
71525         (xstrcat): New function.
71526         (xvasprintf): Recognize the special case of a string concatenation.
71527
71528 2006-05-08  Eric Blake  <ebb9@byu.net>
71529
71530         * gnulib-tool (func_version): Base copyright year on CVS date.
71531         (func_emit_copyright_notice): New function.
71532         (func_emit_lib_Makefile_am): Use it.
71533         (func_emit_tests_Makefile_am): Likewise.
71534         (func_import): Likewise.
71535
71536 2006-05-08  Bruno Haible  <bruno@clisp.org>
71537
71538         * modules/stdarg: New file.
71539         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71540
71541 2006-05-08  Bruno Haible  <bruno@clisp.org>
71542
71543         * m4/stdarg.m4: New file, from GNU gettext.
71544
71545 2006-05-08  Bruno Haible  <bruno@clisp.org>
71546
71547         * config/srclist.txt (build-aux/config.rpath): different from latest
71548         release.
71549
71550 2006-05-08  Bruno Haible  <bruno@clisp.org>
71551
71552         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71553
71554 2006-05-05  Jim Meyering  <jim@meyering.net>
71555
71556         * m4/warning.m4: New file, derived from bison's file by the same name.
71557
71558 2006-05-03  Bruno Haible  <bruno@clisp.org>
71559
71560         * lib/stdint_.h: Shorter URL.
71561         * lib/inttypes.h: Likewise.
71562
71563 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71566
71567 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71568
71569         * lib/verify.h: Document the internals better.  Most of this change
71570         was written by Bruno Haible.
71571
71572 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * doc/verify.texi: New file, partly based on a proposal by
71575         Bruno Haible.
71576
71577 2006-05-02  Bruno Haible  <bruno@clisp.org>
71578
71579         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71580         test from here...
71581         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71582
71583 2006-04-29  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71586         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71587
71588 2006-04-29  Bruno Haible  <bruno@clisp.org>
71589
71590         * gnulib-tool: Make --update option actually work.
71591
71592 2006-04-29  Bruno Haible  <bruno@clisp.org>
71593
71594         * doc/gcd.texi: New file.
71595         * doc/gnulib.texi: Include it.
71596
71597 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71598
71599         * lib/getdate.y (get_date): When adding relative date, start with the
71600         initial time, not with the result of the first mktime call.
71601
71602 2006-04-25  Bruno Haible  <bruno@clisp.org>
71603
71604         * gnulib-tool (func_import): Output the include directives in three
71605         blocks, sorted separately.
71606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71607
71608 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71611         to define main with arguments, for C++.  Reported by Eric Blake.
71612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71613         Prefer 'int main ()' to 'int main (void)', for C++.
71614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71615         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71616         for 'main', for C99 and C++.
71617
71618 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71621         Don't assume that exit status -1 is valid.
71622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71623         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71624         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71625         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71626         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71627         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71628         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71629         functions can be used without declaring them, or that you can
71630         exit with status -1.
71631         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71632
71633 2006-04-24  Karl Berry  <karl@gnu.org>
71634
71635         * config/srclist.txt (longdouble.m4): sync lost.
71636
71637 2006-04-24  Eric Blake  <ebb9@byu.net>
71638
71639         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71640
71641 2006-04-24  Bruno Haible  <bruno@clisp.org>
71642
71643         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71644         poll() implementation in AIX.
71645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71646
71647 2006-04-24  Bruno Haible  <bruno@clisp.org>
71648
71649         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71650         assigned exactly once.
71651
71652 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71653             Bruno Haible  <bruno@clisp.org>
71654
71655         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71656         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71657         for AM_CPPFLAGS.
71658
71659 2006-04-23  Bruno Haible  <bruno@clisp.org>
71660
71661         * modules/copy-file: Depend on unistd.
71662         * modules/execute: Likewise.
71663         * modules/fatal-signal: Likewise.
71664         * modules/findprog: Likewise.
71665         * modules/mkdtemp : Likewise.
71666         * modules/pipe: Likewise.
71667         * modules/wait-process: Likewise.
71668
71669 2006-04-23  Bruno Haible  <bruno@clisp.org>
71670
71671         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71672         condition was already detected.
71673         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71674
71675 2006-04-23  Bruno Haible  <bruno@clisp.org>
71676
71677         * lib/copy-file.c: Include <unistd.h> unconditionally.
71678         * lib/execute.c: Likewise.
71679         * lib/fatal-signal.c: Likewise.
71680         * lib/findprog.c: Likewise.
71681         * lib/mkdtemp.c: Likewise.
71682         * lib/pipe.h: Likewise.
71683         * lib/pipe.c: Likewise.
71684         * lib/wait-process.h: Likewise.
71685
71686 2006-04-23  Bruno Haible  <bruno@clisp.org>
71687
71688         * gnulib-tool (func_usage): Fix --import description. Document
71689         --update.
71690         (func_import): Create temporary file in a temporary directory, if
71691         --dry-run is specified. Silence errors from 'grep' when there are no
71692         m4 files in $m4dir.
71693         (func_create_testdir): Silence errors from 'grep' when there are no
71694         m4 files in $m4dir.
71695         Reported by Karl Berry <karl@freefriends.org>.
71696
71697 2006-04-20  Bruno Haible  <bruno@clisp.org>
71698
71699         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71700         one argument, so that the code will be portable to Autoconf 2.60.
71701         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71702         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71703         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71704
71705 2006-04-19  Derek Price  <derek@ximbiot.com>
71706             Eric Blake  <ebb9@byu.net>
71707
71708         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71709         rather than "/full/path.h".  Update comment to match.  Shorten &
71710         generalize m4_translit call via AS_TR_CPP.
71711
71712 2006-04-19  Derek Price  <derek@ximbiot.com>
71713             Eric Blake  <ebb9@byu.net>
71714
71715         * lib/inttypes.h: Correct grammar in comment.
71716
71717 2006-04-18  Derek Price  <derek@ximbiot.com>
71718             Paul Eggert  <eggert@cs.ucla.edu>
71719
71720         * modules/inttypes: New file.
71721         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71722
71723 2006-04-18  Derek Price  <derek@ximbiot.com>
71724             Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71727         New files.
71728
71729 2006-04-18  Derek Price  <derek@ximbiot.com>
71730             Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         * lib/inttypes.h: New file.
71733         * lib/strtoimax.c: Assume <inttypes.h>.
71734
71735 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71738         isn't mounted.  Problem reported by Kir Kolyshkin.
71739
71740 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71743         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71744         Derek R. Price.
71745         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71746         implementation.
71747
71748 2006-04-12  Eric Blake  <ebb9@byu.net>
71749
71750         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71751         is now done automatically by the corresponding Autoconf macro.
71752
71753 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71756         time_r.h.
71757
71758 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         Merge regex changes from libc, removing some of our
71761         POSIX-conformance changes that were rejected and redoing them in a
71762         less-intrusive way.
71763
71764         * lib/regcomp.c (re_compile_internal, init_dfa):
71765         Length arg is now size_t, not Idx.  All uses changed.
71766         (peek_token): Forward decl now says internal_function.
71767         (__re_error_msgid, __re_error_msgid_idx):
71768         Now static rather than extern with attribute_hidden.
71769         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71770         For some reason libc prefers K&R style defns for external functions.
71771         (regerror) [!defined _LIBC]: Likewise.
71772         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71773         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71774         (build_range_exp, build_collating_symbol):
71775         Use K&R-style defn.
71776         (re_compile_fastmap): Use '\0' to memset, not 0.
71777         (utf8_sb_map): Make the calculations more obvious.
71778         (init_dfa, parse_bracket_exp, build_charclass_op):
71779         Call calloc and cast result, as glibc does.
71780         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71781         (build_range_exp, build_collating_symbol):
71782         Now internal functions.
71783
71784         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71785
71786         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71787         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71788         Don't depend on VMS; depend on __VMS instead, for POSIX
71789         namespace cleanness.
71790         (regoff_t): Define to ssize_t, not long int.
71791
71792         Remove the REG_ macros named below.  Instead, make the old names
71793         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71794         __USE_GNU_REGEX.
71795         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71796         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71797         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71798         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71799         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71800         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71801         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71802         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71803         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71804         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71805         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71806         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71807         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71808         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71809         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71810         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71811         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71812         (REG_NREGS):
71813         Remove.  All uses replaced by the old RE_* names.
71814         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71815         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71816         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71817         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71818         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71819         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71820         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71821         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71822         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71823         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71824         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71825         Don't bother having these macros be independent of each others'
71826         values, since they no longer exist in the POSIX name space.
71827
71828         Rename the following member names back to their old names,
71829         unless !__USE_GNU_REGEX.  All uses changed back.
71830         (buffer): Renamed from re_buffer.
71831         (allocated): Renamed from re_allocated.
71832         (used): Renamed from re_used.
71833         (syntax): Renamed from re_syntax.
71834         (fastmap): Renamed from re_fastmap.
71835         (translate): Renamed from re_translate.
71836         (can_be_null): Renamed from re_can_be_null.
71837         (regs_allocated): Renamed from re_regs_allocated.
71838         (fastmap_accurate): Renamed from re_fastmap_accurate.
71839         (no_sub): Renamed from re_no_sub.
71840         (not_bol): Renamed from re_not_bol.
71841         (not_eol): Renamed from re_not_eol.
71842         (newline_anchor): Renamed from re_newline_anchor.
71843         (num_regs): Renamed from rm_num_regs.
71844         (start): Renamed from rm_start.
71845         (end): Renamed from rm_end.
71846
71847         (free_state): Move up a bit.
71848
71849         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71850         #define to be empty.
71851         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71852         when that is what is intended.
71853         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71854         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71855         (MAX): New macro.
71856         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71857         All uses changed back to re_malloc, etc.  It's now the caller's
71858         responsibility to check for overflow; all callers changed.
71859         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71860         (re_x2nrealloc): Remove.
71861         (free_state): Remove decl.
71862
71863         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71864         (re_set_registers, re_exec):
71865         Use K&R-style defn.
71866
71867         2006-01-31  Roland McGrath  <roland@redhat.com>
71868
71869         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71870         Reported by Mike Frysinger <vapier@gentoo.org>.
71871
71872         2006-01-15  Andreas Jaeger  <aj@suse.de>
71873
71874         [BZ #1950]
71875         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71876         build_wcs_upper_buffer change.
71877         (build_wcs_upper_buffer): Change return type.
71878
71879         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71880
71881         * lib/regex_internal.h: Include <stdint.h> if available.
71882
71883         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71884
71885         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71886
71887         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71888
71889         * lib/regcomp.c: Adjust for changed secondary hash function.
71890
71891         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71892
71893         * lib/regex.h: Pretty printing.
71894         Clean up namespace a bit.
71895
71896         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71897
71898         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71899         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71900
71901         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71902                     Ulrich Drepper  <drepper@redhat.com>
71903
71904         [BZ #1302]
71905         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71906         changed.
71907         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71908
71909         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71910
71911         [BZ #281]
71912         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71913         * lib/regcomp.c: Remove unnecessary uses of
71914         unsigned RE_TRANSLATE_TYPE.
71915         * lib/regex_internal.h: Likewise.
71916         * lib/regex_internal.c: Likewise.
71917         * lib/regexec.c: Likewise.
71918         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71919
71920         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71921
71922         * lib/regexec.c (find_recover_state): Remove unnecessary
71923         initialization.
71924         (transit_state_bkref): Make DFA a const pointer.
71925         (get_subexp): Likewise.
71926         (check_arrival): Likewise.
71927         (update_cur_sifted_state): Likewise.
71928         (re_search_internal): Likewise.
71929         (prune_impossible_nodes): Likewise.
71930         (acquire_init_state_context): Likewise.
71931         (proceed_next_node): Likewise.
71932         (set_regs): Likewise.
71933         (free_fail_stack_return): Likewise.
71934         (check_arrival_expand_ecl): Mark DFA parameter as const.
71935         (check_arrival_expand_ecl_sub): Likewise.
71936         (check_subexp_limits): Likewise.
71937         (sub_epsilon_src_nodes):  Likewise.
71938         (add_epsilon_src_nodes):  Likewise.
71939         (merge_state_array): Likewise.
71940         (update_regs): Likewise.
71941         (build_trtable): Likewise.
71942         (sift_states_backward): Mark MCTX parameter as const.
71943         (build_sifted_states): Likewise.
71944         (update_cur_sifted_state): Likewise.
71945         (sift_states_mkref): Likewise.
71946         (check_arrival_expand_ecl): Mark eclosure as const.
71947         (check_dst_limits_calc_pos_1): Likewise.
71948         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71949         pointer.
71950
71951         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71952
71953         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71954         (transit_state_sb): Likewise.
71955         (transit_state_mb): Likewise.
71956         (sift_states_iter_mb): Likewise.
71957         (check_arrival_add_next_nodes): Likewise.
71958         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71959         [_LIBC] (re_search_2_stub): Use mempcpy.
71960
71961         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71962         mbrtowc for very simple UTF-8 case.
71963
71964         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71965         a pointer-to-const.
71966         (re_acquire_state_context): Likewise.
71967         * lib/regex_internal.h: Adjust prototypes.
71968
71969         * lib/regex.c: Prevent using C++ compilers.
71970
71971         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71972         (re_acquire_state_context): Likewise.
71973
71974 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71975
71976         * modules/regex (Depends-on): Add ssize_t.
71977
71978 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71981         translation table.
71982
71983 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71984
71985         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71986
71987 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71988             Bruno Haible  <bruno@clisp.org>
71989
71990         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71991         <sys/types.h> and <inttypes.h>.
71992
71993 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71994
71995         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71996         `__error_t_defined', so argp.h will not typedef the former.
71997
71998 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71999
72000         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72001         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72002         glibc names.  Even if glibc is changed to conform to POSIX, the
72003         traditional names will be available anyway, since regex depends on
72004         the extensions module.  Also, fix a longstanding typo in the
72005         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72006         reported by Emanuele Giaquinta.  Also, change sense of cached
72007         variable, so that the message makes sense.
72008
72009 2006-03-24  Simon Josefsson  <jas@extundo.com>
72010
72011         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72012         including some doc fixes.
72013         (base64_encode_alloc): Fix +1 bug on allocation failures.
72014
72015 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72016
72017         * lib/base64.c (base64_encode): Do not read past end of array with
72018         unsanitized input on systems with CHAR_BIT > 8.
72019
72020 2006-03-24  Eric Blake  <ebb9@byu.net>
72021
72022         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72023
72024 2006-03-22  Karl Berry  <karl@gnu.org>
72025
72026         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72027         * config/srclistvars.sh (COREUTILS): new var.
72028
72029 2006-03-17  Jim Meyering  <jim@meyering.net>
72030
72031         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72032         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72033
72034 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72037         no longer needs it.  Instead, check that regoff_t is as least
72038         as wide as ptrdiff_t.
72039
72040         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72041         so that our regex.h stays compatible with the installed regex.
72042         This is helpful for installers who configure --without-included-regex.
72043         Problem reported by Emanuele Giaquinta.
72044
72045 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72046
72047         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72048         Typedef to long int, not to off_, as POSIX will likely change
72049         in that direction.
72050
72051 2006-03-15  Eric Blake  <ebb9@byu.net>
72052
72053         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72054
72055 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72056
72057         * lib/argp-help.c (validate_uparams): Fix typo
72058         * lib/argp-parse.c (argp_default_options): Consistently begin help
72059         messages with a lowercase letter.
72060
72061 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72062
72063         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72064         overrun buffers and shouldn't be used (much as gets shouldn't be
72065         used).
72066         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72067
72068 2006-03-08  Simon Josefsson  <jas@extundo.com>
72069
72070         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72071         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72072
72073 2006-03-08  Simon Josefsson  <jas@extundo.com>
72074
72075         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72076         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72077
72078 2006-03-08  Simon Josefsson  <jas@extundo.com>
72079
72080         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72081         signal that configure disabled the device.
72082
72083 2006-03-08  Simon Josefsson  <jas@extundo.com>
72084
72085         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72086         languages.
72087
72088 2006-03-07  Simon Josefsson  <jas@extundo.com>
72089
72090         * modules/getopt (Depends-on): Add unistd.
72091
72092         * modules/unistd: New file.
72093
72094 2006-03-07  Simon Josefsson  <jas@extundo.com>
72095
72096         * modules/gc-random: New file.
72097
72098 2006-03-07  Simon Josefsson  <jas@extundo.com>
72099
72100         * m4/unistd_h.m4: New file.
72101
72102 2006-03-07  Simon Josefsson  <jas@extundo.com>
72103
72104         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72105         test to be side-effect free by storing the result in the cache
72106         variable gl_cv_lib_readline, and moving the assignment of
72107         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72108         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72109
72110 2006-03-07  Simon Josefsson  <jas@extundo.com>
72111
72112         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72113         error on missing devices (the functions will return an error).
72114
72115         * m4/gc.m4: Move random stuff to gc-random.m4
72116
72117 2006-03-07  Simon Josefsson  <jas@extundo.com>
72118
72119         * lib/unistd_.h: New file.
72120
72121 2006-03-07  Simon Josefsson  <jas@extundo.com>
72122
72123         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72124
72125 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72126
72127         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72128         Problem reported by Juan Manuel Guerrero.
72129
72130 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72133         the unistd module.
72134         * lib/getlogin_r.c: Likewise.
72135         * lib/getlogin_r.h: Likewise.
72136         * lib/glob.c: Likewise.
72137         * lib/pagealign_alloc.c: Likewise.
72138         * lib/unistd_.h: Remove; no longer needed.
72139
72140 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72143         Add unistd.
72144         * modules/c-stack (Depends-on): Add unistd.
72145         * modules/getlogin_r: Likewise.
72146         * modules/glob: Likewise.
72147         * modules/pagealign_alloc: Likewise.
72148         * modules/unistd (Files): Remove lib/unistd_.h.
72149         (EXTRA_DIST): Remove.
72150         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72151         need unistd_.h.
72152         (MOSTLYCLEANFILES): Remove unistd.h-t.
72153
72154 2006-03-03  Simon Josefsson  <jas@extundo.com>
72155
72156         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72157
72158 2006-03-03  Simon Josefsson  <jas@extundo.com>
72159
72160         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72161         libidn and bison.
72162
72163 2006-03-03  Simon Josefsson  <jas@extundo.com>
72164
72165         * build-aux/maint.mk: Add indent target.
72166
72167 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72168
72169         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72170         our replacement poll.h in any case, to avoid a differing
72171         declaration from a system header.  Seen on AIX.
72172
72173 2006-03-01  Simon Josefsson  <jas@extundo.com>
72174
72175         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72176         <kasal@ucw.cz>.
72177
72178 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72179
72180         * modules/gettime (Depends-on): Add extensions module.
72181         * modules/nanosleep (Depends-on): Likewise.
72182         * modules/settime (Depends-on): Likewise.
72183
72184 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72187         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72188         pedantically.
72189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72190         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72191
72192         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72193         not "==".  Reported by Ralf Wildenhues.
72194
72195 2006-03-01  Karl Berry  <karl@gnu.org>
72196
72197         * doc/Copyright/request-*: new files, synced from gnuorg.
72198
72199 2006-03-01  Karl Berry  <karl@gnu.org>
72200
72201         * config/srclist.txt (Copyright/*): new entries.
72202
72203 2006-02-28  Simon Josefsson  <jas@extundo.com>
72204
72205         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72206
72207 2006-02-27  Simon Josefsson  <jas@extundo.com>
72208
72209         * lib/base64.h: Indent #define's.  From Jim Meyering
72210         <jim@meyering.net>.
72211
72212 2006-02-27  Jim Meyering  <jim@meyering.net>
72213
72214         Revert the change of 2006-02-24, so these files can continue
72215         to be sync'd from gettext.
72216         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72217         of `config.h'.
72218
72219 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * modules/intprops: New file.
72222         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72223         Add intprops.
72224         * modules/getloadavg (Files): Remove lib/intprops.h.
72225         (Depends-on): Add intprops.
72226         * modules/human: Likewise.
72227         * modules/inttostr: Likewise.
72228         * modules/openat: Likewise.
72229         * modules/sig2str: Likewise.
72230         * modules/userspec: Likewise.
72231         * modules/utimecmp: Likewise.
72232         * modules/xnanosleep: Likewise.
72233         * modules/xstrtol: Likewise.
72234
72235 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72236
72237         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72238         * modules/lock-tests (TESTS): Use $(EXEEXT).
72239         * modules/tls-tests: Likewise.
72240         * modules/argp-tests: Likewise.
72241         (check_PROGRAMS): New var, replacing...
72242         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72243
72244 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72245
72246         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72247         `config.h'.
72248
72249 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72252
72253 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72254
72255         Sync from coreutils.
72256         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72257         gl_CHDIR_SAFER.
72258
72259 2006-02-22  Jim Meyering  <jim@meyering.net>
72260
72261         Sync from coreutils.
72262         * m4/chdir-safer.m4: New file.
72263
72264 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72267         AT_FDCWD exceeds INT_MAX.
72268         * lib/openat.h (AT_FDCWD): Likewise.
72269
72270 2006-02-17  Eric Blake  <address@hidden>
72271
72272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72273
72274 2006-02-16  Simon Josefsson  <jas@extundo.com>
72275
72276         * modules/getaddrinfo (Depends-on): Add sys_socket.
72277
72278 2006-02-15  Simon Josefsson  <jas@extundo.com>
72279
72280         * build-aux/maint.mk: Add dsyntax-check rule.
72281
72282 2006-02-15  Eric Blake  <ebb9@byu.net>
72283
72284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72285         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72286         'present but cannot compile' warnings on cygwin.
72287         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72288         use ws2tcpip.h if sys/socket.h works.
72289         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72290         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72291
72292 2006-02-14  Simon Josefsson  <jas@extundo.com>
72293
72294         * modules/maintainer-makefile (Files): Rename.
72295
72296         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72297         and (the local) Makefile.cfg to maint-cfg.mk.
72298
72299         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72300         to the latter.
72301
72302         * modules/maintainer-makefile: New module.
72303
72304         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72305         severaly stripped to make it possible to build it up from scratch
72306         with reliable tests.
72307
72308         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72309         fixes to permit overriding the default actions when configure and
72310         makefile are not available.
72311
72312 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72313
72314         Sync from coreutils.
72315         * modules/lstat (Depends-on): Don't depend on xalloc.
72316         (License): Change from GPL to LGPL, since this is now simply a
72317         replacement for a libc function.
72318
72319 2006-02-14  Jim Meyering  <jim@meyering.net>
72320
72321         Sync from coreutils.
72322
72323         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72324         failure on deficient systems, and simplify gnulib lgpl dependencies.
72325         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72326         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72327
72328         * lib/xalloc-die.c: Remove unused definition of N_.
72329
72330 2006-02-14  Jim Meyering  <jim@meyering.net>
72331
72332         Sync from coreutils.
72333         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72334         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72335         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72336         double-quote uses of that variable, to accommodate the rare case in
72337         which getmntent is available in none of the libraries checked.  This
72338         happens at least on FreeBSD 5.0.
72339
72340 2006-02-13  Simon Josefsson  <jas@extundo.com>
72341
72342         * gnulib-tool (Usage): Fix --import, from
72343         karl@freefriends.org (Karl Berry).
72344
72345 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72346
72347         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72348
72349 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72350
72351         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72352         "autoupdate" on 2005-12-12.
72353
72354 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * modules/closeout (Depends-on): Remove atexit.
72357
72358 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72359
72360         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72361         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72362
72363 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72366         __EXTENSIONS__ if this causes compilation to fail.  Problem
72367         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72368         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72369
72370 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72371
72372         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72373         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72375         All uses changed.
72376
72377 2006-01-26  Simon Josefsson  <jas@extundo.com>
72378
72379         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72380         prototype is visible on mingw32.
72381
72382         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72383         for mingw32.
72384
72385         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72386         mingw32).
72387
72388 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72391         attempt to open for write; this always fails, at least on POSIX
72392         hosts.  This reinstates the 2006-01-09 change, which was
72393         inadvertently removed.
72394
72395 2006-01-26  Bruno Haible  <bruno@clisp.org>
72396
72397         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72398         Reported by Paul Eggert.
72399
72400 2006-01-26  Bruno Haible  <bruno@clisp.org>
72401             Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * lib/stdbool_.h (_Bool)
72404         [(! (defined __cplusplus || defined __BEOS__)
72405           && !defined __GNUC__
72406           && !(defined __HP_cc || defined __xlc__
72407                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72408                || defined __sgi))]:
72409         #define to signed char in these cases too; this simplifies
72410         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72411         etc., separately) and makes it more conservative.
72412
72413 2006-01-25  Simon Josefsson  <jas@extundo.com>
72414
72415         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72416         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72417         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72418
72419 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72420
72421         * lib/argp-namefrob.h: Bugfix. Remove stray #
72422
72423 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72424
72425         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72426         so that we test the test.
72427         Check for yet another HP-UX cc bug involving *bool |= bool.
72428
72429 2006-01-25  Karl Berry  <karl@gnu.org>
72430
72431         * config/srclist.txt (vasnprintf.c): sync lost.
72432
72433 2006-01-25  Jim Meyering  <jim@meyering.net>
72434
72435         Sync from the stable (b5) branch of coreutils:
72436
72437         * lib/fts.c (fts_children): Don't let close() clobber errno from
72438         failed fchdir().
72439
72440         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72441         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72442         a dangling symlink.  That can also happen at least for ELOOP.
72443         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72444         FYI, this bug predates the inclusion of fts.c in coreutils.
72445
72446         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72447         in their own block, so pre-c99 compilers don't object.
72448
72449         Avoid the double-free (first in fts_read, second in fts_close) that
72450         would occur when an `active' directory is made inaccessible (e.g.,
72451         via chmod a-x) during a traversal.
72452         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72453         before returning.  Reproduce this failure by
72454         mkdir -p a/b; cd a; chmod a-x . b
72455         Reported by Stavros Passas.
72456
72457 2006-01-25  Jim Meyering  <jim@meyering.net>
72458
72459         * lib/fileblocks.c: Remove more useless parentheses.
72460         * lib/readutmp.h: Likewise.
72461
72462 2006-01-25  Bruno Haible  <bruno@clisp.org>
72463
72464         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72465         warnings.
72466         Reported by Paul Eggert.
72467
72468 2006-01-25  Bruno Haible  <bruno@clisp.org>
72469
72470         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72471         rid of a trap command. For Solaris sh.
72472         Reported by Mark D. Baushke <mdb@gnu.org>.
72473
72474 2006-01-24  Simon Josefsson  <jas@extundo.com>
72475
72476         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72477         Bruno.
72478
72479 2006-01-24  Karl Berry  <karl@gnu.org>
72480
72481         * config/srclist.txt (argp-namefrob.h): sync lost.
72482
72483 2006-01-24  Jim Meyering  <jim@meyering.net>
72484
72485         * modules/openat (Files): Add lib/intprops.h.
72486         From Mark D. Baushke.
72487
72488 2006-01-24  Jim Meyering  <jim@meyering.net>
72489
72490         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72491         Reported by Mark D. Baushke.
72492
72493 2006-01-24  Jim Meyering  <jim@meyering.net>
72494
72495         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72496
72497 2006-01-24  Bruno Haible  <bruno@clisp.org>
72498
72499         * modules/strnlen (Maintainer): Change from glibc to all.
72500
72501 2006-01-24  Bruno Haible  <bruno@clisp.org>
72502
72503         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72504         Patch by Paul Eggert.
72505
72506 2006-01-24  Bruno Haible  <bruno@clisp.org>
72507
72508         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72509         already has it.
72510         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72511         2005-11-26.
72512
72513         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72514         'signed char' to avoid problems with the built-in _Bool type.
72515         Reported by Paul Eggert on 2005-11-26.
72516
72517 2006-01-24  Bruno Haible  <bruno@clisp.org>
72518
72519         * gnulib-tool (func_import): Avoid constructing complicated sed
72520         expressions inside backquote.
72521         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72522
72523 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72524
72525         These changes imported from libc.
72526         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72527         test and two separate function calls.
72528         * lib/strndup.c (__strndup): Add libc_hidden_def.
72529
72530 2006-01-23  Simon Josefsson  <jas@extundo.com>
72531
72532         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72533         Remove the test_*_SOURCES variable: automake infers it by default.
72534         * modules/tls-tests: Likewise.
72535
72536 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72537
72538         Work around porting bugs reported by Dieter in
72539         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72540         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72541         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72542         Include "getopt.h" first, to check interface.
72543         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72544         !HAVE_DECL_GETENV.
72545         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72546         (__strndup): Revert to K&R-style function dfns, the glibc style.
72547         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72548         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72549         Include strnlen.h first, to get prototype properly.
72550         (strnlen): Renamed from __strnlen.
72551         Remove weak alias.
72552
72553 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72556
72557 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72558
72559         * config/srclist.txt: Adjust to reflect glibc reorganization.
72560         This affects only comments.
72561
72562 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72563
72564          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72565          Reported by Bruce Korb <bkorb@gnu.org>.
72566
72567 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72570         to pacify gcc -Wswitch-default.
72571
72572 2006-01-22  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72575         temporary buffer for sprintf, take into account the precision also
72576         for 'd', 'i', 'u', 'o', 'x', 'X'.
72577
72578 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72579
72580         * modules/argp-tests: New module
72581         * tests/test-argp.c: New file
72582         * tests/test-argp-2.sh: New file
72583
72584 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72585
72586         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72587         (__argp_base_name): Removed
72588         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72589         typo.
72590         (__argp_base_name): Provide macro definition or extern declaration
72591         depending on the configuration
72592
72593 2006-01-20  Simon Josefsson  <jas@extundo.com>
72594
72595         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72596
72597 2006-01-20  Simon Josefsson  <jas@extundo.com>
72598
72599         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72600
72601 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72604         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72605         Suggested by Bruno Haible.
72606
72607 2006-01-20  Karl Berry  <karl@gnu.org>
72608
72609         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72610         until changes propagate, I guess.
72611
72612 2006-01-19  Simon Josefsson  <jas@extundo.com>
72613
72614         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72615
72616 2006-01-19  Simon Josefsson  <jas@extundo.com>
72617
72618         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72619
72620 2006-01-19  Simon Josefsson  <jas@extundo.com>
72621
72622         * gnulib-tool: Set check_PROGRAMS.
72623
72624         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72625         modules/des-tests, modules/gc-arcfour-tests,
72626         modules/gc-arctwo-tests, modules/gc-des-tests,
72627         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72628         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72629         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72630         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72631         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72632         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72633         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72634         test_*_SOURCES.
72635
72636 2006-01-18  Simon Josefsson  <jas@extundo.com>
72637
72638         * modules/socklen (Depends-on): Depend on sys_socket.
72639
72640 2006-01-18  Simon Josefsson  <jas@extundo.com>
72641
72642         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72643         modules/des-tests, modules/gc-arcfour-tests,
72644         modules/gc-arctwo-tests, modules/gc-des-tests,
72645         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72646         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72647         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72648         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72649         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72650         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72651         $(EXEEXT) to automake TESTS variable, for mingw32.
72652
72653 2006-01-17  Simon Josefsson  <jas@extundo.com>
72654
72655         * modules/socklen (Include): Need sys/socket.h.
72656
72657 2006-01-17  Bruno Haible  <bruno@clisp.org>
72658
72659         * modules/ssize_t (Include): Add <sys/types.h>.
72660
72661 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72664         it's not portable and it doesn't work with cross-compiles.
72665         Problem reported by Bruno Haible.  Fix missing-$ typo in
72666         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72667         -zignore from being used with Sun's C compiler.
72668
72669 2006-01-12  Simon Josefsson  <jas@extundo.com>
72670
72671         * lib/base64.c: Fix warning, reported by Bruno Haible
72672         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72673
72674 2006-01-12  Bruno Haible  <bruno@clisp.org>
72675
72676         * modules/ldd: New file.
72677         * build-aux/ldd.sh.in: New file.
72678         * MODULES.html.sh (Support for building libraries and executables): Add
72679         ldd.
72680
72681 2006-01-12  Bruno Haible  <bruno@clisp.org>
72682
72683         * m4/ldd.m4: New file.
72684
72685 2006-01-12  Bruno Haible  <bruno@clisp.org>
72686
72687         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72688         endless loop while replacing $auxdir with build-aux.
72689
72690 2006-01-11  Simon Josefsson  <jas@extundo.com>
72691
72692         * lib/stdint_.h (SIZE_MAX): Add missing (.
72693
72694 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         Sync from coreutils.
72697         * lib/md5.c: Fix commentary typos.
72698         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72699         * lib/md5.h (__attribute__): Remove; unused.
72700         * lib/sha1.c: Fix commentary to match md5 better.
72701         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72702         so that we don't need to worry about alignment.  All uses changed.
72703         This merges the 2005-10-28 md5 change into sha1.
72704
72705 2006-01-11  Jim Meyering  <jim@meyering.net>
72706
72707         Sync from coreutils.
72708         * lib/md5.c (OP): Fix spacing.
72709
72710 2006-01-11  Bruno Haible  <bruno@clisp.org>
72711
72712         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72713         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72714         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72715
72716 2006-01-11  Bruno Haible  <bruno@clisp.org>
72717
72718         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72719         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72720         the "early" section as well.
72721
72722 2006-01-11  Bruno Haible  <bruno@clisp.org>
72723
72724         Avoid "ar: no archive members specified" error on MacOS X.
72725         * gnulib-tool (func_modules_add_dummy): New function.
72726         (func_import, func_create_testdir): Invoke it.
72727
72728 2006-01-11  Bruno Haible  <bruno@clisp.org>
72729
72730         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72731         with $auxdir in AC_CONFIG_FILES statements.
72732
72733 2006-01-11  Bruno Haible  <bruno@clisp.org>
72734
72735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72736         Initialize also noinst_HEADERS to empty.
72737
72738 2006-01-11  Bruno Haible  <bruno@clisp.org>
72739
72740         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72741         variables.
72742         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72743         autoreconf.
72744
72745 2006-01-11  Bruno Haible  <bruno@clisp.org>
72746
72747         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72748         overridable by the user.
72749         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72750
72751 2006-01-10  Simon Josefsson  <jas@extundo.com>
72752
72753         * modules/sys_socket: New file.
72754
72755 2006-01-10  Simon Josefsson  <jas@extundo.com>
72756
72757         * m4/sys_socket_h.m4: New file.
72758
72759 2006-01-10  Simon Josefsson  <jas@extundo.com>
72760
72761         * lib/socket_.h: New file.
72762
72763 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         * modules/readutmp (Maintainer): Add myself.
72766
72767 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72768
72769         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72770         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72771         People who are still concerned with buggy memcmp implementations
72772         can invoke gl_FUNC_MEMCMP themselves.
72773
72774 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72775
72776         * lib/regex_internal.h (BITSET_WORD_BITS):
72777         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72778         preprocessor mishandles large unsigned values as if they were signed.
72779         Problem reported by Claudio Fontana in
72780         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72781
72782 2006-01-10  Jim Meyering  <jim@meyering.net>
72783
72784         Avoid the double-free (first in fts_read, second in fts_close) that
72785         would occur when an `active' directory is made inaccessible (e.g.,
72786         via chmod a-x) during a traversal.
72787         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72788         before returning.  Reproduce this failure by
72789         mkdir -p a/b; cd a; chmod a-x . b
72790         Reported by Stavros Passas.
72791
72792         Sync from coreutils.
72793         * lib/sha1.c: Tweak grammar in a comment.
72794
72795 2006-01-10  Jim Meyering  <jim@meyering.net>
72796
72797         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72798         Patch by Joerg Sonnenberger.
72799
72800 2006-01-10  Bruno Haible  <bruno@clisp.org>
72801
72802         * modules/readutmp: Depend on module free.
72803         * modules/strtok_r: Depend on module restrict.
72804
72805 2006-01-10  Bruno Haible  <bruno@clisp.org>
72806
72807         * modules/gettext (configure.ac): Add an invocation of
72808         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72809
72810 2006-01-10  Bruno Haible  <bruno@clisp.org>
72811
72812         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72813         Reported by Werner Lemberg <wl@gnu.org>.
72814
72815 2006-01-10  Bruno Haible  <bruno@clisp.org>
72816
72817         * lib/localcharset.c: Update from GNU gettext.
72818
72819 2006-01-10  Bruno Haible  <bruno@clisp.org>
72820
72821         * lib/argp.h (__const): Remove macro. Use const instead.
72822         * lib/argp-fmtstream.h (__const): Likewise.
72823         * lib/glob_.h (__const): Remove macro.
72824         * lib/glob-libc.h: Use const instead of __const.
72825
72826 2006-01-10  Bruno Haible  <bruno@clisp.org>
72827
72828         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72829         variable.
72830         Needed to avoid an automake error regarding the 'gettext' module.
72831
72832 2006-01-09  Simon Josefsson  <jas@extundo.com>
72833
72834         * modules/inet_ntop (Depends-on): Add restrict.
72835
72836 2006-01-09  Simon Josefsson  <jas@extundo.com>
72837
72838         * modules/gc-rijndael-tests (License): Put under LGPL.
72839
72840         * modules/gc-des-tests (License): Likewise.
72841
72842         * modules/gc-arcfour-tests (License): Likewise.
72843
72844         * modules/gc-arctwo-tests (License): Likewise.
72845
72846         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72847
72848         * modules/gc-hmac-sha1-tests (Files): Likewise.
72849
72850         * modules/gc-hmac-md5-tests (License): Likewise.
72851
72852         * modules/gc-sha1-tests (License): Likewise.
72853
72854         * modules/gc-md5-tests (License): Likewise.
72855
72856         * modules/gc-md4-tests (License): Likewise.
72857
72858         * modules/gc-md2-tests (License): Likewise.
72859
72860         * modules/gc-tests (License): Likewise.
72861
72862         * modules/des-tests (License): Likewise.
72863
72864         * modules/md4-tests (License): Likewise.
72865
72866         * modules/md2-tests (License): Likewise.
72867
72868 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72869
72870         Sync from coreutils:
72871
72872         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72873         * modules/lib-ignore: New file.
72874         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72875         chdir-safer.m4, lchmod.m4.
72876         * modules/openat: Add mkdirat.c, openat-priv.h.
72877
72878 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72879
72880         Sync from coreutils.
72881         * m4/lib-ignore.m4: New file.
72882         * m4/lchmod.m4: New file.
72883
72884 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         Sync from coreutils.
72887         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72888         for write access: POSIX says that must fail.
72889         * lib/fts.c (diropen): Likewise.
72890         * lib/save-cwd.c (save_cwd): Likewise.
72891         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72892         well, for minor improvements on hosts that lack O_DIRECTORY.
72893         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72894         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72895         Fall back on chown if open failed with EACCES.
72896
72897         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72898         Report an error at compile-time if only a 1-second nominal clock
72899         resolution is found.
72900
72901         * lib/lchmod.h: New file.
72902         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72903         (make_dir_parents): Use lchown rather than chown, and
72904         lchmod rather than chmod.
72905
72906         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72907         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72908         "proc" reported by n0dalus.
72909
72910         * lib/mountlist.c: Include <limits.h>.
72911         (dev_from_mount_options)
72912         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72913         New function.  It no longer assumes "dev=" has the System V meaning
72914         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72915         (read_file_system_list)
72916         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72917         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72918         dev= in that case.
72919
72920         * lib/posixtm.h (PDS_PRE_2000): New macro.
72921         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72922         allow_century.  All usages changed.  Reject dates outside the range
72923         1969-1999 if PDS_PRE_2000 is used.
72924
72925 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         Sync from coreutils.
72928         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72929         (Time of day items): Mention the possibility of leap seconds.
72930         Problem reported by Dr. David Alan Gilbert.
72931
72932 2006-01-09  Jim Meyering  <jim@meyering.net>
72933
72934         Sync from coreutils.
72935
72936         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72937
72938         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72939
72940         * lib/modechange.c (mode_compile): Reject an invalid mode string
72941         that starts with an octal digit.  From Andreas Gruenbacher.
72942
72943         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72944         and dup to open_safer and dup_safer, respectively.
72945         (openat_permissive): Fix typo in comment.
72946
72947         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72948         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72949         (_): Remove; no longer needed.
72950         (openat): Renamed from rpl_openat; no need for rpl_openat
72951         since openat.h renames openat for us.
72952         Replace most of the body with a call to openat_permissive,
72953         to avoid duplicate code.
72954         Port to (probably hypothetical) environments were mode_t is
72955         wider than int.
72956         (openat_permissive): Require mode arg, so that we can check
72957         types better.  Put it just after flags.  Change cwd failure
72958         indicator from pointer-to-bool to pointer-to-errno-value.
72959         All callers changed.
72960         Invoke openat_save_fail and/or openat_restore_fail if
72961         cwd_errno is null, so that openat can call us.
72962         (openat_permissive, fdopendir, fstatat, unlinkat):
72963         Simplify errno handling to avoid some duplicate code,
72964         as it's OK to set errno on success.
72965         * lib/openat.h: Revamp code so that function macros depend on
72966         __OPENAT_PREFIX only, not also on AT_FDCWD.
72967         (openat_ro): Remove.  Caller changed to use openat_permissive.
72968         (openat_permissive): Now a macro, if not a function.
72969         (openat_restore_fail, openat_save_fail): Now always functions,
72970         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72971
72972         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72973         and openat.c.
72974         * lib/mkdirat.c: Include openat-priv.h.
72975         Remove definitions of macros defined therein.
72976         * lib/openat.c: Likewise.
72977
72978         * lib/mkdirat.c (mkdirat): New file and function.
72979         * lib/openat.h (mkdirat): Declare.
72980
72981         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72982
72983         * lib/openat.h (openat_permissive): Declare.
72984         (openat_ro): Define.
72985
72986         * lib/openat.c (EXPECTED_ERRNO): New macro.
72987         (openat_permissive): New function -- used in remove.c rewrite.
72988         (all functions): Set errno just before returning, only if there
72989         was an actual failure.
72990         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72991
72992         Emulate openat-family functions using Linux's procfs, if possible.
72993         Idea and some code based on Ulrich Drepper's glibc changes.
72994
72995         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72996         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72997         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72998         before falling back on save_cwd and restore_cwd.
72999         (fdopendir, fstatat, unlinkat): Likewise.
73000
73001         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73002         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73003
73004         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73005         as second argument to va_arg.  Otherwise, some versions of gcc
73006         warn that `if this code is reached, the program will abort'.
73007
73008 2006-01-09  Jim Meyering  <jim@meyering.net>
73009
73010         Sync from coreutils.
73011         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73012         Require openat-priv.h.
73013
73014 2006-01-09  Bruno Haible  <bruno@clisp.org>
73015
73016         * modules/strnlen (Include): Use strnlen.h.
73017
73018 2006-01-09  Bruno Haible  <bruno@clisp.org>
73019
73020         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73021
73022 2006-01-09  Bruno Haible  <bruno@clisp.org>
73023
73024         * lib/sysexit_.h (EX_OK): New macro.
73025         Suggested by Martin Lambers <marlam@marlam.de>.
73026
73027 2006-01-09  Bruno Haible  <bruno@clisp.org>
73028
73029         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73030         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73031
73032 2006-01-09  Bruno Haible  <bruno@clisp.org>
73033
73034         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73035         numbers.
73036
73037 2006-01-09  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73040         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73041         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73042         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73043
73044 2006-01-09  Bruno Haible  <bruno@clisp.org>
73045
73046         * build-aux/javacomp.sh.in: New file, moved from lib/.
73047         * modules/javacomp-script (Files): Update.
73048         (configure.ac): Add AC_CONFIG_FILES invocation.
73049         (EXTRA_DIST): Remove variable.
73050
73051         * build-aux/javaexec.sh.in: New file, moved from lib/.
73052         * modules/javaexec (Files): Update.
73053         (configure.ac): Add AC_CONFIG_FILES invocation.
73054         (EXTRA_DIST): Remove javaexec.sh.in.
73055
73056         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73057         * modules/csharpcomp-script (Files): Update.
73058         (configure.ac): Add AC_CONFIG_FILES invocation.
73059         (EXTRA_DIST): Remove variable.
73060
73061         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73062         * modules/csharpexec (Files): Update.
73063         (configure.ac): Add AC_CONFIG_FILES invocation.
73064         (EXTRA_DIST): Remove csharpexec.sh.in.
73065
73066 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73067
73068         Sync from coreutils.
73069
73070         Add POSIX ACL support
73071         * lib/acl.h (copy_acl, set_acl): Add declarations.
73072         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73073         systems other than Linux.
73074         (chmod_or_fchmod): New function: use fchmod when possible,
73075         and chmod otherwise.
73076         (file_has_acl): Add a POSIX ACL implementation, with a
73077         Linux-specific subcase.
73078         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73079         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73080         acls are unsupported.
73081         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73082         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73083         are unsupported.
73084
73085 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73086
73087         Sync from coreutils.
73088         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73089
73090 2006-01-07  Bruno Haible  <bruno@clisp.org>
73091
73092         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73093         gl_EARLY.
73094
73095 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73096
73097         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73098         Problem reported for Mingw by Mark Junker.
73099
73100 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73101
73102         * README: Gnulib normally doesn't generate a tarball.
73103
73104 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73107         long int, not int, for nanosecond counts, so that people who are
73108         used to POSIX struct timespec won't be surprised.  Reported by Jim
73109         Meyering.
73110
73111 2005-12-28  Bruno Haible  <bruno@clisp.org>
73112
73113         * build-aux/config.rpath: Update from GNU gettext.
73114
73115 2005-12-16  Jim Meyering  <jim@meyering.net>
73116
73117         * modules/fprintftime: New module.
73118         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73119
73120 2005-12-16  Jim Meyering  <jim@meyering.net>
73121
73122         * m4/fprintftime.m4: New file.
73123
73124 2005-12-16  Jim Meyering  <jim@meyering.net>
73125
73126         * lib/fprintftime.c, lib/fprintftime.h: New files.
73127
73128 2005-12-15  Simon Josefsson  <jas@extundo.com>
73129
73130         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73131         new m4/socklen.m4.
73132
73133 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73134
73135         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73136         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73137
73138 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73139
73140         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73141         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73142         struct uparams is valid. Fall back to the default values if it is
73143         not.
73144
73145 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73146
73147         * modules/argp (Files): Add argp-pin.c
73148         (Depends-on): dirname
73149         (lib_SOURCES): Add argp-pin.c
73150
73151 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73152
73153         * m4/argp.m4:  Check if program_invocation_name and
73154         program_invocation_short_name are declared and define appropriate
73155         macros if they are not.
73156
73157 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73158
73159         * lib/argp-help.c (__argp_base_name): New function
73160         (__argp_short_program_name): Rewrite using __argp_base_name
73161         * lib/argp-namefrob.h: Define program_invocation_name and
73162         program_invocation_short_name if requested
73163         (__argp_base_name): Add prototype
73164         * lib/argp-parse.c (argp_def): Use gettext wrappers
73165         (argp_default_parser): Use __argp_base_name
73166         * lib/argp-pin.c: New file. Defines program_invocation_name and
73167         program_invocation_short_name on systems that lack them.
73168
73169 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73172         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73173         porting problem reported by Georg Schwarz in
73174         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73175
73176 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73177
73178         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73179         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73180         porting problem reported by Georg Schwarz in
73181         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73182
73183 2005-12-05  Bruno Haible  <bruno@clisp.org>
73184
73185         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73186         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73187         Reported by Mark Junker <mjscod@gmx.de>.
73188
73189 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73192         Use implementation from Albert Chin, with some
73193         comments/corrections by Stepan Kasal and myself.
73194
73195 2005-12-02  Bruno Haible  <bruno@clisp.org>
73196
73197         * gnulib-tool (func_import): Accept GPLed build tool modules when
73198         --lgpl is given.
73199         * modules/csharpcomp-script: New file.
73200         * modules/csharpcomp: Depend on it.
73201         * modules/javacomp-script: New file.
73202         * modules/javacomp: Depend on it.
73203         Suggested by Simon Josefsson.
73204
73205 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73208         statement, to work around an HP-UX 10.20 compiler bug reported by
73209         Peter O'Gorman.
73210
73211 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * modules/savedir (Depends-on): Add openat.
73214
73215 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73218         (uintmax_t) [defined uintmax_t]: Do not declare.
73219         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73220         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73221         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73222         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73223         sake of portability to weird hosts that C allows (though we don't
73224         know of any practical examples).
73225
73226         * lib/savedir.h (fdsavedir): New decl.
73227         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73228         contains most of the former guts of savedir.
73229         (savedir): Use savedirstream.
73230         Include "openat.h".
73231
73232 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * modules/obstack (Files): Add m4/ulonglong.m4.
73235         Problem reported by Davide Angelocola.
73236
73237 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73240         coreutils no longer futzes with rounding modes.
73241
73242 2005-11-14  Jim Meyering  <jim@meyering.net>
73243
73244         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73245         replacement of mkstemp.
73246
73247 2005-11-10  Simon Josefsson  <jas@extundo.com>
73248
73249         * lib/readline.c: Remove EOL.
73250
73251 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         * modules/gethrxtime (Depends-on): Add gettime.
73254
73255 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73258         or gettimeofday; no longer needed.
73259
73260 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73263         time business.
73264         (gethrxtime) [! (HAVE_NANOUPTIME
73265         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73266         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73267         our own approximation.
73268
73269 2005-11-08  Eric Blake  <ebb9@byu.net>
73270
73271         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73272
73273 2005-11-08  Eric Blake  <ebb9@byu.net>
73274
73275         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73276
73277 2005-11-04  Bruno Haible  <bruno@clisp.org>
73278
73279         * gnulib-tool: Implement --update mode.
73280
73281 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73282
73283         Fix porting problem reported by Theodoros V. Kalamatianos.
73284         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73285         Don't assume that futimes failing means we must fail.
73286
73287 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73290         variables to suggest the intended function of the PATH_MAX check.
73291
73292 2005-10-30  Kean Johnston  <jkj@sco.com>
73293
73294         Trivial changes to support SCO systems.
73295         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73296         as PATH_MAX.
73297         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73298         where __ptr is null when no I/O is pending.
73299
73300 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73301
73302         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73303         leave errno alone.  Problem reported by Dmitry V. Levin.
73304
73305 2005-10-28  Simon Josefsson  <jas@extundo.com>
73306
73307         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73308         Test more.
73309
73310         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73311
73312         * modules/md2, modules/md2-tests: New files.
73313
73314 2005-10-28  Simon Josefsson  <jas@extundo.com>
73315
73316         * m4/inet_ntop.m4: More tests.
73317
73318         * m4/gc-md2.m4, md2.m4: New file.
73319
73320 2005-10-28  Simon Josefsson  <jas@extundo.com>
73321
73322         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73323         "restrict" keywords, as per POSIX.  Protect the function
73324         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73325         Don't use K&R prototypes.  Check the sprintf return values.
73326         Re-define EAFNOSUPPORT if not present.  Indent.
73327
73328         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73329         suggested by Bruno Haible <bruno@clisp.org>.
73330
73331         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73332
73333         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73334
73335         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73336         libgcrypt).
73337
73338         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73339
73340         * lib/md2.h, lib/md2.c: New files.
73341
73342 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73343
73344         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73345         errno alone.  Problem reported by Frederic Jolliton.
73346
73347 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         * modules/verify (License): Change from GPL to LGPL.  This is a
73350         tiny module and there are apparently near-equivalents that are
73351         under the BSD license.
73352
73353 2005-10-24  Simon Josefsson  <jas@extundo.com>
73354
73355         * modules/sha1: Relicense to LGPL.
73356
73357 2005-10-24  Simon Josefsson  <jas@extundo.com>
73358
73359         * lib/md4.h: Shrink buffer size, now that we changed the type.
73360
73361 2005-10-23  Simon Josefsson  <jas@extundo.com>
73362
73363         * gnulib-tool (func_import): Fix --tests-base.
73364
73365 2005-10-22  Simon Josefsson  <jas@extundo.com>
73366
73367         * modules/arcfour (Depends-on): Need stdint.
73368
73369 2005-10-22  Simon Josefsson  <jas@extundo.com>
73370
73371         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73372         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73373
73374 2005-10-22  Simon Josefsson  <jas@extundo.com>
73375
73376         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73377         suggested by Bruno Haible <bruno@clisp.org>.
73378
73379 2005-10-22  Simon Josefsson  <jas@extundo.com>
73380
73381         * lib/crc.h: Include stddef.h, for size_t.
73382
73383 2005-10-22  Simon Josefsson  <jas@extundo.com>
73384
73385         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73386         arcfour_context struct (simplify test vector testing in GNU
73387         Shishi).
73388
73389 2005-10-21  Simon Josefsson  <jas@extundo.com>
73390
73391         * modules/des, modules/des-tests: New files.
73392
73393         * modules/gc-des, modules/gc-des-tests: New files.
73394
73395         * tests/test-des.c, tests/test-gc-des.c: New file.
73396
73397 2005-10-21  Simon Josefsson  <jas@extundo.com>
73398
73399         * modules/arctwo, modules/arctwo-tests: New files.
73400
73401         * tests/test-arctwo.c: New file.
73402
73403         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73404
73405         * tests/test-gc-arctwo.c: New file.
73406
73407 2005-10-21  Simon Josefsson  <jas@extundo.com>
73408
73409         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73410         Bruno Haible <bruno@clisp.org>.
73411
73412         * m4/gc-des.m4: New file.
73413
73414 2005-10-21  Simon Josefsson  <jas@extundo.com>
73415
73416         * m4/arctwo.m4: New file.
73417
73418         * m4/gc-arctwo.m4: New file.
73419
73420 2005-10-21  Simon Josefsson  <jas@extundo.com>
73421
73422         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73423         block.
73424
73425 2005-10-21  Simon Josefsson  <jas@extundo.com>
73426
73427         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73428         <bruno@clisp.org>.
73429
73430         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73431
73432         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73433         Bruno Haible <bruno@clisp.org>.
73434
73435         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73436         <bruno@clisp.org>.
73437
73438 2005-10-21  Simon Josefsson  <jas@extundo.com>
73439
73440         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73441
73442 2005-10-21  Simon Josefsson  <jas@extundo.com>
73443
73444         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73445
73446 2005-10-21  Simon Josefsson  <jas@extundo.com>
73447
73448         * lib/des.h, lib/des.c: New files.
73449
73450         * lib/gc-gnulib.c: Support DES.c
73451
73452 2005-10-21  Simon Josefsson  <jas@extundo.com>
73453
73454         * lib/arctwo.h, lib/arctwo.c: New files.
73455
73456         * lib/gc-gnulib.c: Support ARCTWO.
73457
73458 2005-10-21  Simon Josefsson  <jas@extundo.com>
73459
73460         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73461         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73462
73463 2005-10-21  Simon Josefsson  <jas@extundo.com>
73464
73465         * gnulib-tool (func_import, func_create_testdir): Define automake
73466         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73467         Makefile.am snippet),
73468         suggested by Bruno Haible <bruno@clisp.org>.
73469
73470         * modules/gc (Makefile.am): Use it.
73471
73472 2005-10-21  Bruno Haible  <bruno@clisp.org>
73473
73474         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73475         patch.
73476
73477 2005-10-19  Simon Josefsson  <jas@extundo.com>
73478
73479         * tests/test-gc-rijndael.c: New file.
73480
73481         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73482
73483 2005-10-19  Simon Josefsson  <jas@extundo.com>
73484
73485         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73486         interface too.
73487
73488 2005-10-19  Simon Josefsson  <jas@extundo.com>
73489
73490         * tests/test-gc-arcfour.c: New file.
73491
73492         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73493
73494 2005-10-19  Simon Josefsson  <jas@extundo.com>
73495
73496         * modules/gc-md4, modules/gc-md4-tests: New file.
73497
73498         * tests/test-gc-md4.c: New file.
73499
73500 2005-10-19  Simon Josefsson  <jas@extundo.com>
73501
73502         * m4/gc-md4.m4: New file.
73503
73504 2005-10-19  Simon Josefsson  <jas@extundo.com>
73505
73506         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73507         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73508         <kasal@ucw.cz>.
73509
73510 2005-10-19  Simon Josefsson  <jas@extundo.com>
73511
73512         * m4/gc-arcfour.m4: New file.
73513
73514         * m4/gc-rijndael.m4: New file.
73515
73516 2005-10-19  Simon Josefsson  <jas@extundo.com>
73517
73518         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73519
73520 2005-10-19  Simon Josefsson  <jas@extundo.com>
73521
73522         * lib/gc-gnulib.c: Support ARCFOUR.
73523
73524 2005-10-19  Simon Josefsson  <jas@extundo.com>
73525
73526         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73527         support.
73528
73529         * lib/gc.h: Add ECB enum type.
73530
73531         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73532
73533 2005-10-18  Simon Josefsson  <jas@extundo.com>
73534
73535         * tests/test-md5.c: New file.
73536
73537         * modules/md5-tests: New file.
73538
73539 2005-10-18  Simon Josefsson  <jas@extundo.com>
73540
73541         * tests/test-md4.c: New file.
73542
73543         * modules/md4, modules/md4-tests: New files.
73544
73545 2005-10-18  Simon Josefsson  <jas@extundo.com>
73546
73547         * m4/md4.m4: New file.
73548
73549 2005-10-18  Simon Josefsson  <jas@extundo.com>
73550
73551         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73552
73553 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73554
73555         * gnulib-tool (func_create_testdir): Omit the second check whether
73556         BUILT_SOURCES in nonempty.
73557
73558 2005-10-17  Simon Josefsson  <jas@extundo.com>
73559
73560         * tests/test-rijndael.c: New file.
73561
73562 2005-10-17  Simon Josefsson  <jas@extundo.com>
73563
73564         * modules/sha1: Depend on stdint instead of md5.
73565
73566         * modules/md5: Depend on stdint, remove uint32_t.
73567
73568 2005-10-17  Simon Josefsson  <jas@extundo.com>
73569
73570         * modules/gc-sha1-tests: New file.
73571
73572         * tests/test-gc-sha1.c: New file.
73573
73574 2005-10-17  Simon Josefsson  <jas@extundo.com>
73575
73576         * m4/md5.m4: Remove call to uint32_t.m4.
73577
73578 2005-10-17  Simon Josefsson  <jas@extundo.com>
73579
73580         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73581
73582         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73583         md5.h.
73584
73585         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73586
73587         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73588
73589 2005-10-17  Simon Josefsson  <jas@extundo.com>
73590
73591         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73592
73593 2005-10-17  Simon Josefsson  <jas@extundo.com>
73594
73595         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73596
73597 2005-10-17  Simon Josefsson  <jas@extundo.com>
73598
73599         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73600
73601         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73602
73603 2005-10-17  Bruno Haible  <bruno@clisp.org>
73604
73605         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73606         that it can also be used in a test.
73607
73608 2005-10-16  Bruno Haible  <bruno@clisp.org>
73609
73610         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73611         TESTS_ENVIRONMENT, so that individual tests can augment it.
73612
73613         * gnulib-tool (func_create_testdir): Use an intermediate target for
73614         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73615         macros, like $(ALLOCA_H), which cannot be passed through the command
73616         line.
73617
73618 2005-10-15  Simon Josefsson  <jas@extundo.com>
73619
73620         * modules/rijndael-tests: New file.
73621
73622         * modules/rijndael: New file.
73623
73624 2005-10-15  Simon Josefsson  <jas@extundo.com>
73625
73626         * m4/rijndael.m4: New file.
73627
73628 2005-10-15  Simon Josefsson  <jas@extundo.com>
73629
73630         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73631
73632         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73633
73634 2005-10-14  Simon Josefsson  <jas@extundo.com>
73635
73636         * tests/test-arcfour.c: New file.
73637
73638         * modules/arcfour, modules/arcfour-tests: New files.
73639
73640 2005-10-14  Simon Josefsson  <jas@extundo.com>
73641
73642         * m4/arcfour.m4: New file.
73643
73644 2005-10-14  Simon Josefsson  <jas@extundo.com>
73645
73646         * lib/arcfour.h, lib/arcfour.c: New files.
73647
73648 2005-10-14  Roland McGrath  <roland@redhat.com>
73649
73650         Import from libc.  [BZ #1331]
73651         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73652         macro argument.
73653         Reported by Matej Vela <vela@debian.org>.
73654
73655 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73658         include <wchar.h>; no longer needed.
73659
73660 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73661
73662         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73663
73664 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73665         and  Ulrich Drepper  <drepper@redhat.com>
73666
73667         Import from libc.
73668         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73669         instead of inline stream orientation test and two separate
73670         function calls.  Pay no attention to USE_IN_LIBIO.
73671
73672 2005-10-13  Simon Josefsson  <jas@extundo.com>
73673
73674         * modules/gc-hmac-md5-tests: New file.
73675
73676         * tests/test-gc-hmac-sha1.c: New file.
73677
73678         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73679
73680         * modules/gc-hmac-md5-tests: New file.
73681
73682         * tests/test-gc-md5.c: New file.
73683
73684         * modules/gc-md5-tests: New file.
73685
73686 2005-10-13  Simon Josefsson  <jas@extundo.com>
73687
73688         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73689         Move memory allocation outside of loop.
73690
73691 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73692
73693         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73694         intermediate directory is in a read-only file system.  Problem
73695         reported by Eric Blake.
73696
73697 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73698
73699         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73700
73701 2005-10-12  Simon Josefsson  <jas@extundo.com>
73702
73703         * tests/test-hmac-sha1.c: New file.
73704
73705         * modules/hmac-sha1-tests: New file.
73706
73707         * modules/hmac-sha1: New file.
73708
73709 2005-10-12  Simon Josefsson  <jas@extundo.com>
73710
73711         * modules/gc-sha1: New file.
73712
73713 2005-10-12  Simon Josefsson  <jas@extundo.com>
73714
73715         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73716
73717         * tests/test-gc-pbkdf2-sha1.c: New file.
73718
73719 2005-10-12  Simon Josefsson  <jas@extundo.com>
73720
73721         * modules/gc-md5, modules/gc-hmac-md5: New files.
73722
73723         * modules/gc (Files): Remove md5, memxor and hmac files.
73724
73725 2005-10-12  Simon Josefsson  <jas@extundo.com>
73726
73727         * m4/gc-pbkdf2-sha1.m4: New file.
73728
73729         * m4/gc-hmac-sha1.m4: New file.
73730
73731         * m4/gc-sha1: New file.
73732
73733         * m4/hmac-sha1.m4: New file.
73734
73735 2005-10-12  Simon Josefsson  <jas@extundo.com>
73736
73737         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73738
73739         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73740
73741 2005-10-12  Simon Josefsson  <jas@extundo.com>
73742
73743         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73744         suggested by Bruno Haible <bruno@clisp.org>.
73745
73746 2005-10-12  Simon Josefsson  <jas@extundo.com>
73747
73748         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73749
73750 2005-10-12  Simon Josefsson  <jas@extundo.com>
73751
73752         * lib/gc-pbkdf2-sha1.c: New file.
73753
73754         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73755
73756 2005-10-12  Simon Josefsson  <jas@extundo.com>
73757
73758         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73759
73760         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73761
73762 2005-10-12  Simon Josefsson  <jas@extundo.com>
73763
73764         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73765         GC_USE_HMAC_MD5, respectively.
73766
73767         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73768         (gc_md5): Fix typo.
73769
73770         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73771
73772         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73773
73774         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73775
73776 2005-10-12  Bruno Haible  <bruno@clisp.org>
73777
73778         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73779         Reported by Stepan Kasal <kasal@ucw.cz>.
73780
73781 2005-10-11  Simon Josefsson  <jas@extundo.com>
73782
73783         * tests/test-crc.c: New file.
73784
73785         * modules/crc, modules/crc-tests: New files.
73786
73787 2005-10-11  Simon Josefsson  <jas@extundo.com>
73788
73789         * m4/crc.m4: New file.
73790
73791 2005-10-11  Simon Josefsson  <jas@extundo.com>
73792
73793         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73794
73795         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73796
73797         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73798
73799 2005-10-11  Simon Josefsson  <jas@extundo.com>
73800
73801         * lib/crc.h, lib/crc.c: New files.
73802
73803         * lib/gc.h (gc_hash_buffer): Add doc.
73804
73805 2005-10-11  Bruno Haible  <bruno@clisp.org>
73806
73807         * modules/c-strcasestr: New file.
73808         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73809
73810 2005-10-11  Bruno Haible  <bruno@clisp.org>
73811
73812         * modules/c-strcase: New file.
73813         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73814
73815 2005-10-11  Bruno Haible  <bruno@clisp.org>
73816
73817         * lib/strcasecmp.c: Include limits.h.
73818         (strcasecmp): Avoid integer overflow on exotic platforms.
73819         * lib/strncasecmp.c: Include limits.h.
73820         (strncasecmp): Avoid integer overflow on exotic platforms.
73821         Reported by Paul Eggert.
73822
73823 2005-10-11  Bruno Haible  <bruno@clisp.org>
73824
73825         * lib/c-strcasestr.h: New file, from GNU gettext.
73826         * lib/c-strcasestr.c: New file, from GNU gettext.
73827
73828 2005-10-11  Bruno Haible  <bruno@clisp.org>
73829
73830         * lib/c-strcase.h: New file, from GNU gettext.
73831         * lib/c-strcasecmp.c: New file, from GNU gettext.
73832         * lib/c-strncasecmp.c: New file, from GNU gettext.
73833
73834 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * modules/mempcpy (License): GPL -> LGPL.
73837         * modules/strchrnul (License): Likewise.
73838         * modules/sysexits (License): Likewise.
73839
73840 2005-10-08  Simon Josefsson  <jas@extundo.com>
73841
73842         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73843
73844 2005-10-07  Simon Josefsson  <jas@extundo.com>
73845
73846         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73847
73848 2005-10-06  Simon Josefsson  <jas@extundo.com>
73849
73850         * tests/test-hmac-md5.c: New file.
73851
73852         * modules/hmac-md5-tests: New file.
73853
73854         * modules/hmac-md5: New file.
73855
73856 2005-10-06  Simon Josefsson  <jas@extundo.com>
73857
73858         * m4/hmac-md5.m4: New file.
73859
73860         * m4/memxor.m4: Require gl_C_RESTRICT.
73861
73862 2005-10-06  Simon Josefsson  <jas@extundo.com>
73863
73864         * lib/memxor.c (memxor): Avoid casts and warnings.
73865
73866 2005-10-06  Simon Josefsson  <jas@extundo.com>
73867
73868         * lib/hmac-md5.c: New file.
73869
73870         * lib/hmac.h: New file.
73871
73872 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73875         promotes to int, not unsigned int, to catch the AIX 5.3
73876         compiler bug.
73877
73878 2005-10-05  Simon Josefsson  <jas@extundo.com>
73879
73880         * modules/memxor: New file.
73881
73882         * modules/iconv (Files): Move config.rpath to havelib, it is used
73883         there.
73884
73885         * modules/havelib (Files): Add config.rpath.
73886
73887 2005-10-05  Simon Josefsson  <jas@extundo.com>
73888
73889         * m4/memxor.m4: New file.
73890
73891 2005-10-05  Simon Josefsson  <jas@extundo.com>
73892
73893         * lib/memxor.c (memxor): Fix compiler error.
73894
73895         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73896         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73897
73898         * lib/memxor.h, lib/memxor.c: New files.
73899
73900         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73901         we assume all systems have it, suggested by Jim Meyering
73902         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73903         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73904         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73905         same reasons.
73906
73907 2005-10-05  Simon Josefsson  <jas@extundo.com>
73908
73909         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73910
73911 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73912
73913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73914         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73915         needed, since the source code now assumes these .h files.
73916
73917 2005-10-05  Derek Price  <derek@ximbiot.com>
73918
73919         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73920
73921 2005-10-05  Bruno Haible  <bruno@clisp.org>
73922
73923         * modules/stdint (License): Change to LGPL.
73924
73925 2005-10-04  Simon Josefsson  <jas@extundo.com>
73926
73927         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73928         D. Baushke" <mdb@gnu.org>.
73929
73930 2005-10-04  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/verify.h (verify_true): Provide alternative definition for C++.
73933
73934 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73935
73936         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73937         (SSIZE_MAX): New macro, if not already defined.
73938         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73939         than 2 GiB.
73940
73941 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         Sync from coreutils.
73944         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73945         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73946         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73947         ULLONG_MAX doesn't work with 2.7.2.1.
73948
73949 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73952         From Ben Pfaff.
73953
73954         * modules/exclude (Depends-on): Depend on verify.
73955         * modules/strtoimax (Depends-on): Likewise.
73956         * modules/utimecmp (Depends-on): Likewise.
73957
73958 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73959
73960         * lib/exclude.c: Include verify.h.
73961         (verify): Remove.  All callers changed to use verify.h's version.
73962         * lib/strtoimax.c: Likewise.
73963         * lib/utimecmp.c: Likewis.e
73964
73965         Sync from coreutils.
73966         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73967         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73968         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73969         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73970         bother returning ENOSYS if settimeofday or stime fails; just let
73971         them return whatever errno they want to return.
73972         * lib/utimens.c: Include unistd.h, for dup2.
73973         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73974         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73975
73976 2005-10-02  Jim Meyering  <jim@meyering.net>
73977
73978         Sync from coreutils.
73979         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73980         from glibc-2.2.5 that fails for read-only files.
73981
73982 2005-10-02  Jim Meyering  <jim@meyering.net>
73983
73984         Sync from coreutils.
73985         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73986         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73987         `#if HAVE_CONFIG_H'.
73988         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73989         Remove AT_FDCWD test.
73990         Do not consume the fd unless successful.
73991         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73992         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73993         block, so that we don't even try to compile it if settimeofday is
73994         available.  This works around a compilation failure on OSF1 V5.1,
73995         due to stime requiring a `long int*' while tv_sec is `int'.
73996
73997 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73998
73999         Sync from coreutils.
74000         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74001         against `yes', rather than just testing for nonempty.
74002
74003 2005-10-01  Simon Josefsson  <jas@extundo.com>
74004
74005         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74006         and Darwin.
74007
74008         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74009         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74010         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74011         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74012         Check if struct addrinfo is declared.
74013
74014 2005-10-01  Simon Josefsson  <jas@extundo.com>
74015
74016         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74017         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74018         AI_* and EAI_* definitions.  Protect function declarations.
74019
74020 2005-10-01  Jim Meyering  <jim@meyering.net>
74021
74022         Sync from coreutils.
74023
74024         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74025         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74026         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74027         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74028         in the inet and nsl libraries.  Required on Solaris 5.7.
74029
74030 2005-10-01  Jim Meyering  <jim@meyering.net>
74031
74032         Sync from coreutils.
74033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74034         in the inet and nsl libraries.  Required on Solaris 5.7.
74035
74036 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74037
74038         * lib/getdelim.c (getdelim): Remove unused variables.
74039
74040 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74043         so that the code works even with ancient cpp.  Portability problem
74044         with GCC 2.7.2.1 reported by Thomas M.Ott.
74045
74046 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74047
74048         * modules/regex (Depends-on): Add strcase.
74049
74050         * modules/gethostname (Licence): Change from GPL to LGPL, since
74051         gethostname.c is a trivial implementation of a standard library
74052         function.
74053         * modules/poll (License): Change from GPL to LGPL, since it's
74054         derived from LGPL code.
74055
74056 2005-09-27  Jim Meyering  <jim@meyering.net>
74057
74058         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74059         HAVE_CONFIG_H.
74060
74061         * lib/intprops.h (signed_type_or_expr__): Define.
74062         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74063         for unsigned types.
74064
74065 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74066
74067         * lib/verify.h (verify_expr): Remove, replacing with:
74068         (verify_true): New macro that returns true instead of void.
74069         (verify_type__): Remove.
74070         (verify): Use verify_true rather than verify_type__.
74071
74072 2005-09-26  Bruno Haible  <bruno@clisp.org>
74073
74074         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74075         is necessary.
74076         (lib_SOURCES): Remove mbchar.c.
74077         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74078         (Files): Add m4/mbrtowc.m4.
74079         * modules/mbiter: Likewise.
74080         * modules/mbuiter: Likewise.
74081
74082 2005-09-26  Bruno Haible  <bruno@clisp.org>
74083
74084         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74085         compile mbchar.c if they are not both present.
74086         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74087         * m4/mbiter.m4 (gl_MBITER): Likewise.
74088         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74089         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74090         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74091
74092 2005-09-25  Jim Meyering  <jim@meyering.net>
74093
74094         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74095         also uses socklen_t.
74096
74097 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * lib/utimens.c (ENOSYS): Define if not already defined.
74100         (futimens): Support having a null PATH if the file descriptor
74101         is nonnegative.
74102
74103         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74104         Remove.
74105         (__attribute): Define to empty unless GCC 3.1 or later.
74106         This works around a core dump on OpenBSD 3.4, which has GCC
74107         2.95.3, which dumps core when given __attribute__(()).  It also
74108         simplifies other tests, since we really don't want to bother with
74109         worrying about which ancient version of GCC supported what.
74110         Original problem reported by Yoann Vandoorselaere, with part of
74111         the fix suggested by Derek Price.
74112
74113 2005-09-24  Jim Meyering  <jim@meyering.net>
74114
74115         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74116         so we can once again use a positive bitfield width of 1 -- now we
74117         don't have to explain why we were using a bitfield width of 2.
74118
74119 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74120
74121         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74122         and similarly for the other external symbols.  Problem reported
74123         by James Gallager.
74124
74125         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74126         bug reported by Jim Meyering.
74127
74128         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74130         not needed, since socklen is a prerequisite module.
74131
74132 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74135         Problem reported by Eric Blake.
74136         (getaddrinfo): Initialize se so that it's not garbage.
74137         Redo internal storage allocation so that it doesn't make unportable
74138         assumptions about alignment.
74139         Fix a memory leak.
74140
74141         * lib/utimens.c (futimens): Use futimesat if available.
74142         Prefer it to futimes since it doesn't have the futimes bug.
74143
74144         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74145         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74146         Instead, declare a function that returns a pointer to an array,
74147         and use verify_type__ to declare the size of the array.
74148         Problem and germ of a solution reported by Bruno Haible.
74149         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74150         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74151
74152 2005-09-23  Jim Meyering  <jim@meyering.net>
74153
74154         Sync from coreutils.
74155         Correct build failure (socklen_t not defined) on at least
74156         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74157         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74158
74159 2005-09-23  Jim Meyering  <jim@meyering.net>
74160
74161         * modules/getaddrinfo (Depends-on): Add socklen.
74162
74163 2005-09-23  Bruno Haible  <bruno@clisp.org>
74164
74165         * tests/test-verify.c: New file.
74166
74167 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         Sync from coreutils.
74170
74171         * modules/argmatch (Depends-on): Add verify.
74172         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74173         unistd-safer.
74174         * modules/save-cwd (Depends-on): Likewise.
74175
74176         * modules/openat (Files): Add lib/openat-die.c.
74177         (Depends-on): Remove error, exitfail.
74178         Add dirname.
74179
74180         * modules/verify: New file.
74181         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74182         with "verify" module.
74183
74184 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74185
74186         Sync from coreutils.
74187
74188         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74189         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74190         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74191         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74192         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74193         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74194         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74195         Don't bother checking for string.h, stdlib.h, unistd.h.
74196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74197         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74198         module's job.
74199         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74200         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74201
74202         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74203         (gl_GETDATE): Use it.
74204
74205         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74206
74207 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         Sync from coreutils.
74210
74211         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74212         stat-time.h.
74213         * lib/argmatch.h: Include verify.h
74214         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74215         (ARGMATCH_ASSERT): Remove; unused.
74216         * lib/canonicalize.c: Assume STDC_HEADERS.
74217         * lib/exclude.c: Include "strcase.h".
74218         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74219         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74220         and stdio-safer.h.
74221         (getusershell): Call fopen, not fopen_safer.
74222         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74223         Do not include unistd-safer.h.
74224         (save_cwd): Don't call fd_safer; no longer needed
74225         now that we include fcntl--.h.
74226
74227         * lib/getdate.y (relative_time): New type.
74228         (RELATIVE_TIME_0): New constant.
74229         (parser_control): Use relative_time instead of doing it ourselves.
74230         (%union): Add new relative_time rel member.
74231         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74232         Now typeless.
74233         (relunit, relunit_snumber): Now of type rel.
74234         (zone, rel, relunit, get_date): Adjust to above changes.
74235
74236         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74237         Do not include unistd-safer.h.
74238         (getloadavg): Don't call fd_safer; no longer needed
74239         now that we include fcntl--.h.
74240
74241         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74242         (make_dir_parents): Treat ENOSYS like EEXIST.
74243
74244         Improve quality of diagnostics on restore_cwd failure.
74245         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74246         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74247         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74248         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74249         each time through the loop.  Do not diagnose restore_cwd failure;
74250         that is the caller's job (and perhaps the caller does not care).
74251
74252         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74253         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74254         If the file already exists but is not a directory, don't bother
74255         to try to make its parents.
74256         Close potential file descriptor leak if we can't chdir("/") (!).
74257         Don't always return true if chdir($PWD) fails; return true only
74258         if the requested action was done successfully (except for the
74259         chdir($PWD)).
74260         Don't log final directory unless we actually made it.
74261         Refactor to avoid duplicate code to fix up permissions.
74262         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74263
74264         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74265         to make it a bit faster and (I hope) clearer.
74266         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74267         Fix bug in formats like %2N.
74268
74269         * lib/verify.h: New file.
74270
74271 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74272
74273         Sync from coreutils.
74274         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74275
74276 2005-09-22  Jim Meyering  <jim@meyering.net>
74277
74278         Sync from coreutils.
74279
74280         * m4/lstat.m4 (gl_FUNC_LSTAT):
74281         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74282         Remove obsolete comment.
74283         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74284         * m4/xstrtod.m4: Likewise.
74285
74286         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74287
74288 2005-09-22  Jim Meyering  <jim@meyering.net>
74289
74290         Sync from coreutils.
74291
74292         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74293
74294         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74295         the .tm_year member, since otherwise gcc-4.0 would now warn about
74296         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74297
74298         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74299         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74300
74301         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74302         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74303         when run in a time zone for which daylight savings time is in effect
74304         for the starting date.
74305
74306         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74307         stop us from restricting permissions of just-created absolute-named
74308         directories.
74309         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74310         to restore initial working directory.
74311         * lib/mkdir-p.c (make_dir_parents): New parameter:
74312         different_working_dir, to tell caller if/when we change the working
74313         directory and are unable to return to the initial one.
74314         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74315         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74316         `return false'.  This fixes a bug introduced on 2004-07-30.
74317
74318         * lib/openat.c (fdopendir): Be sure to close the supplied
74319         file descriptor before returning.  This makes our replacement
74320         implementation a little closer to Solaris's, where fdopendir
74321         ties the file descriptor to the returned DIR* pointer.
74322         * lib/openat.c (unlinkat): New function.
74323         * lib/openat.h (unlinkat): Add prototype.
74324         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74325         (openat_restore_fail): Rename from openat_restore_die.
74326         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74327
74328         Provide an alternative to exiting immediately upon save_cwd or
74329         restore_cwd failure.  Now, an application can arrange e.g.,
74330         to perform a longjump in that case.
74331         * lib/openat.c: Include dirname.h.
74332         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74333         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74334         and openat_restore_die rather than calling error directly.
74335         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74336
74337         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74338         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74339         define.
74340
74341         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74342         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74343                             int utc, int nanoseconds);
74344         Background:
74345         date should not have to allocate a megabyte of virtual memory to
74346         handle a format argument like +%1048575T.  When implemented with
74347         strftime, it must allocate such a buffer, use strftime to fill it
74348         in, print it, then free it.
74349         With fprintftime, it simply prints everything and exits.
74350         With no need for memory allocation, that's one fewer way to fail.
74351         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74352         optional field width, not before, so we accept %9:z, not %:9z.
74353         (my_strftime): Be sure to use L_('x') for literals.
74354
74355         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74356         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74357         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74358         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74359         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74360         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74361         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74362         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74363         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74364         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74365         * lib/xgethostname.c, lib/xreadlink.c:
74366         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74367
74368         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74369         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74370         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74371         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74372         and don't include <sys/file.h>).
74373
74374 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74375
74376         Sync from coreutils.
74377
74378         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74379         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74380         [!LDAV_DONE]: Avoid unused variable warning.
74381
74382 2005-09-21  Bruno Haible  <bruno@clisp.org>
74383
74384         * lib/unicodeio.h (unicode_to_mb): New declaration.
74385
74386 2005-09-20  Derek Price  <derek@ximbiot.com>
74387
74388         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74389         getaddrinfo.h.
74390
74391 2005-09-20  Bruno Haible  <bruno@clisp.org>
74392
74393         * gnulib-tool: Remove trailing slashes from the values specified for
74394         --source-base, --m4-base, --tests-base, --aux-dir.
74395         Suggested by Simon Josefsson <jas@extundo.com>.
74396
74397 2005-09-20  Bruno Haible  <bruno@clisp.org>
74398
74399         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74400         func_modules_to_filelist, func_import, func_create_testdir): Make all
74401         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74402         change when gnulib-tool is invoked in a different locale.
74403
74404 2005-09-19  Simon Josefsson  <jas@extundo.com>
74405
74406         * m4/socklen.m4: Fix typo.
74407
74408 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74409
74410         Use a consistent style for including <config.h>.
74411         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74412         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74413         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74414         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74415         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74416         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74417         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74418         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74419         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74420         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74421         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74422         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74423         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74424         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74425         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74426         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74427         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74428         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74429         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74430         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74431         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74432         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74433         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74434         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74435         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74436         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74437         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74438         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74439         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74440         lib/xstrtoumax.c, lib/yesno.c:
74441         Standardize inclusion of config.h.
74442         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74443         lib/inttostr.h:  Removed inclusion of config.h from header files.
74444         * lib/inttostr.c:  Adjusted in-tree users.
74445         * lib/timespec.h: Remove superfluous warning to include config.h.
74446         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74447         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74448         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74449         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74450         config.h with HAVE_CONFIG_H.
74451
74452 2005-09-19  Jim Meyering  <jim@meyering.net>
74453
74454         * modules/pathmax (License): Change to LGPL.
74455
74456 2005-09-19  Derek Price  <derek@ximbiot.com>
74457
74458         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74459
74460 2005-09-19  Bruno Haible  <bruno@clisp.org>
74461
74462         * gnulib-tool (import): Provide default for --tests-base.
74463
74464 2005-09-19  Bruno Haible  <bruno@clisp.org>
74465
74466         * doc/quote.texi: New file, extracted from gnulib.texi.
74467         * doc/ctime.texi: New file, extracted from gnulib.texi.
74468         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74469         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74470         * doc/gnulib.texi: Include them.
74471
74472 2005-09-18  Bruno Haible  <bruno@clisp.org>
74473
74474         Portability fix.
74475         * gnulib-tool (func_readlink): New function.
74476         (func_ln_if_changed): Use it.
74477
74478 2005-09-18  Bruno Haible  <bruno@clisp.org>
74479
74480         * gnulib-tool: Support --with-tests also with --import.
74481         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74482         (func_import): Use variables $testsbase and $inctests. Emit a
74483         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74484         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74485         SUBDIRS += $testsdir.
74486         (func_create_testdir): Update.
74487
74488 2005-09-18  Bruno Haible  <bruno@clisp.org>
74489
74490         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74491         instead of $dry_run.
74492         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74493         (func_ln_if_changed): Don't handle dry-run here.
74494         (func_import): In dry-run mode, detect more precisely which actions
74495         would be performed, and don't use "...ing" verbs.
74496
74497 2005-09-18  Bruno Haible  <bruno@clisp.org>
74498
74499         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74500         (func_import): Use join on two temporary files instead of three nested
74501         loops, in order to determine which files are new or old.
74502
74503 2005-09-18  Bruno Haible  <bruno@clisp.org>
74504
74505         * gnulib-tool (func_import): Comment out code that spits out the
74506         new files with --dry-run.
74507
74508 2005-09-18  Bruno Haible  <bruno@clisp.org>
74509
74510         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74511
74512 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * lib/stat-time.h: New file.
74515         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74516         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74517         in a different way.
74518         (timespec_cmp): New function.
74519         * lib/utimecmp.c: Include stat-time.h.
74520         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74521         members exist, not on the obsolescent ST_MTIM_NSEC.
74522         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74523
74524 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74527
74528 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         * MODULES.html.sh (File system functions): Add stat-time.
74531         * modules/stat-time: New file.
74532         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74533         is now done in a different way, by the stat-time module.
74534         * modules/utimecmp (Depends-on): Add stat-time.
74535
74536 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74537
74538         * m4/st_mtim.m4: Remove.  Superseded by...
74539         * m4/stat-time.m4: New file.
74540         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74541         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74542
74543 2005-09-15  Derek Price  <derek@ximbiot.com>
74544
74545         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74546
74547 2005-09-15  Derek Price  <derek@ximbiot.com>
74548
74549         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74550         * lib/regex_internal.c: Ditto, using this...
74551         (__GNUC_PREREQ): ...new macro.
74552         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74553         using...
74554         (__GNUC_PREREQ): ...this new macro.
74555
74556         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74557
74558 2005-09-15  Derek Price  <derek@ximbiot.com>
74559             Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74562         changes, consolidating in...
74563         * lib/regex_internal.h: ...this file.
74564
74565 2005-09-13  Jim Meyering  <jim@meyering.net>
74566
74567         * lib/canon-host.c: Filter through gnu indent and reword comments
74568         slightly.
74569         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74570
74571 2005-09-13  Derek Price  <derek@ximbiot.com>
74572
74573         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74574         failure.
74575         Reported by Jim Meyering  <jim@meyering.net>.
74576
74577 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74578
74579         * lib/base64.c: Typo.
74580         (base64_encode): Put b64str in initialized data section.
74581
74582 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         Merge glibc and coreutils changes into gnulib, plus a few
74585         extra fixes.
74586         * lib/md5.c: Use #error rather than a string.
74587         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74588         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74589         (__attribute__): Define to empty for non recent-GCC.
74590         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74591         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74592         Renamed from their non-__ counterparts, with new macros replacing
74593         them if not _LIBC.  Add __THROW attribute.
74594         (rol): Remove.
74595         (struct md5_ctx): Align buffer if using GCC.
74596         * lib/sha1.h (struct sha1_ctx): Likewise.
74597         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74598         The old name was backwards.
74599         (NOTSWAP): Remove; not used.
74600         (rol): New macro, moved here from md5.h.
74601         (sha1_process_block): Remove a FIXME that doesn't make sense.
74602
74603 2005-09-12  Derek Price  <derek@ximbiot.com>
74604
74605         Return usable errors from canon-host.
74606         * lib/canon-host.h: New file.
74607         * lib/canon-host.c (canon_host): Wrap...
74608         (canon_host_r): ...this new function, which now relies exclusively on
74609         getaddrinfo.
74610         (ch_strerror): New function.
74611         (last_cherror): New global.
74612         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74613         interface.
74614         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74615         void *.
74616         (freeaddrinfo): Free ai->ai_canonname when set.
74617
74618 2005-09-12  Derek Price  <derek@ximbiot.com>
74619
74620         Make canon-host require getaddrinfo.
74621         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74622         AC_LIBSOURCE canon-host.h.  Call...
74623         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74624         gl_GETADDRINFO.
74625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74626
74627 2005-09-12  Derek Price  <derek@ximbiot.com>
74628
74629         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74630         LGPL.
74631         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74632
74633 2005-09-12  Derek Price  <derek@ximbiot.com>
74634
74635         * lib/gai_strerror.c: Include config.h when available.  Include
74636         getaddrinfo.h before other headers to test interface.
74637         Reported by Larry Jones <lawrence.jones@ugs.com>.
74638
74639 2005-09-12  Derek Price  <derek@ximbiot.com>
74640             Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * modules/glob (Files): Add glob-libc.h.
74643
74644 2005-09-12  Derek Price  <derek@ximbiot.com>
74645             Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74648         glob_.h, glob-libc.h.
74649         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74650
74651 2005-09-12  Derek Price  <derek@ximbiot.com>
74652             Paul Eggert  <eggert@cs.ucla.edu>
74653
74654         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74655         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74656         protecting things that should be done only in gnulib contexts.
74657         * lib/glob_.h: New file, containing only the glob things needed for
74658         gnulib.
74659         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74660         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74661         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74662         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74663         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74664         and to respect the namespace rules better.
74665
74666 2005-09-08  Simon Josefsson  <jas@extundo.com>
74667
74668         * modules/socklen: New file.
74669
74670 2005-09-08  Simon Josefsson  <jas@extundo.com>
74671
74672         * m4/socklen.m4: New file.
74673
74674 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * modules/utimens (Files): Add m4/utimbuf.m4, since
74677         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74678         Reported by Sergey Poznyakoff.
74679
74680 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74683         definitions, since that's the preferred style in glibc.
74684         Fix a minor spacing issue, and update copyright notice to match
74685         glibc's.
74686
74687 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74688
74689         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74690
74691 2005-09-06  Simon Josefsson  <jas@extundo.com>
74692
74693         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74694         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74695
74696 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74699         warning.
74700
74701 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         * config/srclist.txt: Add glibc bug 1302.
74704
74705 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         Change bitset word type from unsigned int to unsigned long int,
74708         as this has better performance on typical 64-bit hosts.
74709         Port bitset code to hosts with unusual word sizes.
74710         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74711         (build_collating_symbol):
74712         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74713         argument is a bitset.  This is merely a style issue, but it makes
74714         it clearer that an entire array is expected.
74715         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74716         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74717         Port to the case where bitset_word is not the same as unsigned int.
74718         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74719         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74720         Likewise.
74721         * lib/regexec.c (check_dst_limits_calc_pos_1,
74722         check_subexp_matching_top):
74723         (build_trtable, group_nodes_into_DFAstates):
74724         Likewise.
74725         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74726         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74727         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74728         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74729         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74730         * lib/regcomp.c (optimize_subexps, lower_subexp):
74731         Work even if bitset_word has holes in its bitwise representation.
74732         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74733         * lib/regexec.c (check_dst_limits_calc_pos_1,
74734         check_subexp_matching_top):
74735         Likewise.
74736         * lib/regex_internal.c (re_string_reconstruct):
74737         Don't assume UCHAR_MAX == 255.
74738         * lib/regex_internal.h (bitset_set_all): Likewise.
74739         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74740         All uses changed.
74741         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74742         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74743         All uses changed.
74744         (BITSET_WORD_MAX): New macro.
74745         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74746         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74747         (bitset_empty, bitset_copy):
74748         Prefer sizeof (bitset) to multiplying it out ourselves.
74749         (bitset_not_merge): Remove; unused.
74750         (bitset_contain): Return bool, not unsigned int with one bit on.
74751         All callers changed.
74752         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74753         alignment than re_node_set; do this by defining a new internal
74754         type struct dests_alloc and using it to allocate memory.
74755
74756 2005-09-05  Bruno Haible  <bruno@clisp.org>
74757
74758         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74759         links.
74760
74761 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74762
74763         * modules/size_max (Makefile.am): Add size_max.h
74764
74765 2005-09-04  Derek Price  <derek@ximbiot.com>
74766
74767         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74768
74769 2005-09-03  Simon Josefsson  <jas@extundo.com>
74770
74771         * gnulib-tool: Fix typo.
74772
74773 2005-09-03  Simon Josefsson  <jas@extundo.com>
74774
74775         * config/srclist.txt: Add glibc bug 1293.
74776
74777 2005-09-03  Derek Price  <derek@ximbiot.com>
74778
74779         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74780         From Larry Jones <lawrence.jones@ugs.com>.
74781
74782 2005-09-02  Simon Josefsson  <jas@extundo.com>
74783
74784         * modules/socklen: New file.
74785
74786 2005-09-02  Simon Josefsson  <jas@extundo.com>
74787
74788         * modules/havelib: New module.
74789
74790         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74791         Use havelib.
74792
74793 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         Check for arithmetic overflow when calculating sizes, to prevent
74796         some buffer-overflow issues.  These patches are conservative, in the
74797         sense that when I couldn't determine whether an overflow was possible,
74798         I inserted a run-time check.
74799         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74800         macros.
74801         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74802         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74803         (re_xnrealloc, re_x2nrealloc): New inline functions.
74804         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74805         parse_bracket_exp):
74806         (build_equiv_class, build_charclass): Check for arithmetic overflow
74807         in size expression calculations.
74808         * lib/regex_internal.c (re_string_realloc_buffers):
74809         (build_wcs_upper_buffer, re_node_set_add_intersect):
74810         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74811         (re_dfa_add_node, register_state): Likewise.
74812         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74813         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74814         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74815         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74816
74817 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74820         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74821
74822 2005-09-02  Bruno Haible  <bruno@clisp.org>
74823
74824         Support for lib vs. lib64 distinction on biarch platforms.
74825         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74826         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74828
74829 2005-09-02  Bruno Haible  <bruno@clisp.org>
74830
74831         * gnulib-tool (import): In the other first-use case, provide defaults
74832         as well.
74833
74834 2005-09-02  Bruno Haible  <bruno@clisp.org>
74835
74836         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74837         patches not yet found in the latest gettext release.
74838
74839 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74842         to avoid a collision with bits/local_lim.h in glibc.
74843         All uses changed.  Problem reported by Dmitry V. Levin in
74844         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74845
74846         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74847         bugs in int versus size_t comparisons.
74848         (re_string_context_at): Fix bug where the code assumed that
74849         Idx is signed.
74850
74851         Use bool where appropriate.
74852         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74853         All callers changed.
74854         (calc_eclosure_iter): Likewise, for ROOT arg.
74855         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74856         (build_charclass_op): Likewise, for NON_MATCH arg.
74857         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74858         (re_string_construct_common): Likewise, for ICASE arg.
74859         * lib/regexec.c (re_search_2_stub, re_search_stub):
74860         Likewise, for RET_LEN arg.
74861         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74862         (set_regs): Likewise, for FL_BACKTRACK arg.
74863         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74864         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74865         (calc_eclosure_iter, parse_bracket_exp):
74866         Use bool for internal variables that are booleans.
74867         * lib/regexec.c (re_search_internal, check_matching,
74868         proceed_next_node):
74869         (set_regs, build_sifted_states, sift_states_bkref):
74870         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74871         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74872         (find_collation_sequence_value):
74873         Likewise.
74874         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74875         (re_node_set_compare):
74876         Return bool, not int. All callers changed.
74877         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74878         (build_trtable, check_node_accept): Likewise.
74879         * lib/regex_internal.h: Include stdbool.h.
74880
74881         Fix bugs uncovered when converting to bool.
74882         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74883         failure instead of charging ahead blindly.
74884         * lib/regex_internal.c (register_state): Likewise.
74885         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74886         for freeing internal storage.
74887         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74888         bitset pieces used as boolean, to avoid undefined behavior
74889         on hosts that do int overflow checking.
74890
74891 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74892
74893         * config/srclist.txt: Add glibc bugs 1285-1287.
74894
74895 2005-09-01  Jim Meyering  <jim@meyering.net>
74896
74897         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74898         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74899         Require gl_STAT_MACROS, too.
74900
74901 2005-09-01  Bruno Haible  <bruno@clisp.org>
74902
74903         * gnulib-tool (import): In the first-use case, provide defaults.
74904
74905 2005-09-01  Bruno Haible  <bruno@clisp.org>
74906
74907         * gnulib-tool (func_import): Remove the .tmp files.
74908
74909 2005-09-01  Bruno Haible  <bruno@clisp.org>
74910
74911         * gnulib-tool (func_import): Fix handling of symbolic links.
74912
74913 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74916         old glibc regex code mishandles strings longer than 2**31 bytes.
74917         This patch fixes this when the regex code is used in gnulib
74918         (i.e., outside glibc).
74919
74920         This patch should not affect the use of the regex code inside
74921         glibc.  No doubt this problem also needs to be handled for glibc
74922         as well, but the result will be an incompatible change to the
74923         glibc ABI, and the old ABI will have to be supported too.  That
74924         can be the the subject for another patch.
74925
74926         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74927         governing whether the rest of this patch is active.  By default,
74928         the macro is disabled and the patch has no effect.
74929         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74930         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74931         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74932         (re_match_2, re_set_registers): Use the new types.
74933         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74934         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74935         New macros.
74936         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74937         (re_string_context_at, bin_tree_t, re_dfastate_t):
74938         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74939         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74940         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74941         (re_string_char_size_at, re_string_wchar_at):
74942         (re_string_elem_size_at):
74943         Use the new types and macros to port to 64-bit hosts.
74944         Use unsigned types for internal values, so that the code
74945         mostly works even for arrays larger than SSIZE_MAX.
74946         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74947         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74948         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74949         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74950         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74951         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74952         (calc_inveclosure, parse_dup_op, build_range_exp):
74953         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74954         (fetch_number, create_token_tree, mark_opt_subexp):
74955         Likewise.
74956         * lib/regex_internal.c (re_string_construct_common,
74957         create_ci_newstate):
74958         (create_cd_newstate, re_string_allocate, re_string_construct):
74959         (re_string_realloc_buffers, build_wcs_upper_buffer):
74960         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74961         (re_string_reconstruct, re_string_peek_byte_case):
74962         (re_string_fetch_byte_case, re_string_context_at):
74963         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74964         (re_node_set_init_copy, re_node_set_add_intersect):
74965         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74966         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74967         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74968         (re_acquire_state, re_acquire_state_context, register_state):
74969         Likewise.
74970         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74971         search_cur_bkref_entry):
74972         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74973         (re_search_internal, re_search_2_stub, re_search_stub)
74974         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74975         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74976         (update_cur_sifted_state, check_dst_limits):
74977         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74978         (check_subexp_limits, sift_states_bkref, merge_state_array):
74979         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74980         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74981         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74982         (expand_bkref_cache, check_node_accept_bytes):
74983         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74984         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74985         (acquire_init_state_context, check_halt_node_context):
74986         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74987         (sift_states_backward, clean_state_log_if_needed):
74988         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74989         (find_recover_state, transit_state_sb, transit_state_mb):
74990         (transit_state_bkref, build_trtable, match_ctx_clean):
74991         Likewise.
74992         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74993         to work around an assumption that REG_MISSING is negative.
74994
74995         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74996         (seek_collating_symbol_entry) [defined _LIBC]:
74997         (lookup_collation_sequence_value) [defined _LIBC]:
74998         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74999         Use prototypes rather than old-style function definitions.
75000         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75001         (transit_state_sb) [0]:
75002         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75003
75004         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75005         rm_eo.
75006
75007         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75008         (optimize_subexps, lower_subexp):
75009         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75010         since the signed shift might overflow.  Use 1u<<31 instead.
75011         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75012         Likewise.
75013         * lib/regexec.c (check_dst_limits_calc_pos_1,
75014         check_subexp_matching_top): Likewise.
75015
75016         * lib/regcomp.c (optimize_subexps, lower_subexp):
75017         Use CHAR_BIT rather than 8, for clarity.
75018         * lib/regexec.c (check_dst_limits_calc_pos_1):
75019         (check_subexp_matching_top): Likewise.
75020         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75021         have to worry about portability issues when shifting it left.
75022         Remove no-longer-needed test for table_size > 0.
75023         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75024         in a word, as the resulting behavior is undefined.
75025         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75026         in one case, a <= should have been an <, and in another case the
75027         whole test was missing.
75028         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75029         the standard name CHAR_BIT.
75030         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75031         this is not true on one's complement and signed-magnitude hosts.
75032
75033         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75034         next_last_offset.
75035         (struct re_dfa_t): Remove unused member states_alloc.
75036         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75037
75038 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75041         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75042         and large-file glibc and in 32-bit large-file Solaris.
75043
75044 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75045
75046         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75047         lengths fit in regoff_t; this isn't true if regoff_t is the same
75048         width as size_t.
75049         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75050         (= START + RANGE) instead of RANGE.  This avoids overflow
75051         problems when regoff_t is the same width as size_t.
75052         All callers changed.
75053         (re_search_2_stub): Check for overflow when adding the
75054         sizes of the two strings.
75055         (re_search_stub): Check for overflow when adding START
75056         to RANGE; if it occurs, substitute the extreme value.
75057
75058 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75059
75060         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75061
75062 2005-08-31  Jim Meyering  <jim@meyering.net>
75063
75064         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75065         a pointer-to-const.
75066         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75067         (register_state): Likewise.
75068         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75069         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75070         (group_nodes_into_DFAstates): Likewise.
75071
75072 2005-08-31  Jim Meyering  <jim@meyering.net>
75073
75074         * check-module: Add a FIXME comment.
75075
75076 2005-08-31  Eric Blake  <ebb9@byu.net>
75077
75078         * modules/unistd-safer (Files): Add unistd--.h.
75079         * modules/stdio-safer (Files): Add stdio--.h.
75080
75081 2005-08-31  Derek Price  <derek@ximbiot.com>
75082
75083         * lib/getdelim.c (getdelim): Return EOF on EOF.
75084         Reported by Larry Jones <lawrence.jones@ugs.com>.
75085
75086 2005-08-31  Bruno Haible  <bruno@clisp.org>
75087
75088         Avoid unnecessary diffs in the generated lib/Makefile.am.
75089         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75090         the generated files.
75091         (func_import): Don't set cmd.
75092
75093 2005-08-31  Bruno Haible  <bruno@clisp.org>
75094
75095         * lib/strstr.c: Include <stddef.h>, for NULL.
75096         * lib/strcasestr.c: Likewise.
75097         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75098
75099 2005-08-31  Bruno Haible  <bruno@clisp.org>
75100
75101         * gnulib-tool: New option --macro-prefix.
75102         (func_import): Use macro_prefix.
75103         (import): Handle option --macro-prefix.
75104
75105 2005-08-31  Bruno Haible  <bruno@clisp.org>
75106
75107         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75108         Also use new variables cached_lgpl, cached_libtool.
75109
75110 2005-08-31  Bruno Haible  <bruno@clisp.org>
75111
75112         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75113         always instantiating them.
75114
75115 2005-08-31  Bruno Haible  <bruno@clisp.org>
75116
75117         * gnulib-tool (func_import): Read the previous cached settings
75118         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75119         earlier added by gnulib but are now dropped. Warn when a gnulib file
75120         overwrites a non-gnulib file.
75121
75122 2005-08-31  Bruno Haible  <bruno@clisp.org>
75123
75124         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75125         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75126         projects that don't keep autogenerated files in CVS. Put into
75127         actioncmd only the specified modules, not the transitive closure.
75128
75129 2005-08-31  Bruno Haible  <bruno@clisp.org>
75130
75131         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75132         Create directories that shall be filled.
75133         (import): Don't look for gl_* macros in configure.ac. Recurse across
75134         all directories containing a gnulib-cache.m4 files, if meaningful.
75135
75136 2005-08-31  Bruno Haible  <bruno@clisp.org>
75137
75138         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75139         (import): Set seen_libtool when we see gl_LIBTOOL.
75140
75141 2005-08-31  Bruno Haible  <bruno@clisp.org>
75142
75143         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75144         declaration macro definitions from generated gnulib.m4.
75145
75146 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75147
75148         * lib/iconvme.h: Add prototype for iconv_alloc.
75149
75150 2005-08-29  Simon Josefsson  <jas@extundo.com>
75151
75152         * lib/iconvme.c: Fix errno.
75153
75154 2005-08-29  Bruno Haible  <bruno@clisp.org>
75155
75156         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75157         that it works when the directory contains spaces.
75158
75159 2005-08-29  Bruno Haible  <bruno@clisp.org>
75160
75161         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75162
75163 2005-08-29  Bruno Haible  <bruno@clisp.org>
75164
75165         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75166         Emit more advice.
75167
75168 2005-08-29  Bruno Haible  <bruno@clisp.org>
75169         and Stepan Kasal  <kasal@ucw.cz>
75170
75171         * check-module: If more parameters are given, check each of them
75172         separately; add more exceptions, as noted by Jim Meyering.
75173         (check_module): New procedure.
75174         (%exempt_header): Now contains all exceptions.
75175
75176 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75177
75178         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75179
75180 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75181
75182         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75183
75184 2005-08-28  Bruno Haible  <bruno@clisp.org>
75185
75186         * m4/gnulib-tool.m4: New file.
75187
75188 2005-08-27  Jim Meyering  <jim@meyering.net>
75189
75190         * modules/unistd-safer (Files): Add pipe-safer.c.
75191         * modules/fcntl-safer (Files): Add creat-safer.c.
75192
75193 2005-08-27  Jim Meyering  <jim@meyering.net>
75194
75195         * m4/stdlib-safer.m4: New file.  From coreutils.
75196         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75197         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75198         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75199         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75200         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75201
75202 2005-08-27  Jim Meyering  <jim@meyering.net>
75203
75204         * lib/fopen-safer.c: Merge minor changes from coreutils.
75205         * lib/dup-safer.c: Likewise.
75206         * lib/fd-safer.c: Likewise.
75207
75208         Merge from coreutils.
75209         * lib/stdio--.h: New file.
75210         * lib/stdlib--.h: New file.
75211         * lib/mkstemp-safer.c: New file.
75212
75213         GNU tar needs these.
75214         * lib/pipe-safer.c: New file.
75215         * lib/creat-safer.c: New file.
75216         * lib/fcntl--.h (creat): Define to creat_safer.
75217         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75218         * lib/unistd--.h (pipe): Define to pipe_safer.
75219         * lib/unistd-safer.h: Declare pipe_safer.
75220
75221 2005-08-26  Simon Josefsson  <jas@extundo.com>
75222
75223         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75224         Haible <bruno@clisp.org>.
75225
75226 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75227
75228         * lib/regex_internal.h: Remove all references to
75229         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75230         or better.
75231         (bitset_not, bitset_merge, bitset_not_merge):
75232         (bitset_mask, re_string_allocate, re_string_construct):
75233         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75234         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75235         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75236         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75237         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75238         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75239         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75240         (re_acquire_state_context):
75241         Remove unnecessary forward decls.
75242         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75243         Put __attribute at function definition,
75244         now that the function decl has been removed.
75245         * lib/regex_internal.c (re_string_peek_byte_case):
75246         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75247         Likewise.
75248
75249 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75250
75251         * m4/regex.m4: Add AC_PREREQ(2.50).
75252         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75253
75254 2005-08-25  Simon Josefsson  <jas@extundo.com>
75255
75256         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75257         __fsetlocking.
75258
75259 2005-08-25  Simon Josefsson  <jas@extundo.com>
75260
75261         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75262         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75263         GLIBC specific code.
75264
75265 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         Make regex safe for g++.  This fixes one real bug (an "err"
75268         that should have been "*err").  g++ problem reported by
75269         Sam Steingold.
75270         * lib/regex_internal.h (re_calloc): New macro, consistent with
75271         re_malloc etc.  All callers of calloc changed to use re_calloc.
75272         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75273         not int.  All callers changed.
75274         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75275         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75276         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75277         (find_recover_state): Change "err" to "*err"; this fixes what
75278         appears to be a real bug.
75279         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75280         versus int.
75281
75282 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75283
75284         * modules/regex (Depends-on): Add malloc, since the code
75285         assumes that !malloc(0) means failure.
75286
75287 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75290
75291         alloca modernization/simplification for regex.
75292         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75293         needs to be at the start of the file, and can be moved into
75294         regex_internal.h and simplified.
75295         * lib/regex_internal.h: Include <alloca.h>.
75296         (__libc_use_alloca) [!defined _LIBC]: New macro.
75297         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75298         now works outside glibc.
75299
75300 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75301
75302         * config/srclist.txt: Add glibc bugs 1241, 1245.
75303
75304 2005-08-25  Jim Meyering  <jim@meyering.net>
75305
75306         * lib/open-safer.c: Include <config.h>.
75307         Otherwise, we'd lose LARGEFILE support in any file using
75308         e.g. "fcntl--.h"
75309
75310 2005-08-25  Bruno Haible  <bruno@clisp.org>
75311
75312         * m4/minmax.m4: Require autoconf 2.52.
75313         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75314         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75315         alternatives of translit over the alphabet.
75316         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75317
75318 2005-08-24  Simon Josefsson  <jas@extundo.com>
75319
75320         * tests/test-getpass.c: New file.
75321
75322 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75325         for GNU regex features.
75326
75327 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75330         * lib/regex.h (regerror): Likewise.
75331
75332         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75333         requires this.  (The code never needed it.)
75334
75335         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75336         All uses of recently-renamed identifiers changed to use the new,
75337         POSIX-compliant names.  The code will build and run just fine
75338         without these changes, but it's better to eat our own dog food
75339         and use the standard-conforming names.
75340
75341         * lib/regex.h: Fix a multitude of POSIX name space violations.
75342         These changes have an effect only for programs that define
75343         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75344         do not change anything for programs compiled in the normal way.
75345         Also, there is no effect on the ABI.
75346
75347         (_REGEX_SOURCE): New macro.
75348         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75349         defined and _GNU_SOURCE is not; this fixes a name space violation.
75350
75351         Rename the following macros to obey POSIX requirements.
75352         The old names are still visible as macros if _REGEX_SOURCE is defined.
75353         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75354         RE_BACKSLASH_ESCAPE_IN_LISTS.
75355         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75356         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75357         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75358         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75359         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75360         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75361         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75362         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75363         (REG_INTERVALS): renamed from RE_INTERVALS.
75364         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75365         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75366         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75367         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75368         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75369         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75370         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75371         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75372         RE_UNMATCHED_RIGHT_PAREN_ORD.
75373         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75374         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75375         (REG_DEBUG): renamed from RE_DEBUG.
75376         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75377         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75378         unusual, since we can't clash with the POSIX REG_ICASE.
75379         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75380         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75381         (REG_NO_SUB): renamed from RE_NO_SUB.
75382         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75383         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75384         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75385         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75386         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75387         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75388         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75389         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75390         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75391         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75392         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75393         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75394         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75395         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75396         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75397         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75398         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75399         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75400         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75401         (REG_FIXED): Renamed from REGS_FIXED.
75402         (REG_NREGS): Renamed from RE_NREGS.
75403
75404         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75405         of other REG_* macros, since POSIX says the user is allowed to
75406         #undef these macros selectively.
75407
75408         (reg_errcode_t): Update comment stating what other tables need
75409         to be consistent.
75410
75411         Rename the following enum values to obey POSIX requirements.
75412         The old names are still visible as macros.
75413         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75414         is not defined, since GNU is supposed to be a superset of POSIX as
75415         much as possible, and since we want reg_errcode_t to be a signed
75416         type for implementation consistency.
75417         (_REG_NOERROR): Renamed from REG_NOERROR.
75418         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75419         (_REG_BADPAT): Renamed from REG_BADPAT.
75420         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75421         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75422         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75423         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75424         (_REG_EBRACK): Renamed from REG_EBRACK.
75425         (_REG_EPAREN): Renamed from REG_EPAREN.
75426         (_REG_EBRACE): Renamed from REG_EBRACE.
75427         (_REG_BADBR): Renamed from REG_BADBR.
75428         (_REG_ERANGE): Renamed from REG_ERANGE.
75429         (_REG_ESPACE): Renamed from REG_ESPACE.
75430         (_REG_BADRPT): Renamed from REG_BADRPT.
75431         (_REG_EEND): Renamed from REG_EEND.
75432         (_REG_ESIZE): Renamed from REG_ESIZE.
75433         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75434         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75435         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75436         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75437         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75438
75439         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75440         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75441         changed.  But support the old name if the new one is not defined
75442         and if _REGEX_SOURCE.
75443
75444         Change the following member names in struct re_pattern_buffer.
75445         The old names are still supported if !_REGEX_SOURCE.
75446         The new names are always supported, regardless of _REGEX_SOURCE.
75447         (re_buffer): Renamed from buffer.
75448         (re_allocated): Renamed from allocated.
75449         (re_used): Renamed from used.
75450         (re_syntax): Renamed from syntax.
75451         (re_fastmap): Renamed from fastmap.
75452         (re_translate): Renamed from translate.
75453         (re_can_be_null): Renamed from can_be_null.
75454         (re_regs_allocated): Renamed from regs_allocated.
75455         (re_fastmap_accurate): Renamed from fastmap_accurate.
75456         (re_no_sub): Renamed from no_sub.
75457         (re_not_bol): Renamed from not_bol.
75458         (re_not_eol): Renamed from not_eol.
75459         (re_newline_anchor): Renamed from newline_anchor.
75460
75461         Change the following member names in struct re_registers.
75462         The old names are still supported if !_REGEX_SOURCE.
75463         The new names are always supported, regardless of _REGEX_SOURCE.
75464         (rm_num_regs): Renamed from num_regs.
75465         (rm_start): Renamed from start.
75466         (rm_end): Renamed from end.
75467
75468         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75469         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75470         Prepend __ to parameter names.
75471
75472         Undo yesterday's changes.
75473
75474 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75475
75476         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75477         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75478         lib/regex.c.
75479
75480 2005-08-24  Jim Meyering  <jim@meyering.net>
75481
75482         Sync from coreutils.
75483         * m4/fcntl-safer.m4: New file.
75484
75485         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75486         and object files for this module.
75487
75488 2005-08-24  Jim Meyering  <jim@meyering.net>
75489
75490         Sync from coreutils.
75491         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75492
75493 2005-08-24  Jim Meyering  <jim@meyering.net>
75494
75495         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75496         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75497
75498 2005-08-24  Jim Meyering  <jim@meyering.net>
75499
75500         * modules/fcntl-safer: New module.
75501         * modules/fts (Depends-on): Add fcntl-safer.
75502         * MODULES.html.sh (File descriptor based Input/Output):
75503         Add fcntl-safer.
75504
75505 2005-08-24  Bruno Haible  <bruno@clisp.org>
75506
75507         Support for unit test modules.
75508         * modules/README: Mention tests modules.
75509         * modules/TEMPLATE-TESTS: New file.
75510         * gnulib-tool: New options --extract-tests-module, --with-tests and
75511         --tests-base (unused for the moment).
75512         (testsbase, inctests): New variables.
75513         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75514         (func_verify_module): Exclude TEMPLATE-TESTS.
75515         (func_verify_nontests_module, func_verify_tests_module): New functions.
75516         (func_get_dependencies): Add implicit dependency for tests modules.
75517         (func_get_tests_module): New function.
75518         (func_modules_transitive_closure): When --with-tests was specified,
75519         include the unit tests as well, unless explicitly avoided.
75520         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75521         (func_emit_tests_Makefile_am): New function.
75522         (func_create_testdir): When --with-tests was specified, emit a
75523         tests/ directory.
75524         * MODULES.html.sh (Future developments): Update.
75525
75526 2005-08-24  Bruno Haible  <bruno@clisp.org>
75527
75528         * modules/tls-tests: New file.
75529         * tests/test-tls.c: New file, from GNU gettext.
75530
75531 2005-08-24  Bruno Haible  <bruno@clisp.org>
75532
75533         * modules/lock-tests: New file.
75534         * tests/test-lock.c: New file, from GNU gettext.
75535
75536 2005-08-24  Bruno Haible  <bruno@clisp.org>
75537
75538         * lib/lock.h: Add multiple inclusion guard.
75539         * lib/tls.h: Add multiple inclusion guard.
75540
75541 2005-08-24  Bruno Haible  <bruno@clisp.org>
75542
75543         * gnulib-tool: Add support for the --aux-dir option to
75544         --create-testdir, --create-megatestdir, --test, --megatest.
75545         (func_create_testdir, func_create_megatestdir): Optionally emit a
75546         AC_CONFIG_AUX_DIR directive.
75547         (create-testdir, create-megatestdir, test, megatest): Provide a
75548         default value for $auxdir.
75549
75550 2005-08-24  Bruno Haible  <bruno@clisp.org>
75551
75552         * gnulib-tool (import): Use compound statement instead of subshell
75553         where possible.
75554
75555 2005-08-24  Bruno Haible  <bruno@clisp.org>
75556
75557         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75558
75559 2005-08-24  Bruno Haible  <bruno@clisp.org>
75560
75561         * gnulib-tool (func_version): Update.
75562
75563 2005-08-24  Bruno Haible  <bruno@clisp.org>
75564
75565         * gnulib-tool (func_import, func_create_testdir,
75566         func_create_megatestdir): Quote all autoconf macro arguments.
75567
75568 2005-08-24  Bruno Haible  <bruno@clisp.org>
75569
75570         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75571         option --force, because --force causes the aclocal.m4 of each
75572         subdirectory to be newer than the corresponding config.h.in.
75573
75574 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75577         All contents moved to gl_REGEX.
75578         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75579         assume that it does.
75580
75581 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * lib/regex.h (REG_NOSYS)
75584         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75585         Define, since POSIX requires it as of 2001.
75586         (_REG_ENOSYS)
75587         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75588         New private symbol, used to keep the enum signed in all cases.
75589         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75590         Youngman in
75591         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75592
75593         * lib/regex_internal.c (re_string_skip_chars, register_state):
75594         (calc_state_hash):
75595         Remove forward decls; no longer needed now that we use prototypes.
75596         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75597         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75598         (clean_state_log_if_needed): Likewise.
75599
75600 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         * config/srclist.txt: Add glibc bugs 1231-1233.
75603
75604 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         Fix problems reported by Sam Steingold in
75607         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75608         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75609         assumed that reg_errcode_t is a signed type, which is not
75610         necessarily true if _XOPEN_SOURCE is not defined.
75611         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75612         since some compilers warn about it otherwise.
75613
75614 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75617         (init_word_char, create_initial_state, duplicate_node_closure):
75618         (fetch_token, peek_token_bracket, build_range_exp):
75619         (build_collating_symbol): Remove forward decls; no longer needed
75620         now that we use prototypes.
75621
75622         * lib/regcomp.c:
75623         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75624         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75625         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75626         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75627         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75628         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75629         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75630         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75631         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75632         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75633         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75634         (build_charclass, build_charclass_op, fetch_number, create_tree):
75635         (create_token_tree, mark_opt_subexp, duplicate_tree):
75636         Use prototypes rather than old-style definitions.
75637
75638         * lib/regex_internal.c:
75639         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75640         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75641         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75642         (re_string_reconstruct, re_string_peek_byte_case):
75643         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75644         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75645         (re_node_set_init_copy, re_node_set_add_intersect):
75646         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75647         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75648         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75649         (re_acquire_state, re_acquire_state_context, register_state):
75650         (create_ci_newstate, create_cd_newstate, free_state):
75651         Likewise.
75652         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75653         re_search_2):
75654         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75655         (re_search_internal, prune_impossible_nodes):
75656         (acquire_init_state_context, check_matching, static):
75657         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75658         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75659         (update_regs, sift_states_backward, build_sifted_states):
75660         (clean_state_log_if_needed, merge_state_array):
75661         (update_cur_sifted_state, add_epsilon_src_nodes):
75662         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75663         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75664         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75665         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75666         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75667         (check_arrival, check_arrival_add_next_nodes):
75668         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75669         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75670         (check_node_accept_bytes, check_node_accept, extend_buffers):
75671         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75672         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75673         (sift_ctx_init):
75674         Likewise.
75675
75676         * lib/regex_internal.h:
75677         (re_string_allocate, re_string_construct, re_string_reconstruct):
75678         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75679         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75680         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75681         (re_string_context_at, re_string_peek_byte_case):
75682         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75683         is defined, since we now use prototypes always.
75684
75685         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75686         C89 or better.  All uses removed.
75687
75688 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75689
75690         * config/srclist.txt: Add glibc bugs 1220-1227.
75691
75692 2005-08-20  Jim Meyering  <jim@meyering.net>
75693
75694         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75695         of unused local, dfa.
75696
75697 2005-08-20  Bruno Haible  <bruno@clisp.org>
75698
75699         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75700
75701 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75704         (re_node_set_insert_last, re_dfa_add_node):
75705         Rename local variables to avoid GCC shadowing warnings.
75706
75707 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75710         [defined lint]: Suppress bogus uninitialized-variable warnings.
75711
75712         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75713         and let the caller return REG_ESPACE if out of space.  This
75714         removes an uninitialied-variable warning with GCC 4.0.1, and also
75715         avoids taking the address of a local variable.  All callers
75716         changed.
75717
75718 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75721         $LIBCSRC/posix/regexec.c.
75722         Add glibc bug 1217 for regcomp.c.
75723
75724 2005-08-19  Jim Meyering  <jim@meyering.net>
75725
75726         * lib/regexec.c (proceed_next_node): Redo local variables to
75727         avoid GCC shadowing warnings.
75728
75729 2005-08-18  Bruno Haible  <bruno@clisp.org>
75730
75731         * lib/strstr.c (strstr): Fix return value in multibyte case.
75732         * lib/strcasestr.c (strcasestr): Likewise.
75733
75734 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75737
75738 2005-08-17  Jim Meyering  <jim@meyering.net>
75739
75740         Make the %s format (seconds since the epoch) work for a negative
75741         number and when used with a zero-padded field width, e.g. %015s.
75742
75743         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75744         label so that it precedes the code to set `digits'.  Otherwise,
75745         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75746         print `00-22'.  Now, it prints `-0022', as it should.
75747
75748 2005-08-17  Bruno Haible  <bruno@clisp.org>
75749
75750         * modules/strstr (Files): Add m4/mbrtowc.m4.
75751         (Depends-on): Add mbuiter.
75752
75753 2005-08-17  Bruno Haible  <bruno@clisp.org>
75754
75755         * modules/strcasestr: New file.
75756         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75757         strcasestr.
75758
75759 2005-08-17  Bruno Haible  <bruno@clisp.org>
75760
75761         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75762
75763 2005-08-17  Bruno Haible  <bruno@clisp.org>
75764
75765         * modules/mbuiter: New file.
75766         * MODULES.html.sh (Extended multibyte and wide character utilities):
75767         Add mbuiter.
75768
75769 2005-08-17  Bruno Haible  <bruno@clisp.org>
75770
75771         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75772         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75773
75774 2005-08-17  Bruno Haible  <bruno@clisp.org>
75775
75776         * m4/strcasestr.m4: New file.
75777
75778 2005-08-17  Bruno Haible  <bruno@clisp.org>
75779
75780         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75781         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75782
75783 2005-08-17  Bruno Haible  <bruno@clisp.org>
75784
75785         * lib/strcasestr.h: New file.
75786         * lib/strcasestr.c: New file.
75787
75788 2005-08-17  Bruno Haible  <bruno@clisp.org>
75789
75790         * lib/strcasecmp.c: Use mbuiter.h.
75791
75792 2005-08-17  Bruno Haible  <bruno@clisp.org>
75793
75794         * lib/mbuiter.h: New file.
75795
75796 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75799         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75800         and gl_GETOPT are both invoked via different paths (as happens
75801         with GNU tar CVS because it uses both argp and getopt), the former
75802         wins.
75803
75804 2005-08-16  Bruno Haible  <bruno@clisp.org>
75805
75806         * modules/tls: New file.
75807         * MODULES.html.sh (Multithreading): Add tls.
75808
75809 2005-08-16  Bruno Haible  <bruno@clisp.org>
75810
75811         * modules/strnlen1: New file.
75812         * MODULES.html.sh (String handling): Add strnlen1.
75813
75814 2005-08-16  Bruno Haible  <bruno@clisp.org>
75815
75816         * modules/strcase (Files): Add m4/mbrtowc.m4.
75817         (Depends-on): Add strnlen1, mbchar.
75818
75819 2005-08-16  Bruno Haible  <bruno@clisp.org>
75820
75821         * modules/mbiter: New file.
75822         * MODULES.html.sh (Extended multibyte and wide character utilities):
75823         Add mbiter.
75824
75825 2005-08-16  Bruno Haible  <bruno@clisp.org>
75826
75827         * modules/mbfile: New file.
75828         * MODULES.html.sh (Extended multibyte and wide character utilities):
75829         Add mbfile.
75830
75831 2005-08-16  Bruno Haible  <bruno@clisp.org>
75832
75833         * modules/mbchar: New file.
75834         * MODULES.html.sh (Extended multibyte and wide character utilities):
75835         New section.
75836
75837 2005-08-16  Bruno Haible  <bruno@clisp.org>
75838
75839         * m4/tls.m4: New file, from GNU gettext.
75840
75841 2005-08-16  Bruno Haible  <bruno@clisp.org>
75842
75843         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75844         always.
75845         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75846
75847 2005-08-16  Bruno Haible  <bruno@clisp.org>
75848
75849         * m4/mbiter.m4: New file.
75850
75851 2005-08-16  Bruno Haible  <bruno@clisp.org>
75852
75853         * m4/mbfile.m4: New file.
75854
75855 2005-08-16  Bruno Haible  <bruno@clisp.org>
75856
75857         * m4/mbchar.m4: New file.
75858
75859 2005-08-16  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/tls.h: New file, from GNU gettext.
75862         * lib/tls.c: New file, from GNU gettext.
75863
75864 2005-08-16  Bruno Haible  <bruno@clisp.org>
75865
75866         * lib/strnlen1.h: New file.
75867         * lib/strnlen1.c: New file.
75868
75869 2005-08-16  Bruno Haible  <bruno@clisp.org>
75870
75871         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75872         (mbi_init): Update.
75873         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75874         NUL byte, not after it.
75875
75876 2005-08-16  Bruno Haible  <bruno@clisp.org>
75877
75878         * lib/strcase.h (strcasecmp): Add note in comments.
75879         * lib/strncasecmp.c: Use code from strcasecmp.c.
75880         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75881         (strcasecmp): Work correctly in multibyte locales.
75882
75883 2005-08-16  Bruno Haible  <bruno@clisp.org>
75884
75885         * lib/mbiter.h: New file.
75886
75887 2005-08-16  Bruno Haible  <bruno@clisp.org>
75888
75889         * lib/mbfile.h: New file.
75890
75891 2005-08-16  Bruno Haible  <bruno@clisp.org>
75892
75893         * lib/mbchar.h: New file.
75894         * lib/mbchar.c: New file.
75895
75896 2005-08-16  Bruno Haible  <bruno@clisp.org>
75897
75898         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75899         the valid ones. Makes the comparison operations transitive:
75900         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75901         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75902
75903 2005-08-15  Simon Josefsson  <jas@extundo.com>
75904
75905         * modules/ssize_t (License): Change to 'unlimited'.
75906
75907         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75908
75909 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75910
75911         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75912         Add comments for each pending glibc patch.
75913
75914 2005-08-15  Bruno Haible  <bruno@clisp.org>
75915
75916         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75917         __cplusplus is defined.
75918
75919 2005-08-14  Jim Meyering  <jim@meyering.net>
75920
75921         Sync from coreutils.
75922
75923         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75924         Use the hash-table-based cycle-detection code not just when
75925         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75926         Reported by James Youngman in
75927         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75928         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75929         FTS_TIGHT_CYCLE_CHECK.
75930         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75931         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75932         once again.
75933         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75934         * lib/fts.c (fd_safer): Remove decl.
75935         Include fcntl--.h rather than unistd-safer.h
75936         (fts_safe_changedir): Don't call fd_safer; no longer needed
75937         now that we include fcntl--.h.
75938
75939 2005-08-12  Simon Josefsson  <jas@extundo.com>
75940
75941         * modules/getndelim2: Use ssize_t module.
75942         * modules/getnline: Likewise.
75943         * modules/safe-read: Likewise.
75944         * modules/xreadlink: Likewise.
75945
75946         * modules/ssize_t: New file.
75947
75948 2005-08-12  Simon Josefsson  <jas@extundo.com>
75949
75950         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75951
75952 2005-08-12  Simon Josefsson  <jas@extundo.com>
75953
75954         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75955         ssize_t.
75956
75957 2005-08-12  Simon Josefsson  <jas@extundo.com>
75958
75959         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75960         readline, getdelim and check_version.
75961         (Support for systems lacking ISO C 99: Sizes of integer types):
75962         Add size_max.
75963
75964 2005-08-12  Bruno Haible  <bruno@clisp.org>
75965
75966         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75967
75968 2005-08-11  Simon Josefsson  <jas@extundo.com>
75969
75970         * modules/readline: New file.
75971
75972         * modules/strnlen (Files): Add strnlen.h.
75973
75974 2005-08-11  Simon Josefsson  <jas@extundo.com>
75975
75976         * m4/readline.m4: New file.
75977
75978 2005-08-11  Simon Josefsson  <jas@extundo.com>
75979
75980         * lib/readline.h, readline.c: New file.
75981
75982 2005-08-11  Simon Josefsson  <jas@extundo.com>
75983
75984         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75985         gl_AVOID.
75986
75987 2005-08-11  Bruno Haible  <bruno@clisp.org>
75988
75989         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75990
75991 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75992
75993         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75994
75995 2005-08-10  Simon Josefsson  <jas@extundo.com>
75996
75997         * tests/test-iconvme.c: New file.
75998
75999 2005-08-10  Simon Josefsson  <jas@extundo.com>
76000
76001         * m4/strnlen.m4: New file.
76002
76003         * m4/strndup.m4: Don't check for strnlen declaration, done in
76004         strnlen.m4.
76005
76006 2005-08-10  Simon Josefsson  <jas@extundo.com>
76007
76008         * lib/strndup.c: Use strnlen.h.
76009
76010         * lib/strnlen.h: New file.
76011
76012 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76013
76014         * README: Typos.
76015
76016 2005-08-02  Simon Josefsson  <jas@extundo.com>
76017
76018         * modules/readline: New file.
76019
76020 2005-08-02  Simon Josefsson  <jas@extundo.com>
76021
76022         * modules/getdelim: New file.
76023
76024         * modules/getline: Rewrite, don't use getndelim2.
76025
76026 2005-08-02  Simon Josefsson  <jas@extundo.com>
76027
76028         * m4/getline.m4: Separate out getdelim stuff into separate module.
76029
76030         * m4/getdelim.m4: New file.
76031
76032 2005-08-02  Simon Josefsson  <jas@extundo.com>
76033
76034         * lib/getline.h, getline.c: Rewrite.
76035
76036         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76037
76038 2005-07-31  Bruno Haible  <bruno@clisp.org>
76039
76040         * lib/lock.h (gl_lock_initializer): New macro.
76041         (gl_lock_define_initialized): Use it.
76042         (gl_rwlock_initializer): New macro.
76043         (gl_rwlock_define_initialized): Use it.
76044         (gl_recursive_lock_initializer): New macro.
76045         (gl_recursive_lock_define_initialized): Use it.
76046
76047 2005-07-30  Karl Berry  <karl@gnu.org>
76048
76049         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76050         Report from Ben Pfaff, regarding getopt.
76051
76052 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76055         normal way.
76056         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76057         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76058         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76059         (gl_GETOPT): Use the new macros.  Most of the implementation
76060         is moved to the new macros.  This is for programs like Emacs
76061         that don't want all the functionality of gl_GETOPT.
76062
76063 2005-07-26  Bruno Haible  <bruno@clisp.org>
76064
76065         * m4/lock.m4: Update from GNU gettext.
76066
76067 2005-07-26  Bruno Haible  <bruno@clisp.org>
76068
76069         * lib/lock.h: Update from GNU gettext.
76070         * lib/lock.c: Update from GNU gettext.
76071
76072 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76073
76074         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76075         obsolescent AC_TRY_RUN.  Include the default includes files, for
76076         'exit'.
76077
76078 2005-07-24  Bruno Haible  <bruno@clisp.org>
76079
76080         * modules/visibility: New file.
76081         * MODULES.html.sh (Misc): Add visibility.
76082
76083 2005-07-24  Bruno Haible  <bruno@clisp.org>
76084
76085         * m4/visibility.m4: New file.
76086
76087 2005-07-24  Bruno Haible  <bruno@clisp.org>
76088
76089         * doc/visibility.texi: New file.
76090
76091 2005-07-22  Bruno Haible  <bruno@clisp.org>
76092
76093         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76094         $(ALLOCA_H), redundant through BUILT_SOURCES.
76095         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76096         redundant through BUILT_SOURCES.
76097         * modules/byteswap (Makefile.am): Remove explicit dependency on
76098         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76099         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76100         $(FNMATCH_H), redundant through BUILT_SOURCES.
76101         * modules/getopt (Makefile.am): Remove explicit dependency on
76102         $(GETOPT_H), redundant through BUILT_SOURCES.
76103         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76104         redundant through BUILT_SOURCES.
76105         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76106         redundant through BUILT_SOURCES.
76107         * modules/stdbool (Makefile.am): Remove explicit dependency on
76108         $(STDBOOL_H), redundant through BUILT_SOURCES.
76109         * modules/stdint (Makefile.am): Remove explicit dependency on
76110         $(STDINT_H), redundant through BUILT_SOURCES.
76111         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76112         Remove explicit dependency on $(SYSEXITS_H).
76113         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76114
76115 2005-07-18  Simon Josefsson  <jas@extundo.com>
76116
76117         * lib/check-version.c (check_version): Accept identical versions too.
76118
76119 2005-07-18  Bruno Haible  <bruno@clisp.org>
76120
76121         * modules/lock: New file.
76122         * MODULES.html.sh (Multithreading): New section.
76123
76124 2005-07-18  Bruno Haible  <bruno@clisp.org>
76125
76126         * m4/lock.m4: New file, from GNU gettext.
76127
76128 2005-07-18  Bruno Haible  <bruno@clisp.org>
76129
76130         * lib/lock.h: New file, from GNU gettext.
76131         * lib/lock.c: New file, from GNU gettext.
76132
76133 2005-07-18  Bruno Haible  <bruno@clisp.org>
76134
76135         * lib/lock.h (gl_once_t): New type.
76136         (gl_once_define, gl_once): New macros.
76137         * lib/lock.c (fresh_once): New variable.
76138         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76139         functions.
76140
76141 2005-07-16  Simon Josefsson  <jas@extundo.com>
76142
76143         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76144         workaround, suggested by Bruno.
76145
76146 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76147
76148         * modules/xalloc (Depends-on): Add xalloc-die.
76149         * modules/xvasprintf (Depends-on): Add xalloc-die.
76150
76151 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76152
76153         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76154         with a minor change.
76155
76156 2005-07-15  Bruno Haible  <bruno@clisp.org>
76157
76158         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76159         When using lib/poll.c, define poll as rpl_poll.
76160
76161 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76162
76163         * modules/argp (Depends-on): Remove unlocked-io.
76164
76165 2005-07-14  Derek Price  <derek@ximbiot.com>
76166
76167         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76168         for glob symlink bug.
76169
76170 2005-07-14  Bruno Haible  <bruno@clisp.org>
76171
76172         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76173         Instead, test for *_unlocked function declarations directly.
76174
76175 2005-07-11  Simon Josefsson  <jas@extundo.com>
76176
76177         * modules/size_max: New file.
76178
76179         * modules/xsize: Depend on size_max module for size_max.m4.
76180
76181 2005-07-11  Simon Josefsson  <jas@extundo.com>
76182
76183         * lib/size_max.h: New file.
76184
76185 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76186
76187         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76188         copyright symbol and the year.
76189         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76190         (version_etc_va): Use parameterized copyright notice.
76191         Reword to conform to the current GNU coding standards.
76192
76193 2005-07-11  Karl Berry  <karl@gnu.org>
76194
76195         * doc/gnulib.texi (Quoting): new node.
76196         (Initial import): more info, from Patrice.
76197
76198 2005-07-11  Bruno Haible  <bruno@clisp.org>
76199
76200         * gnulib-tool (func_usage): Document option --avoid.
76201         (Command line options): Handle --avoid.
76202         (func_acceptable): New function.
76203         (func_modules_transitive_closure): Use it.
76204
76205 2005-07-11  Bruno Haible  <bruno@clisp.org>
76206
76207         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76208         Reported by Jim Meyering.
76209
76210 2005-07-10  Bruno Haible  <bruno@clisp.org>
76211
76212         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76213         Needed when size_t is smaller than 'unsigned int'.
76214         Reported by Paul Eggert.
76215
76216 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76217
76218         * modules/argp (Depends-on): Add unlocked-io
76219
76220 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76221
76222         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76223         block of defines.
76224
76225 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76228         fix now.
76229
76230 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76231         and Paul Eggert  <eggert@cs.ucla.edu>
76232
76233         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76234         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76235
76236 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * modules/regex (Files): Add lib/regex_internal.c,
76239         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76240         (Depends-on): Add extensions.
76241         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76242
76243 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76246         pathconf.
76247         * m4/same.m4 (gl_SAME): Likewise.
76248         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76249
76250         * m4/regex.m4: Adjust to new libc regex implementation.
76251         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76252         all the .c and .h parts of (the new) regex.
76253         Quote the m4 stuff better.
76254         Check for RE_ICASE bug of old gnulib.
76255         Check for REG_STARTEND of recent libc.
76256         Rename local variables from jm_* to gl_*.
76257         Quote operand of "test -f".
76258         Say "recent enough" version of libc, not "version 2".
76259         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76260         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76261         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76262         Remove check for btowc, isascii.
76263         Require AM_LANGINFO_CODESET.
76264
76265 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * lib/regex.c, regex.h: Sync from libc.
76268         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76269         * lib/regexec.c:
76270         New files, synced from libc, except that regex_internal.h
76271         currently has a small porting fix.
76272
76273 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76276         regex_internal.c, regexec.c.
76277         Add regex_internal.h too, but as a comment, since the libc version
76278         is currently broken in gnulib mode.
76279
76280 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76281
76282         Support programs like Emacs that use gnulib but not gettext.
76283         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76284         * modules/gettext-h: New file.
76285         * modules/gettext (Files): Remove lib/gettext.h.
76286         (Depends-on): Add gettext-h.
76287         (Makefile.am): Remove lib_SOURCES.
76288         * modules/argmatch, modules/c-stack, modules/closeout:
76289         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76290         * modules/execute, modules/file-type, modules/getaddrinfo:
76291         * modules/getopt, modules/human, modules/javacomp:
76292         * modules/javaexec, modules/mkdir-p, modules/obstack:
76293         * modules/openat, modules/pagealign_alloc, modules/pipe:
76294         * modules/quotearg, modules/regex, modules/rpmatch:
76295         * modules/unicodeio, modules/userspec, modules/version-etc:
76296         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76297         * modules/xsetenv:
76298         Depend on gettext-h, not gettext.
76299
76300 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76301
76302         * gnulib-tool (func_import): Add support for 'public domain' license.
76303         * modules/alloca, modules/atexit, modules/memmove:
76304         Now public domain, not GPL.
76305         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76306         * modules/realloc, modules/strerror, modules/strtod:
76307         Now LGPL, not GPL.
76308
76309 2005-07-05  Bruno Haible  <bruno@clisp.org>
76310
76311         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76312         autoconf CVS. Needed for mingw.
76313
76314 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76315
76316         Remove the dependency of the strftime module on the tzset module.
76317         * modules/strftime (Depends-on): Remove dependency on tzset.
76318
76319 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76320
76321         Remove the dependency of the strftime module on the tzset module.
76322         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76323         gl_FUNC_TZSET_CLOBBER.
76324
76325 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         Remove the dependency of the strftime module on the tzset module.
76328         * lib/strftime.c (my_strftime)
76329         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76330         Copy the input structure, to work around some of the bug with
76331         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76332         Solaris releases, you should also use the tzset module, but we won't
76333         require it as a dependency any more since we don't want LGPLed code
76334         to depend on GPLed code.
76335
76336 2005-07-02  Jim Meyering  <jim@meyering.net>
76337
76338         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76339         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76340         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76341         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76342
76343 2005-07-02  Jim Meyering  <jim@meyering.net>
76344
76345         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76346
76347 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76348
76349         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76350         declares only 'struct timespec;' (!).
76351
76352 2005-07-01  Jim Meyering  <jim@meyering.net>
76353
76354         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76355         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76356         * lib/save-cwd.c, tempname.c:
76357         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76358         and don't include <sys/file.h>).
76359
76360 2005-06-29  Jim Meyering  <jim@meyering.net>
76361
76362         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76363         type name.  Use the variable name instead.
76364         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76365         Likewise.
76366
76367 2005-06-28  Simon Josefsson  <jas@extundo.com>
76368
76369         * modules/check-version (Files): Add check-version.m4.
76370
76371 2005-06-28  Simon Josefsson  <jas@extundo.com>
76372
76373         * m4/check-version.m4: New file, suggested by Jim Meyering
76374         <jim@meyering.net>.
76375
76376 2005-06-28  Simon Josefsson  <jas@extundo.com>
76377
76378         * lib/check-version.h, lib/check-version.c: New files.
76379
76380 2005-06-28  Simon Josefsson  <jas@extundo.com>
76381
76382         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76383         collision with global variable.  Better indentation.  Don't
76384         increment buffer pointer beyond buffer end.  Based on comments
76385         from Paul Eggert <eggert@cs.ucla.edu>.
76386
76387         * lib/base64.h: Indent.
76388
76389 2005-06-28  Simon Josefsson  <jas@extundo.com>
76390
76391         * doc/gnulib.texi (Library version handling): New section.
76392
76393 2005-06-28  Jim Meyering  <jim@meyering.net>
76394
76395         * check-module (find_included_lib_files): Hard-code another
76396         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76397         but modules/fts-lgpl (correctly) does not list those files.
76398
76399         * modules/canonicalize (Files): Add lib/pathmax.h.
76400
76401 2005-06-25  Simon Josefsson  <jas@extundo.com>
76402
76403         * modules/check-version: New file.
76404
76405 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76406
76407         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76408         initializer of struct addrinfo, as an indication that we don't
76409         care how many members the structure has.
76410
76411 2005-06-24  Derek Price  <derek@ximbiot.com>
76412         and Bruno Haible  <bruno@clisp.org>
76413
76414         Remove stat module & update lstat.
76415         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76416         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76417         * m4/stat.m4: Remove this file.
76418
76419 2005-06-24  Derek Price  <derek@ximbiot.com>
76420         and Bruno Haible  <bruno@clisp.org>
76421
76422         Remove stat module & update lstat.
76423         * lib/stat.c: Remove this file...
76424         (slash_aware_lstat): ...moving this content and its support...
76425         * lib/lstat.c (rpl_lstat): ...into here.
76426         * lib/lstat.h: New file.
76427
76428 2005-06-24  Derek Price  <derek@ximbiot.com>
76429         and Bruno Haible  <bruno@clisp.org>
76430
76431         Remove stat module & update lstat.
76432         * config/srclist.txt (libc sources): Remove stat.
76433
76434 2005-06-24  Derek Price  <derek@ximbiot.com>
76435         and Bruno Haible  <bruno@clisp.org>
76436
76437         Remove stat module & update lstat.
76438         * MODULES.html.sh (stat): Remove.
76439         * MODULES.html: Regenerated.
76440         * modules/lstat (Description): Correct function name.
76441         (Files): Add "lstat.h".
76442         (Depends-on): Remove stat, add xalloc, stat-macros.
76443         * modules/stat: Remove this file.
76444         (Include): Add "lstat.h", remove <sys/stat.h>.
76445
76446 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76447
76448         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76449         (ranged_convert): Don't save conversion in a temporary struct.
76450         This causes a warning with GCC 4.0.0, and anyway in the typical
76451         case it's not worth the extra 100 bytes or so of code.
76452         (ranged_convert, __mktime_internal): When calling a function via a
76453         pointer P, use P () rather than (*P) (), as we now assume C89 or
76454         better.
76455
76456 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76459         "who -r" failed to give output.  Problem reported by Tim Waugh.
76460
76461         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76462         (xcalloc): Use it to avoid needless tests.
76463         Problem reported by Jim Meyering.
76464
76465 2005-06-20  Derek Price  <derek@ximbiot.com>
76466
76467         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76468         unnecessary for Autoconfs > 2.59c.
76469
76470 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76471
76472         * lib/argp.h (__option_is_short): Check upper limit of
76473         __key. Isprint() requires its argument to have the value
76474         of an unsigned char or EOF.
76475
76476 2005-06-16  Jim Meyering  <jim@meyering.net>
76477
76478         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76479         when either N or S is zero.
76480
76481 2005-06-16  Derek Price  <derek@ximbiot.com>
76482
76483         * m4/bison.m4: Declare YACC & YFLAGS precious.
76484
76485 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76488         multibyte string or pattern, fall back on unibyte matching.
76489         Problem reported by James Youngman.
76490
76491 2005-06-08  Bruno Haible  <bruno@clisp.org>
76492
76493         * modules/csharpcomp: New file.
76494         * MODULES.html.sh (C#): Add csharpcomp.
76495
76496 2005-06-08  Bruno Haible  <bruno@clisp.org>
76497
76498         * m4/csharpcomp.m4: New file, from GNU gettext.
76499
76500 2005-06-08  Bruno Haible  <bruno@clisp.org>
76501
76502         * lib/csharpcomp.h: New file, from GNU gettext.
76503         * lib/csharpcomp.c: New file, from GNU gettext.
76504         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76505
76506 2005-06-08  Bruno Haible  <bruno@clisp.org>
76507
76508         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76509         warning on mingw.
76510
76511 2005-06-07  Derek Price  <derek@ximbiot.com>
76512
76513         Sync from CVS.
76514         * lib/glob_.h: Indent nested #ifdef.
76515
76516 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76517
76518         Sync from coreutils.
76519         Use "file name" when talking about file names, instead of "filename"
76520         or "path", as per the GNU coding standards.
76521         * lib/mkdir-p.c: Renamed from makepath.c.
76522         (make_dir_parents): Renamed from make_path.  All callers changed.
76523         * lib/mkdir-p.h: Likewise.  All includers changed.
76524         * lib/filenamecat.c: Renamed from path-concat.c.
76525         (file_name_concat): Renamed from path_concat.  All callers changed.
76526         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76527         * lib/filenamecat.h: Likewise.  All includers changed.
76528         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76529         in comments or local variable names.
76530         * lib/basename.c: Likewise.
76531         * lib/canonicalize.c, canonicalize.h: Likewise.
76532         * lib/dirname.c, dirname.h: Likewise.
76533         * lib/euidaccess.c: Likewise.
76534         * lib/exclude.c: Likewise
76535         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76536         * lib/fsusage.c, fsuage.h: Likewise.
76537         * lib/fts.c, fts_.h: Likewise.
76538         * lib/getcwd.c: Likewise.
76539         * lib/getloadavg.c: Likewise.
76540         * lib/mkstemp.c: Likewise.
76541         * lib/mountlist.c, mountlist.h: Likewise.
76542         * lib/openat.c, openat.h: Likewise.
76543         * lib/readlink-stub.c: Likewise.
76544         * lib/readutmp.c, readutmp.h: Likewise.
76545         * lib/rename.c: Likewise.
76546         * lib/rmdir.c: Likewise.
76547         * lib/same.c: Likewise.
76548         * lib/savedir.c: Likewise.
76549         * lib/stripslash.c: Likewise.
76550         * lib/tempname.c: Likewise.
76551         * lib/xreadlink.c: Likewise.
76552         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76553         All uses changed.
76554         * lib/exclude.h: Likewise.
76555
76556         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76557         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76558         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76559         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76560         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76561         files have been getting away with it for years (MORE/BSD 4.3
76562         is extinct now).
76563         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76564         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76565
76566         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76567         Define to 256, not 255, as per modern POSIX.
76568
76569 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76570
76571         Sync from coreutils.
76572         Use "file name" when talking about file names, instead of "filename"
76573         or "path", as per the GNU coding standards.
76574         * MODULES.html.sh: mkdir-p renamed from makepath.
76575         filenamecat renamed from path-concat.
76576         * modules/filenamecat: Renamed from modules/path-concat.
76577         (Files): filenamecat.h and filenamecat.c renamed from
76578         path-concat.h and path-concat.c.
76579         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76580         (Include): filenamecat.h, not path-concat.h.
76581         * modules/mkdir-p: Renamed from modules/makepath.
76582         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76583         makepath.c.
76584         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76585         (Include): mkdir-p.h, not makepath.h.
76586
76587 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         Sync from coreutils.
76590         * m4/mkdir-p.m4: Renamed from makepath.m4.
76591         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76592         Rename files from makepath.c to mkdir-p.c, and from
76593         makepath.h to mkdir-p.h.
76594         * m4/filenamecat.m4: Renamed from path-concat.m4.
76595         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76596         Rename files from path-concat.c to filenamecat.c,
76597         and from path-concat.h to filenamecat.h.
76598         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76599         "file name" in local variables or comments.
76600         * m4/rename.m4: Likewise.
76601
76602 2005-06-01  Bruno Haible  <bruno@clisp.org>
76603
76604         * modules/csharpexec: New file.
76605         * MODULES.html.sh (C#): New section.
76606
76607 2005-06-01  Bruno Haible  <bruno@clisp.org>
76608
76609         * m4/csharp.m4: New file, from GNU gettext.
76610         * m4/csharpexec.m4: New file, from GNU gettext.
76611
76612 2005-06-01  Bruno Haible  <bruno@clisp.org>
76613
76614         * lib/csharpexec.h: New file, from GNU gettext.
76615         * lib/csharpexec.c: New file, from GNU gettext.
76616         * lib/csharpexec.sh.in: New file, from GNU gettext.
76617
76618 2005-05-31  Derek Price  <derek@ximbiot.com>
76619             Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         Sync from cvs.
76622         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76623
76624 2005-05-31  Derek Price  <derek@ximbiot.com>
76625             Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         Sync from cvs.
76628         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76629
76630 2005-05-29  Derek Price  <derek@ximbiot.com>
76631
76632         * config/srclist.txt (glob_.h, glob.c): Add these files.
76633
76634 2005-05-29  Derek Price  <derek@ximbiot.com>
76635
76636         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76637         * modules/glob: New file.
76638         * modules/getlogin_r: Add link to POSIX spec in description.
76639
76640 2005-05-29  Derek Price  <derek@ximbiot.com>
76641             Paul Eggert  <eggert@cs.ucla.edu>
76642
76643         * m4/glob.m4: New file.
76644
76645 2005-05-29  Derek Price  <derek@ximbiot.com>
76646             Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * lib/glob_.h, lib/glob.c: New files.
76649
76650 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76653         * modules/fts-lgpl (Depends-on): Remove gettext.
76654
76655 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76658         and don't require gt_INTTYPES_PRI.
76659
76660 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76661
76662         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76663
76664         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76665         the configuration hassle isn't worth it.
76666         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76667         (LONGEST_MODIFIER, PRIuMAX): Remove.
76668
76669 2005-05-27  Bruno Haible  <bruno@clisp.org>
76670
76671         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76672
76673 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76676         _POSIX_PTHREAD_SEMANTICS for Solaris.
76677
76678 2005-05-25  Derek Price  <derek@ximbiot.com>
76679
76680         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76681
76682 2005-05-25  Derek Price  <derek@ximbiot.com>
76683             Paul Eggert  <eggert@cs.ucla.edu>
76684
76685         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76686         * lib/getlogin_r.c, getlogin_r.h: New files.
76687
76688 2005-05-25  Bruno Haible  <bruno@clisp.org>
76689             Derek Price  <derek@ximbiot.com>
76690
76691         * lib/getlogin_r.h: Simplify API documentation.
76692
76693 2005-05-23  Derek Price  <derek@ximbiot.com>
76694
76695         * modules/minmax (Files): Add m4/minmax.m4.
76696         (configure.ac): Add gl_MINMAX.
76697
76698 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76699
76700         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76701         so that unistd-safer.h (GPL'ed code) need not be included.
76702
76703 2005-05-22  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/minmax.m4: New file.
76706         Based on a patch by Derek Price <derek@ximbiot.com>.
76707
76708 2005-05-22  Bruno Haible  <bruno@clisp.org>
76709
76710         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76711         (INT64_MIN): Fix definition.
76712         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76713
76714         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76715         NEED_SIGNED_INT_TYPES.
76716
76717         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76718         HAVE_SYSTEM_INTTYPES.
76719
76720 2005-05-22  Bruno Haible  <bruno@clisp.org>
76721
76722         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76723         Also include <sys/param.h> if it defines MIN, MAX.
76724         Based on a patch by Derek Price <derek@ximbiot.com>.
76725
76726 2005-05-21  Jim Meyering  <jim@meyering.net>
76727
76728         * modules/fts (Files): Add m4/inttypes-pri.m4.
76729         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76730
76731 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         New fts module.
76734         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76735         (setup_dir, free_dir): New functions.
76736         (enter_dir, leave_dir): Define trivial
76737         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76738         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76739         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76740         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76741         Move to fts-cycle.c.
76742         (fts_open): Use setup_dir.
76743         (fts_close): Use free_dir.
76744         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76745         This adds a label and some gotos, but the alternatives were messier.
76746         Check for memory allocation failure when entering a dir.
76747         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76748         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76749         (FTS): New member fts_cycle, that is a union that contains the
76750         old active_dir_ht and cycle_state.  All uses changed to mention
76751         fts_cycle.ht and fts_cycle.state.
76752         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76753         fts.c, with the following changes:
76754         (setup_dir, free_dir): New functions.
76755         (enter_dir): Now returns bool.  Return true if successful, false
76756         if memory exhausted.  All callers changed.
76757         Do not bother partly cleaning up on
76758         memory allocation failure; that is free_dir's job.
76759         However, free ad if hash_insert fails, to avoid memory leak.
76760         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76761         fts->fts_options to see which union member to use.
76762
76763 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76766         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76767
76768 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76769
76770         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76771
76772 2005-05-20  Jim Meyering  <jim@meyering.net>
76773
76774         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76775         Now a macro, to pacify GCC.
76776
76777 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76778
76779         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76780         of -1.
76781
76782 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76783
76784         * lib/chown.c (rpl_chown): Return -1 on failure.
76785
76786 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76787
76788         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76789         Don't check for stddef.h.
76790         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76791         don't use its results.
76792         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76793         since we include them unconditionally.  Don't require
76794         AM_STDBOOL_H, since stdbool is a prerequisite.
76795         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76796         since we assume C89 or better.
76797         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76798         as we don't use their results.
76799         Don't check for fchdir, memmove, memset, strrchr, as we use
76800         them unconditionally.
76801         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76802         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76803
76804 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76807         Include <stddef.h> unconditionally, since we assume C89 now.
76808         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76809         * lib/fts.c: Include fts_.h first, to check interface.
76810         Do not include intprops.h; no longer needed.
76811         Include cycle-check.h and hash.h, since fts_.h no longer does.
76812         Remove unnecessary casts of closedir to void.
76813         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76814         decide whether to decrement nlinks.
76815         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76816         (FTS): Use struct hash_table * instead of Hash_table, so that
76817         we no longer need to include hash.h here.
76818
76819 2005-05-18  Jim Meyering  <jim@meyering.net>
76820
76821         * modules/dirfd (License): Change to LGPL.  Most of the code
76822         is already in the public domain.
76823
76824 2005-05-18  Jim Meyering  <jim@meyering.net>
76825
76826         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76827         Reported by Yoann Vandoorselaere.
76828
76829 2005-05-17  Jim Meyering  <jim@meyering.net>
76830
76831         * m4/fts.m4: New file, from coreutils.
76832
76833 2005-05-17  Jim Meyering  <jim@meyering.net>
76834
76835         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76836
76837 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76838
76839         Sync from coreutils.
76840         * m4/unlinkdir.m4: New file.
76841
76842 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76843
76844         Sync from coreutils.
76845         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76846         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76847         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76848         White space changes only.
76849         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76850         special.
76851         * lib/yesno.c: Include getline.h, not ctype.h.
76852         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76853         Use getline to remove arbitrary restriction on response length.
76854
76855 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * config/srclist-update: Spell out "Street" in FSF postal
76858         mail address; this is the style the FSF seems to prefer.
76859
76860         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76861         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76862         this updates FSF postal mail address.
76863
76864         Sync from coreutils.
76865         * modules/unlinkdir: New file.
76866         * modules/yesno (Depends-on): Add getline.
76867         * MODULES.html.sh (File system functions): Add unlinkdir.
76868
76869 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76870
76871         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76872         lib/strsep.h:
76873         Change the initial comment to refer to GPL, not LGPL.
76874         gnulib-tool will change it to LGPL as needed.
76875
76876         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76877         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76878         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76879         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76880         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76881         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76882         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76883         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76884         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76885         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76886         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76887         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76888         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76889         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76890         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76891         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76892         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76893         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76894         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76895         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76896         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76897         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76898         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76899         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76900         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76901         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76902         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76903         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76904         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76905         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76906         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76907         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76908         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76909         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76910         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76911         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76912         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76913         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76914         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76915         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76916         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76917         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76918         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76919         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76920         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76921         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76922         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76923         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76924         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76925         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76926         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76927         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76928         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76929         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76930         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76931         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76932         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76933         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76934         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76935         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76936         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76937         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76938         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76939         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76940         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76941         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76942         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76943         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76944         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76945         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76946         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76947         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76948         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76949         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76950         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76951         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76952         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76953         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76954         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76955         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76956         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76957         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76958         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76959         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76960         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76961         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76962         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76963         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76964         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76965         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76966         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76967         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76968         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76969         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76970         lib/yesno.c, lib/yesno.h:
76971         Update FSF postal mail address.
76972
76973 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76976         tests/test-memmem.c, tests/test-stpncpy.c:
76977         Update FSF postal mail address.
76978
76979 2005-05-13  Bruno Haible  <bruno@clisp.org>
76980
76981         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76982         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76983         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76984         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76985         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76986         Add support for 64-bit integers in the MSVC compiler.
76987
76988 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76989
76990         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76991
76992 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76993
76994         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76995
76996 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * doc/getdate.texi (General date syntax): Don't say that date
76999         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77000         Problem reported by Nic Ferrier.
77001
77002 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77003
77004         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77005         specified in ai_socktype. Fix invalid ai_protocol
77006         check. ai_protocol is usually set to 0 or depending on
77007         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77008         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77009         ai_socktype / ai_protocol in the returned addrinfo structure.
77010
77011 2005-05-10  Simon Josefsson  <jas@extundo.com>
77012
77013         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77014         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77015
77016 2005-05-10  Karl Berry  <karl@gnu.org>
77017
77018         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77019         (from http://www.gnu.org/licenses).
77020         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77021         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77022         fdl.texi suffices.
77023
77024 2005-05-10  Karl Berry  <karl@gnu.org>
77025
77026         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77027         (COPYING.DOC): remove.
77028
77029         * config/srclist-update: new FSF address.
77030
77031 2005-05-10  Derek Price  <derek@ximbiot.com>
77032
77033         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77034         possible.
77035
77036 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77037             Bruno Haible  <bruno@clisp.org>
77038
77039         * modules/inet_ntop: New file.
77040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77041         inet_ntop.
77042
77043 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77044             Bruno Haible  <bruno@clisp.org>
77045
77046         * m4/inet_ntop.m4: New file.
77047
77048 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77049             Bruno Haible  <bruno@clisp.org>
77050
77051         * lib/inet_ntop.h: New file.
77052         * lib/inet_ntop.c: New file, from glibc with modifications.
77053
77054 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         * modules/time_r (License): Change to LGPL.
77057         * modules/extensions (License): Change to LGPL.  Actually,
77058         the license is more permissive than that, but currently gnulib-tool
77059         doesn't know how to handle more-permissive licenses.
77060
77061         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77062         Problem reported by Dave Love.
77063
77064 2005-05-08  Jim Meyering  <jim@meyering.net>
77065
77066         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77067         blank.
77068
77069 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77070
77071         * modules/argmatch (Depends-on): Add stdbool.
77072         * modules/backupfile (Depends-on): Likewise.
77073         * modules/chdir-long (Depends-on): Likewise.
77074         * modules/closeout (Depends-on): Likewise.
77075         * modules/cycle-check (Depends-on): Likewise.
77076         * modules/dirname (Depends-on): Likewise.
77077         * modules/fnmatch (Depends-on): Likewise.
77078         * modules/fsusage (Depends-on): Likewise.
77079         * modules/fwriteerror (Depends-on): Likewise.
77080         * modules/getcwd (Depends-on): Likewise.
77081         * modules/getloadavg (Depends-on): Likewise.
77082         * modules/hard-locale (Depends-on): Likewise.
77083         * modules/makepath (Depends-on): Likewise.
77084         * modules/mountlist (Depends-on): Likewise.
77085         * modules/nanosleep (Depends-on): Likewise.
77086         * modules/posixtm (Depends-on): Likewise.
77087         * modules/quotearg (Depends-on): Likewise.
77088         * modules/readtokens (Depends-on): Likewise.
77089         * modules/readtokens0 (Depends-on): Likewise.
77090         * modules/readutmp (Depends-on): Likewise.
77091         * modules/save-cwd (Depends-on): Likewise.
77092         * modules/strftime (Depends-on): Likewise.
77093         * modules/userspec (Depends-on): Likewise.
77094         * modules/utimecmp (Depends-on): Likewise.
77095         * modules/xgetcwd (Depends-on): Likewise.
77096         * modules/xnanosleep (Depends-on): Likewise.
77097         * modules/xstrtod (Depends-on): Likewise.
77098         * modules/yesno (Depends-on): Likewise.
77099
77100 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77101
77102         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77103         needless checks.
77104
77105 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77106
77107         Merge from coreutils.  Among other things,
77108         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77109         * lib/fd-safer.c: New file.
77110         * lib/fcntl-safer.h, open-safer.c: Remove.
77111         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77112         * lib/dup-safer.c: Include unistd-safer.h first.
77113         Don't include errno.h.
77114         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77115         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77116         * lib/file-type.c: Rely on file-type.h change.
77117         * lib/getloadavg.c: Include unistd-safer.h.
77118         (getloadavg): Use safer open.
77119         * lib/getusershell.c: Include "stdio-safer.h".
77120         (getusershell): Use safer fopen.
77121         * lib/long-options.c (long_options): Use NULL rather than 0.
77122         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77123         'free'.
77124         * lib/modechange.c: Likewise.
77125         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77126         (MODE_DONE): New constant.
77127         (struct mode_change): Remove 'next' member.
77128         (make_node_op_equals): New function; like the old one of the
77129         same name, except it allocates an array.
77130         (mode_compile, mode_create_from_ref): Use it.
77131         (mode_compile): Allocate result as an array, not a linked list.
77132         Parse octal string ourself, so that we catch mistakes like "+0".
77133         (mode_adjust): Arg is an array, not a linked list.
77134         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77135         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77136         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77137         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77138         Remove.  This is now stat-macros.h's job.
77139         (talloc): Remove.  All callers replaced by xalloc, so that
77140         our invokers don't have to worry about reporting memory failures.
77141         (make_node_op_equals): Remove.
77142         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77143         New constants.
77144         (struct mode_change): Moved here from modechange.h.
77145         (mode_append_entry): Remove.
77146         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77147         apps to have incorrect behavior.  Use simpler algorithm for head
77148         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77149         Detect more invalid usages rather than having somewhat-random behavior.
77150         Don't insert an "a=" action, as that leads to incorrect behavior.
77151         (mode_compile, mode_create_from_ref): Return NULL on error instead
77152         of an enum, since now there's only one way to have an error.  All
77153         callers changed.
77154         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77155         at the correct time.  Simplify calculation of "+u" and its ilk.
77156         Don't mishandle "+X".
77157         (mode_free): Remove "register" and localize decls.
77158         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77159         (struct mode_change): Move to modechange.c; callers don't
77160         need to see this stuff.
77161         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77162         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77163         (mode_change, mode_adjust): Reflect the new signatures noted above.
77164         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77165         that might redefine system include files.
77166         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77167         (my_usleep): Use NULL rather than (void *) 0.
77168         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77169         Use siginterrupt to specify that system calls should be interrupted.
77170         (rpl_nanosleep): Move initialization of suspended closer to call of
77171         my_usleep.
77172         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77173         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77174         (desirable_utmp_entry): New function.
77175         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77176         using x2nrealloc, to simplify logic.
77177         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77178         size calculation.  Do not assume utmp file is a regular file.
77179         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77180         (READ_UTMP_CHECK_PIDS): New constant.
77181         * lib/save-cwd.c: Include unistd-safer.h.
77182         (save_cwd): Use fd_safer.
77183         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77184         [!_LIBC] Include "stat-macros.h" instead.
77185         * lib/unistd-safer.h (fd_safer): New decl.
77186
77187 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77188
77189         * modules/getloadavg (Depends-on): Add unistd-safer.
77190         * modules/getusershell (Depends-on): Add stdio-safer.
77191         * modules/lstat (Depends-on): Remove xalloc.
77192         * modules/mkstemp (Depends-on): Add stat-macros.
77193         * modules/modechange (Depends-on): Remove xstrtol.
77194         Add stat-macros, xalloc.
77195         * modules/save-cwd (Depends-on): Add unistd-safer.
77196         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77197         * modules/unistd-safer (Files): Add lib/fd-safer.c
77198         (Makefile.am): Remove lib_SOURCES.
77199
77200         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77201         Remove fcntl-safer; unistd-safer supersedes it.
77202
77203 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77206         AC_HEADER_STAT.
77207         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77208         (gl_PREREQ_CHOWN): Remove.
77209         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77210         it.  Don't require AC_HEADER_STAT.
77211         (gl_PREREQ_LSTAT): Remove.
77212         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77213         Don't require AC_HEADER_STAT.
77214         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77215         (gl_PREREQ_RMDIR): Remove.
77216         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77217         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77218         the stat-macros module a prerequisite.
77219         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77220         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77221         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77222         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77223         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77224         variable names.
77225         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77226         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77227         variable prefixes.
77228         * m4/fcntl-safer.m4: Remove.
77229         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77230         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77231         Invoke gl_PREREQ_FD_SAFER.
77232         (gl_PREREQ_FD_SAFER): New macro.
77233         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77234         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77235         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77236         Remove duplicate call to AC_LIBOBJ(readutmp).
77237         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77238
77239         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77240         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77241
77242 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * MODULES.html.sh (Misc): Add byteswap.
77245
77246 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77247
77248         * modules/getcwd (Depends-on): Add extensions.
77249         * modules/openat (Depends-on): Likewise.
77250
77251 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77252
77253         * modules/byteswap: New file.
77254
77255 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77256
77257         * m4/byteswap.m4: New file.
77258
77259 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77260
77261         * lib/byteswap_.h: New file.
77262
77263 2005-04-25  Karl Berry  <karl@gnu.org>
77264
77265         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77266
77267 2005-04-25  Albert Chin  <china@thewrittenword.com>
77268
77269         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77270         Toolkit C bug.
77271
77272 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77273
77274         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77275         (func_ln_if_changed): Remove forcibly for no error message
77276         in case file does not exist.
77277
77278 2005-04-19  Simon Josefsson  <jas@extundo.com>
77279
77280         * gnulib-tool (Options): Make --symlink mean --symbolic.
77281
77282 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77283
77284         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77285
77286 2005-04-16  Simon Josefsson  <jas@extundo.com>
77287
77288         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77289
77290 2005-04-15  Simon Josefsson  <jas@extundo.com>
77291
77292         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77293
77294 2005-04-15  Simon Josefsson  <jas@extundo.com>
77295
77296         * gnulib-tool: Rename --symlink to --symbolic.
77297
77298 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77299
77300         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77301         symbolic links to files instead of copying/moving.  Add --aux-dir,
77302         specifying directory relative --dir where auxiliary build tools
77303         are placed.
77304
77305 2005-04-14  Bruno Haible  <bruno@clisp.org>
77306
77307         * modules/allocsa (License): Change to LGPL.
77308         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77309
77310 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77313         that "UTC +1 second" continues to work.  Problem reported
77314         by Dmitry V. Levin.
77315         (relunit_snumber): New rule.
77316         (relunit): Use it.
77317
77318 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77319
77320         * lib/getdate.y (universal_time_zone_table): New constant.
77321         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77322         universal_time_zone_table.
77323         (lookup_zone): Prefer universal_time_zone_table to
77324         local_time_zone_table, so that "GMT" time stamps are allowed in
77325         London during the summer.  Problem reported by Ian Abbott.
77326
77327 2005-04-12  Jim Meyering  <jim@meyering.net>
77328
77329         * lib/human.c (humblock): Set *options even when returning due to
77330         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77331         warning from gcc-4.
77332
77333 2005-04-09  Jim Meyering  <jim@meyering.net>
77334
77335         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77336         -Wuninitialized: initialize tm0.tm_year.
77337
77338 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77341         count, since there's no maximum.  All uses changed.
77342         Add member dsts_seen.
77343         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77344         not being INT_MAX.
77345         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77346         Use pc_rels_seen to decide whther a date is absolute.
77347
77348         * lib/getdate.y (number): Don't overwrite year.
77349         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77350         check.
77351
77352 2005-04-02  Simon Josefsson  <jas@extundo.com>
77353
77354         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77355         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77356
77357 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77358
77359         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77360         where no absolute path name can be longer than PATH_MAX.
77361
77362 2005-03-27  Jim Meyering  <jim@meyering.net>
77363
77364         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77365
77366 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77369         "one's complement" -> "ones' complement" in comment, as per Knuth.
77370         "value of type" -> "type or expression" in comment.
77371         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77372
77373 2005-03-26  Jim Meyering  <jim@meyering.net>
77374
77375         Comment nits.
77376         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77377         Correct typos: s/or/of/.
77378
77379 2005-03-26  Jim Meyering  <jim@meyering.net>
77380
77381         * modules/check-include-files: Move to ../ and rename to...
77382         * check-module: ...this.
77383
77384 2005-03-25  Jim Meyering  <jim@meyering.net>
77385
77386         * modules/xvasprintf (Files): Add xalloc.h.
77387
77388 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         * modules/gettext (Files): config/config.rpath ->
77391         build-aux/config.rpath
77392         * modules/iconv (Files): Likewise.
77393         Problem reported by Oskar Liljeblad.
77394
77395 2005-03-23  Jim Meyering  <jim@meyering.net>
77396
77397         * modules/check-include-files: New script to check for
77398         missing dependencies, multiple includes, etc.
77399
77400         * modules/c-strtold (Depends-on): Add xalloc.
77401         * modules/c-strtod (Depends-on): Add xalloc.
77402         * modules/hash (Depends-on): Add xalloc.
77403         (Files): Remove lib/xalloc.h.
77404
77405         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77406         * modules/userspec (Files): Add lib/inttostr.h.
77407
77408 2005-03-23  Jim Meyering  <jim@meyering.net>
77409
77410         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77411
77412 2005-03-22  Jim Meyering  <jim@meyering.net>
77413
77414         * modules/stat-macros: New module.
77415         * modules/canonicalize, modules/euidaccess, modules/file-type,
77416         * modules/filemode, modules/lchown, modules/makepath,
77417         * modules/rmdir, modules/stat: Depend on new stat-macros module
77418         rather than listing lib/stat-macros.h manually.
77419         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77420
77421 2005-03-22  Jim Meyering  <jim@meyering.net>
77422
77423         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77424
77425 2005-03-22  Bruno Haible  <bruno@clisp.org>
77426
77427         * config/srclist.txt: Replace target directory 'config' with
77428         'build-aux'.
77429         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77430         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77431         ../build-aux/.
77432
77433 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         * modules/chdir-long (Depends-on): Add mempcpy.
77436
77437         * modules/acl, modules/backupfile, modules/c-strtod,
77438         modules/c-strtold, modules/canon-host, modules/canonicalize,
77439         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77440         modules/exclude, modules/exitfail, modules/file-type,
77441         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77442         modules/getdate, modules/getline, modules/getpagesize,
77443         modules/getpass, modules/getugroups, modules/group-member,
77444         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77445         modules/inttostr, modules/long-options, modules/makepath,
77446         modules/md5, modules/memcasecmp, modules/memcoll,
77447         modules/modechange, modules/mountlist, modules/path-concat,
77448         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77449         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77450         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77451         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77452         modules/strftime, modules/strndup, modules/strverscmp,
77453         modules/timespec, modules/unlocked-io, modules/userspec,
77454         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77455         modules/yesno:
77456         Remove lib_SOURCES line from Makefile.am section, as this is now
77457         done automatically by the corresponding Autoconf macro.
77458
77459 2005-03-21  Jim Meyering  <jim@meyering.net>
77460
77461         Changes imported from coreutils.
77462
77463         * lib/cycle-check.c: Don't include xalloc.h.
77464
77465         * lib/path-concat.c: Don't include assert.h.
77466         (path_concat): Remove assertion that would have triggered
77467         for ABASE starting with more than one slash.
77468         Reported by Andreas Schwab.
77469
77470         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77471         properly when ABASE is an absolute file name.
77472         Correct the description of this function.
77473         Include <assert.h>.
77474         Add an assertion and a test driver.
77475         This fixes a bug introduced on 2004-07-02.
77476         Andreas Schwab reported the resulting failure of cp --parents:
77477         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77478
77479 2005-03-21  Jim Meyering  <jim@meyering.net>
77480
77481         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77482         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77483
77484 2005-03-21  Jim Meyering  <jim@meyering.net>
77485         and  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77488         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77489         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77490         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77491         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77492         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77493         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77494         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77495         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77496         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77497         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77498         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77499         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77500         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77501         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77502         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77503         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77504         for these modules.
77505
77506 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77507
77508         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77509         (which shouldn't happen), generate nothing instead of returning 0
77510         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77511
77512 2005-03-16  Bruno Haible  <bruno@clisp.org>
77513
77514         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77515         HAVE_LONGLONG_64BIT.
77516
77517 2005-03-16  Bruno Haible  <bruno@clisp.org>
77518
77519         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77520         HAVE_LONGLONG_64BIT.
77521
77522 2005-03-16  Bruno Haible  <bruno@clisp.org>
77523
77524         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77525         HAVE_LONGLONG_64BIT.
77526
77527 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77530         reliably distinguish strftime failure from empty output on POSIX
77531         hosts.
77532
77533 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77534
77535         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77536         (iconv_string): Don't guess a size-zero buffer, as that might cause
77537         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77538         result would be 'too large', where 'too large' is (heuristically)
77539         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77540         overflow concerns.  This will prevent some unwanted malloc failures
77541         when the inputs are very large.
77542
77543 2005-03-15  Karl Berry  <karl@gnu.org>
77544
77545         * config/srclist.txt (config.rpath): from gettext.
77546         * config/config.rpath: update.
77547
77548 2005-03-15  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77551         to 'negate'.
77552
77553         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77554         variable.
77555
77556         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77557         results.
77558
77559 2005-03-14  Simon Josefsson  <jas@extundo.com>
77560
77561         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77562         <fx@gnu.org>.
77563
77564 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77567         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77568         intprops.h.
77569         * lib/strtol.c: Likewise.
77570
77571 2005-03-14  Jim Meyering  <jim@meyering.net>
77572
77573         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77574         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77575         to be nonzero so that we (and caller) can detect the difference
77576         between a valid zero-length expansion and an error return, even
77577         when the underlying strftime fails before writing anything into
77578         that location.
77579
77580 2005-03-14  Bruno Haible  <bruno@clisp.org>
77581
77582         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77583         Update from GNU gettext 0.14.3.
77584
77585 2005-03-10  Jim Meyering  <jim@meyering.net>
77586
77587         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77588
77589 2005-03-10  Jim Meyering  <jim@meyering.net>
77590
77591         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77592         so that this module works on systems without fchdir.
77593
77594 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77595
77596         Factor int-properties macros into a single file, except for
77597         glibc-related files.
77598         * lib/intprops.h: New file.
77599         * lib/getloadavg.c: Include it instead of limits.h.
77600         (INT_STRLEN_BOUND): Remove.
77601         * lib/human.c: Include intprops.h.
77602         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77603         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77604         302/1000.
77605         * lib/inttostr.h: Include intprops.h instead of limits.h.
77606         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77607         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77608         for consistency with intprops.h.
77609         (time_t_is_integer, twos_complement_arithmetic): Use them.
77610         * lib/sig2str.h: Include <signal.h>, intprops.h.
77611         (INT_STRLEN_BOUND): Remove.
77612         * lib/strftime.c (TYPE_SIGNED): Remove.
77613         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77614         * lib/strtol.c: Adjust comments to match intprops.h.
77615         * lib/userspec.c: Include intprops.h.
77616         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77617         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77618         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77619         instead of rolling our own expressions.
77620         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77621
77622         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77623         instead of int.
77624         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77625         the right thing even if adding 1900 would overflow.  Similarly
77626         for tm_mon + 1 and tm_yday + 1.
77627         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77628         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77629         (DO_SIGNED_NUMBER): New macro.
77630         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77631
77632 2005-03-07  Bruno Haible  <bruno@clisp.org>
77633
77634         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77635
77636 2005-03-07  Bruno Haible  <bruno@clisp.org>
77637
77638         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77639
77640 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77641
77642         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77643         (func_import): Only replace files via --import when they have actually
77644         changed.
77645
77646 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77647
77648         * m4/mmap-anon.m4: New file.
77649         * m4/pagealign_alloc.m4: New file.
77650
77651 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77652             Bruno Haible  <bruno@clisp.org>
77653
77654         * modules/pagealign_alloc: New file.
77655         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77656
77657 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77658             Bruno Haible  <bruno@clisp.org>
77659
77660         * lib/pagealign_alloc.h: New file.
77661         * lib/pagealign_alloc.c: New file.
77662
77663 2005-03-03  Bruno Haible  <bruno@clisp.org>
77664
77665         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77666         Use an all-permissive copyright notice, recommended by RMS.
77667
77668 2005-03-02  Bruno Haible  <bruno@clisp.org>
77669
77670         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77671         of AIX, the replacement has to be done only after <string.h> is
77672         included, therefore not in config.h. stpncpy.h does the replacement,
77673         and stpncpy.c uses it.
77674
77675 2005-03-02  Bruno Haible  <bruno@clisp.org>
77676
77677         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77678         stpncpy.c uses it.
77679
77680 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77683         The workaround isn't strictly needed for POSIX conformance, and
77684         it's too much of a pain to configure and maintain.  We'll ask
77685         people to fix their kernels instead.
77686         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77687         (NANOSLEEP_BUG_WORKAROUND): Remove.
77688         (xnanosleep): Remove the workaround.
77689
77690 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77693         Reported by Derek Price.
77694         (Include): Add "timespec.h".
77695
77696         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77697
77698 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77699
77700         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77701         to detect nanosleep bug.
77702
77703 2005-03-01  Bruno Haible  <bruno@clisp.org>
77704
77705         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77706
77707 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77708
77709         * modules/gethrxtime: New file.
77710         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77711         (Depends-on): Add gethrxtime.
77712         (configure.ac): Add gl_XNANOSLEEP.
77713         (Makefile.am): Remove lib_SOURCES line.
77714
77715 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77716
77717         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77718         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77719
77720 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77721
77722         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77723         * lib/timespec.h (gettime): Return void, since it always
77724         succeeds now.  All uses changed.
77725         * lib/gettime.c (gettime): Likewise.
77726         [HAVE_NANOTIME]: Prefer nanotime.
77727         Assume gettimeofday succeeds, as POSIX requires.
77728         Assime time () succeeds, since other code already does.
77729         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77730         (timespec_subtract): Remove.
77731         (NANOSLEEP_BUG_WORKAROUND): New constant.
77732         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77733         things considerably.  Use it only on GNU/Linux hosts, since the
77734         workaround shouldn't be needed elsewhere.
77735
77736 2005-02-24  Bruno Haible  <bruno@clisp.org>
77737
77738         * modules/gettext (Files): Add m4/glibc2.m4.
77739
77740 2005-02-24  Bruno Haible  <bruno@clisp.org>
77741
77742         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77743         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77744         * m4/progtest.m4:
77745         Update from GNU gettext 0.14.2.
77746         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77747
77748 2005-02-24  Bruno Haible  <bruno@clisp.org>
77749
77750         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77751         * lib/config.charset: Update from GNU gettext 0.14.2.
77752
77753 2005-02-24  Bruno Haible  <bruno@clisp.org>
77754
77755         * lib/gettext.h: Update from GNU gettext 0.14.2.
77756
77757 2005-02-23  Simon Josefsson  <jas@extundo.com>
77758
77759         * m4/iconvme.m4: New file.
77760
77761 2005-02-23  Jim Meyering  <jim@meyering.net>
77762
77763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77764         change.
77765         Thanks to Bruno Haible for catching it.
77766
77767 2005-02-22  Simon Josefsson  <jas@extundo.com>
77768
77769         * modules/iconvme: New file.
77770
77771         * MODULES.html.sh: Add iconvme.
77772
77773 2005-02-22  Simon Josefsson  <jas@extundo.com>
77774
77775         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77776
77777 2005-02-22  Simon Josefsson  <jas@extundo.com>
77778
77779         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77780
77781 2005-02-22  Jim Meyering  <jim@meyering.net>
77782
77783         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77784         s/ifndef/ifdef/.
77785
77786 2005-02-20  Neil Conway  <neilc@samurai.com>
77787
77788         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77789         returned by OSX/Darwin if the specified buffer is not large
77790         enough for the hostname.
77791
77792 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77793
77794         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77795         pass it to _help, otherwise the latter coredumps trying to
77796         dereference state.root_argp.
77797
77798 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         * modules/chdir-long (Depends-on): Add memrchr.
77801         * modules/memrchr (Files): Add lib/memrchr.h.
77802         (Include): "memrchr.h".
77803
77804 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77807
77808 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77809
77810         * lib/memrchr.h: New file.
77811         * lib/chdir-long.c: Include it.
77812         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77813         Don't bother including stddef.h.
77814
77815 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77816
77817         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77818         inclusion.
77819         Include <sys/types.h>, for dev_t.
77820         (ME_DUMMY, ME_REMOTE): Move from here....
77821         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77822         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77823         Dmitry V. Levin.
77824         Include mountlist.h first, to test the interface.
77825
77826 2005-01-29  Bruno Haible  <bruno@clisp.org>
77827
77828         * lib/progname.c (program_name): Initialize.
77829         Needed when linking statically on MacOS X.
77830
77831 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         Sync from coreutils.
77834         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77835         (Depends-on): Add c-strtod.
77836         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77837
77838 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77839
77840         Sync from coreutils.
77841         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77842
77843         Remove files that are specific to coreutils.
77844         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77845
77846 2005-01-28  Bruno Haible  <bruno@clisp.org>
77847
77848         * modules/javacomp: New file.
77849         * MODULES.html.sh (Java): Add javacomp.
77850
77851 2005-01-28  Bruno Haible  <bruno@clisp.org>
77852
77853         * m4/javacomp.m4: New file, from GNU gettext.
77854
77855 2005-01-28  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/javacomp.sh.in: New file, from GNU gettext.
77858         * lib/javacomp.h: New file, from GNU gettext.
77859         * lib/javacomp.c: New file, from GNU gettext.
77860
77861 2005-01-26  Simon Josefsson  <jas@extundo.com>
77862
77863         * lib/gai_strerror.c: Use GPL in header.
77864
77865 2005-01-26  Bruno Haible  <bruno@clisp.org>
77866
77867         * modules/javaexec: New file.
77868         * MODULES.html.sh (Java): Add javaexec.
77869
77870 2005-01-26  Bruno Haible  <bruno@clisp.org>
77871
77872         * m4/javaexec.m4: New file, from GNU gettext.
77873
77874 2005-01-26  Bruno Haible  <bruno@clisp.org>
77875
77876         * lib/javaexec.sh.in: New file, from GNU gettext.
77877         * lib/javaexec.h: New file, from GNU gettext.
77878         * lib/javaexec.c: New file, from GNU gettext.
77879
77880 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77881
77882         * modules/lchown (Depends-on): Remove lchown.h
77883
77884 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77885
77886         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77887         must be defined if the header file was not found, in order
77888         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77889
77890 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77891
77892         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77893         initializers for struct pentry_state.
77894         (__argp_error): Check return value of __asprintf
77895         (__argp_failure): Translate error message
77896
77897         * lib/argp-parse.c: Removed braces around the expansion of N_()
77898
77899 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77900
77901         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77902         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77903         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77904         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77905         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77906         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77907         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77908         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77909         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77910         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77911         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77912         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77913         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77914         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77915         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77916         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77917         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77918         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77919         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77920         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77921         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77922         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77923         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77924         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77925         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77926         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77927         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77928         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77929         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77930         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77931         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77932         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77933         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77934         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77935         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77936         Use an all-permissive copyright notice, recommended by RMS.
77937
77938 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77939
77940         * modules/chdir-long (Depends-on): Remove mempcpy.
77941
77942 2005-01-21  Jim Meyering  <jim@meyering.net>
77943
77944         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77945         same value as for Solaris 9.
77946
77947         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77948         component length.  This included changing the parameter to be
77949         of type `char *' rather than `char const *'.
77950         * lib/chdir-long.h (chdir_long): Update prototype.
77951
77952         * lib/openat.c (fdopendir, fstatat): New functions.
77953         * lib/openat.h: Include headers required for use of DIR and struct
77954         stat.
77955         [AT_SYMLINK_NOFOLLOW]: Define.
77956         (fdopendir, fstatat): Add prototypes.
77957
77958 2005-01-21  Bruno Haible  <bruno@clisp.org>
77959
77960         * modules/classpath: New file.
77961         * MODULES.html.sh (Java): Add classpath.
77962
77963 2005-01-21  Bruno Haible  <bruno@clisp.org>
77964
77965         * lib/classpath.h: New file, from GNU gettext.
77966         * lib/classpath.c: New file, from GNU gettext.
77967
77968 2005-01-20  Simon Josefsson  <jas@extundo.com>
77969
77970         * modules/version-etc-fsf: New file.
77971
77972 2005-01-20  Simon Josefsson  <jas@extundo.com>
77973
77974         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77975         * lib/version-etc.c: Remove version_etc_copyright.
77976         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77977         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77978
77979 2005-01-20  Simon Josefsson  <jas@extundo.com>
77980
77981         * lib/base64.h (isbase64): Add.
77982
77983         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77984         using a unsigned prototype, don't inline.
77985         (base64_decode): Use it.
77986
77987 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77990         it.
77991
77992 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77993
77994         * lib/save-cwd.c (save_cwd): Remove code to support the case
77995         where fchdir is missing or flaky.
77996
77997 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77998
77999         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78000
78001 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78002
78003         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78004         AC_LIBSOURCES now does this.
78005         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78006         with new ullong_max module.
78007
78008 2005-01-19  Bruno Haible  <bruno@clisp.org>
78009
78010         * modules/sh-quote: New file.
78011         * MODULES.html.sh (Executing programs): Add sh-quote.
78012
78013 2005-01-19  Bruno Haible  <bruno@clisp.org>
78014
78015         * lib/sh-quote.h: New file, from GNU gettext.
78016         * lib/sh-quote.c: New file, from GNU gettext.
78017
78018 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         Merge from coreutils.
78021         * m4/ullong_max.m4: New file.
78022         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78023         (gl_MACROS): Assume localeconv exists.
78024
78025 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         Merge changes from coreutils, as described below in several
78028         changelogs dated today.
78029
78030         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78031         (O_DIRECTORY): Remove; not needed here, since "." must be
78032         a directory.  All uses removed.
78033         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78034         universal on Suns, and we also need to test for IRIX.
78035         Revamp code to use 'if' rather than '#if'.
78036         Avoid unnecessary comparison of cwd->desc to 0.
78037
78038         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78039         for known valid error numbers rather than observed invalid ones.
78040
78041 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78042
78043         * modules/ullong_max: New file.
78044
78045         * modules/chdir-long, modules/openat: New files.
78046         * modules/save-cwd (Depends-on): Depend on chdir-long.
78047         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78048
78049 2005-01-18  Jim Meyering  <jim@meyering.net>
78050
78051         Merge from coreutils.
78052         * m4/chdir-long.m4, m4/openat.m4: New files.
78053         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78054         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78055         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78056         is sane and DOES follow symlinks.  Besides, testing 20 different
78057         systems found no broken chown implementations.
78058         Prompted by a change in rsync's copy of this macro.
78059         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78060
78061         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78062
78063         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78064         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78065         NULL-means-set-to-current-time semantics.
78066         Remove temporary file immediately, rather than waiting
78067         for configure's at-exit trap code to do it.
78068
78069 2005-01-18  Jim Meyering  <jim@meyering.net>
78070
78071         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78072
78073         * lib/utimens.c (futimens): Account for the fact that futimes
78074         can also fail with errno == ENOSYS or errno == ENOENT.
78075         Patch from Dmitry V. Levin.
78076
78077         Change the name of the robust chdir function from chdir to chdir_long.
78078         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78079         (restore_cwd): Use chdir_long, not chdir.
78080         * lib/chdir-long.c: Renamed from chdir.c.
78081         * lib/chdir-long.h: Renamed from chdir.h.
78082         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78083         Hurd.
78084
78085 2005-01-18  Bruno Haible  <bruno@clisp.org>
78086
78087         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78088         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78089         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78090         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78091         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78092         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78093         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78094         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78095         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78096         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78097         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78098         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78099         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78100         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78101         Use an all-permissive copyright notice, recommended by RMS.
78102
78103 2005-01-18  Bob Proulx  <bob@proulx.com>
78104
78105         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78106         simplify offsetof() macro construct to avoid compile failure with
78107         native HP-UX 11.0 ANSI C compiler.
78108
78109 2005-01-17  Bruno Haible  <bruno@clisp.org>
78110
78111         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78112         redundant because stpncpy.m4 takes care of it.
78113
78114 2005-01-17  Bruno Haible  <bruno@clisp.org>
78115
78116         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78117
78118 2005-01-17  Bruno Haible  <bruno@clisp.org>
78119
78120         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78121         used.
78122
78123 2005-01-17  Bruno Haible  <bruno@clisp.org>
78124
78125         * lib/fwriteerror.h (fwriteerror): Change specification to include
78126         fclose.
78127         * lib/fwriteerror.c: Include <stdbool.h>.
78128         (fwriteerror): At the end, close the file stream. Record whether
78129         stdout was already closed.
78130
78131 2005-01-17  Bruno Haible  <bruno@clisp.org>
78132
78133         * lib/execute.c (environ): Declare if needed.
78134         * lib/pipe.c (environ): Likewise.
78135         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78136
78137 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78138
78139         * modules/argp: Depend on vsnprintf
78140
78141 2005-01-10  Jim Meyering  <jim@meyering.net>
78142
78143         * modules/closeout (Depends-on): Add atexit.
78144
78145 2005-01-06  Bruno Haible  <bruno@clisp.org>
78146
78147         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78148
78149 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78152         definitions to be after all include files, to avoid collisions.
78153         Problem reported by Bob Proulx.
78154
78155 2005-01-04  Jim Meyering  <jim@meyering.net>
78156
78157         Changes imported from coreutils.
78158         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78159         as the mkstemp template, use a temporary directory and an
78160         8.3-friendly template to avoid trouble on systems like DJGPP.
78161         Reported by Juan M. Guerrero via Stepan Kasal.
78162         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78163         close. Remove the temporary directory right away, rather than waiting
78164         for configure's at-exit trap code to do it.
78165         Suggestion from Stepan Kasal.
78166
78167 2005-01-01  Simon Josefsson  <jas@extundo.com>
78168
78169         * gnulib-tool: Print #include directives when --import'ing.
78170
78171 2004-12-28  Simon Josefsson  <jas@extundo.com>
78172
78173         * tests/test-base64.c: Include required header files.  Remove
78174         unused variables.
78175
78176 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * modules/error (Depends-on): Remove gettext.
78179
78180 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78183         not needed.  This removes a dependency on the gettext module.
78184         [defined _LIBC]: Do not include <libintl.h>; not needed.
78185
78186 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78187
78188         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78189         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78190
78191 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78194         HAVE_DECL_STRTOLD.
78195
78196 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78197
78198         * modules/getdate (Depends-on): Remove alloca-opt.
78199
78200 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78201
78202         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78203
78204 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78205
78206         * lib/argp-parse.c: Include <stddef.h>.
78207         (alignof, alignto): New macros.
78208         (parser_init): Don't assume that void * is aligned sufficiently
78209         for struct option.
78210
78211         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78212         need to extend the stack.
78213         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78214         large.
78215
78216 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78217
78218         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78219
78220 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78221
78222         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78223         (2004-10-24) change.  Apparently this was a false alarm.
78224
78225         * modules/getdate: Depend on alloca-opt, not alloca.
78226
78227 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78228
78229         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78230         Remove now-obsolete comment about AIX.
78231         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78232         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78233         (YYMAXDEPTH): New macro.
78234
78235 2004-12-18  Simon Josefsson  <jas@extundo.com>
78236
78237         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78238
78239 2004-12-18  Bruno Haible  <bruno@clisp.org>
78240
78241         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78242
78243 2004-12-18  Bruno Haible  <bruno@clisp.org>
78244
78245         * lib/fatal-signal.c (fatal_signals): Make non-const.
78246         (init_fatal_signals): New function.
78247         (uninstall_handlers, install_handlers): Ignore signals that were set to
78248         SIG_IGN.
78249         (at_fatal_signal): Call init_fatal_signals.
78250         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78251         SIG_IGN.
78252         Reported by Paul Eggert.
78253
78254 2004-12-18  Bruno Haible  <bruno@clisp.org>
78255
78256         * doc/alloca.texi: New file.
78257         * doc/alloca-opt.texi: New file.
78258
78259 2004-12-17  Jim Meyering  <jim@meyering.net>
78260
78261         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78262         Otherwise, install-sh could exit with improper exit status when
78263         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78264
78265 2004-12-16  Simon Josefsson  <jas@extundo.com>
78266
78267         * tests/test-base64.c: Add license.
78268
78269 2004-12-15  Stepan Kasal  <address@hidden>
78270
78271         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78272
78273 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78274
78275         * modules/getcwd (Files): Add m4/d-ino.m4.
78276         Suggested by Mark D. Baushke.
78277
78278 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         * lib/getdate.y (textint): New member "negative".
78281         (time_zone_hhmm): New function.
78282         Expect 14 shift-reduce conflicts, not 13.
78283         (o_colon_minutes): New rule.
78284         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78285         (yylex): Set the "negative" member of signed numbers.
78286
78287 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         * doc/getdate.texi (Time of day items, Time zone items):
78290         Describe new formats +00:00, UTC+00:00.
78291
78292 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78293
78294         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78295         spurious "-l"s.  Problem reported by Stepan Kasal.
78296
78297 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78298
78299         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78300         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78301
78302 2004-12-04  Simon Josefsson  <jas@extundo.com>
78303
78304         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78305         Vandoorselaere <yoann@prelude-ids.org>.
78306
78307 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78308
78309         Changes imported from coreutils.
78310         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78311         exist.
78312         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78313
78314 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78315
78316         Changes imported from coreutils.
78317         * lib/hard-locale.c: Assume <locale.h> exists.
78318         Include "strdup.h".
78319         (GLIBC_VERSION): New macro.
78320         (hard_locale): Assume setlocale exists.
78321         Rewrite to avoid #ifdef.
78322         Use strdup rather than malloc + strcpy.
78323         * lib/human.c: Assume <locale.h> exists.
78324         (human_readable): Assume localeconv exists.
78325
78326 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78327
78328         * modules/hard-locale (Depends-on): Add strdup.
78329
78330 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78331
78332         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78333         convert T2, not T.  (Imported from libc.)
78334
78335 2004-11-30  Simon Josefsson  <jas@extundo.com>
78336
78337         * modules/restrict (License): Change to LGPL.
78338
78339 2004-11-30  Simon Josefsson  <jas@extundo.com>
78340
78341         * m4/restrict.m4: Add copyright and copying conditions.
78342
78343 2004-11-30  Simon Josefsson  <jas@extundo.com>
78344
78345         * m4/base64.m4: New file.
78346
78347 2004-11-30  Simon Josefsson  <jas@extundo.com>
78348
78349         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78350         base64.
78351
78352         * tests/test-base64.c: New file.
78353
78354         * modules/base64: New file.
78355
78356 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78357
78358         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78359         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78360
78361         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78362
78363 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78366         (__getcwd.c): Don't restore errno; glibc doesn't.
78367         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78368         first, falling back to our code only if its results look suspicious.
78369         Ensure that the resulting buffer is only as large as necessary.
78370
78371         * lib/readutmp.c: Include readutmp.h first.
78372         Include <errno.h>, since readutmp.h no longer does that.
78373         * lib/readutmp.h: Don't include <errno.h>,
78374         <sys/param.h>, <time.h>; not needed to establish interface.
78375         (errno): Remove decl.
78376         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78377         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78378         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78379
78380 2004-11-28  Simon Josefsson  <jas@extundo.com>
78381
78382         * lib/base64.h, base64.c: New file.
78383
78384 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78387
78388 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78391         (Depends-on): Remove pathmax, same.  Add mempcpy.
78392         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78393         (Makefile.am): Append getcwd.h to lib_SOURCES.
78394         (Include): Add getcwd.h.
78395         (Maintainer): Change from Jim Meyering to "all, glibc",
78396         since getdate now uses intended-for-glibc code.
78397         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78398         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78399
78400 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78401
78402         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78403         HP's ANSI C compiler.
78404         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78405         Declaring int functions causes warnings on some modern systems and
78406         shouldn't be needed to compile on ancient ones.
78407         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78408         defined.
78409
78410         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78411         with the following changes.
78412         (__set_errno): Parenthesize properly.
78413         Include <stdbool.h>.
78414         (MIN, MAX, MATCHING_INO): New macros.
78415         (__getcwd): Define with prototype, not K&R form.
78416         Use heuristics to allocate default buffer on stack if possible.
78417         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78418         behavior, and to avoid the PATH_MAX limit when computing
78419         ../../../../...
78420         Use MATCHING_INO to compare inode number to file.
78421         Check for arithmetic overflow in size calculations.
78422         Fix bug in reallocation of dot array that caused getcwd to fail
78423         on directories nested deeper than 75.
78424         Be more careful about saving errno on error.
78425         Do not use realloc; use only free+malloc, as this is a bit
78426         more flexible and avoids a needless copy operation.
78427         Do not inspect st_dev and st_ino for symbolic links; POSIX
78428         doesn't specify the latter.
78429         Check for closedir errors.
78430         Avoid needless casts.
78431         Use "#ifdef weak_alias" around weak_alias, to be like other
78432         glibc code.
78433         The following changes to getcwd.c have effect only when used in
78434         gnulib; they have no effect inside glibc proper.
78435         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78436         as alloca isn't used.
78437         (alloca, __alloca): Likewise.
78438         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78439         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78440         unconditionally, as gnulib assumes C89 or better.
78441         Do not include <sys/param.h>.
78442         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78443         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78444         better.
78445         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78446         Include <dirent.h> in a way that is compatible with modern Autoconf.
78447         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78448         New macros, if not already defined.
78449         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78450         Use "_LIBC", not "defined _LIBC", for consistency.
78451         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78452         a mempcpy module.
78453         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78454         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78455         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78456         credit only to Jim Meyering and adjust the copyright dates.
78457         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78458         <stdlib.h>, <unistd.h>, "pathmax.h".
78459         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78460         (INITIAL_BUFFER_SIZE): Remove.
78461         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78462
78463 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78466         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78467         Use the _ONCE methods, for efficiency.
78468         Check for fcntl.h.  In test program, include <errno.h>
78469         and <fcntl.h> if available.  Remove old K&R cruft from
78470         test program.  Check for common errors in GNU/Linux,
78471         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78472         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78473         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78474         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78475         name accordingly.
78476         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78477         accommodate new getcwd.c.
78478         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78479         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78480         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78481         that's all we need now.
78482
78483 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78484
78485         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78486         argp-parse.c depends on getopt internals, that means we should
78487         always use our getopt, to be on the safe side.
78488         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78489         order not to spoil the result of an eventual previous invocation
78490         of gl_GETOPT_SUBSTITUTE.
78491
78492 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78493
78494         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78495         redefinition warnings. To avoid them, include the defines
78496         in `#if !defined __need_getopt ... #endif'. The only place
78497         where __getopt_argv_const is used is in definitions
78498         of getopt_long and getopt_long_only below, which are as well
78499         protected by `#ifndef __need_getopt'.
78500         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78501         __need_getopt after including <stdio.h> and <unistd.h> These
78502         headers might have defined it.
78503
78504 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78505
78506         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78507
78508 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78511         (futimens): New function, which uses futimes if available.
78512         (futimens, utimens): Support timespec==NULL, with same semantics
78513         as utime and utimens.
78514         * lib/utimens.h (futimens): New decl.
78515
78516 2004-11-23  Jim Meyering  <jim@meyering.net>
78517
78518         * lib/getopt_.h: Remove trailing blanks.
78519
78520 2004-11-23  Jim Meyering  <jim@meyering.net>
78521
78522         * lib/__fpending.c: Add comment.
78523
78524 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * modules/canonicalize (Depends-on): Add xreadlink.
78527         Problem reported by James Youngman.
78528
78529 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78532         New macros.
78533         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78534         optopt): Use them instead of invoking ## directly; otherwise, the
78535         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78536
78537 2004-11-19  Bruno Haible  <bruno@clisp.org>
78538
78539         * lib/strtok_r.c: Move comments from here...
78540         * lib/strtok_r.h: ... to here.
78541
78542 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78545         implementations that mishandle size_t overflow.
78546
78547 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78550         might fail.  Problem reported by Yoann Vandoorselaere.
78551         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78552         implementations that mishandle size_t overflow.
78553
78554 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * modules/canon-host (Depends-on): Add strdup.
78557
78558 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78561
78562 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78563
78564         * lib/canon-host.c: Include "strdup.h".
78565         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78566         Use strdup instead of malloc/strcpy to duplicate strings.
78567
78568         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78569         (human_space_before_unit): New constant.
78570         * lib/human.c (human_readable): Support it.
78571
78572         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78573         (xgetcwd): Set errno correctly when failing.
78574         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78575         the failure is actually due to a PATH_MAX problem.
78576
78577         Further getopt changes to make it more likely that glibc will
78578         buy the changes back.
78579         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78580         (getopt): Use it, so to preserve glibc semantic
78581         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78582         when compiling for libc.
78583         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78584         (getopt_long, getopt_long_only): Use it.
78585
78586         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78587         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78588         (getopt): Argv is now char * const *, as per standard.
78589         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78590         not char *__getopt_argv_const *.
78591         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78592         _getopt_long_only_r): Likewise.
78593         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78594         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78595         _getopt_long_r, _getopt_long_only_r): Likewise.
78596         * lib/getopt_.h (__getopt_argv_const): Remove.
78597         (getopt): Argv is now char * const *, as per standard.
78598
78599         * lib/getdate.y (tORDINAL): New token.
78600         (day, relunit): Allow it for relative times.
78601         (relative_time_table): Use tORDINAL for ordinals.
78602
78603 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78604
78605         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78606         Document that "second" isn't allowed as an ordinal number.
78607
78608 2004-11-16  Jim Meyering  <jim@meyering.net>
78609
78610         * modules/closeout (Depends-on): Add fpending.
78611
78612 2004-11-15  Jim Meyering  <jim@meyering.net>
78613
78614         * lib/closeout.c: Include "__fpending.h" once again.
78615         Include <stdbool.h>.
78616         (close_stdout): Don't fail just because stdout was closed initially,
78617         since some programs don't write to stdout in the normal course of
78618         operation (other than --version and --help), and we don't want this
78619         function to make e.g. `touch file >&-' fail.
78620         But do fail if it was closed and someone has tried to write to it.
78621         E.g., `printf foo >&-' must fail.
78622
78623 2004-11-13  Jim Meyering  <jim@meyering.net>
78624
78625         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78626
78627 2004-11-12  Simon Josefsson  <jas@extundo.com>
78628
78629         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78630         small doc fix is still pending.
78631
78632 2004-11-11  Simon Josefsson  <jas@extundo.com>
78633
78634         * modules/strtok_r: New file.
78635
78636         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78637         strtok_r.
78638
78639 2004-11-11  Simon Josefsson  <jas@extundo.com>
78640
78641         * m4/strtok_r.m4: New file.
78642
78643         * m4/getopt.m4: Replace opterr.
78644
78645 2004-11-11  Simon Josefsson  <jas@extundo.com>
78646
78647         * lib/strtok_r.h, strtok_r.c: New file.
78648
78649 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78652         of replacing opterr, getopt, etc.  This should handle the
78653         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78654
78655 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78658         we can stop lying to compilers about the constness of argv when we
78659         are compiled outside glibc.
78660         (getopt, getopt_long, getopt_long_only): Use it.
78661         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78662         _getopt_internal, getopt): Likewise.
78663         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78664         _getopt_long_only_r): Likewise.
78665         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78666         _getopt_long_r, _getopt_long_only_r): Likewise.
78667
78668         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78669         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78670         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78671         the other external symbols.
78672         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78673         declaration, since the above renaming now works around collisions.
78674
78675 2004-11-11  Jim Meyering  <jim@meyering.net>
78676
78677         * lib/linebreak.c: Remove trailing blanks.
78678         * lib/alloca_.h: Likewise.
78679         * lib/acosl.c: Likewise.
78680         * lib/euidaccess.c: Likewise.
78681         * lib/allocsa.h: Likewise.
78682
78683 2004-11-10  Simon Josefsson  <jas@extundo.com>
78684
78685         * m4/getaddrinfo.m4: New file.
78686
78687 2004-11-10  Simon Josefsson  <jas@extundo.com>
78688
78689         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78690
78691 2004-11-10  Simon Josefsson  <jas@extundo.com>
78692
78693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78694         getaddrinfo.
78695
78696         * modules/getaddrinfo: New file.
78697
78698 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78699
78700         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78701
78702 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78703
78704         * lib/mktime.c (SHR): New macro, which is a portable
78705         substitute for >> that should work even on Crays.
78706         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78707         Problem reported by Mark D. Baushke in
78708         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78709         * lib/getdate.y (SHR): Likewise.
78710         (tm_diff): Use it.
78711         * lib/strftime.c (SHR): Likewise.
78712         (tm_diff): Use it.
78713         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78714         quote_these_too, so that right shifts are well defined.  All uses
78715         changed.
78716
78717 2004-11-10  Jim Meyering  <jim@meyering.net>
78718
78719         Ensure that no close failure goes unreported.
78720         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78721         return early when it seems there's nothing to flush.
78722         Don't include __fpending.h.
78723
78724 2004-11-10  Jim Meyering  <jim@meyering.net>
78725
78726         * modules/closeout (Depends-on): Remove fpending.
78727
78728 2004-11-10  Jim Meyering  <jim@meyering.net>
78729
78730         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78731
78732 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78735         gl_FUNC_STRFTIME.
78736         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78737         and AC_REQUIRE when possible, to avoid duplicate checks.
78738         Check for <wchar.h>.
78739
78740 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78743
78744 2004-11-09  Bruno Haible  <bruno@clisp.org>
78745
78746         * m4/sockpfaf.m4: New file.
78747
78748 2004-11-05  Bruno Haible  <bruno@clisp.org>
78749
78750         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78751         Reported by Mark D. Baushke <mdb@cvshome.org>.
78752
78753 2004-11-04  Bruno Haible  <bruno@clisp.org>
78754
78755         2004-09-11  Bruno Haible  <bruno@clisp.org>
78756                 * allocsa.valgrind: New file.
78757         2004-02-06  Bruno Haible  <bruno@clisp.org>
78758                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78759                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78760                 Reported by Christopher Seip <chris.seip@hp.com>.
78761
78762 2004-11-04  Bruno Haible  <bruno@clisp.org>
78763
78764         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78765         (Makefile.am): Distribute it.
78766
78767 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78770         with errno == ERANGE if the buffer is too small.
78771         Problem reported by Mark D. Baushke.
78772
78773 2004-11-03  Albert Chin  <china@thewrittenword.com>
78774             Paul Eggert  <eggert@cs.ucla.edu>
78775
78776         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78777         equivalent, substitute $ac_type for equivalent type rather than
78778         blindly using uint32_t *always* which won't work if uint32_t is not
78779         available.  Define _UINT32_T to work around typedef of uint32_t if
78780         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78781         2.5.1.
78782
78783 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * m4/jm-macros.m4: Sync from coreutils.
78786         (gl_MACROS): Check for mbrlen, for pathchk.
78787         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78788
78789 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78790
78791         * lib/xreadlink.c (MAXSIZE): New macro.
78792         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78793         size does not exceed MAXSIZE.  Avoid cast.
78794         As suggested by Mark D. Baushke in
78795         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78796         if readlink fails with buffer size just under MAXSIZE, try again
78797         with MAXSIZE.
78798
78799 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78802
78803 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78804         and  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78807         (get_date): Overparenthesize to avoid GCC warning.
78808
78809 2004-11-02  Bruno Haible  <bruno@clisp.org>
78810
78811         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78812         returns void.
78813
78814 2004-11-02  Bruno Haible  <bruno@clisp.org>
78815
78816         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78817         function returns void.
78818
78819 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78822         fflush_unlocked, flockfile, funlockfile, funlockfile,
78823         fputs_unlocked, putc_unlocked.
78824
78825 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78828         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78829         already declared.
78830
78831 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         * modules/getdate (Files): Add doc/getdate.texi.
78834         (Depends-on): Add setenv, xalloc.
78835
78836 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * lib/getdate.y: Add support for TZ="foo" within a date string.
78839         Fix some bugs near time_t boundaries.  Reject dates with
78840         out-of-range components, e.g., "Sept 31".
78841         Include <stdlib.h>, "setenv.h", "xalloc.h".
78842         (ISDIGIT_LOCALE): Remove; unused.
78843         Note that the TZ and time functions used here are not reentrant.
78844         (mktime_ok, get_tz): New functions.
78845         (TZBUFSIZE): New constant.
78846         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78847         This requires that we sometimes generate our own TZ="XXX..." setting.
78848
78849 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78850
78851         * doc/getdate.texi: New file, from coreutils with modifications for
78852         the new TZ parsing.
78853
78854 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78855
78856         * lib/mktime.c (not_equal_tm): Remove redundant check.
78857
78858 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * modules/regex (lib_SOURCES): Add regex.c.
78861         Reported by James Youngman in
78862         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78863
78864 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78865
78866         * lib/getdate.y: Use Bison 1.875 features, and some minor
78867         code cleanups.  This change does not affect semantics.
78868         Don't include <stdlib.h>; no longer needed.
78869         Don't include unlocked-io.h; only the "#if TEST" code uses
78870         stdio, and performance isn't crucial there.
78871         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78872         Bison 1.875 features as described below.
78873         All uses of "PC." replaced by "pc->".
78874         (YYSTYPE): Add a forward declaration.
78875         (yylex, yyerror): Use full prototypes in forward decls.
78876         Use "%pure-parser" rather than obsolescent "%pure_parser".
78877         Use %parse-param and %lex-param instead of obsolescent
78878         YYPARSE_PARAM and YYLEX_PARAM.
78879         (meridian_table, month_and_day_table, time_units_table,
78880         relative_time_table, time_zone_table, military_table,
78881         lookup_zone, lookup_word, get_date):
78882         Use NULL instead of 0 where appropriate.
78883         (to_hour): Avoid abort (), to avoid a dependency on
78884         stdlib.h.
78885         (yyerror, yylex): Now accepts parser_control * arg.
78886         (main) [TEST]: Use '\0' rather than 0 for char.
78887
78888 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78891
78892 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78895         It's now the caller's responsibility to handle the case where
78896         !HAVE_GETPAGESIZE && !defined getpagesize.
78897
78898         * lib/mktime.c (leapyear): Arg is long int, not int.
78899
78900 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78903
78904 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78905
78906         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78907         missing.  Problem reported by James Youngman.
78908
78909 2004-10-16  Simon Josefsson  <jas@extundo.com>
78910
78911         * gnulib-tool: Fix comments.  Fix parse problem.
78912         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78913
78914 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78917         implementation of getopt_long.  Problem reported by Alexander Taler in:
78918         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78919
78920 2004-10-15  Bruno Haible  <bruno@clisp.org>
78921
78922         * gnulib-tool: Untabify. Initialize supplied_libname.
78923         (func_usage): More homogenous output.
78924         (func_modules_transitive_closure, func_modules_to_filelist,
78925         func_emit_lib_Makefile_am): New functions.
78926         (func_import): New function, extracted from big case statement. Use
78927         func_get_license, func_modules_transitive_closure,
78928         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78929         opt_lgpl. Don't use test -a, as it's not portable.
78930         (func_create_testdir): Use func_modules_transitive_closure,
78931         func_modules_to_filelist, func_emit_lib_Makefile_am.
78932
78933 2004-10-15  Bruno Haible  <bruno@clisp.org>
78934
78935         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78936
78937 2004-10-15  Bruno Haible  <bruno@clisp.org>
78938
78939         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78940         the portions belonging to each module.
78941         Suggested by Derek Robert Price <derek@ximbiot.com>.
78942
78943 2004-10-12  Simon Josefsson  <jas@extundo.com>
78944
78945         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78946         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78947         to real functions.
78948
78949 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78950
78951         * modules/vsnprintf: New file.
78952
78953 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78954
78955         * m4/vsnprintf.m4: New file.
78956
78957 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78958
78959         * lib/vsnprintf.h: New file.
78960         * lib/vsnprintf.c: New file.
78961
78962 2004-10-11  Bruno Haible  <bruno@clisp.org>
78963
78964         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78965         vsnprintf.
78966
78967 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78970
78971 2004-10-07  Bruno Haible  <bruno@clisp.org>
78972
78973         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78974         fits into the provided buffer.
78975
78976 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * lib/diacrit.c, diacrit.h: Add GPL notice.
78979
78980         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78981         notice.
78982         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78983         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78984         This avoids a potential constant-folding bug.
78985
78986 2004-10-05  Bruno Haible  <bruno@clisp.org>
78987
78988         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78989         for the declaration of strsep.
78990
78991 2004-10-05  Bruno Haible  <bruno@clisp.org>
78992
78993         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78994
78995 2004-10-04  Simon Josefsson  <jas@extundo.com>
78996
78997         * modules/memmem: New file.
78998         * tests/test-memmem.c: New file.
78999         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79000
79001 2004-10-04  Simon Josefsson  <jas@extundo.com>
79002
79003         * m4/memmem.m4: New file.
79004
79005 2004-10-04  Simon Josefsson  <jas@extundo.com>
79006
79007         * lib/memmem.h: New file.
79008         * lib/memmem.c: New file, taken from glibc.
79009
79010 2004-10-04  Simon Josefsson  <jas@extundo.com>
79011
79012         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79013         '#ifdef USE_UNLOCKED_IO'.
79014
79015 2004-10-04  Simon Josefsson  <jas@extundo.com>
79016
79017         * config/srclist.txt: Add memmem from glibc.
79018
79019 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79020
79021         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79022
79023         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79024         modules/exclude, modules/getdate, modules/getline,
79025         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79026         modules/getusershell, modules/linebuffer, modules/md5,
79027         modules/mountlist, modules/posixtm, modules/readtokens,
79028         modules/readutmp, modules/regex, modules/sha1,
79029         modules/version-etc, modules/yesno:
79030         Remove dependency on unlocked-io.
79031
79032 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79035
79036         * m4/unlocked-io.m4: Add copyright notice.
79037         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79038
79039 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79040
79041         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79042         * lib/xmalloc.c (xmemdup): Likewise.
79043         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79044         XFREE): Remove these long-obsolescent macros.
79045         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79046         * lib/xstrdup.c: Remove.
79047
79048         * lib/regex.c (re_comp): Cast gettext return value to char *,
79049         Problem reported by Martin Neitzel via Mark D. Baushke.
79050
79051 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79054         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79055         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79056         regex.c, sha1.c, version-etc.c, yesno.c:
79057         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79058         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79059         the includer's responsibility.
79060
79061         Sync from coreutils.
79062
79063         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79064         points to the start of a string, as the C Standard says the
79065         resulting behavior is undefined.
79066
79067         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79068         simple -> simple_backups, numbered_existing ->
79069         numbered_existing_backups, numbered -> numbered_backups
79070         to avoid shadowing problems.  All uses changed.
79071         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79072         * lib/backupfile.c (check_extension, numbered_backup):
79073         Rename locals to avoid shadowing 'basename'.
79074         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79075         once.
79076
79077         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79078         * lib/.cvsignore: Add getopt.h.
79079
79080 2004-10-04  Bruno Haible  <bruno@clisp.org>
79081
79082         * modules/README: New file.
79083         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79084         not a module.
79085
79086 2004-10-02  Jim Meyering  <jim@meyering.net>
79087
79088         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79089
79090 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79091
79092         * modules/strsep: New file.
79093
79094 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79095
79096         * m4/strsep.m4: New file.
79097
79098 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79099
79100         * lib/strsep.h: New file.
79101         * lib/strsep.c: New file.
79102
79103 2004-10-01  Simon Josefsson  <jas@extundo.com>
79104
79105         * lib/snprintf.c (snprintf): Handle size==0.
79106
79107 2004-10-01  Simon Josefsson  <jas@extundo.com>
79108             Bruno Haible  <bruno@clisp.org>
79109
79110         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79111         (snprintf): Declare 'args'.
79112
79113 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * lib/snprintf.c: Remove comments as to why each header is needed.
79116
79117 2004-10-01  Bruno Haible  <bruno@clisp.org>
79118
79119         * MODULES.html.sh: Add strsep.
79120
79121 2004-09-30  Simon Josefsson  <jas@extundo.com>
79122
79123         * modules/snprintf: New file.
79124
79125 2004-09-30  Simon Josefsson  <jas@extundo.com>
79126
79127         * m4/snprintf.m4: New file.
79128
79129 2004-09-30  Simon Josefsson  <jas@extundo.com>
79130
79131         * lib/snprintf.h, lib/snprintf.c: New files.
79132
79133 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79134
79135         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79136         (hol_entry_help): Never translate an empty string.
79137         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79138         * lib/argp.h (OPTION_NO_TRANS): New option.
79139
79140 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79141
79142         * modules/argp (Maintainer): Replace Simon Josefsson
79143         by Sergey Poznyakoff.
79144
79145 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79148         changes merged back into glibc.
79149
79150 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79151
79152         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79153
79154 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79155
79156         * lib/xvasprintf.c: Include xalloc.h.
79157         (xvasprintf): Use xalloc_die, not xmalloc_die.
79158
79159 2004-09-29  Bruno Haible  <bruno@clisp.org>
79160
79161         * modules/alloca-opt: New file, derived from modules/alloca.
79162         * modules/allocsa: Depend on alloca-opt instead of alloca.
79163         * modules/setenv: Likewise.
79164         * modules/vasnprintf: Likewise.
79165         * MODULES.html.sh: Add alloca-opt.
79166
79167 2004-09-28  Simon Josefsson  <jas@extundo.com>
79168
79169         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79170         LGPL, and to replace license template from GPL to LGPL.
79171
79172 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         * modules/dummy: Change license to LGPL.
79175
79176 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79179
79180 2004-09-24  Simon Josefsson  <jas@extundo.com>
79181
79182         * modules/minmax (License): Change from GPL to LGPL.
79183
79184 2004-09-23  Simon Josefsson  <jas@extundo.com>
79185
79186         * gnulib-tool (--import): Typo.
79187
79188 2004-09-23  Simon Josefsson  <jas@extundo.com>
79189
79190         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79191
79192 2004-09-22  Bruno Haible  <bruno@clisp.org>
79193
79194         * modules/*: Add 'License' field.
79195         * gnulib-tool: Accept --extract-license option.
79196         (func_get_license): New function.
79197
79198 2004-09-21  Bruno Haible  <bruno@clisp.org>
79199
79200         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79201         Reported by Simon Josefsson.
79202
79203 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79204
79205         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79206         gl_AC_TYPE_LONG_LONG.
79207
79208 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79211
79212 2004-09-18  Simon Josefsson  <jas@extundo.com>
79213         and  Paul Eggert  <eggert@cs.ucla.edu>
79214
79215         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79216         calls with autoreconf.  Define GL_LIB.
79217
79218 2004-09-14  Karl Berry  <karl@gnu.org>
79219
79220         * config/srclist.txt: unsync setenv.c, sigh.
79221
79222 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79223
79224         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79225         Problem reported by Bruno Haible in:
79226         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79227
79228 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * config/srclist.txt: Comment out argp-pvh.c.
79231
79232 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79233
79234         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79235         in case some system header has #define'd it.  Problem reported by
79236         Soeren D. Schulze in
79237         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79238
79239 2004-09-09  Karl Berry  <karl@gnu.org>
79240
79241         * regex.[ch]: delete from the root.  These were supposed to be
79242                 synced with emacs cvs, but this has not happened for about
79243                 a year, and anyway nothing else uses emacs regex.[ch].
79244                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79245                 lib/regex[.ch] is untouched.
79246
79247 2004-09-09  Bruno Haible  <bruno@clisp.org>
79248
79249         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79250
79251 2004-09-09  Bruno Haible  <bruno@clisp.org>
79252
79253         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79254         modifications.
79255         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79256
79257 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79258
79259         * modules/xvasprintf: New file.
79260         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79261
79262 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79263
79264         * lib/xvasprintf.h: New file.
79265         * lib/xvasprintf.c: New file.
79266         * lib/xasprintf.c: New file.
79267
79268 2004-09-08  Bruno Haible  <bruno@clisp.org>
79269
79270         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79271
79272 2004-09-08  Bruno Haible  <bruno@clisp.org>
79273
79274         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79275         length is > INT_MAX.
79276         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79277         more.
79278
79279 2004-09-08  Bruno Haible  <bruno@clisp.org>
79280
79281         * lib/stdint_.h: New file, taken from GNU clisp.
79282
79283 2004-09-08  Bruno Haible  <bruno@clisp.org>
79284             Oskar Liljeblad  <oskar@osk.mine.nu>
79285
79286         * modules/stdint: New file.
79287         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79288
79289 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79290
79291         Import from coreutils.
79292         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79293         strings on unbounded length.  alloca's performance benefits aren't
79294         that important here.
79295         (V_STRDUP): Remove.
79296         (parse_with_separator): New function, with most of the internals
79297         of the old parse_user_spec.  Allow user to omit both user and group,
79298         for compatibility with FreeBSD.
79299         Clone only the user name, not the entire spec.
79300         Do not set *uid, *gid unless entirely successful.
79301         Avoid memory leak in some failing cases.
79302         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79303         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79304         (parse_user_spec): Rewrite to use parse_with_separator.
79305
79306 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         * modules/userspec: Don't depend on alloca.
79309
79310 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79313
79314 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79315
79316         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79317         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79318         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79319
79320 2004-08-16  Simon Josefsson  <jas@extundo.com>
79321
79322         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79323         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79324         Add --dry-run for --import.
79325         Let user provided command line parameters override configure.ac
79326         settings.
79327
79328 2004-08-12  Simon Josefsson  <jas@extundo.com>
79329
79330         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79331         as discussed with Paul Eggert in threads rooted at
79332         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79333         and
79334         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79335         Before, the test was empty, and relied on ELIDE_CODE in source
79336         code.)
79337         (gl_PREREQ_GETOPT): New macro.
79338         (gl_GETOPT): Use them.
79339
79340 2004-08-12  Simon Josefsson  <jas@extundo.com>
79341
79342         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79343         * lib/getopt_.h: Renamed from getopt.h.
79344
79345 2004-08-12  Simon Josefsson  <jas@extundo.com>
79346
79347         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79348         Change default library name from libfoo to libgnu.
79349         Now, if you have a configure.ac that says:
79350                 gl_SOURCE_BASE(gl)
79351                 gl_M4_BASE(gl/m4)
79352                 gl_MODULES(error getopt etcetera)
79353                 gl_INIT
79354         you can import all you need by running:
79355                 ../gnulib/gnulib-tool --import
79356
79357         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79358         (Makefile.am): Rewrite, use logic from argz.
79359         (Include): Use <getopt.h> instead of "getopt.h".
79360
79361 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * modules/argp (Files): Add m4/unlocked-io.m4.
79364         (Depends-on): Add extensions.
79365
79366 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79367
79368         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79369         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79370         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79371         Check for program_invocation_name, program_invocation_short_name,
79372         flockfile, funlockfile, features.h, _getopt_long_only_r.
79373
79374 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79377         its complicated substitute.
79378         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79379         and program_invocation_name.
79380         (__argp_basename) [!_LIBC]: Remove; the only use was
79381         replaced by its body.
79382         (__argp_short_program_name): Change condition from
79383         !defined __argp_short_program_name to
79384         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79385         to match argp-namefrob.h.
79386         (__argp_failure): Don't assume strerror_r returns char *.
79387         * lib/argp-parse.c (N_): Define unconditionally.
79388         (argp_default_options): Fill out initializers with 0 to avoid
79389         gcc warnings.
79390
79391 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79392
79393         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79394         getopt1.c.
79395
79396 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         Merge from coreutils.
79399
79400         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79401
79402         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79403         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79404
79405 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79406
79407         Merge from coreutils.
79408
79409         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79410         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79411         for Reliant Unix 5.43.
79412
79413         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79414         (union fooround): Use uintmax_t, not long int.
79415         The rest is a merge from libc:
79416         [defined _LIBC]: Include <shlib-compat.h>.
79417         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79418
79419         * lib/settime.c (settime): Recode to avoid warning with
79420         Sun Forte C 6U2.
79421
79422         * lib/strverscmp.c: Convert to UTF-8.
79423
79424 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79427         m4/uintmax_t.m4.
79428
79429 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * modules/xalloc-die: New file.
79432         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79433
79434         * modules/md5 (Files): Add m4/uint32_t.m4.
79435         * modules/sha1: Renamed from modules/sha.
79436         (Files):
79437         Rename lib/sha.h to lib/sha1.h.
79438         Rename lib/sha.c to lib/sha1.c.
79439         Rename m4/sha.m4 to m4/sha1.m4.
79440         (lib_SOURCES): Likewise.
79441         (configure.ac): Rename gl_SHA to gl_SHA1.
79442         (Include): sha.h -> sha1.h.
79443
79444 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79447         * m4/sha1.m4: Renamed from sha.m4.
79448         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79449
79450 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * lib/obstack.h (obstack_empty_p):
79453         Don't assume that chunk->contents is suitably aligned.
79454         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79455         Likewise. Problem reported by Benno in
79456         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79457
79458         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79459         readable.  This could be improved further but it'd take some work.
79460
79461 2004-08-08  Simon Josefsson  <jas@extundo.com>
79462
79463         * modules/xgethostname (Depends-on): Remove exit and error (not
79464         used).
79465
79466         * modules/getpass-gnu: Add getpass.h.
79467         (Depends-on): Add stdbool.
79468         * modules/getpass: Add getpass.h.
79469
79470 2004-08-08  Simon Josefsson  <jas@extundo.com>
79471
79472         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79473         Check getpass declaration.
79474
79475 2004-08-08  Simon Josefsson  <jas@extundo.com>
79476
79477         * lib/xgethostname.c: Don't include error.h (not used).
79478
79479         * lib/getpass.h: Add.
79480         * lib/getpass.c: Include getpass.h first.
79481
79482 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         * lib/xalloc-die.c: New file.
79485         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79486         All uses removed.
79487         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79488         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79489         xalloc-die.c.
79490         (_, N_, xalloc_die): Move to xalloc-die.c.
79491         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79492         so that we needn't mess with xalloc_msg_memory_exhausted.
79493
79494         * lib/sha1.h: Renamed from sha.h.
79495         (SHA1_H): Renamed from _SHA_H.
79496         (sha1_ctx): Renamed from sha_ctx.
79497         (sha1_init_ctx): Renamed from sha_init_ctx.
79498         (sha1_process_block): Renamed from sha_process_block.
79499         (sha1_process_bytes): Renamed from sha_process_bytes.
79500         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79501         (sha1_read_ctx): Renamed from sha_read_ctx.
79502         (sha1_stream): Renamed from sha_stream.
79503         (sha1_buffer): Renamed from sha_buffer.
79504         * lib/sha1.c: Likewise; renamed from sha.c.
79505         Do not include <sys/types.h>.
79506         Include <stddef.h> rather than <stdlib.h>.
79507
79508 2004-08-08  Bruno Haible  <bruno@clisp.org>
79509
79510         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79511         FILESYSTEM_PREFIX_LEN.
79512         * lib/progreloc.c: Likewise.
79513         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79514
79515 2004-08-06  Simon Josefsson  <jas@extundo.com>
79516
79517         * modules/progname (Depends-on): Don't depend on stdbool.
79518
79519 2004-08-06  Simon Josefsson  <jas@extundo.com>
79520
79521         * modules/getsubopt: New file.
79522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79523         getsubopt.
79524
79525 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79526
79527         More merge from coreutils.
79528
79529         * m4/utimens.m4, m4/utimecmp.m4: New files.
79530         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79531         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79532         prereq.m4, sha.m4: Import changes from coreutils.
79533
79534 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79535
79536         More merge from coreutils.
79537         * modules/raise, modules/readtokens0, modules/utimens:
79538         * modules/utimecmp, module/xnanosleep: New files.
79539         * modules/strftime: Add lib/strftime.h.
79540         Change include from <time.h> to "strftime.h".
79541         * modules/yesno: Add lib/yesno.h.
79542         * modules/backupfile: Remove lib/addext.c.
79543         * modules/euidaccess: Add stat-macros.h.
79544         * modules/canonicalize, modules/euidaccess,
79545         modules/filemode, modules/lchown, modules/makepath,
79546         modules/rmdir, modules/stat: Likewise.
79547
79548 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79549
79550         Merge from tar.
79551         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79552         SIZE_MAX is a valid preprocessor constant.
79553         (__argp_basename): Change from "#ifndef _LIBC"
79554         to "#ifndef __argp_short_program_name", so that
79555         we don't compile these functions for tar.
79556
79557         More merges from coreutils.
79558         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79559         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79560         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79561         * lib/addext.c: Remove; no longer needed.
79562         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79563         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79564         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79565         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79566         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79567         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79568         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79569         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79570         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79571         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79572         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79573         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79574         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79575         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79576         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79577         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79578         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79579         Import changes from coreutils.
79580
79581 2004-08-05  Simon Josefsson  <jas@extundo.com>
79582
79583         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79584
79585 2004-08-05  Simon Josefsson  <jas@extundo.com>
79586
79587         * m4/getsubopt.m4: New file.
79588
79589 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         Merge from coreutils.
79592
79593         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79594         * m4/getcwd-path-max.m4: New files.
79595
79596         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79597         FILESYSTEM_PREFIX_LEN ->
79598         FILE_SYSTEM_PREFIX_LEN.
79599         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79600         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79601         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79602         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79603
79604         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79605         prerequisite modules now handle the DOS stuff.
79606         Don't check for unistd.h.
79607
79608 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         Merge from coreutils.
79611
79612         * lib/.gdb-history: Remove; this doesn't belong here.
79613
79614         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79615         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79616         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79617         * lib/getcwd.c: New files.
79618
79619         * lib/dirname.h: Include <stdbool.h>.
79620         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79621         for consistency with POSIX terminology.  All uses changed.
79622         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79623         (strip_trailing_slashes): Use bool for booleans.
79624         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79625
79626         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79627         sometimes returns a positive errno value even when it succeeds.
79628         (print_errno_message) [!LIBC]: Fall back on strerror if
79629         __strerror_r fails.
79630
79631         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79632         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79633         (longest_relative_suffix): New function.
79634         (path_concat): Use it.  Assume first argument is not NULL.
79635         Port to DOS.  Omit redundant separators.
79636         Report an error instead of returning NULL.
79637         Use mempcpy instead of memcpy.
79638         (xpath_concat): Remove: not declared or used.
79639
79640         * lib/same.h: Include <stdbool.h>
79641         (same_name): Return bool, not int.
79642         * lib/same.c (same_name): Likewise.
79643         (errno): Don't declare; we assume C89 or better now.
79644
79645         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79646         if not already defined.
79647
79648         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79649         * lib/dup-safer.c (errno): Likewise.
79650
79651 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         Merge from coreutils.
79654         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79655         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79656         * modules/path-concat: Don't depend on strdup.
79657
79658 2004-08-03  Simon Josefsson  <jas@extundo.com>
79659
79660         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79661         * lib/progname.h: Don't include stdbool.h.
79662
79663 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79666         * MODULES.html.sh (func_all_modules): Remove fatal.
79667
79668 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79669
79670         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79671
79672 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79673
79674         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79675         working.
79676
79677 2004-08-02  Simon Josefsson  <jas@extundo.com>
79678
79679         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79680         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79681         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79682
79683 2004-08-01  Simon Josefsson  <jas@extundo.com>
79684
79685         * lib/xgetdomainname.c: Include stdlib.h, for free().
79686
79687 2004-07-19  Bruno Haible  <bruno@clisp.org>
79688
79689         * MODULES.html.sh (func_all_modules): Add dummy.
79690
79691 2004-07-16  Simon Josefsson  <jas@extundo.com>
79692
79693         * modules/dummy: New file.
79694
79695 2004-07-16  Simon Josefsson  <jas@extundo.com>
79696
79697         * lib/dummy.c: New file.
79698
79699 2004-07-16  Bruno Haible  <bruno@clisp.org>
79700
79701         * lib/backupfile.h: Add extern "C" for C++.
79702         * lib/closeout.h: Likewise.
79703         * lib/copy-file.h: Likewise.
79704         * lib/findprog.h: Likewise.
79705         * lib/full-write.h: Likewise.
79706         * lib/pathname.h: Likewise.
79707         * lib/progname.h: Likewise.
79708         * lib/stpcpy.h: Likewise.
79709         * lib/stpncpy.h: Likewise.
79710         * lib/strcase.h: Likewise.
79711         * lib/strstr.h: Likewise.
79712         * lib/xalloc.h: Likewise.
79713
79714         * lib/mbswidth.h: Add extern "C" for C++.
79715         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79716
79717 2004-07-13  Robert Millan  <robertmh@gnu.org>
79718
79719         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79720
79721 2004-07-09  Simon Josefsson  <jas@extundo.com>
79722
79723         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79724         failed without this.)
79725
79726 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * modules/chown (Files): Add lib/fchown-stub.c, since
79729         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79730
79731 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * lib/fchown-stub.c: New file.
79734
79735 2004-06-24  Jim Meyering  <jim@meyering.net>
79736
79737         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79738
79739 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         * modules/argz: Omit "#include".
79742
79743         * MODULES.html.sh (func_all_modules): Add calloc, to match
79744         2004-06-01 addition of calloc module.
79745
79746 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79747
79748         * m4/argz.m4: New file, which is autoupdated from libtool.
79749
79750 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79751
79752         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79753         libtool.
79754
79755 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         * config/srclist-update: Don't insist on "USA." before the
79758         close-comment, as libtool omits the period and puts the */ on a
79759         separate line.
79760         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79761         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79762
79763 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79764
79765         * modules/argz: New file.
79766         * MODULES.html.sh (func_all_modules): Add argz.
79767
79768 2004-06-12  Jim Meyering  <jim@meyering.net>
79769         and  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * modules/hash (Files): Add lib/xalloc.h.
79772         * modules/pipe (Depends-on): Add wait-process.
79773         * modules/stat (Depends-on): Add xalloc.
79774         * modules/userspec (Files): Add lib/userspec.h.
79775         * modules/xstrto
79776
79777         Upgrade from gettext-0.13.
79778         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79779         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79780         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79781
79782 2004-06-10  Jim Meyering  <jim@meyering.net>
79783
79784         * lib/calloc.c: New file.
79785
79786 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         * lib/getdate.y (yylex): Allow space between sign and number.
79789         Problem reported by Dan Jacobson.
79790
79791 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         Merge from coreutils CVS.
79794
79795         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79796         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79797         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79798         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79799         xstrtol.m4: Fix copyright date and/or serial number.
79800
79801         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79802         See if we need an fchown replacement.
79803         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79804         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79805         and use the replacement function if we detect either defect.
79806
79807         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79808         gl_UTIMECMP.
79809
79810 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79811         and  Jim Meyering  <jim@meyering.net>
79812
79813         Merge from coreutils CVS.
79814
79815         * lib/stat-macros.h: New file, with contents from file-type.h
79816         and coreutils' system.h.
79817         * lib/file-type.c: Include "stat-macros.h".
79818         * lib/file-type.h (file_type): Move all macro definitions to new file,
79819         stat-macros.h.
79820
79821         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79822         Wrap old code with this conditional.
79823         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79824         function that does not dereference symlinks.
79825         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79826
79827         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79828         dependency problems.
79829         (xreadlink): Accept new arg SIZE, for efficiency.
79830         All decls and uses changed.
79831         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79832
79833         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79834         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79835
79836         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79837         sysexits.h.
79838
79839 2004-06-01  Jim Meyering  <jim@meyering.net>
79840
79841         * m4/calloc.m4: New file.
79842
79843 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79846         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79847         Also, fix a typo in a diagnostic.
79848
79849 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79850
79851         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79852         or AC_FUNC_REALLOC.
79853
79854 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79857         macros to be defined.
79858         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79859         the allocator returns NULL because the requested size is zero.
79860
79861 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79862
79863         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79864         var.  Add comment explaining why libc still defines it.  This
79865         merges the following patch from glibc:
79866         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79867
79868 2004-05-20  Andreas Schwab  <schwab@suse.de>
79869
79870         * m4/free.m4: Replace free if it not known to work, not the other
79871         way round.
79872
79873 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79874
79875         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79876         present in glibc since revision 1.1 of this file.
79877         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79878         obstack_alignment_mask, obstack_alloc, obstack_base,
79879         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79880         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79881         obstack_grow0, obstack_init, obstack_int_grow,
79882         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79883         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79884         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79885         nonexistent functions.
79886
79887 2004-05-18  Karl Berry  <karl@gnu.org>
79888
79889         * config/srclist.txt: break link for vasnprintf.c.
79890
79891 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         Port obstack to the AS/400, where pointers are 16 bytes wide and
79894         you cannot cast an integer to a valid pointer.  This patch is
79895         currently waiting to be integrated into glibc; see
79896         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79897
79898         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79899         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79900         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79901         (struct obstack): temp member is now a union of a pointer and
79902         an integer, instead of an integer.  All integer uses changed.
79903         This does not affect the physical layout of struct obstack,
79904         except on hosts (like the AS/400) where the size or alignment of
79905         void * is greater than that of ptrdiff_t.
79906         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79907         __STDC__)]: Store temporary in pointer member of union, not
79908         integer member.
79909         * lib/obstack.c: Include <stddef.h>, for offsetof.
79910         (struct fooalign): Remove; it doesn't need a name.
79911         (union fooround): Change double to long double, and add void *.
79912         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79913         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79914         not a macro.  Hence the values are always int; so remove all
79915         casts-to-int in uses.
79916
79917 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79918
79919         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79920         we can get this patch merged into glibc.
79921
79922 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79923             Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * m4/argp: Depend on alloca.
79926
79927 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79928             Paul Eggert  <eggert@cs.ucla.edu>
79929
79930         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79931         freecoding.
79932
79933 2004-05-17  Bruno Haible  <bruno@clisp.org>
79934
79935         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79936         precision that consists of a '.' followed by an empty digit string.
79937         Patch by Tor Lillqvist <tml@iki.fi>.
79938
79939 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79942         for backward compatibility with older code.  We need our own
79943         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79944         it under some other name, and our alloca.h will define it.
79945
79946 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79947             Derek Price  <derek@ximbiot.com>
79948
79949         * lib/alloca.c: Include <alloca.h>, to get our interface.
79950         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79951         include <alloca.h> first.  Use C89 prototype for alloca; this
79952         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79953         Use #elif for simplicity, since we can assume C89 now.
79954         Don't try to source the system alloca.h since it will not be found
79955         and to prevent recursively including its replacement.
79956         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79957         * lib/regex.c: Likewise.
79958
79959 2004-05-16  Derek Price  <derek@ximbiot.com>
79960             Paul Eggert  <eggert@cs.ucla.edu>
79961
79962         getline cleanup.  This changes the getndelim2 API: both order of
79963         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79964         no delimiter).
79965
79966         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79967         interface does that.
79968         (getline): Always use getdelim, so that we don't have two
79969         copies of this code.
79970         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79971         if available.
79972         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79973         (GETNDELIM2_MAXIMUM): New macro.
79974         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79975         instead of the old practice of delim2==0.  All callers changed.
79976         Return -1 on overflow, instead of returning junk.
79977         Do not set *linesize unless allocation succeeds.
79978         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79979         that we include sys/types.h.
79980         * lib/getnline.h: Likewise.
79981         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79982         (getndelim2): Reorder arguments.
79983         * lib/getnline.c (getnline, getndelim):
79984         Don't discard the NMAX argument.
79985         (getnline): Invoke getndelim, to avoid code duplication.
79986         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79987         of (size_t) -1 by callers of the getnline family.
79988
79989 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79990
79991         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79992         Check for gettimeofday.
79993         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79994         Check for settimeofday, stime.
79995
79996 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * lib/nanosleep.c (suspended): Change its type from int to
79999         sig_atomic_t volatile.
80000         (first_call): Make it private to rpl_nanosleep, and have it
80001         be zero initially as that's a bit faster.
80002         (my_usleep): Round up fractional times instead of truncating them,
80003         as this is the usual meaning for 'sleep'.
80004
80005         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80006         doesn't work.
80007         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80008         (ENOSYS): Define if not defined.
80009         (settime): Fall back on stime if it exists and settimeofday fails.
80010         But don't bother with fallbacks if a method fails with errno == EPERM.
80011
80012 2004-05-11  Jim Meyering  <jim@meyering.net>
80013
80014         Prior to this change, the save_cwd caller required read access to the
80015         current directory on most systems (ones with the fchdir function).
80016
80017         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80018         fails, try write-only, and finally, resort to using xgetcwd.
80019
80020 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * lib/obstack.c, obstack.h: Import changes from libc.
80023
80024 2004-04-28  Bruno Haible  <bruno@clisp.org>
80025
80026         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80027         also implicitly appends .exe to executables.
80028         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80029         accepts Windows pathnames.
80030         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80031         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80032         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80033         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80034         Reported by Derek Robert Price <derek@ximbiot.com>.
80035
80036 2004-04-21  Karl Berry  <karl@gnu.org>
80037
80038         * config/srclist.txt (localcharset.c): break sync.
80039
80040 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80041
80042         * m4/host-os.m4: Add a copyright notice.
80043
80044 2004-04-20  Jim Meyering  <jim@meyering.net>
80045
80046         Change UTILS_ to gl_ in AC_DEFINE'd names.
80047         Change utils_- and jm_-prefixed variables, too.
80048         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80049         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80051
80052         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80053         Don't emit trailing blanks.
80054         Also rename jm_-prefixed variables to have gl_ prefix.
80055
80056         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80057         Also rename jm_-prefixed variables to have gl_ prefix.
80058
80059         * m4/jm-macros.m4: Reflect the renamings.
80060         * m4/prereq.m4: Likewise.
80061
80062 2004-04-20  Jim Meyering  <jim@meyering.net>
80063
80064         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80065         memory.
80066
80067 2004-04-20  Jim Meyering  <jim@meyering.net>
80068             Bruno Haible  <bruno@clisp.org>
80069
80070         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80071         memory when realloc fails.
80072
80073 2004-04-19  Jim Meyering  <jim@meyering.net>
80074
80075         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80076         now that readutmp.c may call `free (0)'.
80077
80078 2004-04-19  Bruno Haible  <bruno@clisp.org>
80079
80080         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80081         * m4/inttypes_h.m4: Likewise.
80082         * m4/stdint_h.m4: Likewise.
80083         * m4/intmax_t.m4: Likewise.
80084         * m4/uintmax_t.m4: Likewise.
80085
80086 2004-04-18  Jim Meyering  <jim@meyering.net>
80087
80088         * m4/prereq.m4: Don't forbid jm_ prefix.
80089
80090         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80091         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80092         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80093         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80094         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80095         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80096         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80097         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80098         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80099         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80100         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80101         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80102         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80103         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80104         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80105         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80106         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80107         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80108         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80109
80110 2004-04-18  Jim Meyering  <jim@meyering.net>
80111
80112         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80113         failure, don't leak memory and do call END_UTMP_ENT.
80114
80115 2004-04-16  Jim Meyering  <jim@meyering.net>
80116
80117         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80118         coreutils' stat program.
80119         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80120
80121 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80122
80123         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80124         C89.
80125         (CHAR_BIT): Remove, since we assume C89.
80126         Include <stdint.h> if available, as per current Autoconf CVS advice.
80127
80128 2004-03-31  Jim Meyering  <jim@meyering.net>
80129
80130         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80131         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80132         * m4/xalloc.m4: Likewise.
80133
80134 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80135
80136         Merge from coreutils.
80137
80138         * m4/inttostr.m4: New file.
80139         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80140         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80141         Require gl_CLOCK_TIME.
80142         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80143
80144 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80145
80146         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80147         not bool, to be more consistent with Unix conventions.
80148         Suggested by Bruno Haible.
80149
80150         Merge from coreutils.
80151
80152         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80153         * lib/umaxtostr.c: New files.
80154
80155         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80156         the usual <time.h> dance.
80157         (get_date): Change signature to support fractional time stamps.
80158         All callers changed.
80159         * lib/getdate.y: Include "getdate.h" first, as we can now
80160         assume C89 and don't need to worry about 'const'.
80161         Similarly, include "unlocked-io.h" near start, not in middle.
80162         Include <limits.h>.
80163         (textint.value): Use long int rather than int.
80164         (textint.digits): Use size_t rather than int.
80165         (BILLION, LOG10_BILLION): New constants.
80166         (parser_control): New member rel_ns.  Members day_ordinal,
80167         time_zone, month, day, hour, minutes, rel_year, rel_month,
80168         rel_day, rel_hour, rel_minutes, rel_seconds
80169         are now long int, not int.  Member seconds is now struct timespec,
80170         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80171         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80172         not int.
80173         (%union.intval): Now long int, not int.
80174         New member timespec.
80175         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80176         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80177         (spec): Now is a timespec or an item list.
80178         (timespec, items): New nonterminals.
80179         (time, rel, relunit, number, get_date):
80180         Add support for fractional seconds.
80181         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80182         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80183         (to_hour): First arg is now long int, not int.
80184         (to_year): Returns long int, not int.
80185         Don't treat year -70 like 70.
80186         (tm_diff): Returns long int, not int.
80187         (lookup_word): Use bool instead of int when appropriate.
80188         (yylex): Use size_t for count, not int.
80189         Detect overflow when parsing large integer constants.
80190         Add support for fractions.
80191         (get_date): Make pointers 'const' if possible.
80192         Use more-portable code to detect integer overflow.
80193         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80194         Don't use ctime; it's not reliable if the year has >4 digits.
80195
80196         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80197         This is for compatibility with BSD.
80198
80199         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80200         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80201         From coreutils' system.h.
80202
80203         * lib/userspec.c: Don't include "posixver.h".
80204         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80205         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80206         compatible extension.  Simplify code by removing a boolean int
80207         that was always nonzero if a string was nonnull.
80208
80209 2004-03-30  Jim Meyering  <jim@meyering.net>
80210
80211         Merge from coreutils.
80212
80213         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80214         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80215         on some systems one must include <grp.h> before it.
80216         Reported by Christian Krackowizer.
80217
80218 2004-03-30  Jim Meyering  <jim@meyering.net>
80219
80220         Merge from coreutils.
80221
80222         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80223
80224         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80225         an empty input stream.
80226
80227         * lib/readtokens.c: Include <stdbool.h>.
80228         (readtoken): Use `size_t' rather than int/long.
80229         All callers adjusted.
80230         Use `bool' rather than `int' where appropriate.
80231         Use memset rather than an explicit loop.
80232         Use x2nrealloc rather than xrealloc.
80233         Allow the use of `\0' as a delimiter.
80234         (readtokens): Likewise.
80235         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80236
80237 2004-03-30  Jim Meyering  <jim@meyering.net>
80238
80239         * m4/realloc.m4: Remove file, since now it does no more than
80240         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80241         the `configure.ac' section of module/realloc.
80242         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80243
80244 2004-03-30  Bruno Haible  <bruno@clisp.org>
80245
80246         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80247         nonnull.
80248
80249 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80250
80251         Merge changes to getloadavg.c from coreutils and Emacs.
80252
80253         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80254         Define to an expression, not to the empty string.
80255         Include cloexec.h and xalloc.h.
80256         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80257         Use set_cloexec_flag rather than rolling our own.
80258         * lib/cloexec.c, lib/cloexec.h: New files.
80259
80260 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80261
80262         * m4/cloexec.m4: New file.
80263
80264 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80265
80266         * lib/getopt.h: Sync with libc CVS.
80267
80268 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80269             Bruno Haible  <bruno@clisp.org>
80270
80271         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80272         mbswidth.
80273
80274 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80275             Bruno Haible  <bruno@clisp.org>
80276
80277         * lib/mbswidth.h: Include <wchar.h> only if
80278         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80279         <wchar.h>.
80280         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80281
80282 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80283
80284         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80285         Sync with libc CVS.
80286         * lib/getopt_int.h: New file, also synced from libc.
80287
80288 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80289
80290         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80291         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80292         Bring back getopt.c, getopt.h, getopt1.c.
80293
80294 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80295
80296         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80297         All uses changed.  Check for sa_sigaction member; this fixes
80298         a bug first reported by Jason Andrade in
80299         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80300
80301 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80302
80303         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80304         '#if' expressions.  Unlike the code it replaces, it does not
80305         depend on (defined _SC_PAGESIZE).  However, it does depend on
80306         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80307         first reported by Jason Andrade in
80308         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80309
80310 2004-02-25  Simon Josefsson  <jas@extundo.com>
80311
80312         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80313
80314 2004-02-25  Simon Josefsson  <jas@extundo.com>
80315
80316         * lib/strdup.h: New file.
80317         * lib/strdup.c: Include it.
80318         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80319         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80320
80321 2004-02-23  Karl Berry  <karl@gnu.org>
80322
80323         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80324         (from fencepost.gnu.org:/gd/gnuorg).
80325
80326 2004-02-23  Karl Berry  <karl@gnu.org>
80327
80328         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80329         * config/srclist.txt: add maintain/standards documents.
80330
80331 2004-02-18  Bruno Haible  <bruno@clisp.org>
80332
80333         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80334         Reported by Derek Robert Price <derek@ximbiot.com>.
80335
80336 2004-02-16  Karl Berry  <karl@gnu.org>
80337
80338         * config/mkinstalldirs, install-sh: update from automake.
80339
80340 2004-02-06  Karl Berry  <karl@gnu.org>
80341
80342         * m4/po.m4: update from gettext 0.14.1.
80343
80344 2004-02-06  Karl Berry  <karl@gnu.org>
80345
80346         * lib/config.charset: update from gettext 0.14.1.
80347
80348 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80349
80350         Add comments and code, prompted by suggestions from Bruno Haible
80351         for sh-quote.
80352         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80353         describing the enum quoting_style values.
80354         * lib/quotearg.c (quotearg_alloc): New function.
80355         (quotearg_buffer_restyled): Treat lone { and } as special.
80356         Treat = as special.  Work around bug with older shells
80357         that "see" a '\' that is really the 2nd byte of a multibyte char.
80358         Quote empty string with shell_quoting_style.
80359
80360 2004-02-03  Bruno Haible  <bruno@clisp.org>
80361
80362         * m4/pipe.m4: New file, from GNU gettext.
80363
80364 2004-02-03  Bruno Haible  <bruno@clisp.org>
80365
80366         * lib/pipe.h: New file, from GNU gettext.
80367         * lib/pipe.c: New file, from GNU gettext.
80368
80369 2004-01-27  Bruno Haible  <bruno@clisp.org>
80370
80371         * m4/execute.m4: New file, from GNU gettext.
80372
80373 2004-01-27  Bruno Haible  <bruno@clisp.org>
80374
80375         * lib/execute.h: New file, from GNU gettext.
80376         * lib/execute.c: New file, from GNU gettext.
80377         * lib/w32spawn.h: New file, from GNU gettext.
80378
80379 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80380
80381         Merge from diffutils.
80382
80383         * lib/file-type.c (file_type): Add typed memory objects.
80384         * lib/file-type.h (S_TYPEISTMO): New macro.
80385
80386         * lib/c-stack.h (c_stack_action): Remove argv argument.
80387         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80388         (die): Don't calculate message unless segv_action returns.
80389         (get_stack_location, min_address_from_argv, max_address_from_argv,
80390         volatile stack_base, volatile_stack_size): Remove.
80391         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80392         that every segmentation violation is a stack overflow.  (Ouch!)
80393         See Debian bug 136249 (still outstanding) for more info about why
80394         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80395
80396 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80397
80398         Exit-status fix from coreutils.
80399
80400         Use exit_failure consistently in place of EXIT_FAILURE,
80401         so that program exit statuses are consistent on failure.
80402
80403         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80404         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80405         * lib/argmatch.h: Comment fix to match the above.
80406         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80407         Now a macro referring to exit_failure, instead of a separate
80408         variable.  Include "exitfail.h" to get it.
80409         * lib/xstrtol.h: Include "exitfail.h".
80410         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80411
80412         * lib/long-options.c (parse_long_options): Use prototype
80413         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80414         for clarity.
80415
80416 2004-01-21  Jim Meyering  <jim@meyering.net>
80417
80418         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80419         so as not to conflict with a different-sized __mktime_internal
80420         function in GNU libc.
80421         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80422         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80423
80424 2004-01-20  Karl Berry  <karl@gnu.org>
80425
80426         * config/config.guess: update from config.
80427
80428         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80429
80430 2004-01-20  Bruno Haible  <bruno@clisp.org>
80431
80432         Safer stack allocation.
80433         * lib/setenv.c: Include allocsa.h.
80434         (alloca): Remove fallback definition.
80435         (freea): Remove macro.
80436         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80437         instead of freea.
80438
80439 2004-01-20  Bruno Haible  <bruno@clisp.org>
80440
80441         * m4/eealloc.m4: New file, from GNU gettext.
80442
80443 2004-01-20  Bruno Haible  <bruno@clisp.org>
80444
80445         * m4/allocsa.m4: New file, from GNU gettext.
80446
80447 2004-01-20  Bruno Haible  <bruno@clisp.org>
80448
80449         * lib/xallocsa.h: New file, from GNU gettext.
80450         * lib/xallocsa.c: New file, from GNU gettext.
80451
80452 2004-01-20  Bruno Haible  <bruno@clisp.org>
80453
80454         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80455
80456 2004-01-20  Bruno Haible  <bruno@clisp.org>
80457
80458         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80459         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80460         specially.
80461
80462 2004-01-20  Bruno Haible  <bruno@clisp.org>
80463
80464         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80465         patch.
80466
80467 2004-01-20  Bruno Haible  <bruno@clisp.org>
80468
80469         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80470
80471 2004-01-20  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/eealloc.h: New file.
80474
80475 2004-01-20  Bruno Haible  <bruno@clisp.org>
80476
80477         * lib/binary-io.h: Avoid warnings on Cygwin.
80478
80479 2004-01-20  Bruno Haible  <bruno@clisp.org>
80480
80481         * lib/allocsa.h: New file, from GNU gettext.
80482         * lib/allocsa.c: New file, from GNU gettext.
80483
80484 2004-01-18  Karl Berry  <karl@gnu.org>
80485
80486         * doc/gpl.texi, doc/lgpl.texi: new files.
80487
80488 2004-01-18  Karl Berry  <karl@gnu.org>
80489
80490         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80491         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80492
80493 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80494
80495         Merge from coreutils.
80496
80497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80498         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80499         (gl_DEFAULT_POSIX2_VERSION): Move
80500         the documentation from 'configure' into 'config.hin',
80501         so that 'configure --help' isn't burdened by it and
80502         we don't have to worry about its formatting there.
80503         Reword the documentation so that it's more succinct
80504         and can be run together into a single paragraph.
80505         * m4/same.m4 (gl_SAME): Check for pathconf.
80506
80507 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80508
80509         Merge from coreutils.
80510
80511         * lib/posixver.c: Include posixver.h.
80512
80513         * lib/same.c: Include <stdbool.h>, <limits.h>.
80514         (_POSIX_NAME_MAX): Define if not defined.
80515         (MIN): New macro.
80516         (same_name): If file names are silently truncated, report
80517         that the file names are the same if they are the same after
80518         the silent truncation.
80519
80520         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80521         conversion function.
80522         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80523         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80524         longer needed.
80525
80526 2004-01-15  Jim Meyering  <jim@meyering.net>
80527
80528         Merge from coreutils.
80529
80530         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80531         if no library is required.
80532         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80533         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80534         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80535         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80536         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80537         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80538         value, $ac_cv_search_crypt, if it's "none required".
80539         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80540         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80541         not gl_FUNC_GETLOADAVG.
80542         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80543         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80544
80545 2004-01-15  Jim Meyering  <jim@meyering.net>
80546
80547         Merge from coreutils.
80548
80549         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80550         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80551         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80552
80553         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80554         optional configure-time default.
80555
80556         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80557
80558         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80559
80560 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80561
80562         Merge from coreutils.
80563
80564         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80565         value, $ac_cv_search_nanosleep, if it's "none required".
80566
80567 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80568
80569         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80570         with like-named macro in fnmatch.c.
80571         (EXT): Use an internal constant instead.
80572
80573         Merge fnmatch patches from glibc.
80574         * lib/fnmatch.c (mbsinit): Remove define.
80575         Add libc_hidden_ver (__fnmatch, fnmatch).
80576         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80577         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80578
80579 2004-01-14  Karl Berry  <karl@gnu.org>
80580
80581         * config/install-sh: update from automake.
80582
80583 2004-01-13  Karl Berry  <karl@gnu.org>
80584
80585         * config/install-sh: update from automake.
80586
80587 2004-01-09  Karl Berry  <karl@gnu.org>
80588
80589         * config/install-sh: update from automake.
80590
80591 2004-01-05  Karl Berry  <karl@gnu.org>
80592
80593         * config/config.{sub,guess}: update from config.
80594
80595 2003-12-31  Karl Berry  <karl@gnu.org>
80596
80597         * config/depcomp: update from automake.
80598
80599 2003-12-14  Karl Berry  <karl@gnu.org>
80600
80601         * lib/config.charset: update from gettext-runtime.
80602
80603 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80604
80605         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80606         Bug reported by Alfred M. Szmidt.
80607
80608 2003-12-03  Bruno Haible  <bruno@clisp.org>
80609
80610         * m4/gettext.m4: Upgrade from gettext-0.13.
80611         * m4/po.m4: Upgrade from gettext-0.13.
80612         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80613         * m4/intmax.m4: New file, from gettext-0.13.
80614         * m4/printf-posix.m4: New file, from gettext-0.13.
80615
80616 2003-11-29  Karl Berry  <karl@gnu.org>
80617
80618         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80619
80620 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80621             Bruno Haible  <bruno@clisp.org>
80622
80623         * lib/printf-parse.h: Don't include sys/types.h.
80624         (ARG_NONE): New macro.
80625         (char_directive): Change type of *arg_index fields to size_t.
80626         * lib/printf-parse.c: Don't include sys/types.h.
80627         (SSIZE_MAX): Remove macro.
80628         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80629         Remove unnecessary overflow check.
80630         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80631         fields.
80632
80633 2003-11-25  Bruno Haible  <bruno@clisp.org>
80634
80635         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80636
80637 2003-11-25  Bruno Haible  <bruno@clisp.org>
80638
80639         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80640         gt_TYPE_SSIZE_T.
80641
80642 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80643
80644         * modules/alloca: Remove dependency on xalloc.
80645
80646 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80647
80648         * lib/alloca.c: Remove dependency on xalloc module.
80649         (xalloc_die): Remove.
80650         (memory_full) [!defined emacs]: New macro.
80651         [!defined emacs]: Don't include xalloc.h.
80652         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80653         address arithmetic overflows.  Change datatypes a bit to avoid
80654         unnecessary casts.
80655
80656 2003-11-22  Jim Meyering  <jim@meyering.net>
80657
80658         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80659         s/size/size_t/.
80660
80661 2003-11-21  Karl Berry  <karl@gnu.org>
80662
80663         * config/config.{sub,guess}: update from config.
80664
80665 2003-11-18  Karl Berry  <karl@gnu.org>
80666
80667         * config/config.{sub,guess}: update from config.
80668
80669         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80670
80671 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80672
80673         * README: Mention that S+T cannot overflow if S is the size of
80674         an existing object and T is sufficiently small.
80675
80676 2003-11-17  Jim Meyering  <jim@meyering.net>
80677
80678         On systems without utime and without a utimes function capable of
80679         dealing with a NULL struct utimbuf* argument, this utime replacement
80680         could -- in unusual circumstances -- leak a file descriptor.
80681         * lib/utime.c: Include <unistd.h> and <errno.h>.
80682         (utime_null): Be sure to close `fd' and to preserve errno.
80683         Reported by Geoff Collyer via Arnold Robbins.
80684
80685 2003-11-17  Bruno Haible  <bruno@clisp.org>
80686
80687         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80688         (Depends-on): Add xsize.
80689
80690 2003-11-17  Bruno Haible  <bruno@clisp.org>
80691
80692         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80693
80694 2003-11-17  Bruno Haible  <bruno@clisp.org>
80695
80696         * lib/vasnprintf.c (alloca): Remove fallback definition.
80697         (freea): Remove definition.
80698         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80699         Reported by Paul Eggert.
80700
80701 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80702             Bruno Haible  <bruno@clisp.org>
80703
80704         Protect against address arithmetic overflow.
80705         * lib/printf-args.h: Include stddef.h.
80706         (arguments): Change type of field 'count' to size_t.
80707         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80708         'unsigned int' where appropriate.
80709         * lib/printf-parse.h: Include sys/types.h.
80710         (char_directive): Change type of *arg_index fields to ssize_t.
80711         (char_directives): Change type of fields 'count', max_*_length to
80712         size_t.
80713         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80714         (SSIZE_MAX): Define fallback value.
80715         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80716         instead of 'int' where appropriate. Check a_allocated, d_allocated
80717         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80718         * lib/vasnprintf.c: Include xsize.h.
80719         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80720         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80721         overflow. Avoid wraparound when converting a width or precision from
80722         decimal to binary.
80723
80724 2003-11-16  Bruno Haible  <bruno@clisp.org>
80725
80726         Update from GNU gettext.
80727         * lib/printf-parse.c: Generalize to it can be compiled for wide
80728         strings.
80729         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80730         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80731         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80732         SNPRINTF): New macros.
80733         Don't include <alloca.h> if the file is used inside libintl.
80734         (local_wcslen): New function, for Solaris 2.5.1.
80735         (VASNPRINTF): Use it instead of wcslen.
80736
80737 2003-11-16  Bruno Haible  <bruno@clisp.org>
80738
80739         * lib/xsize.h (xmax): New function.
80740         (xsum, xsum3, xsum4): Declare as "pure" functions.
80741
80742 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80743
80744         * modules/xalloc (Files): Undo latest change, since xalloc.h
80745         no longer needs SIZE_MAX or PTRDIFF_MAX.
80746
80747 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80748
80749         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80750         gl_PTRDIFF_MAX.
80751
80752 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80753
80754         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80755         "return", to pacify some unknown compiler.  Problem reported
80756         by Joerg Schilling.
80757
80758 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80759
80760         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80761         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80762         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80763         heuristic is just as accurate as far as we know, and it removes a
80764         dependency on size_max.m4 and ptrdiff_max.m4.
80765
80766 2003-11-11  Bruno Haible  <bruno@clisp.org>
80767
80768         * modules/xsize (Files): Add m4/size_max.m4.
80769         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80770
80771 2003-11-11  Bruno Haible  <bruno@clisp.org>
80772
80773         * m4/size_max.m4: New file.
80774         * m4/ptrdiff_max.m4: New file.
80775         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80776         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80777         (gl_XALLOC): Invoke it.
80778
80779 2003-11-11  Bruno Haible  <bruno@clisp.org>
80780
80781         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80782         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80783         defined.
80784
80785 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80786
80787         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80788         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80789         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80790         From Bruno Haible.
80791         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80792         not (size_t) -1, since it's defined here.
80793
80794 2003-11-09  Karl Berry  <karl@gnu.org>
80795
80796         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80797
80798 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80799
80800         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80801         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80802         Reject sizes of exactly SIZE_MAX bytes.
80803         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80804         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80805
80806 2003-11-05  Bruno Haible  <bruno@clisp.org>
80807
80808         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80809         SIZE_MAX defined in <limits.h> on Solaris.
80810
80811 2003-11-04  Jim Meyering  <jim@meyering.net>
80812
80813         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80814         variable names, rather than @VAR@.
80815         * modules/poll: Likewise.
80816
80817 2003-11-04  Bruno Haible  <bruno@clisp.org>
80818
80819         * modules/xsize: New file.
80820         * modules/linebreak: Depend on xsize.
80821         * MODULES.html.sh (func_all_modules): Add xsize.
80822
80823 2003-11-04  Bruno Haible  <bruno@clisp.org>
80824
80825         * m4/xsize.m4: New file.
80826
80827 2003-11-04  Bruno Haible  <bruno@clisp.org>
80828
80829         * lib/xsize.h: New file.
80830         * lib/linebreak.c: Include xsize.h.
80831         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80832         argument for overflow.
80833         Suggested by Paul Eggert.
80834
80835 2003-11-03  Karl Berry  <karl@gnu.org>
80836
80837         * config/config.{guess,sub}: update from config.
80838
80839 2003-11-03  Jim Meyering  <jim@meyering.net>
80840
80841         * modules/userspec (lib_SOURCES): Add userspec.h.
80842         (Include): Add "userspec.h".
80843         Improve description.
80844
80845 2003-11-03  Jim Meyering  <jim@meyering.net>
80846
80847         * lib/userspec.c: Include "userspec.h".
80848         * lib/userspec.h: New file.
80849
80850 2003-11-03  Bruno Haible  <bruno@clisp.org>
80851
80852         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80853
80854 2003-11-03  Bruno Haible  <bruno@clisp.org>
80855
80856         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80857         available, to avoid (extremely rare) race condition.
80858         Suggested by Paul Eggert.
80859
80860 2003-11-02  Karl Berry  <karl@gnu.org>
80861
80862         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80863
80864 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80865
80866         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80867         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80868         (read_filesystem_list): Set and use me_type_malloced.
80869         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80870         whatever the type happens to be), for brevity and consistency.
80871         Check for size calculation overflow on Alphas running OSF/1.
80872
80873 2003-10-31  Jim Meyering  <jim@meyering.net>
80874
80875         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80876
80877         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80878
80879 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80880             Bruno Haible  <bruno@clisp.org>
80881
80882         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80883         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80884
80885 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80886
80887         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80888         netbsd*-gnu*.  Suggested by Robert Millan.
80889
80890 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80891
80892         * modules/group-member: Depend on stdbool.
80893
80894 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80895
80896         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80897
80898 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80899
80900         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80901         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80902         after the 'gnu' in these cases.  This fixes some bugs in the
80903         previous change, and is based on suggestions by Robert Millan.
80904
80905 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80906
80907         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80908         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80909         no longer needed.
80910         * lib/quotearg.c (quotearg_n_options): Use it.
80911         * lib/group-member.c: Include <stdbool.h>.
80912         (free_group_info): Arg is now const *; don't free arg.
80913         (get_group_info): Now returns bool and accepts struct group_info *,
80914         rather than returning a malloc'ed struct group_info *.
80915         All uses changed.  Check for overflow in internal size calculation.
80916
80917         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80918         rather than xmalloc/xrealloc.
80919         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80920         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80921         conformance bug: the old code used a pointer after freeing the
80922         storage that it addressed.
80923         * lib/hash.c (hash_initialize): Simplify the code by using
80924         xalloc_oversized rather than doing it by hand.
80925         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80926         the buffer preserved.  Use free and xmalloc instead.
80927         * lib/quotearg.c (quotearg_n_options): Likewise.
80928         Use a simpler test for size overflow.  Don't use xalloc_oversized
80929         because unsigned int might be wider than size_t (!); this suggests
80930         that we should switch from unsigned int to size_t for slot numbers.
80931
80932 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80933
80934         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80935         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80936         NetBSD kernels.  Requested by Richard Stallman.
80937
80938 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80939
80940         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80941         to allocate the returned structure.  Do not allocate a subarray,
80942         as x2nrealloc will do that.
80943         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80944         instead of xnrealloc.
80945         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80946
80947 2003-10-27  Bruno Haible  <bruno@clisp.org>
80948
80949         * lib/stdbool_.h: Better support for BeOS.
80950
80951 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80952
80953         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80954         now uses inline.
80955
80956 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80957
80958         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80959         callers that want to do their own size-overflow checking.  Include
80960         <stdbool.h>, since xalloc_oversized returns bool.
80961         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80962         to use xalloc_oversized.
80963
80964         Add two functions x2realloc, x2nrealloc, for programs that grow
80965         arrays dynamically by doubling their sizes.
80966         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80967         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80968         New functions.
80969
80970         Port to C99 semantics for 'inline' of external functions.
80971         Bug reported by Bruno Haible.
80972         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80973         with the old contents of xnmalloc.
80974         (xnmalloc, xmalloc): Use it.
80975         (xnrealloc_inline): New static inline function,
80976         with the old contents of xnrealloc.
80977         (xnrealloc, xrealloc): Use it.
80978
80979         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80980         that.
80981
80982 2003-10-26  Karl Berry  <karl@gnu.org>
80983
80984         * config/srclist.txt (COPYING.DOC): no longer available from
80985         /gd/gnuorg; don't know where the ultimate source is.
80986
80987 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80988
80989         Fix several address-calculation bugs in the hash modules,
80990         plus some minor code cleanup.
80991
80992         * lib/hash.h: Include <stdbool.h>, for bool.
80993         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80994         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80995         hash_get_n_entries, hash_get_max_bucket_length,
80996         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80997         hash_rehash): Use size_t rather than unsigned.
80998         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80999         hash_get_n_buckets_used, hash_get_n_entries,
81000         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81001         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81002         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81003         Likewise.
81004         (SIZE_MAX): Define if not defined.
81005         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81006         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81007         hash_print):
81008         Use const * when possible.
81009         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81010         (check_tuning): Fix bug: if tuning parameters were very close to
81011         0 or 1, rounding errors could have caused subscript violations.
81012         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81013         (hash_initialize): Add 'fail:' label
81014         to free table and return NULL, and use it to simplify code.
81015         Use calloc rather than clearing the storage ourself.
81016         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81017         buffer size calculations.
81018         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81019         Include <stddef.h>, for size_t.
81020         * lib/hash-pjw.c (hash_pjw): Likewise.
81021         Switch to method described by Bruno Haible.
81022         Include <limits.h>, for CHAR_BIT.
81023         (SIZE_BITS): New macro.
81024
81025 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81026
81027         * m4/getline.m4 (AM_FUNC_GETLINE):
81028         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81029         hosts.  Problem reported by Derek Robert Price in
81030         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81031         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81032         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81033
81034 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81035
81036         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81037         ceiling the allocation at NMAX bytes rather than silently
81038         discarding input bytes before NMAX is reached.  This makes
81039         a difference only if NMAX exceeds SIZE_MAX / 2.
81040
81041         * lib/obstack.c: Merge from glibc.
81042         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81043         Add libc_hidden_def (_obstack_newchunk).
81044         (_obstack_free) [! defined _LIBC]: Remove.
81045         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81046         a clone of the function body.
81047         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81048         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81049
81050         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81051         glibc.
81052         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81053         arg to memcpy.
81054
81055         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81056         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81057         Don't use lvalue casts, as GCC plans to remove support for them
81058         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81059         was also present in the non-GCC version, indicating that this
81060         code had always been buggy and had never been widely used.
81061         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81062         Use the fast variant of each macro, rather than copying the
81063         definiens of the fast variant; that way, we'll be more likely to
81064         catch future bugs in the fast variants.
81065
81066 2003-10-20  Bruno Haible  <bruno@clisp.org>
81067
81068         * modules/wait-process: New file.
81069         * MODULES.html.sh (func_all_modules): Add wait-process.
81070
81071 2003-10-20  Bruno Haible  <bruno@clisp.org>
81072
81073         * m4/wait-process.m4: New file.
81074
81075 2003-10-20  Bruno Haible  <bruno@clisp.org>
81076
81077         * lib/wait-process.h: New file, from GNU gettext.
81078         * lib/wait-process.c: New file, from GNU gettext.
81079
81080 2003-10-19  Jim Meyering  <jim@meyering.net>
81081
81082         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81083         HPUX 10.20.
81084
81085 2003-10-18  Karl Berry  <karl@gnu.org>
81086
81087         * config/config.guess: update from config.
81088
81089 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81090
81091         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81092         (getgroups): First arg is int, not size_t.
81093         Don't let 'free' mangle errno.
81094
81095 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81096
81097         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81098
81099 2003-10-16  Karl Berry  <karl@gnu.org>
81100
81101         * config/config.{guess,sub}: update from config.
81102
81103 2003-10-16  Jim Meyering  <jim@meyering.net>
81104
81105         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81106         memcpy.
81107
81108 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81109
81110         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81111         (SIZE_MAX): Remove.
81112         (new_exclude, add_exclude_file): Initial size no longer needs to
81113         be a power of 2.
81114         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81115         our own address arithmetic overflow checking.
81116
81117         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81118         (fnmatch): Do not alloca more than 2000 wide characters;
81119         instead, use malloc for large buffers.
81120         Check for address arithmetic overflow, and return -1
81121         with errno set to ENOMEM in that case.
81122         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81123         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81124         instead, return -1.  Check for address arithmetic overflow.
81125
81126 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81127
81128         Handle invalid suffixes and overflow independently, so that
81129         callers can treat them independently as needed.  Fix some bugs in
81130         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81131         suffix for a human-readable blocksize.  The major caller-visible
81132         change is the addition of a new
81133         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81134         that both overflow and suffix chars were found.
81135
81136         * lib/human.c (humblock): Don't check separately for invalid suffix
81137         char; that is xstrtoumax's job (now that its bug is fixed).
81138         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81139         INTMAX_MAX]: New macros.
81140         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81141         TYPE_MAXIMUM): New macros.
81142         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81143         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81144         if overflow occurs, as it's what __strtol does and it's more useful
81145         in practice.
81146         (__xstrtol): If __strtol reports some error other than ERANGE,
81147         reflect it to the caller as LONGINT_INVALID.  If it reports
81148         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81149         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81150         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81151         value.
81152         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81153         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81154         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81155         [defined UINTMAX_MAX]: New macros.
81156
81157 2003-10-14  Bruno Haible  <bruno@clisp.org>
81158
81159         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81160
81161 2003-10-14  Bruno Haible  <bruno@clisp.org>
81162
81163         * m4/sig_atomic_t: New file, from GNU gettext.
81164         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81165
81166 2003-10-14  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81169         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81170         Also use volatile where needed.
81171
81172 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81173
81174         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81175         Change maintainer from Bruno Haible to 'all'.
81176
81177 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81178
81179         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81180
81181 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81182
81183         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81184         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81185         and define in terms of the other primitives.
81186         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81187         (SIZE_MAX): Define if not already defined.
81188         (array_size_overflow): New function.
81189         (xalloc_die): Abort instead of exiting if 'error' returns.
81190         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81191         (xmalloc, xrealloc): Use them.
81192         (xcalloc): Check for address arithmetic overflow.
81193         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81194         a bit faster than strcpy.
81195
81196 2003-10-10  Simon Josefsson  <jas@extundo.com>
81197
81198         * modules/argp (Depends-on): Add restrict and strcase.
81199
81200 2003-10-10  Simon Josefsson  <jas@extundo.com>
81201
81202         * m4/argp.m4: Add AC_C_INLINE.
81203
81204 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81205
81206         Merge getpass from libc, plus a few fixes.
81207
81208         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81209         Include <stdbool.h>.
81210         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81211         __fsetlocking to empty.
81212         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81213         do include <bits/libc-lock.h>.
81214         Do not include <fcntl.h>; not needed.
81215         [_LIBC]: Include <wchar.h>.
81216         (NOTCANCEL_MODE): New macro.
81217         (flockfile, funlockfile) [_LIBC]: New macros.
81218         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81219         [!_LIBC]: New macros.
81220         (call_fclose): New function.
81221         (getpass): Use it.  Save tty stream separately; this simplifies the
81222         code and makes it more reliable if stdin happens to equal stdout.
81223         Invoke __fsetlocking on tty.
81224         Handle thread cancellation if needed.
81225         Namespace cleanup (use __tcgetattr, __getline).
81226         Use bool for Booleans.
81227         [USE_IN_LIBIO]: Handle wide streams.
81228         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81229         stream might go where.
81230
81231         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81232         doesn't have to include <stdio.h> before us.
81233         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81234         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81235         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81236         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81237         if not declared, so that we can use getpass.c code from libc without
81238         rewriting it.
81239         (flockfile, ftrylockfile, funlockfile): New macros.
81240
81241 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81242
81243         * modules/getpass: Depend on stdbool.
81244
81245 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81246
81247         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81248
81249 2003-10-07  Karl Berry  <karl@gnu.org>
81250
81251         * config/config.{guess,sub}: update from config.
81252
81253 2003-10-06  Jim Meyering  <jim@meyering.net>
81254             Bruno Haible  <bruno@clisp.org>
81255
81256         This lets translators provide better translations for the
81257         "Written by ..." part of --version output.
81258         * lib/version-etc.h: Include stdarg.h.
81259         (version_etc_copyright): Declare as readonly.
81260         (version_etc): Make this function variadic with a NULL-terminated list
81261         of author name strings.
81262         (version_etc_va): New declaration.
81263         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81264         (version_etc_copyright): Declare as readonly.
81265         (version_etc_va): New function. Provide a different translatable string
81266         for each possible number of authors < 10. Abbreviate when there are 10
81267         authors or more.
81268         (version_etc): Make this function variadic. Call version_etc_va.
81269         Suggestion from Gary V. Vaughan.
81270
81271         * lib/long-options.h (parse_long_options): Change prototype: the
81272         authors string is moved to the end and becomes variadic.
81273         * lib/long-options.c: Include stdarg.h.
81274         (parse_long_options): Make this function variadic, too.
81275         Call version_etc_va, not version_etc.
81276
81277 2003-10-06  Bruno Haible  <bruno@clisp.org>
81278
81279         * modules/version-etc-2: Remove file.
81280         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81281
81282 2003-10-06  Bruno Haible  <bruno@clisp.org>
81283
81284         * modules/fatal-signal: New file.
81285         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81286
81287 2003-10-06  Bruno Haible  <bruno@clisp.org>
81288
81289         * m4/fatal-signal.m4: New file.
81290         * m4/signalblocking.m4: New file, from GNU gettext.
81291
81292 2003-10-06  Bruno Haible  <bruno@clisp.org>
81293
81294         * lib/version-etc-2.h: Remove file.
81295         * lib/version-etc-2.c: Remove file.
81296
81297 2003-10-06  Bruno Haible  <bruno@clisp.org>
81298
81299         * lib/fatal-signal.h: New file, from GNU gettext.
81300         * lib/fatal-signal.c: New file, from GNU gettext.
81301
81302 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81303
81304         * README: Rework advice for preventing empty .o files.
81305         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81306         not <sys/types.h>.
81307
81308 2003-10-04  Karl Berry  <karl@gnu.org>
81309
81310         * lib/argp*: update from libc.
81311
81312 2003-10-04  Karl Berry  <karl@gnu.org>
81313
81314         * config/config.{guess,sub}: update from config.
81315
81316 2003-10-02  Bruno Haible  <bruno@clisp.org>
81317
81318         * modules/lchown (Include): Add lchown.h.
81319         * modules/time_r (Include): Use "..." syntax.
81320         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81321
81322 2003-10-01  Simon Josefsson  <jas@extundo.com>
81323
81324         * MODULES.html.sh (func_all_modules): Move gethostname from section
81325         'based on' to section 'lacking' POSIX:2001.
81326
81327 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81328
81329         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81330         to output mode on the same stream.
81331
81332 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81333
81334         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81335         Fix arg typo in previous patch.
81336
81337 2003-09-28  Jim Meyering  <jim@meyering.net>
81338
81339         * lib/error.c: Correct cpp indentation.
81340
81341 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81342
81343         * modules/free: New file.
81344
81345 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81346
81347         * m4/free.m4: New file.
81348
81349 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81350
81351         * lib/minmax.h (MIN, MAX)
81352         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81353         Omit the special code that used __typeof__, since we worry that
81354         it could be more trouble than it's worth.  See:
81355         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81356         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81357
81358         * lib/free.c: New file.
81359
81360 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81361
81362         Trivial fixes to Makefile.am parts of module listings.
81363         * modules/strstr: Append strstr.h to lib_SOURCES.
81364         * modules/strcase: Likewise, for strcase.h.
81365
81366 2003-09-27  Karl Berry  <karl@gnu.org>
81367
81368         * config/mkinstalldirs: update from automake.
81369
81370 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81371
81372         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81373         (error_tail): Do not loop, reallocating temporary buffer, since
81374         the output cannot contain more wide characters than the input
81375         contains bytes, the size must be big enough already.  This avoids
81376         one potential size overflow calculation.  Check for size overflow
81377         when calculating temporary buffer size.  Free temporary buffer
81378         when done, if it was allocated with malloc; this plugs a memory
81379         leak.  Remove casts from void * to pointers, that are no longer
81380         needed now that we're assuming C89 or better.
81381
81382         Merge error changes from glibc.
81383
81384         * lib/error.c, error.h: Update copyright notice header to match glibc.
81385         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81386         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81387         Disable cancellation while printing error.
81388         * lib/error.h: Prepend __ to parameter names.
81389
81390 2003-09-26  Jim Meyering  <jim@meyering.net>
81391
81392         * lib/error.c (error_tail): Move some declarations
81393         into inner scope where the local variables are used.
81394
81395 2003-09-26  Bruno Haible  <bruno@clisp.org>
81396
81397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81398         stpncpy().
81399         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81400
81401 2003-09-26  Bruno Haible  <bruno@clisp.org>
81402
81403         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81404         (stpncpy): Define as alias for gnu_stpncpy.
81405         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81406
81407 2003-09-25  Simon Josefsson  <jas@extundo.com>
81408
81409         * lib/xgetdomainname.h: New file.
81410         * lib/xgetdomainname.c: New file.
81411
81412 2003-09-25  Simon Josefsson  <jas@extundo.com>
81413             Bruno Haible  <bruno@clisp.org>
81414
81415         * modules/getdomainname: New file.
81416         * modules/xgetdomainname: New file.
81417         * MODULES.html.sh (func_all_modules): Add getdomainname,
81418         xgetdomainname.
81419
81420 2003-09-25  Simon Josefsson  <jas@extundo.com>
81421             Bruno Haible  <bruno@clisp.org>
81422
81423         * m4/getdomainname.m4: New file.
81424
81425 2003-09-25  Simon Josefsson  <jas@extundo.com>
81426             Bruno Haible  <bruno@clisp.org>
81427
81428         * lib/getdomainname.h: New file.
81429         * lib/getdomainname.c: New file.
81430
81431 2003-09-25  Karl Berry  <karl@gnu.org>
81432
81433         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81434
81435 2003-09-25  Karl Berry  <karl@gnu.org>
81436
81437         * config/install-sh: update from automake.
81438
81439 2003-09-25  Bruno Haible  <bruno@clisp.org>
81440
81441         * modules/version-etc-2: New file, from modules/version-etc with
81442         modifications.
81443         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81444
81445 2003-09-25  Bruno Haible  <bruno@clisp.org>
81446
81447         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81448         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81449
81450 2003-09-24  Simon Josefsson  <jas@extundo.com>
81451
81452         * modules/xgethostname: Add xgethostname.h.
81453
81454 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81455
81456         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81457         the buffer associated with the argument.  Bug reported by
81458         Simon Josefsson.
81459
81460 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81461
81462         * README: Document assumptions that 'int' is at least 32 bits
81463         wide, that integer arithmetic is 2's complement without overflow,
81464         that there are no holes in integer values, that adding sizes of
81465         two nonoverlapping objects can't overflow, and that all-bits-zero
81466         yields scalar zero.  Fix spelling and capitalization typos.
81467
81468 2003-09-19  Karl Berry  <karl@gnu.org>
81469
81470         * lib/argp.h: update from libc.
81471
81472 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81473
81474         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81475         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81476         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81477
81478 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81479
81480         * gnulib-tool: Use "test -h", not "test -L", for portability
81481         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81482         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81483         (sed_extract_prog): Issue s commands one-by-one, rather than
81484         using \| in one s command.
81485
81486 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81487
81488         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81489         input error, instead of returning NULL the next time we are called
81490         (and therefore losing track of errno).
81491
81492 2003-09-16  Bruno Haible  <bruno@clisp.org>
81493
81494         * gnulib-tool (func_create_testdir): Warn about duplicated
81495         dependencies.
81496
81497 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81498
81499         * modules/argmatch, modules/fatal, modules/obstack,
81500         modules/xalloc, modules/xgethostname: Sort dependencies by
81501         importance, not alphabetically.
81502
81503 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81504
81505         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81506         fails, so that the caller gets the proper errno.
81507
81508         * lib/readutmp.c (read_utmp): Likewise.
81509         Check for fstat error.  Close stream and free storage
81510         when failing.
81511
81512 2003-09-14  Karl Berry  <karl@gnu.org>
81513
81514         * config/srclist.txt (strdup.c): disable for c89 changes.
81515
81516 2003-09-14  Jim Meyering  <jim@meyering.net>
81517
81518         * lib/getloadavg.c: Correct cpp indentation.
81519         * lib/strdup.c: Likewise.
81520         * lib/vasnprintf.c: Likewise.
81521
81522 2003-09-14  Bruno Haible  <bruno@clisp.org>
81523
81524         * modules/fwriteerror: New file.
81525         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81526
81527 2003-09-14  Bruno Haible  <bruno@clisp.org>
81528
81529         * lib/fwriteerror.h: New file.
81530         * lib/fwriteerror.c: New file.
81531
81532 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81533
81534         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81535         modules/xgethostname, modules/xalloc: Depend on exit.
81536
81537 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81538
81539         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81540
81541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81542         and AC_MINIX, too, so that their extensions are available.
81543
81544         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81545         This macro has been superseded by gl_BACKUPFILE.
81546
81547         More patches to assume C89 or better.
81548
81549         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81550
81551         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81552         unconditionally.
81553         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81554         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81555         Include <string.h>, <stdlib.h> unconditionally.
81556         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81557         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81558         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81559         headers or for string.h.
81560         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81561         or strtoul.
81562
81563         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81564         headers.
81565         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81566         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81567         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81568         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81569         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81571         memcpy, memset.
81572         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81573         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81574         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81575         strtol.
81576         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81577         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81578         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81579         strtoul.
81580
81581 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81582
81583         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81584         * lib/obstack.c [!defined _LIBC]: Likewise.
81585         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81586         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81587         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81588
81589         More changes to assume C89 or better.
81590
81591         * lib/error.c (error_tail): Assume vprintf.
81592
81593         * lib/argmatch.c (getenv): Remove decl.
81594         * lib/progreloc.c (get_full_program_name): Define via prototype.
81595         * lib/setenv.c (clearenv): Likewise.
81596         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81597         needed.
81598         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81599         (malloc, memcpy): Remove decls.
81600         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81601         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81602         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81603         (memcpy): Remove macro.
81604         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81605         (__P): Remove.  All uses removed.
81606         (PTR): Remove.  All uses changed to void *.
81607         (CHAR_BIT, NULL): Remove.
81608         (spaces, zeros, memset_space, memset_zero)
81609         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81610         Remove.
81611         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81612         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81613         Define with prototype.
81614         Remove now-unnecessary prototype decl.
81615         (extra_args_spec): Assume ANSI C.  All uses changed.
81616         (extra_args_spec_iso): Remove.
81617         (my_strftime, emacs_strftimeu): Define via prototype.
81618         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81619         unconditionally.
81620         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81621         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81622         (strtoul, strtol): Remove decls.
81623         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81624         LONG_MAX): Remove.
81625         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81626         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81627         (LOCALE_PARAM_PROTO): New macro.
81628         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81629         (INTERNAL (strtol), strtol): Define with a prototype.
81630         (PARAMS): Remove.  All uses removed.
81631         * lib/tempname.c: Include <string.h> unconditionally.
81632         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81633         * lib/xgethostname.c (main): Define with a prototype.
81634         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81635         Include <stdlib.h> unconditionally.
81636         (calloc, malloc, realloc, free): Remove decls.
81637         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81638         Include <stdlib.h> unconditionally.  Sort include file names.
81639         (strtod): Remove.
81640         (xstrtod): Define with a prototype.
81641         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81642         (strtol, strtoul): Remove decls.
81643
81644 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81645
81646         More patches to assume C89 or better.
81647         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81648         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81649         string.h, memchr, STDC_HEADERS.
81650
81651 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81652
81653         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81654         Include <stdlib.h>, <string.h> unconditionally.
81655         Remove now-unnecessary cast to char *.
81656         * lib/strnlen.c: Include <string.h> unconditionally.
81657         * lib/yesno.c (yesno): Define with a prototype.
81658
81659 2003-09-11  Bruno Haible  <bruno@clisp.org>
81660
81661         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81662
81663 2003-09-10  Jim Meyering  <jim@meyering.net>
81664
81665         * lib/error.c: Correct indentation of cpp directives.
81666
81667 2003-09-10  Bruno Haible  <bruno@clisp.org>
81668
81669         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81670         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81671         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81672         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81673         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81674         <stdlib.h> and <string.h> checks.
81675         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81676         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81677
81678 2003-09-10  Bruno Haible  <bruno@clisp.org>
81679
81680         * lib/strcspn.c: Include <string.h> unconditionally.
81681         * lib/strpbrk.c: Include <string.h> unconditionally.
81682         * lib/strstr.c: Include <string.h> unconditionally.
81683         * lib/unicodeio.c: Include <string.h> unconditionally.
81684         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81685         * lib/unsetenv.c: Likewise.
81686         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81687         * lib/yesno.c: Include <stdlib.h> unconditionally.
81688         (rpmatch): Add prototype.
81689
81690 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81691
81692         More patches to assume C89 or better.
81693         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81694         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81695         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81696         or for string.h.
81697         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81698         stdlib.h.
81699         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81700         C headers.
81701         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81702         string.h.
81703         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81704         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81705         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81706         or for string.h.
81707         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81708         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81709         C headers.
81710         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81711         memcpy.
81712         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81713         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81714         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81715         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81716         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81717         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81718         string.h, free.
81719         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81720         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81721         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81722         C headers, or for string.h.
81723         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81724         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81725         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81726         headers, memory.h, stdlib.h, string.h, strings.h.
81727         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81728         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81729         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81730         strchr.
81731         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81732         headers, memory.h, string.h.
81733         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81734         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81735         free.
81736         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81737         headers.
81738         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81739         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81740         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81741         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81742         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81743
81744 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81745
81746         More K&R removal.
81747
81748         * lib/acosl.c (main): Use a prototype.
81749         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81750         tanl.c: Likewise.
81751
81752         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81753
81754         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81755         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81756         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81757         with a prototype.
81758         * lib/getopt.c (const): Remove macro.
81759         Include <string.h> unconditionally.
81760         (my_index): Remove; all uses changed to strchr.
81761         (strlen): Remove decl.
81762         (exchange): Remove forward decl; no longer needed.
81763         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81764         Define with prototype.
81765         * lib/getopt1.c (const): Remove macro.
81766         (getopt_long, getopt_long_only, main): Define with prototype.
81767
81768         * lib/getugroups.c: Include <string.h> unconditionally.
81769
81770         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81771         (getusershell, setusershell, endusershell, readname, main):
81772         Define with prototypes.
81773
81774         * lib/group-member.c: Include group-member.h first.
81775         Include <stdlib.h> unconditionally.
81776
81777         * lib/hard-locale.c: Include hard-locale.h first.
81778         Include <stdlib.h>, <string.h> unconditionally.
81779
81780         * lib/hash.c (free, malloc): Remove decls.
81781         Include <stdlib.h> unconditionally.
81782
81783         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81784         (getenv): Do not declare.
81785
81786         * lib/idcache.c: Include <string.h> unconditionally.
81787
81788         * lib/long-options.c: Include long-options.h first, to test interface.
81789         Include <stdlib.h> unconditionally.
81790
81791         * lib/makepath.c: Include makepath.h first, to test interface.
81792         Include <stdlib.h> and <string.h> unconditionally.
81793
81794         * lib/linebuffer.c: Include <stdlib.h>.
81795         (free): Remove decl.
81796
81797         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81798         stddef.h. rpl_malloc returns void *, not char *.
81799         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81800         prototype.
81801
81802         * lib/md5.h: Include <limits.h> unconditionally.
81803         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81804         (__P): Remove; all uses removed.
81805         * lib/md5.c: Include "md5.h" first.
81806         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81807         md5_buffer, md5_process_bytes, md5_process_block):
81808         Define with prototypes.
81809         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81810         * lib/sha.c: Include "sha.h" first.
81811         Include <stdlib.h>, <string.h> unconditionally.
81812
81813         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81814         * lib/memcmp.c (__ptr_t): Likewise.
81815         * lib/memrchr.c (__ptr_t): Likewise.
81816         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81817         Include <string.h> unconditionally.
81818         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81819         * lib/memchr.c: Include <stdlib.h> unconditionally.
81820         * lib/memchr.c (LONG_MAX): Remove.
81821         * lib/memrchr.c (LONG_MAX): Likewise.
81822         * lib/memchr.c (__memchr): Define via a prototype.
81823         * lib/memrchr.c (__memrchr): Likewise.
81824         * lib/memcmp.c (__P): Remove, and remove all uses.
81825         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81826         Remove forward decls; no longer needed.
81827         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81828         Use types required by C89 in prototype.
81829
81830         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81831         * lib/savedir.c: Likewise.
81832         * lib/mkdir.c (free): Remove decl.
81833         * lib/rmdir.c (rmdir): Define with a prototype.
81834         * lib/savedir.c: Include savedir.h first, to test interface.
81835
81836         * lib/mktime.c (STDC_HEADERS): Remove.
81837         Include <stdlib.h>, <string.h> unconditionally.
81838
81839         * lib/modechange.c: Include <stdlib.h> unconditionally.
81840         (malloc): Remove decl.
81841
81842         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81843         (free): Remove decl.
81844
81845         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81846         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81847         (This type really should be intptr_t, but that's a C99ism.)
81848         (_obstack_memcpy): Remove: all uses changed to memcpy.
81849         Include <string.h> unconditionally.
81850         (struct obstack): Assume __STDC__ for types of members
81851         chunkfun, freefun, extra_arg.
81852         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81853         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81854         obstack_begin, obstack_specify_allocation,
81855         obstack_specify_allocation_with_arg, obstack_chunkfun,
81856         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81857         Remove unprototyped decls and the macros that use them.
81858         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81859         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81860         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81861         (defined __STDC__ && __STDC__)]:
81862         Remove nonprototyped code.
81863         Include <stdlib.h> unconditionally.
81864         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81865         _obstack_allocated_p, _obstack_free, obstack_free,
81866         _obstack_memory_used, print_and_abort):
81867         Define using prototypes.
81868         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81869         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81870         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81871         obstack_next_free, obstack_object_size, obstack_room) [0]:
81872         Remove unused, unprototyped code.
81873
81874         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81875
81876         * lib/physmem.c (physmem_total, physmem_available, main): Define
81877         with prototypes.
81878
81879         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81880         (main): Define with a prototype.
81881
81882         * lib/posixver.c (getenv): Remove decl.
81883
81884         * lib/putenv.c (malloc): Returns void *, not char *.
81885         Include <string.h> unconditionally.
81886         (strchr, memcpy, NULL): Do not define.
81887
81888         * lib/readtokens.c: Include readtokens.h first, to test interface.
81889         Include <stdlib.h>, <string.h> unconditionally.
81890         (init_tokenbuffer): Define with a prototype.
81891
81892         * lib/regex.c (PARAMS): Remove.  All uses removed.
81893         All uses of _RE_ARGS removed, too.
81894         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81895         unconditionally.
81896         (bzero): Assume memset exists.
81897         (memcmp, memcpy, NULL): Remove.
81898         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81899         char, or assignments to local vars of type signed char.
81900         (init_syntax_once, PREFIX(extract_number_and_incr),
81901         PREFIX(print_partial_compiled_pattern),
81902         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81903         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81904         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81905         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81906         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81907         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81908         wcs_compile_range, byte_compile_range, truncate_wchar,
81909         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81910         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81911         count_mbs_length, wcs_re_match_2_internal,
81912         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81913         PREFIX(alt_match_null_string_p),
81914         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81915         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81916         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81917         now-unnecessary declaration, if any.
81918         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81919         regcomp, regexec):
81920         Remove now-unnecessary casts among pointer types.
81921         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81922
81923         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81924         (free): Remove decl.
81925
81926         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81927
81928         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81929         (free): Remove decl.
81930
81931         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81932         * lib/xgetcwd.c: Likewise.
81933
81934         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81935         (free): Remove decl.
81936
81937         * lib/strchrnul.c (strchrnul): Define with a prototype.
81938         Fix bug: c_in was not converted to char before searching.
81939
81940         The following changes are not K&R related:
81941
81942         * lib/group-member.h: Include <sys/types.h>, so that this file is
81943         self-contained.
81944         * lib/makepath.h: Likewise.
81945
81946         * lib/getusershell.c (readname, default_index, line_size, readname):
81947         Use size_t, not int, for sizes.
81948         (readname): If the size overflows, report an error instead of
81949         looping forever.
81950
81951 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81952
81953         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81954         libc.
81955
81956 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81957
81958         * README: New section: portability guidelines.
81959
81960 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81961
81962         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81963         C89 spec.
81964
81965 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81966
81967         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81968
81969 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81970
81971         Assume C89 or better; remove K&R cruft.
81972         A few of these changes were first proposed by Derek Robert Price
81973         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81974
81975         * lib/addext.c: Include <string.h> unconditionally.
81976         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81977         Don't declare getenv or malloc.
81978
81979         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81980         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81981         (NULL): Remove.
81982         (find_stack_direction, alloca): Use prototypes.
81983
81984         * lib/atexit.c (atexit): Define using a prototype.
81985
81986         * lib/basename.c, dirname.c, stripslash.c:
81987         Include <string.h> unconditionally.
81988
81989         * lib/bcopy.c: Include <stddef.h>.
81990         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81991
81992         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81993
81994         * lib/error.h (error, error_at_line, error_print_progname)
81995         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81996         * lib/error.c: Include error.h first, to check interface.
81997         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81998         (VA_START): Remove; all uses changeed to va_start.
81999         (exit, strerror): Remove decls.
82000         (error_print_progname): Prototype uncondionally.
82001         Don't include <errno.h>; no longer needed.
82002         (private_strerror): Remove.
82003         (error_tail): Always define.
82004         (error, error_at_line): Assume C89 or better; always use prototypes.
82005         * lib/fatal.c: Include "fatal.h" first, to test interface.
82006         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82007         (VA_START): Remove; all uses changed to va_start.
82008         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82009         this case.
82010         (exit): Remove decl.
82011         (fatal): Prototype unconditionally.  Assume va_start works.
82012         Abort at end, to pacify gcc.
82013
82014         * lib/euidaccess.c (main): Define with a prototype.
82015
82016         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82017
82018         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82019
82020         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82021         prototypes.
82022         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82023         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82024         (getenv): Remove decl.
82025         (fnmatch): Define using a prototype.
82026         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82027         (FCT): Define using a prototype.
82028
82029         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82030
82031         * lib/gethostname.c: Include <stddef.h>.
82032         (gethostname): Define with prototype.  Length is size_t, not int.
82033
82034 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82035
82036         Assume C89 or better; remove K&R cruft.
82037         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82038         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82039         string.h, getenv, malloc.
82040         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82041         headers.
82042         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82043         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82044         do not check for strerror.
82045         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82046         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82047         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82048         do not check for doprnt or vprintf.
82049         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82050         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82051
82052 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82053
82054         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82055         getversion.c should have been removed then, but was accidentally
82056         preserved.
82057
82058         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82059         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82060
82061 2003-09-08  Karl Berry  <karl@gnu.org>
82062
82063         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82064                 config, forget about prep.
82065
82066         * config/depcomp, missing: update from automake.
82067
82068 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82069
82070         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82071         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82072
82073 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82074
82075         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82076         copy_tm_result.  Bug reported by Simon Josefsson in
82077         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82078
82079 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82080
82081         * m4/time_r.m4: New file.
82082         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82083         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82084         is. Check for timegm declaration.
82085         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82086         Do not check for gmtime_r.
82087         Replace mktime if __mktime_internal does not exist and if mktime
82088         hasn't been replaced already.
82089
82090 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82091
82092         * lib/time_r.c, lib/time_r.h: New files.
82093
82094         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82095         __localtime_r.
82096         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82097         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82098
82099         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82100         __gmtime_r.
82101         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82102         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82103         Include <time_r.h>.
82104
82105         * lib/timegm.c: Switch to glibc implementation, with the following
82106         changes:
82107         [defined HAVE_CONFIG_H]: Include <config.h>.
82108         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82109         (__mktime_internal) [!defined _LIBC]: New decl.
82110         (__gmtime_r) [!defined _LIBC]: New macro and function.
82111         (timegm): Use a prototype, since gnulib assumes C89.
82112         Do not bother declaring tmp to be const, as it's not really usefu.
82113         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82114         (timegm): Declare only if HAVE_DECL_TIMEGM.
82115
82116 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82117
82118         * MODULES.html.sh (func_all_modules): Add time_r.
82119         * modules/time_r: New file.
82120         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82121         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82122
82123 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82124
82125         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82126         Bug reported by Lute Kamstra in
82127         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82128
82129         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82130         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82131         course with correspondingly smaller numbers for tomorrow and
82132         yesterday.  From Tadayoshi Funaba.  Originally installed into
82133         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82134         coreutils merge?).
82135
82136 2003-08-31  Simon Josefsson  <jas@extundo.com>
82137
82138         * modules/timegm: New file.
82139         * MODULES.html.sh (func_all_modules): Add timegm.
82140
82141 2003-08-31  Simon Josefsson  <jas@extundo.com>
82142
82143         * m4/timegm.m4: New file.
82144
82145 2003-08-31  Simon Josefsson  <jas@extundo.com>
82146
82147         * lib/timegm.h: New file.
82148         * lib/timegm.c: New file.  Based on
82149         wget-1.8.2/src/http.c:mktime_from_utc.
82150
82151 2003-08-31  Karl Berry  <karl@gnu.org>
82152
82153         * lib/argp.h: update from libc.
82154
82155 2003-08-28  Bruno Haible  <bruno@clisp.org>
82156
82157         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82158         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82159         followed by '#define fnmatch fnmatch_posix' gives an error.
82160
82161 2003-08-28  Bruno Haible  <bruno@clisp.org>
82162
82163         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82164         warning on QNX, which defines O_BINARY to 000000.
82165
82166 2003-08-27  Jim Meyering  <jim@meyering.net>
82167
82168         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82169         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82170         would fail after 32.  Reported by Danny Levinson.  Details here:
82171         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82172
82173 2003-08-24  Bruno Haible  <bruno@clisp.org>
82174
82175         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82176         MSVC7 <stdio.h> is included later.
82177
82178 2003-08-22  Simon Josefsson  <jas@extundo.com>
82179
82180         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82181
82182 2003-08-20  Karl Berry  <karl@gnu.org>
82183
82184         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82185
82186 2003-08-20  Bruno Haible  <bruno@clisp.org>
82187
82188         * modules/progname: New file.
82189         * MODULES.html.sh (func_all_modules): Add progname.
82190
82191 2003-08-20  Bruno Haible  <bruno@clisp.org>
82192
82193         * lib/progname.h: New file, from GNU gettext.
82194         * lib/progname.c: New file, from GNU gettext.
82195         * lib/progreloc.c: New file, from GNU gettext.
82196
82197 2003-08-19  Jim Meyering  <jim@meyering.net>
82198
82199         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82200         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82201
82202 2003-08-19  Bruno Haible  <bruno@clisp.org>
82203
82204         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82205         more.
82206
82207 2003-08-19  Bruno Haible  <bruno@clisp.org>
82208
82209         * lib/xstrdup.c: Assume <string.h> exists.
82210
82211 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82212
82213         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82214         in makefile rules.
82215
82216 2003-08-18  Jim Meyering  <jim@meyering.net>
82217
82218         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82219         * m4/lib-ld.m4: Likewise.
82220
82221 2003-08-18  Jim Meyering  <jim@meyering.net>
82222
82223         * lib/setenv.h: Indent nested cpp directive.
82224         * lib/vasnprintf.c: Remove trailing blanks.
82225
82226 2003-08-17  Simon Josefsson  <jas@extundo.com>
82227
82228         * modules/xstrndup: New file.
82229         * MODULES.html.sh (func_all_modules): Add xstrndup.
82230
82231 2003-08-17  Simon Josefsson  <jas@extundo.com>
82232
82233         * modules/argp: Fix autoconf macro name. Add more dependencies.
82234
82235 2003-08-17  Simon Josefsson  <jas@extundo.com>
82236
82237         * m4/xstrndup.m4: New file.
82238
82239 2003-08-17  Simon Josefsson  <jas@extundo.com>
82240
82241         * m4/argp.m4: New file.
82242
82243 2003-08-17  Simon Josefsson  <jas@extundo.com>
82244             Bruno Haible  <bruno@clisp.org>
82245
82246         * lib/xstrndup.h: New file.
82247         * lib/xstrndup.c: New file.
82248
82249 2003-08-17  Bruno Haible  <bruno@clisp.org>
82250
82251         * modules/strndup (Files, Include): Add lib/strndup.h.
82252
82253 2003-08-17  Bruno Haible  <bruno@clisp.org>
82254
82255         * modules/euidaccess (Files): Add lib/euidaccess.h.
82256
82257 2003-08-17  Bruno Haible  <bruno@clisp.org>
82258
82259         * lib/strndup.h: New file.
82260
82261 2003-08-17  Bruno Haible  <bruno@clisp.org>
82262
82263         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82264         like AC_GNU_SOURCE.
82265         * modules/extensions (configure.ac): Comment out the invocation of
82266         gl_USE_SYSTEM_EXTENSIONS.
82267
82268 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82269
82270         Merges from coreutils, etc.
82271         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82272         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82273         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82274         fixing a typo.
82275         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82276         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82277
82278 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82279
82280         Document merge from coreutils.
82281         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82282         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82283         * modules/utime: Add m4/utimes-null.m4.
82284
82285 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82286
82287         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82288         space, undoing this 2003-08-12 change:
82289         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82290
82291 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82292
82293         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82294         strtoul.c from libc, undoing this 2003-08-12 change:
82295         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82296
82297 2003-08-16  Jim Meyering  <jim@meyering.net>
82298
82299         Merges from coreutils.
82300         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82301         prefix.  Adjust cache variables similarly.  Create 500 rather than
82302         just 300 files, to exercise bug on Darwin6.5, too.
82303         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82304         $missing_dir.
82305         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82306         AM_SYS_POSIX_TERMIOS.
82307         Reported by mkc@mathdogs.com.
82308         Also change use of $am_cv_sys_posix_termios
82309         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82310         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82311         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82312         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82313         in /proc/mounts until it finds one with matching device number.  This
82314         is unnecessary when the FILE argument *is* a mount point.  No stat call
82315         is necessary in that case.  So, disable the statvfs-testing code on
82316         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82317         as RedHat bug# 84846.
82318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82319         to 1MB, so as not to render systems with no stack size limit (e.g.,
82320         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82321         Include <unistd.h>.  On some systems,
82322         it is required for the definition of _SC_PAGESIZE.
82323
82324 2003-08-16  Jim Meyering  <jim@meyering.net>
82325
82326         Merge from coreutils.
82327         * lib/xstrtoimax.c: #else #if -> #elif.
82328         * lib/xstrtoumax.c: Likewise.
82329
82330 2003-08-16  Jim Meyering  <jim@meyering.net>
82331
82332         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82333         * m4/utimes.m4: Removed.
82334         * m4/utimes-null.m4: Renamed from utimes.m4.
82335
82336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82337         to 1MB, so as not to render systems with no stack size limit (e.g.,
82338         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82339         Include <unistd.h>.  On some systems,
82340         it is required for the definition of _SC_PAGESIZE.
82341
82342 2003-08-16  Jim Meyering  <jim@meyering.net>
82343         and Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         Merges from coreutils, etc.
82346
82347         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82348         using the latest version from cvs.  This avoids problems with #line
82349         directives using a vendor (Sun) compiler.
82350         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82351         Don't set GETGROUPS_LIB here; now it's
82352         done via getgroups.m4's wrapper function.
82353         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82354         rather than just in sh-util/configure.in, so that the
82355         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82356         same.
82357         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82358         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82359         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82360         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82361         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82362         Remove code that is now done by the newly-required macros.
82363         Append $(EXEEXT) to DF_PROG.
82364         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82365         Do not invoke or require the following here,
82366         since prereq.m4 or some gnulib .m4 now does this for us:
82367         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82368         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82369         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82370         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82371         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82372         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82373         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82374         AC_FUNC_OBSTACK.
82375         Do not replace the following functions, as this is now the job
82376         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82377         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82378         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82379         atexit getpass, strdup, getpagesize.
82380         Replace 'raise'.
82381         Do not check for the following functions, as this is now the job
82382         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82383         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82384         setregid.
82385         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82386         Check for sys/sysctl.h.
82387         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82388         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82389         of checking for ssize_t ourselves.
82390
82391         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82392         Require every macro that gnulib/modules/* suggests for us.
82393         (jm_PREREQ_ADDEXT): New macro.
82394         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82395         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82396
82397         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82398         (gl_PHYSMEM): Use it.
82399         Also check for `table' function.
82400         Check for new headers and functions.
82401         Add check for sys/sysmp.h.
82402         With suggestions from Kaveh Ghazi.
82403         Ignore headers that are present but cannot be compiled.  This
82404         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82405         C 5.4.
82406
82407 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82408
82409         Document merge from coreutils.
82410         * modules/userspec: Depend on posixver.
82411         * modules/strftime: Depend on tzset.
82412
82413 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82414
82415         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82416         rather than tab, after '#' in shell-script copyright notices.
82417         Suggested by Bruno Haible.
82418
82419 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82420
82421         * config/srclist-update: Use three spaces, rather than tab, after '#'
82422         in shell-script copyright notices.  Suggested by Bruno Haible.
82423         Remove unnecessary parenthesization in regular expression.
82424
82425 2003-08-15  Jim Meyering  <jim@meyering.net>
82426
82427         Merge from coreutils.
82428         * lib/xgethostname.c: Include <stdlib.h>.
82429         (xghostname): Don't exit for anything other than memory-related
82430         failure; just return NULL.
82431         * lib/userspec.c: Include "posixver.h".
82432         (parse_user_spec): Accept `.' as a separator only
82433         in pre-POSIX-200112 mode.
82434         * lib/strtoimax.c: Use #elif rather than #else #if.
82435         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82436         Remove function, now that we can rely on a working tzset function.
82437         [!_LIBC]: Ensure that the required autoconf test has been run.
82438         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82439         Use underlying_strftime for %r.
82440         * lib/sha.c: Merge in some clean-up and optimization changes from
82441         glibc.
82442         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82443         Ensure that it is a multiple of 64.
82444         Rearrange loop exit tests so as to avoid performing an
82445         additional fread after encountering an error or EOF.
82446         * lib/realloc.c: Update copyright date.
82447
82448 2003-08-15  Jim Meyering  <jim@meyering.net>
82449         and Paul Eggert  <eggert@twinsun.com>
82450
82451         Merge from coreutils.
82452         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82453         member but strut utmpx does not.  Needed for AIX 4.3.3.
82454         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82455
82456 2003-08-15  Jim Meyering  <jim@meyering.net>
82457         and Paul Eggert  <eggert@cs.ucla.edu>
82458
82459         Merges from coreutils, etc.
82460         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82461         Require gl_FUNC_TZSET_CLOBBER.
82462         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82463         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82464         members.
82465
82466 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82467
82468         Help the merge from coreutils.
82469         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82470         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82471         * m4/tzset.m4: Use it too.
82472
82473 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82474
82475         * modules/tzset: New file.
82476
82477 2003-08-14  Jim Meyering  <jim@meyering.net>
82478
82479         Merges from coreutils.
82480         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82481         variable names, rather than @FNMATCH_H@.
82482         * modules/alloca: Likewise for $(ALLOCA_H).
82483
82484         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82485         the three copies of the literal target, `fnmatch.h'.
82486         * modules/alloca (alloca.h): Likewise.
82487
82488 2003-08-14  Jim Meyering  <jim@meyering.net>
82489
82490         Merge from coreutils.
82491         * m4/tzset.m4: New file.
82492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82493         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82494         otherwise, AIX 5.1 systems would end up using the latter.
82495         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82496         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82497         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82498         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82499
82500 2003-08-14  Jim Meyering  <jim@meyering.net>
82501
82502         Merge from coreutils.
82503         * lib/obstack.h: Whitespace changes.
82504         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82505         and xcalloc return values.
82506         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82507         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82508         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82509         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82510         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82511         error from mntctl.
82512         Use mntctl's return value to drive the entry-processing loop, since
82513         we can't rely on the value of the vmt_length member in the last
82514         entry.  On some systems doing so could result in exhausting
82515         virtual memory.  Based in part on a patch from Mike Jetzer.
82516
82517 2003-08-14  Jim Meyering  <jim@meyering.net>
82518         and Paul Eggert  <eggert@twinsun.com>
82519
82520         Merges from coreutils, plus other fixes.
82521         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82522         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82523         for credits and details.  Thanks to Kaveh Ghazi for helping
82524         to keep these files in sync.
82525         (ARRAY_SIZE): Define it.
82526         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82527         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82528         (memcasecmp): Don't assume size_t fits in unsigned int.
82529         Remove casts and duplicate code.
82530         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82531         (memcpy): Remove definition.
82532         Merge in some clean-up and optimization changes from glibc.
82533         [BLOCKSIZE]: Move definition to top of file.
82534         Ensure that it is a multiple of 64.
82535         Rearrange loop exit tests so as to avoid performing an
82536         additional fread after encountering an error or EOF.
82537         * lib/md5.h (md5_uintptr): Define.
82538         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82539         return to the initial working directory.  Preserve errno
82540         for caller.
82541         * lib/idcache.c: Include "xalloc.h".
82542         (xmalloc, xrealloc): Remove decls.
82543         (getuser): Remove casts no longer required in C89.
82544         * lib/human.c: Include stdio.h, for sprintf.
82545         * lib/group-member.c: Include "xalloc.h".
82546         (xmalloc, xrealloc): Remove decls.
82547         (get_group_info): Remove casts no longer required in C89.
82548         * lib/getusershell.c (readname): Remove casts no longer required in
82549         C89.
82550         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82551         * lib/getline.c: Whitespace fix, from coreutils.
82552
82553 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82554
82555         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82556         Check for isascii.
82557
82558         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82559         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82560         Undo previous (whitespace-only) change.
82561
82562 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82563
82564         * lib/exclude.c: Include <ctype.h>
82565         (IN_CTYPE_DOMAIN): New macro.
82566         (is_space): New fn.
82567         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82568         and empty lines.
82569
82570         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82571         Undo previous (whitespace-only) change.
82572
82573 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82574
82575         * config/srclist-update: Change update back to the old behavior,
82576         leaving whitespace alone.  Use one 'sed' command rather than a
82577         pipeline.
82578         (fixlicense): Now a variable, not a function.
82579         (remove_trailing_blanks): Remove.
82580         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82581         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82582         Undo previous (whitespace-only) change.
82583
82584 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82585
82586         Merge from coreutils.
82587         * modules/euidaccess: Add lib_SOURCES, include for new
82588         file euidaccess.h
82589
82590 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82591
82592         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82593         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82594         Normalize leading white space and remove trailing white space.
82595
82596         Merge from coreutils
82597         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82598
82599         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82600         0.12.1.  These files are now being upgraded automatically by
82601         ../config/srclist-update.
82602
82603 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82604
82605         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82606         Normalize leading white space and remove trailing white space.
82607         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82608         notice, as per ../config/srclist-update.
82609
82610         Merge from coreutils.
82611         * lib/euidaccess.h: New file.
82612         * lib/euidaccess.c: Include it.
82613         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82614         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82615         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82616
82617 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82618
82619         * config/srclist-update: Add copyright notice.
82620         (remove_id_lines, remove_trailing_blanks): New constants.
82621         (fixfile): Use them to normalize spacing a bit in copied files.
82622         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82623         Normalize leading white space and remove trailing white space.
82624
82625         * config/texinfo.tex: Sync with texinfo.
82626
82627         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82628         strtoul.c from libc, to merge coreutils whitespace changes.
82629
82630         * config/srclist.txt: Get the following m4 files from gettext:
82631         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82632         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82633         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82634         wint_t.m4.
82635
82636 2003-08-12  Karl Berry  <karl@gnu.org>
82637
82638         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82639         been made.
82640
82641 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82642
82643         * modules/gnu-source, m4/gnu-source.m4:
82644         Remove; we're assuming Autoconf 2.54 or later now.
82645         Suggested by Bruno Haible.
82646         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82647
82648 2003-08-11  Bruno Haible  <bruno@clisp.org>
82649
82650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82651
82652 2003-08-11  Bruno Haible  <bruno@clisp.org>
82653
82654         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82655         (vasnprintf): Use it instead of wcslen.
82656
82657 2003-08-11  Bruno Haible  <bruno@clisp.org>
82658
82659         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82660         value to ensure that _Bool promotes to int. Use #define for _Bool when
82661         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82662
82663 2003-08-10  Karl Berry  <karl@gnu.org>
82664
82665         * lib/regex.h: update from libc (whitespace fix).
82666
82667 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82668
82669         Merge some files from coreutils.  These changes were
82670         originally made by Jim Meyering.
82671         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82672         many older Unixes require this.
82673         * lib/alloca.c (alloca): Remove cast to argument of free;
82674         no longer needed in C89.
82675         * lib/alloca_.h, regex.h: Fix white space to match
82676         what GNU indent does.
82677
82678 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82679
82680         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82681         apparently Emacs's Unicode mode got confused before my 2003-08-05
82682         checkin.
82683
82684 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82685
82686         * m4/extensions.m4: New file.
82687         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82688         Require gl_USE_SYSTEM_EXTENSIONS.
82689         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82690         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82691
82692 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82693
82694         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82695         * modules/extensions, modules/gnu-source: New files.
82696         * modules/timespec, modules/unlocked-io: Depend on extensions.
82697
82698 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82699
82700         * modules/restrict: New file.
82701         * MODULES.html.sh (func_all_modules): Add restrict.
82702         * modules/regex: Depend on restrict.
82703
82704 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82705
82706         * m4/restrict.m4: New file.
82707         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82708
82709 2003-08-07  Bruno Haible  <bruno@clisp.org>
82710
82711         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82712         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82713
82714 2003-08-07  Bruno Haible  <bruno@clisp.org>
82715
82716         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82717         makes the module 'getndelim2' compatible with the module 'getline'.
82718
82719 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82720
82721         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82722         byte with "\201" to avoid glitches when editing that source file
82723         with multi-gnome-terminal.
82724
82725 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82726
82727         * lib/bumpalloc.h: Remove.
82728
82729 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82730
82731         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82732         * modules/bumpalloc: Remove.
82733
82734 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82735
82736         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82737         GNU coding style.
82738
82739         Merge from coreutils.
82740         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82741         1. From glibc.
82742         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82743         from Karl Berry, implemented by Jim Meyering.
82744         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82745         from Dmitry V. Levin.
82746         Remove anachronistic cast of xrealloc.
82747         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82748         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82749         type. Otherwise, it wouldn't compile with at least /bin/cc on
82750         ymp-cray-unicos9.0.2.X.
82751         Combine two mostly-identical uses of alloca into one.
82752         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82753
82754 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82755
82756         [From Emacs.]
82757
82758         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82759         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82760         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82761         obsolete NLIST_NAME_UNION.
82762         [__GNU__]: Undef BSD and FSCALE.
82763         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82764
82765 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82766
82767         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82768         an enum type, so that it's guaranteed to promote to int.  See:
82769         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82770
82771 2003-08-03  Karl Berry  <karl@gnu.org>
82772
82773         * config/depcomp: update from automake.
82774
82775 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82776
82777         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82778         (strerror): Don't assume that a printable int fits in 14 bytes.
82779
82780 2003-07-31  Bruno Haible  <bruno@clisp.org>
82781
82782         * modules/getpass-gnu: New file.
82783         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82784
82785 2003-07-31  Bruno Haible  <bruno@clisp.org>
82786
82787         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82788
82789 2003-07-24  Karl Berry  <karl@gnu.org>
82790
82791         * config/missing: update from automake.
82792
82793 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82794             Bruno Haible  <bruno@clisp.org>
82795
82796         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82797         * lib/getline.c (getline, getdelim): Likewise.
82798         Remove _GNU_SOURCE define; now it's defined in config.h through
82799         m4/getline.m4.
82800
82801 2003-07-23  Karl Berry  <karl@gnu.org>
82802
82803         * config/config.sub: update from prep.
82804
82805 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82806
82807         * modules/xalloc (Depends-on): Add exitfail.
82808         * modules/xmemcoll: Likewise.
82809
82810 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82811
82812         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82813         over-parenthesization in macros.
82814
82815         Sync with coreutils.
82816
82817         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82818         required by C99.
82819
82820         Use `exit_failure' for xalloc and xmemcoll instead of their own
82821         private exit-failure variables.
82822         * lib/xalloc.h (xalloc_exit_failure): Remove.
82823         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82824         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82825         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82826         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82827         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82828
82829 2003-07-20  Jim Meyering  <jim@meyering.net>
82830
82831         * modules/closeout (Depends-on): Add exitfail.
82832         Suggestion from Bruno Haible.
82833
82834 2003-07-19  Karl Berry  <karl@gnu.org>
82835
82836         * config/config.sub: update from prep.
82837
82838 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82839
82840         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82841         Remove.
82842         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82843         to test that it can stand by itself.  Include "exitfail.h".
82844         Clients should set exit_failure instead.
82845         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82846
82847 2003-07-18  Bruno Haible  <bruno@clisp.org>
82848
82849         * modules/getndelim2: New file.
82850         * modules/getline: Share files with module getndelim2.
82851         * modules/getnline: Depend on getndelim2 instead of sharing files with
82852         it. Add getnline.c to lib_SOURCES.
82853         * MODULES.html.sh (func_all_modules): Add getndelim2.
82854
82855 2003-07-18  Bruno Haible  <bruno@clisp.org>
82856
82857         * m4/getndelim2.m4: New file.
82858         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82859         invoke gl_PREREQ_GETNDELIM2.
82860         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82861         gl_PREREQ_GETNDELIM2.
82862         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82863         gl_GETNDELIM2.
82864
82865 2003-07-18  Bruno Haible  <bruno@clisp.org>
82866
82867         * lib/getndelim2.h: New file.
82868         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82869         getndelim2.h.
82870         (getndelim2): Make non-static. Change return type to ssize_t.
82871         * lib/getline.h: Change argument names.
82872         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82873         * lib/getnline.c: Include getndelim2.h.
82874
82875 2003-07-18  Andreas Schwab  <schwab@suse.de>
82876
82877         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82878
82879 2003-07-17  Karl Berry  <karl@gnu.org>
82880
82881         * config/config.sub: update from prep.
82882
82883 2003-07-17  Bruno Haible  <bruno@clisp.org>
82884
82885         * modules/getnline: New file.
82886         * modules/getline: Add lib/getndelim2.c to source file list.
82887         * MODULES.html.sh (func_all_modules): Add getnline.
82888
82889 2003-07-17  Bruno Haible  <bruno@clisp.org>
82890
82891         * m4/getnline.m4: New file.
82892
82893 2003-07-17  Bruno Haible  <bruno@clisp.org>
82894
82895         * m4/Makefile.am.in: Remove file.
82896         * m4/Makefile.am: Remove file.
82897         * m4/Makefile.in: Remove file.
82898
82899 2003-07-17  Bruno Haible  <bruno@clisp.org>
82900
82901         * lib/getnline.h: New file.
82902         * lib/getnline.c: New file.
82903         * lib/getndelim2.c: New file, extracted from getline.c.
82904         (getndelim2): Renamed from getdelim2, with added nmax argument.
82905         * lib/getline.c: Include getndelim2.c.
82906         (getdelim2): Moved out to getndelim2.c.
82907         (getline, getdelim): Update.
82908
82909 2003-07-17  Bruno Haible  <bruno@clisp.org>
82910
82911         * lib/Makefile.am: Remove file.
82912         * lib/Makefile.in: Remove file.
82913
82914 2003-07-17  Bruno Haible  <bruno@clisp.org>
82915
82916         * configure.in: Remove file.
82917         * Makefile.in: Remove file.
82918
82919 2003-07-17  Bruno Haible  <bruno@clisp.org>
82920
82921         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82922
82923 2003-07-16  Karl Berry  <karl@gnu.org>
82924
82925         * config/srclist-update: was running fixlicense twice, which caused
82926                 texinfo.tex to be nullified for some reason.  Simplify,
82927                 $gplsrc is no longer needed as far as I can see?
82928
82929 2003-07-16  Jim Meyering  <jim@meyering.net>
82930
82931         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82932
82933 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82934
82935         * config/srclist.txt: Get the following files from gettext-runtime/intl
82936         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82937         ref-del.sin.  From Bruno Haible.
82938         * config/srclist-update (fixfile): Change grep pattern again, since the
82939         previous fix didn't work (there was another trailing $).  Use
82940         '[$]' to escape the $s.
82941
82942 2003-07-15  Karl Berry  <karl@gnu.org>
82943
82944         * lib/vasnprintf.c: update from gettext.
82945
82946 2003-07-15  Karl Berry  <karl@gnu.org>
82947
82948         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82949         gets expanded when surrounded by '$'.
82950
82951 2003-07-15  Jim Meyering  <jim@meyering.net>
82952
82953         * modules/save-cwd: Don't depend on error.  From Derek Price.
82954
82955 2003-07-15  Jim Meyering  <jim@meyering.net>
82956
82957         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82958
82959 2003-07-14  Simon Josefsson  <jas@extundo.com>
82960
82961         * modules/mempcpy: New file.
82962         * MODULES.html.sh (func_all_modules): Add mempcpy.
82963
82964 2003-07-14  Simon Josefsson  <jas@extundo.com>
82965
82966         * m4/mempcpy.m4: New file.
82967
82968 2003-07-14  Simon Josefsson  <jas@extundo.com>
82969
82970         * lib/mempcpy.h: New file.
82971         * lib/mempcpy.c: New file.
82972
82973 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82974
82975         * modules/getdate, modules/posixtm: Depend on mktime.
82976
82977 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82978
82979         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82980         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82981         unicodeio.c, unicodeio.h, unlocked-io.h:
82982         Switch from LGPL to GPL.
82983
82984 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82985
82986         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82987         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82988         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82989         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82990         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82991         updated automatically by ../config/srclist-update.  This changes
82992         their license from LPGL to GPL.
82993
82994 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82995
82996         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82997         assumed to refer to the root of the most recent stable gettext version.
82998         * config/srclistvars.sh: Add defaults for eggert.
82999         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83000         Match "This program" as well as "The program".  This is needed
83001         for gettext.
83002
83003 2003-07-14  Jim Meyering  <jim@meyering.net>
83004
83005         Don't emit diagnostics.  Let callers do that.
83006         * lib/save-cwd.c: Don't include "error.h".
83007         (save_cwd): Don't call error.  Ensure that errno is valid
83008         when returning nonzero.
83009
83010         * lib/save-cwd.h (restore_cwd): Update prototype.
83011         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83012         Simplify.  Don't call error upon failure.  Let callers do that.
83013         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83014         when auditing is enabled.  But don't bother updating the #if.
83015
83016 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83017
83018         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83019         it breaks C++ compilation.
83020         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83021
83022 2003-07-10  Simon Josefsson  <jas@extundo.com>
83023
83024         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83025
83026 2003-07-10  Jim Meyering  <jim@meyering.net>
83027
83028         * m4/clock_time.m4: Remove trailing blank.
83029         * m4/intmax_t.m4: Likewise.
83030
83031 2003-07-10  Jim Meyering  <jim@meyering.net>
83032
83033         * lib/vasnprintf.c: Remove trailing blanks.
83034         Make cpp indentation consistent.
83035
83036 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83037
83038         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83039         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83040         Switch from LGPL to GPL.
83041
83042 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83043
83044         * config/srclist.txt: Sort sublists.  Add
83045         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83046         that differ from gnulib for one reason or another; we'd like this list
83047         to be smaller but for now let's document what we have.
83048
83049 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83050
83051         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83052         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83053         and sweeter "eval x=$x".
83054         * config/srclist.txt: Get lib/argp* from glibc.
83055
83056 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83057
83058         * lib/mktime.c: Fix some boundary cases and remove need for floating
83059         point.
83060
83061         Issue a compile-time diagnostic if time_t is floating point, or if
83062         two's complement arithmetic is not in effect, or if arithmetic
83063         right shift does not propagate the sign.  These assumptions were
83064         all in the original code but they weren't checked.
83065
83066         (TIME_T_MIDPOINT, verify): New macros.
83067         (__isleap): Remove; it has integer overflow problems.
83068         (leapyear): New function, without those problems.
83069         (ydhms_tm_diff): Remove; splitting into two parts.
83070         (ydhms_diff): New function, containing the arithmetic part of
83071         the old ydhms_tm_diff function.  Issue a compile-time
83072         diagnostic if we are not using C99 integer division.
83073         Avoid casts when possible.
83074         (guess_time_tm): New function, containing the checking part of
83075         the old ydhms_tm_diff function.  Return the new value, rather than
83076         the difference between it and the old.  Accept a new argument T
83077         so that *T specifies the old value.  Check for overflow in the result.
83078
83079         (__mktime_internal): Use a time_t offset, not a long int offset.
83080         This undoes the 2003-06-04 change, which is no longer needed now
83081         that we have better overflow checking.
83082         (localtime_offset): Likewise.
83083
83084         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83085         and long are 64-bit but int is only 32-bit.
83086         (ydhms_diff): Use long int to store year1 and yday1.
83087         Issue a compile-time diagnostic if long int is not wide enough.
83088
83089         (__mktime_internal): Use long int to store adjusted year and yday.
83090         Use plain C rather than preprocessor commands, if that doesn't
83091         affect efficiency.
83092         Check for overflow (and try to repair) after each probe
83093         rather than checking only at the very end.  This avoids some bugs
83094         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83095         does not equal GMT offset at maximum time).
83096         Use integer to check for overflow rather than floating point; this
83097         is more portable to non-IEEE hosts, and is a tad faster.
83098         When we detect that we are oscillating between two values,
83099         don't check whether tm_isdst has the requested value, since
83100         we already know the answer.  When tm_isdst has the wrong value,
83101         use a different heuristic to find the right one, based on the
83102         extreme values actually observed in practice in tz2003a,
83103         rather than the (overly optimistic) "previous 3 calendar quarters".
83104
83105         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83106         "T const" to accommodate glibc style.
83107         (check_result): Use less-confusing report format.  "long" -> "long int.
83108         (main): Likewise.
83109         Don't loop if the iteration overflows time_t.
83110         Allow a negative step in the iteration.
83111
83112 2003-07-06  Karl Berry  <karl@gnu.org>
83113
83114         * config/depcomp: update from automake.
83115         * config/config.sub: update from prep.
83116
83117 2003-07-03  Karl Berry  <karl@gnu.org>
83118
83119         * config/config.guess: update from prep.
83120
83121 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83122
83123         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83124         xreadlink.c now includes it unconditionally.
83125
83126 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83127
83128         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83129         having it depend on HAVE_SYS_TYPES_H.
83130
83131 2003-07-01  Bruno Haible  <bruno@clisp.org>
83132
83133         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83134         <sys/types.h> should be sufficient.
83135         Reported by Paul Eggert.
83136
83137 2003-06-26  Karl Berry  <karl@gnu.org>
83138
83139         * config/depcomp: update from automake.
83140
83141 2003-06-26  Bruno Haible  <bruno@clisp.org>
83142
83143         * modules/human: Depend on module stdbool.
83144
83145 2003-06-25  Bruno Haible  <bruno@clisp.org>
83146
83147         * modules/readlink: New file.
83148         * modules/xreadlink: Depend on it.
83149         * MODULES.html.sh (func_all_modules): Add readlink.
83150
83151 2003-06-25  Bruno Haible  <bruno@clisp.org>
83152
83153         * m4/readlink.m4: New file.
83154
83155 2003-06-25  Bruno Haible  <bruno@clisp.org>
83156
83157         * lib/readlink.c: New file.
83158
83159 2003-06-22  Karl Berry  <karl@gnu.org>
83160
83161         * config/srclist.txt: update mkinstalldirs from automake.
83162         * config/mkinstalldirs: update.
83163
83164 2003-06-22  Bruno Haible  <bruno@clisp.org>
83165
83166         Portability to mingw32.
83167         * m4/ssize_t.m4: New file, from GNU gettext.
83168         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83169         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83170
83171 2003-06-22  Bruno Haible  <bruno@clisp.org>
83172
83173         * modules/safe-read: Add m4/ssize_t.m4.
83174         * modules/xreadlink: Add m4/ssize_t.m4.
83175
83176 2003-06-20  Bruno Haible  <bruno@clisp.org>
83177
83178         Assume C89, so PARAMS isn't needed.
83179         * lib/unicodeio.h (PARAMS): Remove.
83180         * lib/unicodeio.c: Don't use PARAMS.
83181
83182 2003-06-18  Karl Berry  <karl@gnu.org>
83183
83184         * config/config.{guess,sub}: update from prep.
83185
83186 2003-06-18  Jim Meyering  <jim@meyering.net>
83187
83188         Merge changes from coreutils.
83189         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83190         Remove explicit declarations of xmalloc and realloc.
83191         Include xalloc.h.
83192         (read_utmp): Remove anachronistic cast of xmalloc.
83193
83194 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83195
83196         Assume C89, so PARAMS isn't needed.
83197         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83198         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83199         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83200         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83201         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83202         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83203         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83204         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83205         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83206         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83207         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83208         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83209         no longer needed. Anyway, config.h should always be included before any
83210         other file.
83211
83212 2003-06-11  Simon Josefsson  <jas@extundo.com>
83213
83214         * modules/sysexits: New file.
83215         * MODULES.html.sh (func_all_modules): Add sysexits.
83216
83217 2003-06-11  Simon Josefsson  <jas@extundo.com>
83218
83219         * lib/sysexit_.h: New file.
83220
83221 2003-06-11  Derek Price  <derek@ximbiot.com>
83222
83223         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83224         necessary.
83225
83226 2003-06-11  Bruno Haible  <bruno@clisp.org>
83227
83228         * m4/sysexits.m4: New file.
83229
83230 2003-06-10  Simon Josefsson  <jas@extundo.com>
83231
83232         * lib/argp.h: New file, from glibc.
83233         * lib/argp-ba.c: New file, from glibc.
83234         * lib/argp-eexst.c: New file, from glibc.
83235         * lib/argp-fmtstream.c: New file, from glibc.
83236         * lib/argp-fmtstream.h: New file, from glibc.
83237         * lib/argp-fs-xinl.c: New file, from glibc.
83238         * lib/argp-help.c: New file, from glibc.
83239         * lib/argp-namefrob.h: New file, from glibc.
83240         * lib/argp-parse.c: New file, from glibc.
83241         * lib/argp-pv.c: New file, from glibc.
83242         * lib/argp-pvh.c: New file, from glibc.
83243         * lib/argp-xinl.c: New file, from glibc.
83244
83245 2003-06-10  Simon Josefsson  <jas@extundo.com>
83246
83247         * modules/strchrnul: New file.
83248
83249 2003-06-10  Simon Josefsson  <jas@extundo.com>
83250
83251         * modules/argp: New file.
83252
83253 2003-06-10  Simon Josefsson  <jas@extundo.com>
83254
83255         * m4/strchrnul.m4: New file.
83256
83257 2003-06-10  Simon Josefsson  <jas@extundo.com>
83258
83259         * lib/strchrnul.h: New file.
83260         * lib/strchrnul.c: New file.
83261
83262 2003-06-10  Bruno Haible  <bruno@clisp.org>
83263
83264         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83265
83266 2003-06-07  Karl Berry  <karl@gnu.org>
83267
83268         * config/config.{guess,sub}: update from prep.
83269
83270 2003-06-07  Jim Meyering  <jim@meyering.net>
83271
83272         * modules/strtod: Use $(...) notation, not @...@ for
83273         AC_REPLACE'd variables.
83274         * modules/localcharset: Likewise.
83275
83276 2003-06-07  Jim Meyering  <jim@meyering.net>
83277
83278         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83279         in place of my name in the copyright comment.
83280         Remove definition and uses of __P.
83281
83282         From coreutils.
83283         * lib/stat.c: Don't declare xmalloc explicitly.
83284         Instead, include "xalloc.h".
83285         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83286         xrealloc, and xcalloc return values.
83287         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83288         Improve comment.
83289         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83290
83291 2003-06-07  Bruno Haible  <bruno@clisp.org>
83292
83293         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83294         avoid AC_CONFIG_LINKS.
83295         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83296         fnmatch.h, to avoid AC_CONFIG_LINKS.
83297         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83298
83299 2003-06-07  Bruno Haible  <bruno@clisp.org>
83300
83301         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83302         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83303         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83304         directory.
83305         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83306         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83307         directory.
83308
83309 2003-06-06  Jim Meyering  <jim@meyering.net>
83310
83311         Merge from coreutils.
83312         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83313         Consolidate declarations and initializations of *_base* locals.
83314
83315         Merge from coreutils.
83316         This avoids a core dump on systems without GNU putenv,
83317         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83318         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83319         (unsetenv): New static function, from GNU libc.
83320         (rpl_putenv): Use it.
83321
83322         * lib/modechange.c: Remove trailing blanks.
83323
83324         Merge from coreutils.
83325         * lib/fsusage.c: Remove declaration of statfs.
83326         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83327
83328         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83329
83330 2003-06-06  Jim Meyering  <jim@meyering.net>
83331
83332         * lib/stdbool_.h: Renamed from stdbool.h.in.
83333
83334 2003-06-06  Jim Meyering  <jim@meyering.net>
83335             Bruno Haible  <bruno@clisp.org>
83336
83337         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83338         Adjust Makefile.am snippet not to redirect directly to target.
83339         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83340
83341 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83342
83343         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83344         mismatch, look in future quarters as well as past.  This fixes a
83345         bug when processing fall-backwards gaps immediately after a long
83346         period of daylight-saving time.
83347
83348         * lib/mktime.c: Assume freestanding C89 or better.
83349         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83350         (__P): Remove; not used.
83351         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83352         (mktime, not_equal_tm, print_tm, check_result,
83353         main): Use prototypes.  Use const * where appropriate.
83354         (main): Fix typo in testing code that uncovered by above changes.
83355         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83356
83357 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83358
83359         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83360         locale.h, localeconv.  This merges changes from coreutils.
83361
83362         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83363         It can be removed after the next Autoconf is released.
83364         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83365         needed.
83366
83367 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83368
83369         * lib/mktime.c: Fix Debian bug 177940
83370         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83371         (localtime_offset): Now long int, not time_t, because we want it
83372         to be guaranteed to be signed.  All uses changed.
83373         (__mktime_internal): If overflow would occur when adding offset,
83374         don't add it.
83375
83376         Merge 'human' changes from coreutils.  Rewrite to support
83377         locale-specific notations like thousands separators.
83378         * lib/human.c: Simplify authorship notice.
83379         Include human.h immediately after config.h.
83380         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83381         <limits.h>: Do not include, since human.h does.
83382         (SIZE_MAX, UINTMAX_MAX): New macros.
83383         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83384         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83385         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83386         (power_letter): Renamed from suffixes.
83387         (generate_suffix_backwards): Remove.
83388         (adjust_value): Now takes int style (because of human.h changes)
83389         and long double value (for greater precision on some platforms).
83390         (group_number): New function.
83391         (human_readable): Use it.  Use integer options, not enum.
83392         Put the options before the sizes in the arg list.
83393         Support all the new options.
83394         The old human_readable function has been removed;
83395         use inttostr.h instead.
83396         (human_readable, default_block_size, humblock):
83397         Use uintmax_t, not int, for block sizes.
83398         (human_readable_inexact, block_size_types): Remove.
83399         (block_size_opts): New constant.
83400         (human_options): Renamed from human_block_size, with new signature
83401         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83402         * lib/human.h: Add copyright and authorship notice.
83403         Include <limits.h> and <stdbool.h> unconditionally.
83404         (PARAMS): Remove.  All uses removed.
83405         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83406         (enum human_inexact_style): Remove tag; now a nameless enum.
83407         (human_floor, human_ceiling, human_round_to_even): Now have
83408         values 2, 0, 1 rather than -1, 1, 0.
83409         (human_group_digits, human_suppress_point_zero, human_autoscale,
83410         human_base_1024, human_SI, human_B): New constants.
83411         (human_readable_inexact, human_block_size): Remove.
83412         (human_readable): Size args are now uintmax_t, not int.
83413         (human_options): New decl.
83414
83415         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83416         unnecessary now that we assume C89 or better.  This change
83417         imported from coreutils.
83418
83419         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83420         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83421         in the 2003-05-30 sync from glibc.
83422
83423         .h files should stand alone, but we shouldn't include <sys/types.h>
83424         if we can get away with just <stddef.h>.
83425
83426         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83427         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83428         rather than <sys/types.h>, as we merely need size_t.
83429         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83430         to get size_t.
83431         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83432         Include <stdio.h>, to get FILE.
83433         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83434         memcasecmp.h has included <stddef.h> and all we need is size_t.
83435         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83436         our interface, instead of including <sys/types.h>
83437
83438 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83439
83440         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83441         now, as glibc mktime is buggy on non-glibc systems.
83442
83443 2003-06-03  Karl Berry  <karl@gnu.org>
83444
83445         * config/config.sub: update from prep.
83446
83447 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83448
83449         [from coreutils]
83450         Fix some minor time-related bugs with POSIX time arguments.
83451         Some valid time stamps were being rejected (notably -1, and
83452         time stamps before 1900 on 64-bit hosts).  And some invalid
83453         time stamps were being accepted, e.g. September 31.
83454
83455         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83456         that we can return (time_t) -1 successfully.
83457         * lib/posixtm.c: Likewise.
83458         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83459         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83460         (t): Remove static var.
83461         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83462         of static var.  All uses changed.
83463         (year): Do not reject years before 1900; they can occur with
83464         64-bit time_t.
83465         (posix_time_parse): Do not check for out-of-range components;
83466         that is now the caller's responsibility, since our checks were
83467         only approximations.
83468         (posixtime): Use mktime to check for out-of-range components,
83469         since it knows them exactly.
83470         If mktime returns (time_t) -1, check whether an error actually occurred
83471         by invoking localtime on -1.
83472         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83473         posixtime failures better.
83474         Improve the test data (in comments only).
83475
83476 2003-06-02  Karl Berry  <karl@gnu.org>
83477
83478         * config/mkinstalldirs (version): new variable.
83479         (--version): new option.
83480         (usage): improve message.
83481
83482 2003-05-30  Karl Berry  <karl@gnu.org>
83483
83484         * lib/mktime.c: update from libc.
83485
83486 2003-05-30  Bruno Haible  <bruno@clisp.org>
83487
83488         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83489         * config/config.rpath: Upgrade to gettext-0.12.1.
83490
83491 2003-05-30  Bruno Haible  <bruno@clisp.org>
83492
83493         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83494         * m4/nls.m4: New file, from gettext-0.12.1.
83495         * m4/po.m4: New file, from gettext-0.12.1.
83496         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83497
83498 2003-05-30  Bruno Haible  <bruno@clisp.org>
83499
83500         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83501         * lib/localcharset.h: Likewise.
83502         * lib/localcharset.c: Likewise.
83503
83504 2003-05-29  Karl Berry  <karl@gnu.org>
83505
83506         * config/config.rpath: update from gettext.
83507
83508 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83509
83510         Assume the headers required for C89 freestanding compilers.
83511         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83512         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83513         * m4/human.m4 (gl_HUMAN): Likewise.
83514         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83515         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83516         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83517         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83518         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83519         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83520
83521 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83522
83523         Assume the headers required for C89 freestanding compilers.
83524         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83525         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83526         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83527         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83528         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83529         define, since <limits.h> is guaranteed to do that.
83530         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83531         * lib/exclude.c: Include <stdbool.h> unconditionally.
83532         * lib/tempname.c: Include <stddef.h> unconditionally.
83533         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83534         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83535         <stddef.h> does that.
83536         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83537         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83538         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83539         needed.
83540         * lib/xstrtol.c: Likewise.
83541         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83542         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83543
83544         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83545         warnings on some platforms.
83546
83547         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83548         arbitrarily.
83549
83550 2003-05-26  Jim Meyering  <jim@meyering.net>
83551
83552         Merge in a change from coreutils:
83553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83554         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83555         that condition, rather than `-1' which is slightly misleading.
83556         Change the name of the cache variable to have the gl_ prefix.
83557         Prompted by a patch from Richard Dawe for DJGPP.
83558
83559 2003-05-24  Karl Berry  <karl@gnu.org>
83560
83561         * config/config.guess: update from prep.
83562
83563 2003-05-22  Karl Berry  <karl@gnu.org>
83564
83565         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83566
83567 2003-05-20  Karl Berry  <karl@gnu.org>
83568
83569         * config/config.guess: update from prep.
83570
83571 2003-05-18  Karl Berry  <karl@gnu.org>
83572
83573         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83574         might actually be set by the user.
83575
83576         * config/depcomp, install-sh, mdate-sh: update from automake.
83577
83578 2003-05-17  Bruno Haible  <bruno@clisp.org>
83579
83580         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83581         invalid expansion for AC_EGREP_CPP.
83582         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83583         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83584         Suggested by Akim Demaille <akim@epita.fr> in
83585         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83586
83587 2003-05-12  Jim Meyering  <jim@meyering.net>
83588
83589         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83590         the space-padded-by-default conversion specifiers, %e, %k, %l.
83591
83592 2003-05-12  Bruno Haible  <bruno@clisp.org>
83593
83594         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83595         the string is longer than 4 KB.
83596
83597 2003-05-11  Karl Berry  <karl@gnu.org>
83598
83599         * config/config.{guess,sub}: update from prep.
83600
83601 2003-05-09  Bruno Haible  <bruno@clisp.org>
83602
83603         * modules/error: Add m4/strerror_r.m4 to file list.
83604
83605 2003-05-03  Bruno Haible  <bruno@clisp.org>
83606
83607         Upgrade to Unicode-4.0.
83608         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83609         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83610         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83611         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83612         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83613         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83614         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83615         Change width of U+E0100..U+E01EF from 1 to 0.
83616
83617 2003-04-25  Jim Meyering  <jim@meyering.net>
83618
83619         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83620         of type size_t, not int.
83621
83622 2003-04-25  Bruno Haible  <bruno@clisp.org>
83623
83624         * lib/copy-file.c: Include <stddef.h>, for size_t.
83625
83626 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83627
83628         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83629         code which expansion is under static control.  Patch imported from
83630         Akim Demaille's patch to Bison; see
83631         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83632
83633 2003-04-14  Bruno Haible  <bruno@clisp.org>
83634
83635         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83636
83637 2003-04-11  Jim Meyering  <jim@meyering.net>
83638
83639         Merge changes from Coreutils.
83640
83641         2003-03-22  Jim Meyering  <jim@meyering.net>
83642
83643         * lib/strftime.c (widen): Cast alloca return value to proper type.
83644
83645         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83646
83647         From GNU libc.
83648         * lib/strftime.c (my_strftime): Handle very large width
83649         specifications for numeric values correctly.  Improve checks for
83650         overflow.
83651
83652         2003-01-19  Jim Meyering  <jim@meyering.net>
83653
83654         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83655         definitions.
83656         (nl_get_alt_digit) [! defined my_strftime]: Define.
83657         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83658         _nl_get_alt_digit and _nl_get_walt_digit.
83659
83660         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83661         libc. These changes have no effect outside of _LIBC.
83662
83663 2003-04-10  Bruno Haible  <bruno@clisp.org>
83664
83665         * modules/findprog: New file.
83666         * MODULES.html.sh (func_all_modules): Add it.
83667
83668 2003-04-10  Bruno Haible  <bruno@clisp.org>
83669
83670         * m4/findprog.m4: New file.
83671         * m4/eaccess.m4: New file.
83672
83673 2003-04-10  Bruno Haible  <bruno@clisp.org>
83674
83675         * lib/findprog.h: New file, from GNU gettext.
83676         * lib/findprog.c: New file, from GNU gettext.
83677
83678 2003-04-05  Jim Meyering  <jim@meyering.net>
83679
83680         Merge changes from Coreutils.
83681
83682         * lib/exclude.h (PARAMS): Remove definition and uses.
83683         * lib/exclude.c: Remove uses of `PARAMS'.
83684
83685         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83686         Add test-cases for DOS filenames. Declare program_name.
83687         (main): Set up program_name.  Patch by Rich Dawe.
83688
83689         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83690         error from mntctl.
83691         Use mntctl's return value to drive the entry-processing loop, since
83692         we can't rely on the value of the vmt_length member in the last
83693         entry.  On some systems doing so could result in exhausting
83694         virtual memory.  Based in part on a patch from Mike Jetzer.
83695
83696 2003-04-04  Bruno Haible  <bruno@clisp.org>
83697
83698         * modules/linebreak: New file.
83699         * MODULES.html.sh (func_all_modules): Add it.
83700
83701 2003-04-04  Bruno Haible  <bruno@clisp.org>
83702
83703         * m4/linebreak.m4: New file.
83704
83705 2003-04-04  Bruno Haible  <bruno@clisp.org>
83706
83707         * lib/linebreak.h: New file, from GNU gettext.
83708         * lib/linebreak.c: New file, from GNU gettext with slight
83709         modifications.
83710         * lib/lbrkprop.h: New file, from GNU gettext.
83711
83712 2003-04-03  Bruno Haible  <bruno@clisp.org>
83713
83714         * modules/utf8-ucs4: New file.
83715         * modules/utf16-ucs4: New file.
83716         * modules/ucs4-utf8: New file.
83717         * modules/ucs4-utf16: New file.
83718         * MODULES.html.sh (func_all_modules): Add them.
83719
83720 2003-04-03  Bruno Haible  <bruno@clisp.org>
83721
83722         * m4/utf-ucs4.m4: New file.
83723         * m4/ucs4-utf.m4: New file.
83724
83725 2003-04-03  Bruno Haible  <bruno@clisp.org>
83726
83727         * lib/utf8-ucs4.h: New file, from GNU gettext.
83728         * lib/utf16-ucs4.h: New file, from GNU gettext.
83729         * lib/ucs4-utf8.h: New file, from GNU gettext.
83730         * lib/ucs4-utf16.h: New file, from GNU gettext.
83731
83732 2003-04-02  Bruno Haible  <bruno@clisp.org>
83733
83734         * modules/binary-io: New file.
83735         * MODULES.html.sh (func_all_modules): Add it.
83736
83737 2003-04-02  Bruno Haible  <bruno@clisp.org>
83738
83739         * lib/binary-io.h: New file, from GNU gettext.
83740
83741 2003-04-01  Bruno Haible  <bruno@clisp.org>
83742
83743         * modules/pathname: New file.
83744         * MODULES.html.sh (func_all_modules): Add it.
83745
83746 2003-04-01  Bruno Haible  <bruno@clisp.org>
83747
83748         * lib/pathname.h: New file, from GNU gettext.
83749         * lib/concatpath.c: New file, from GNU gettext.
83750
83751 2003-03-30  Bruno Haible  <bruno@clisp.org>
83752
83753         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83754
83755 2003-03-30  Bruno Haible  <bruno@clisp.org>
83756
83757         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83758         function chown() doesn't exist.
83759
83760 2003-03-28  Bruno Haible  <bruno@clisp.org>
83761
83762         * modules/copy-file: New file.
83763         * MODULES.html.sh (func_all_modules): Add it.
83764
83765 2003-03-28  Bruno Haible  <bruno@clisp.org>
83766
83767         * m4/copy-file.m4: New file.
83768
83769 2003-03-28  Bruno Haible  <bruno@clisp.org>
83770
83771         * lib/copy-file.h: New file, from GNU gettext.
83772         * lib/copy-file.c: New file, from GNU gettext.
83773
83774 2003-03-18  Jim Meyering  <jim@meyering.net>
83775
83776         * lib/quote.c (quote_n): Fix typo in comment.
83777
83778 2003-03-18  Bruno Haible  <bruno@clisp.org>
83779
83780         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83781         checking.
83782         * m4/onceonly_2_57.m4: Likewise.
83783
83784 2003-03-17  Bruno Haible  <bruno@clisp.org>
83785
83786         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83787         (m4_quote): Remove macro.
83788         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83789
83790 2003-03-14  Jim Meyering  <jim@meyering.net>
83791
83792         Merge changes from Coreutils.
83793         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83794         to be const, in order to avoid warnings.
83795         (obstack_room): Likewise.
83796         (obstack_empty_p): Likewise.
83797
83798 2003-03-14  Bruno Haible  <bruno@clisp.org>
83799
83800         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83801         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83802
83803 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83804
83805         Merge changes from Bison.
83806         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83807         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83808         when compiling Bison 1.875's `bitset bset = obstack_alloc
83809         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83810         * lib/hash.c: Include <stdbool.h> unconditionally.
83811
83812 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83813
83814         * m4/onceonly.m4 (m4_quote): New macro.
83815         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83816         Quote AC_FOREACH variable-expansions properly.
83817
83818 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83819
83820         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83821
83822 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83823
83824         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83825         Reported by Bruce Becker; see:
83826         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83827
83828 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83829             Bruno Haible  <bruno@clisp.org>
83830
83831         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83832         Reported by John Hughes, see
83833         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83834
83835 2003-02-20  Bruno Haible  <bruno@clisp.org>
83836
83837         * MODULES.html.sh (func_all_modules): Add poll.
83838
83839 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83840
83841         * modules/poll: New file.
83842
83843 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83844
83845         * lib/poll_.h: New file.
83846         * lib/poll.c: New file.
83847
83848 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83849
83850         * m4/poll.m4: New file.
83851
83852 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83853
83854         * modules/mathl: New file.
83855
83856 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83857
83858         * lib/mathl.h: New file.
83859         * lib/acosl.c: New file.
83860         * lib/asinl.c: New file.
83861         * lib/atanl.c: New file.
83862         * lib/ceill.c: New file.
83863         * lib/cosl.c: New file.
83864         * lib/expl.c: New file.
83865         * lib/floorl.c: New file.
83866         * lib/frexpl.c: New file.
83867         * lib/ldexpl.c: New file.
83868         * lib/logl.c: New file.
83869         * lib/sincosl.c: New file.
83870         * lib/sinl.c: New file.
83871         * lib/sqrtl.c: New file.
83872         * lib/tanl.c: New file.
83873         * lib/trigl.c: New file.
83874         * lib/trigl.h: New file.
83875
83876 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83877
83878         * m4/mathl.m4: New file.
83879
83880 2003-02-18  Bruno Haible  <bruno@clisp.org>
83881
83882         * MODULES.html.sh (func_all_modules): Add mathl.
83883
83884 2003-02-17  Bruno Haible  <bruno@clisp.org>
83885
83886         * modules/mkdtemp: New module.
83887         * MODULES.html.sh (func_all_modules): Add it.
83888
83889 2003-02-17  Bruno Haible  <bruno@clisp.org>
83890
83891         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83892
83893 2003-02-17  Bruno Haible  <bruno@clisp.org>
83894
83895         * lib/mkdtemp.h: New file, from GNU gettext.
83896         * lib/mkdtemp.c: New file, from GNU gettext.
83897
83898 2003-02-02  Jim Meyering  <jim@meyering.net>
83899
83900         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83901         e.g. glibc-2.2.93.
83902
83903 2003-01-31  Bruno Haible  <bruno@clisp.org>
83904
83905         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83906         'rpl_rename'.
83907         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83908         'rpl_strnlen'.
83909         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83910         'rpl_strtod'.
83911         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83912         'rpl_utime'.
83913
83914 2003-01-31  Bruno Haible  <bruno@clisp.org>
83915
83916         * lib/rename.c: #undef rename before defining rpl_rename.
83917         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83918
83919 2003-01-30  Bruno Haible  <bruno@clisp.org>
83920
83921         * modules/vasnprintf, modules/vasprintf: New modules.
83922         * MODULES.html.sh (func_all_modules): Add them.
83923
83924 2003-01-30  Bruno Haible  <bruno@clisp.org>
83925
83926         * m4/signed.m4: New file, from GNU gettext.
83927         * m4/longdouble.m4: New file, from GNU gettext.
83928         * m4/wchar_t.m4: New file, from GNU gettext.
83929         * m4/wint_t.m4: New file, from GNU gettext.
83930         * m4/vasnprintf.m4: New file.
83931         * m4/vasprintf.m4: New file.
83932
83933 2003-01-30  Bruno Haible  <bruno@clisp.org>
83934
83935         * lib/printf-args.h: New file, from GNU gettext.
83936         * lib/printf-args.c: New file, from GNU gettext.
83937         * lib/printf-parse.h: New file, from GNU gettext.
83938         * lib/printf-parse.c: New file, from GNU gettext.
83939         * lib/vasnprintf.h: New file, from GNU gettext.
83940         * lib/vasnprintf.c: New file, from GNU gettext.
83941         * lib/asnprintf.c: New file, from GNU gettext.
83942         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83943         * lib/vasprintf.c: New file, from GNU gettext.
83944         * lib/asprintf.c: New file, from GNU gettext.
83945
83946 2003-01-29  Bruno Haible  <bruno@clisp.org>
83947
83948         * modules/stpncpy: New module.
83949         * MODULES.html.sh (func_all_modules): Add it.
83950
83951 2003-01-29  Bruno Haible  <bruno@clisp.org>
83952
83953         * m4/stpncpy.m4: New file.
83954
83955 2003-01-29  Bruno Haible  <bruno@clisp.org>
83956
83957         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83958         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83959
83960 2003-01-28  Bruno Haible  <bruno@clisp.org>
83961
83962         * modules/c-ctype: New module.
83963         * MODULES.html.sh (func_all_modules): Add it.
83964
83965 2003-01-28  Bruno Haible  <bruno@clisp.org>
83966
83967         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83968         Paul Eggert.
83969         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83970         Paul Eggert.
83971
83972 2003-01-27  Bruno Haible  <bruno@clisp.org>
83973
83974         * modules/xsetenv: New module.
83975         * MODULES.html.sh (func_all_modules): Add it.
83976
83977 2003-01-27  Bruno Haible  <bruno@clisp.org>
83978
83979         * lib/xsetenv.h: New file, from GNU gettext.
83980         * lib/xsetenv.c: New file, from GNU gettext.
83981
83982 2003-01-23  Jim Meyering  <jim@meyering.net>
83983
83984         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83985         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83986
83987 2003-01-23  Bruno Haible  <bruno@clisp.org>
83988
83989         * modules/minmax: New module.
83990         * MODULES.html.sh (func_all_modules): Add it.
83991
83992 2003-01-23  Bruno Haible  <bruno@clisp.org>
83993
83994         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83995         Eggert.
83996
83997 2003-01-22  Bruno Haible  <bruno@clisp.org>
83998
83999         * modules/exit: New module.
84000         * MODULES.html.sh (func_all_modules): Add it.
84001
84002 2003-01-22  Bruno Haible  <bruno@clisp.org>
84003
84004         * lib/exit.h: New file, from GNU gettext.
84005
84006 2003-01-19  Bruno Haible  <bruno@clisp.org>
84007
84008         * gnulib-tool: Recognize option --extract-maintainer.
84009         (func_get_maintainer): New function.
84010         * modules/*: Add Maintainer entry.
84011
84012 2003-01-16  Jim Meyering  <jim@meyering.net>
84013
84014         * m4/regex.m4: The `regex' struct is both input and output.
84015         Initialize it before each use.  Patch by Tim Waugh.
84016
84017 2003-01-16  Bruno Haible  <bruno@clisp.org>
84018
84019         * MODULES.html.sh: Add a table of contents. Add the module name as
84020         leftmost column. Add hyperlinks.
84021
84022 2003-01-15  Bruno Haible  <bruno@clisp.org>
84023
84024         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84025
84026 2003-01-15  Bruno Haible  <bruno@clisp.org>
84027
84028         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84029         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84030         suffix.
84031
84032 2003-01-15  Bruno Haible  <bruno@clisp.org>
84033
84034         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84035
84036 2003-01-15  Bruno Haible  <bruno@clisp.org>
84037
84038         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84039         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84040
84041 2003-01-14  Jim Meyering  <jim@meyering.net>
84042
84043         * lib/same.c (same_name): Tweak a comment.
84044
84045 2003-01-14  Bruno Haible  <bruno@clisp.org>
84046
84047         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84048         when a string comparison is sufficient.
84049
84050 2003-01-14  Bruno Haible  <bruno@clisp.org>
84051
84052         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84053         'unsigned int'.
84054
84055 2003-01-14  Bruno Haible  <bruno@clisp.org>
84056
84057         * lib/hash-pjw.c: Add comment about low quality of this function.
84058
84059 2003-01-13  Bruno Haible  <bruno@clisp.org>
84060
84061         * modules/stpcpy: Distribute lib/stpcpy.h.
84062         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84063
84064 2003-01-13  Bruno Haible  <bruno@clisp.org>
84065
84066         * modules/*: Add a description.
84067         * modules/strpbrk: Fix Makefile.am snippet.
84068         * modules/strtoimax: Fix dependencies.
84069         * modules/strtoumax: Likewise.
84070
84071 2003-01-13  Bruno Haible  <bruno@clisp.org>
84072
84073         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84074         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84075         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84076
84077 2003-01-13  Bruno Haible  <bruno@clisp.org>
84078
84079         * gnulib-tool (func_create_testdir): Store config/* files in the main
84080         directory.
84081         * config.rpath: Move to ...
84082         * config/config.rpath: ... here.
84083         * modules/gettext: Contains config/config.rpath, not config.rpath.
84084         * modules/iconv: Likewise.
84085
84086 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84087
84088         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84089         to avoid collisions with libcurses and libreadline.
84090
84091         * m4/getstr.m4: Remove.
84092         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84093
84094 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84095
84096         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84097         to avoid collisions with libcurses and libreadline.
84098
84099         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84100         * lib/getstr.h, getstr.c: Remove.
84101         * lib/getline.c: Include "getline.h", to check interface.
84102         Move body of old getstr.c here: this defines MIN_CHUNK and
84103         declares getdelim2, which is renamed from getstr.
84104         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84105
84106         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84107         All uses changed.
84108         * lib/linebuffer.h: Likewise.
84109         (readline): Remove backward-compatibility macro.
84110
84111 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84112
84113         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84114         to avoid collisions with libcurses and libreadline.
84115         * getstr: Remove.
84116         * MODULES.html.sh: Remove getstr.
84117         * modules/getline: Depend on unlocked-io, not getstr.
84118
84119 2003-01-12  Jim Meyering  <jim@meyering.net>
84120
84121         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84122
84123 2003-01-10  Bruno Haible  <bruno@clisp.org>
84124
84125         * modules/alloca: Change Makefile.am requirements. Simplify Include
84126         requirements. Add lib/alloca_.h to file list.
84127
84128 2003-01-10  Bruno Haible  <bruno@clisp.org>
84129
84130         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84131
84132 2003-01-10  Bruno Haible  <bruno@clisp.org>
84133
84134         * lib/alloca_.h: New file.
84135         * lib/getdate.y: Unconditionally include alloca.h.
84136         * lib/makepath.c: Likewise.
84137         * lib/setenv.c: Likewise.
84138         * lib/userspec.c: Likewise.
84139
84140 2003-01-09  Karl Berry  <karl@gnu.org>
84141
84142         * MODULES.html.sh: include `dirname $0` in PATH, to find
84143         gnulib-tool.
84144
84145 2003-01-09  Bruno Haible  <bruno@clisp.org>
84146
84147         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84148         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84149
84150 2003-01-09  Bruno Haible  <bruno@clisp.org>
84151
84152         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84153
84154 2003-01-09  Bruno Haible  <bruno@clisp.org>
84155
84156         * lib/stdbool.h.in: New file.
84157
84158 2003-01-09  Bruno Haible  <bruno@clisp.org>
84159
84160         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84161         * MODULES.html.sh: Likewise.
84162
84163 2003-01-08  Jim Meyering  <jim@meyering.net>
84164
84165         * lib/full-write.c: Undefine and define-away `const' after inclusion
84166         of errno.h, not before.  Suggestion from Bruno Haible.
84167
84168 2003-01-08  Bruno Haible  <bruno@clisp.org>
84169
84170         * modules/full-read: Depend on full-write.
84171
84172 2003-01-08  Bruno Haible  <bruno@clisp.org>
84173
84174         * lib/safe-read.c: Include specification header first, to ensure its
84175         selfcontainedness.
84176         * lib/full-write.c: Likewise.
84177
84178 2003-01-07  Jim Meyering  <jim@meyering.net>
84179
84180         * lib/full-write.c: Rework so that it may serve to define full_read,
84181         too.
84182         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84183
84184 2003-01-07  Bruno Haible  <bruno@clisp.org>
84185
84186         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84187         <inttypes.h>.
84188         * lib/xstrtol.h: Likewise.
84189         * lib/xstrtoimax.c: Likewise.
84190         * lib/xstrtoumax.c: Likewise.
84191         * lib/human.h: Likewise.
84192
84193         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84194         on systems that have <inttypes.h> but not <stdint.h>.
84195
84196 2003-01-07  Bruno Haible  <bruno@clisp.org>
84197
84198         * MODULES.html.sh: Add copyright notice.
84199         (missed_files): Omit CVS directory entries.
84200         (func_module): Make it work with sed-3.02.
84201         * MODULES.txt: Remove file.
84202
84203 2003-01-06  Jim Meyering  <jim@meyering.net>
84204
84205         * lib/version-etc.c: Update year in translatable copyright string.
84206
84207 2003-01-03  Karl Berry  <karl@gnu.org>
84208
84209         * config/config.{guess,sub}: update from prep.
84210
84211 2003-01-02  Karl Berry  <karl@gnu.org>
84212
84213         * doc/COPYING.DOC: belatedly updated to 1.2.
84214
84215 2003-01-01  Karl Berry  <karl@gnu.org>
84216
84217         * gnulib-tool (func_verify_module): report module name $module in
84218         error message, not $1.
84219         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84220         be created, only if it doesn't exist.
84221         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84222
84223 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84224
84225         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84226
84227 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84228
84229         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84230         memcmp if strcoll doesn't work.
84231
84232 2002-12-31  Bruno Haible  <bruno@clisp.org>
84233
84234         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84235         nonempty.
84236
84237 2002-12-31  Bruno Haible  <bruno@clisp.org>
84238
84239         * lib/memcoll.c (STRCOLL): New macro.
84240         (memcoll): Use it.
84241
84242 2002-12-31  Bruno Haible  <bruno@clisp.org>
84243
84244         * lib/localcharset.h: New file.
84245         * lib/localcharset.c: Include it.
84246         * lib/unicodeio.c: Likewise.
84247
84248 2002-12-31  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84251         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84252
84253 2002-12-31  Bruno Haible  <bruno@clisp.org>
84254
84255         * lib/getline.h: Include <stddef.h>, for size_t.
84256
84257         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84258         * lib/unicodeio.c: Don't include <stddef.h>.
84259
84260 2002-12-31  Bruno Haible  <bruno@clisp.org>
84261
84262         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84263         HAVE_TM_ZONE.
84264
84265 2002-12-24  Karl Berry  <karl@gnu.org>
84266
84267         * config/config.guess: update from prep.
84268
84269 2002-12-24  Bruno Haible  <bruno@clisp.org>
84270
84271         General infrasructure.
84272         * m4/README: Rewritten.
84273         * m4/onceonly.m4: New file.
84274         * m4/onceonly_2_57.m4: New file.
84275
84276         Module atexit.
84277         * m4/atexit.m4: New file.
84278
84279         Module strtod.
84280         * m4/strtod.m4: New file.
84281
84282         Module strtol.
84283         * m4/strtol.m4: New file.
84284
84285         Module strtoul.
84286         * m4/strtoul.m4: New file.
84287
84288         Module memchr.
84289         * m4/memchr.m4: New file.
84290
84291         Module memcmp.
84292         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84293         (jm_FUNC_MEMCMP): Invoke it.
84294
84295         Module memcpy.
84296         * m4/memcpy.m4: New file.
84297
84298         Module memmove.
84299         * m4/memmove.m4: New file.
84300
84301         Module memset.
84302         * m4/memset.m4: New file.
84303
84304         Module strcspn.
84305         * m4/strcspn.m4: New file.
84306
84307         Module strpbrk.
84308         * m4/strpbrk.m4: New file.
84309
84310         Module strstr.
84311         * m4/strstr.m4: New file.
84312
84313         Module strerror.
84314         * m4/strerror.m4: New file.
84315
84316         Module mktime.
84317         * m4/mktime.m4: Renamed from jm-mktime.m4.
84318         (gl_PREREQ_MKTIME): New macro.
84319         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84320
84321         Module malloc.
84322         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84323         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84324         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84325
84326         Module realloc.
84327         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84328         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84329         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84330
84331         Module strftime.
84332         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84333         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84334         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84335         gl_TM_GMTOFF.
84336         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84337
84338         Module xalloc.
84339         * m4/xalloc.m4: New file.
84340
84341         Module alloca.
84342         * m4/alloca.m4: New file.
84343
84344         Module putenv.
84345         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84346         (jm_FUNC_PUTENV): Invoke it.
84347
84348         Module setenv.
84349         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84350         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84351         when invoked twice.
84352         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84353         gt_FUNC_SETENV.
84354
84355         Module memrchr.
84356         * m4/memrchr.m4: New file.
84357
84358         Module stpcpy.
84359         * m4/stpcpy.m4: New file.
84360
84361         Module strcase.
84362         * m4/strcase.m4: New file.
84363
84364         Module strdup.
84365         * m4/strdup.m4: New file.
84366
84367         Module strnlen.
84368         * m4/strnlen.m4: New file.
84369
84370         Module strndup.
84371         * m4/strndup.m4: New file.
84372
84373         Module xstrtod.
84374         * m4/xstrtod.m4: New file.
84375
84376         Module xstrtol.
84377         * m4/xstrtol.m4: New file.
84378
84379         Module getdate.
84380         * m4/getdate.m4: New file.
84381
84382         Module unlocked-io.
84383         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84384         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84385         * m4/jm-glibc-io.m4n: Remove file.
84386
84387         Module long-options.
84388         * m4/long-options.m4: New file.
84389
84390         Module md5.
84391         * m4/md5.m4: New file.
84392
84393         Module sha.
84394         * m4/sha.m4: New file.
84395
84396         Module getstr.
84397         * m4/getstr.m4: New file.
84398
84399         Module getline.
84400         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84401         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84402         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84403         simply getline. Infoke gl_PREREQ_GETLINE.
84404
84405         Module obstack.
84406         * m4/obstack.m4: New file.
84407
84408         Module hash.
84409         * m4/hash.m4: New file.
84410
84411         Module readtokens.
84412         * m4/readtokens.m4: New file.
84413
84414         Module strverscmp.
84415         * m4/strverscmp.m4: New file.
84416
84417         Module stdbool.
84418         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84419         OSF/1.
84420
84421         Module strtoll.
84422         * m4/strtoll.m4: New file.
84423
84424         Module strtoull.
84425         * m4/strtoull.m4: New file.
84426
84427         Module strtoimax.
84428         * m4/strtoimax.m4: New file.
84429
84430         Module strtoumax.
84431         * m4/strtoumax.m4: New file.
84432
84433         Module xstrtoimax.
84434         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84435         jm_AC_PREREQ_XSTRTOIMAX.
84436         Moved the strtol prerequisites to strtol.m4.
84437         Moved the strtoll prerequisites to strtoll.m4.
84438         Moved the strtoimax prerequisites to strtoimax.m4.
84439
84440         Module xstrtoumax.
84441         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84442         jm_AC_PREREQ_XSTRTOUMAX.
84443         Moved the strtoul prerequisites to strtoul.m4.
84444         Moved the strtoull prerequisites to strtoull.m4.
84445         Moved the strtoumax prerequisites to strtoumax.m4.
84446
84447         Module chown.
84448         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84449         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84450
84451         Module dup2.
84452         * m4/dup2.m4: New file.
84453
84454         Module ftruncate.
84455         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84456         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84457
84458         Module getgroups.
84459         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84460         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84461
84462         Module gettimeofday.
84463         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84464         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84465         gl_PREREQ_GETTIMEOFDAY.
84466
84467         Module mkdir.
84468         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84469         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84470
84471         Module mkstemp.
84472         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84473         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84474         jm_AC_TYPE_UINTMAX_T.
84475         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84476
84477         Module stat.
84478         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84479         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84480
84481         Module lstat.
84482         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84483         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84484
84485         Module timespec.
84486         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84487         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84488         * m4/st_mtim.m4: Indentation.
84489
84490         Module nanosleep.
84491         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84492         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84493         gl_PREREQ_NANOSLEEP.
84494
84495         Module regex.
84496         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84497         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84498         (gl_REGEX): New macro.
84499
84500         Module rename.
84501         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84502         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84503
84504         Module rmdir.
84505         * m4/rmdir.m4: New file.
84506
84507         Module utime.
84508         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84509         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84510         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84511
84512         Module dirname.
84513         * m4/dirname.m4: New file.
84514
84515         Module getopt.
84516         * m4/getopt.m4: New file.
84517
84518         Module unistd-safer.
84519         * m4/unistd-safer.m4: New file.
84520
84521         Module fnmatch.
84522         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84523         declaration.
84524         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84525         (gl_FUNC_FNMATCH_POSIX): New macro.
84526         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84527         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84528         simply fnmatch.
84529
84530         Module exclude.
84531         * m4/exclude.m4: New file.
84532
84533         Module human.
84534         * m4/human.m4: New file.
84535
84536         Module acl.
84537         * m4/acl.m4: Nop.
84538
84539         Module backupfile.
84540         * m4/backupfile.m4: New file.
84541         * m4/d-ino.m4: Indentation.
84542
84543         Module fsusage.
84544         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84545         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84546         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84547
84548         Module dirfd.
84549         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84550         requirements.
84551
84552         Module euidaccess.
84553         * m4/euidaccess.m4: New file.
84554
84555         Module file-type.
84556         * m4/file-type.m4: New file.
84557
84558         Module fileblocks.
84559         * m4/fileblocks.m4: New file.
84560
84561         Module filemode.
84562         * m4/filemode.m4: New file.
84563
84564         Module isdir.
84565         * m4/isdir.m4: New file.
84566
84567         Module lchown.
84568         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84569         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84570
84571         Module makepath.
84572         * m4/makepath.m4: New file.
84573
84574         Module modechange.
84575         * m4/modechange.m4: New file.
84576
84577         Module mountlist.
84578         * m4/mountlist.m4: New file.
84579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84580         Indentation.
84581
84582         Module path-concat.
84583         * m4/path-concat.m4: New file.
84584
84585         Module pathmax.
84586         * m4/pathmax.m4: New file.
84587
84588         Module same.
84589         * m4/same.m4: New file.
84590
84591         Module save-cwd.
84592         * m4/save-cwd.m4: New file.
84593
84594         Module savedir.
84595         * m4/savedir.m4: New file.
84596
84597         Module xgetcwd.
84598         * m4/xgetcwd.m4: New file.
84599         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84600
84601         Module xreadlink.
84602         * m4/xreadlink.m4: New file.
84603
84604         Module safe-read.
84605         * m4/safe-read.m4: New file.
84606
84607         Module safe-write.
84608         * m4/safe-write.m4: New file.
84609
84610         Module closeout.
84611         * m4/closeout.m4: New file.
84612
84613         Module stdio-safer.
84614         * m4/stdio-safer.m4: New file.
84615
84616         Module getpass.
84617         * m4/getpass.m4: New file.
84618
84619         Module getugroups.
84620         * m4/getugroups.m4: New file.
84621
84622         Module group-member.
84623         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84624         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84625
84626         Module idcache.
84627         * m4/idcache.m4: New file.
84628
84629         Module userspec.
84630         * m4/userspec.m4: New file.
84631
84632         Module gettime.
84633         * m4/clock_time.m4: New file.
84634         * m4/gettime.m4: New file.
84635
84636         Module settime.
84637         * m4/settime.m4: New file.
84638
84639         Module posixtm.
84640         * m4/posixtm.m4: New file.
84641
84642         Module gethostname.
84643         * m4/gethostname.m4: New file.
84644
84645         Module canon-host.
84646         * m4/canon-host.m4: New file.
84647
84648         Module gettext.
84649         * m4/codeset.m4: New file, from gettext-0.11.5.
84650         * m4/gettext.m4: New file, from gettext-0.11.5.
84651         * m4/glibc21.m4: New file, from gettext-0.11.5.
84652         * m4/iconv.m4: New file, from gettext-0.11.5.
84653         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84654         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84655         * m4/inttypes.m4: New file, from gettext-0.11.5.
84656         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84657         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84658         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84659         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84660         * m4/lib-link.m4: New file, from gettext-0.11.5.
84661         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84662         * m4/progtest.m4: New file, from gettext-0.11.5.
84663         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84664         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84665         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84666
84667         Module localcharset.
84668         * m4/localcharset.m4: New file.
84669
84670         Module hard-locale.
84671         * m4/hard-locale.m4: New file.
84672
84673         Module mbswidth.
84674         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84675         onceonly macros.
84676         * m4/mbrtowc.m4: Add comment.
84677
84678         Module memcasecmp.
84679         * m4/memcasecmp.m4: New file.
84680
84681         Module memcoll.
84682         * m4/memcoll.m4: New file.
84683
84684         Module unicodeio.
84685         * m4/unicodeio.m4: New file.
84686
84687         Module rpmatch.
84688         * m4/rpmatch.m4: New file.
84689
84690         Module yesno.
84691         * m4/yesno.m4: New file.
84692
84693         Module exitfail.
84694         * m4/exitfail.m4: New file.
84695
84696         Module c-stack.
84697         * m4/c-stack.m4 (gl_C_STACK): New macro.
84698         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84699
84700         Module error.
84701         * m4/error.m4 (gl_ERROR): New macro.
84702         (jm_PREREQ_ERROR): Use onceonly macros.
84703
84704         Module fatal.
84705         * m4/fatal.m4: New file.
84706
84707         Module getloadavg.
84708         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84709         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84710
84711         Module getpagesize.
84712         * m4/getpagesize.m4: New file.
84713
84714         Module getusershell.
84715         * m4/getusershell.m4: New file.
84716
84717         Module physmem.
84718         * m4/physmem.m4: New file.
84719
84720         Module posixver.
84721         * m4/posixver.m4: New file.
84722
84723         Module quotearg.
84724         * m4/quotearg.m4: New file.
84725
84726         Module quote.
84727         * m4/quote.m4: New file.
84728
84729         Module readutmp.
84730         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84731
84732         Module sig2str.
84733         * m4/sig2str.m4: New file.
84734
84735         Other.
84736         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84737         ulonglong.m4.
84738         * m4/intmax_t.m4: New file.
84739         * m4/d-type.m4: Indentation.
84740         * m4/jm-macros.m4: Update.
84741         * m4/prereq.m4 (jm_PREREQ): Update.
84742         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84743         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84744         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84745         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84746         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84747         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84748         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84749         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84750         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84751         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84752         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84753         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84754         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84755         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84756         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84757         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84758         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84759         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84760         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84761
84762 2002-12-24  Bruno Haible  <bruno@clisp.org>
84763
84764         * MODULES.txt: Update according to m4/ changes.
84765
84766         Module gettext.
84767         * config.rpath: New file, from gettext-0.11.5.
84768
84769         * modules/*: New module descriptions.
84770         * gnulib-tool: New file.
84771         * MODULES.html.sh: New file.
84772
84773 2002-12-21  Karl Berry  <karl@gnu.org>
84774
84775         * doc/fdl.texi: update to version 1.2.
84776
84777 2002-12-19  Karl Berry  <karl@gnu.org>
84778
84779         * config/config.guess: update from prep.
84780
84781 2002-12-18  Bruno Haible  <bruno@clisp.org>
84782
84783         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84784         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84785
84786 2002-12-17  Bruno Haible  <bruno@clisp.org>
84787
84788         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84789         stdlib.h, string.h.
84790
84791 2002-12-17  Bruno Haible  <bruno@clisp.org>
84792
84793         * lib/canon-host.c (strdup): Remove unused declaration.
84794
84795         * lib/fsusage.c: Include full_read.h.
84796         (get_fs_usage): Use full_read instead of safe_read.
84797
84798         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84799
84800 2002-12-12  Karl Berry  <karl@gnu.org>
84801
84802         * config/config.guess: update from prep.
84803
84804 2002-12-11  Bruno Haible  <bruno@clisp.org>
84805
84806         * m4/setenv.m4: New file, from gettext-0.11.5.
84807
84808 2002-12-11  Bruno Haible  <bruno@clisp.org>
84809
84810         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84811         not unsetenv().
84812         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84813         modifications:
84814
84815         2002-12-11  Bruno Haible  <bruno@clisp.org>
84816
84817                 * setenv.c (alloca): Fall back to malloc.
84818                 (freea): New macro.
84819                 (setenv): Use freea() to free memory allocated with alloca().
84820
84821         2002-11-13  Bruno Haible  <bruno@clisp.org>
84822
84823                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84824                 function declarations.
84825                 * unsetenv.c (unsetenv): Likewise.
84826
84827         2002-03-04  Bruno Haible  <bruno@clisp.org>
84828
84829                 Portability to AIX 4.3.3.
84830                 * unsetenv.c: New file, extracted from setenv.c.
84831                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84832
84833         2001-12-20  Bruno Haible  <bruno@clisp.org>
84834
84835                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84836                 use malloc instead. For SunOS 4.
84837
84838         2001-12-11  Bruno Haible  <bruno@clisp.org>
84839
84840                 * setenv.c: Declare alloca.
84841                 (compar_fn_t): New typedef.
84842                 (KNOWN_VALUE, STORE_VALUE): Use it.
84843
84844         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84845         setenv.h.
84846
84847 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84848
84849         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84850         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84851         Choose values that are less likely to collide with system fnmatch
84852         options.
84853         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84854         defined (e.g., a pure POSIX system).
84855         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84856         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84857
84858 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84859
84860         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84861         a pain in practice to deal with generated m4 files.  This change
84862         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84863
84864         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84865         and jm-glibc-io.m4, as they are no longer a special case.
84866         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84867         kludge and the auto-generation stuff.  Check only whether the
84868         functions are declared, not whether they exist, since older hosts
84869         that don't declare the functions can't use the optimization anyway.
84870
84871 2002-12-06  Jim Meyering  <jim@meyering.net>
84872
84873         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84874
84875         Merge in changes from libc's misc/error.c, in preparation
84876         for the merge of gnulib's changes back into libc.
84877
84878         * lib/error.c (_): Define only if not already defined.
84879         Move definition to follow all #include directives.
84880         Include unlocked-io.h only if !_LIBC.
84881         [_LIBC]: Include <libio/libioP.h>.
84882         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84883         (fflush): Tweak definition to use INTUSE.
84884         (putc): Define.
84885
84886 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84887
84888         * lib/alloca.c [defined emacs]: Include "lisp.h".
84889         (xalloc_die) [defined emacs]: New macro.
84890         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84891         [! defined emacs]: Include <xalloc.h>.
84892         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84893         (pointer): Typedef to POINTER_TYPE *.
84894         (malloc): Remove decl; we now always use xmalloc.
84895         (alloca): Use old-style definition, since Emacs needs this.
84896         Check for arithmetic overflow when computing combined size.
84897
84898 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84899
84900         Do not generate unlocked-io.h automatically, since it's easier to
84901         maintain it by hand.
84902
84903         * lib/unlocked-io.h: New file, from GNU diffutils,
84904         but with proper copyright notice and attribution.
84905         * lib/gen-uio: Remove.
84906         * lib/Makefile.am: Add copyright notice.
84907         (libfetish_a_SOURCES): Add unlocked-io.h.
84908         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84909         (DISTCLEANFILES, io_functions): Remove macros.
84910         (EXTRA_DIST): Remove gen_uio.
84911         (unlocked-io.h): Remove rule.
84912
84913 2002-12-04  Jim Meyering  <jim@meyering.net>
84914
84915         Reflect the fact that stat.c and lstat.c are no longer generated.
84916         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84917         (DISTCLEANFILES): Likewise.
84918         (EXTRA_DIST): Likewise.
84919         (all_local): Don't depend on stat.c or lstat.c.
84920         (stat.c, lstat.c): Remove rules.
84921         (EXTRA_DIST): Remove xstat.in.
84922
84923         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84924         * lib/stat.c: New file.  Contents mostly from xstat.in.
84925         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84926         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84927
84928         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84929         too.
84930         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84931
84932 2002-12-03  Jim Meyering  <jim@meyering.net>
84933
84934         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84935         but not semantics, to minimize the differences between these two files.
84936         (safe_read): Change comment to mention SAFE_READ_ERROR.
84937
84938         * lib/safe-read.c (IS_EINTR): Define.
84939         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84940
84941 2002-12-02  Jim Meyering  <jim@meyering.net>
84942
84943         * lib/safe-read.c (EINTR): Define.
84944         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84945         (INT_MAX): Provide fallback.
84946         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84947
84948         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84949
84950 2002-12-02  Bruno Haible  <bruno@clisp.org>
84951
84952         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84953         Define, taken from safe-read.c.
84954         (INT_MAX): Provide fallback.
84955         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84956         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84957
84958         * lib/safe-read.c (EINTR): Remove definition.
84959         (safe_read): Don't use EINTR if it is absent.
84960
84961 2002-12-01  Jim Meyering  <jim@meyering.net>
84962
84963         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84964         zero.
84965         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84966
84967 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84968
84969         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84970         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84971         with `if (! (value < limit)) abort ();', for readability.
84972
84973 2002-11-26  Karl Berry  <karl@gnu.org>
84974
84975         * lib/strdup.c: copy from libc again, with jim's ok.
84976         * lib/.cppi-disable: re-add strdup.c
84977
84978 2002-11-25  Karl Berry  <karl@gnu.org>
84979
84980         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84981         instead of "strtol.c".
84982
84983 2002-11-25  Karl Berry  <karl@gnu.org>
84984
84985         * config/install-sh: update from automake for variable quoting, $0 in
84986         error msgs, etc.
84987
84988         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84989         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84990         entry.
84991
84992 2002-11-25  Jim Meyering  <jim@meyering.net>
84993
84994         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84995
84996 2002-11-24  Karl Berry  <karl@gnu.org>
84997
84998         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84999         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85000
85001 2002-11-24  Jim Meyering  <jim@meyering.net>
85002
85003         Update from coreutils:
85004
85005         * lib/mktime.c: Merge in changes from libc.
85006
85007         Avoid a link-time failure on some Linux systems.
85008         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85009         (otherwise).
85010         (__mon_yday): Declare with the STATIC attribute.
85011         (__mktime_internal): Likewise.
85012         Based on a report from Greg Schafer.
85013
85014 2002-11-23  Jim Meyering  <jim@meyering.net>
85015
85016         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85017         Use `unsigned', not `int', as type of index.
85018
85019         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85020
85021         * lib/fsusage.c: Remove unneeded parentheses around operands of
85022         `defined'.
85023
85024 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85025
85026         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85027         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85028         so that we can be included first.
85029         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85030         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85031         No need to include stddef.h or sys/types.h any more.
85032         Surround local include files with "", not "<>".
85033         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85034         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85035         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85036         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85037         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85038         (ISPRINT): Remove; no longer needed now that we assume C89.
85039
85040         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85041         Preserve errno.
85042
85043         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85044         quotearg_char): Use SIZE_MAX rather than
85045         (size_t) -1 when we are talking about "infinity".
85046
85047         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85048
85049 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85050
85051         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85052         hint that one should use `if (! x) abort ();' rather than `assert
85053         (x);', and anyway it's one less thing to worry about configuring.
85054         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85055         hash_rehash, hash_insert): Use abort rather than assert.
85056
85057 2002-11-22  Bruno Haible  <bruno@clisp.org>
85058
85059         * lib/safe-read.h: Assume C89. Add comments.
85060         (safe_read): Change return type to size_t.
85061         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85062         byte counts > SSIZE_MAX correctly.
85063         * lib/safe-write.h: New file.
85064         * lib/safe-write.c: New file.
85065         * lib/full-read.h: New file.
85066         * lib/full-read.c: New file.
85067         * lib/full-write.h: Assume C89. Add comments.
85068         * lib/full-write.c: Include safe-write.h.
85069         (full_write): Rewritten to use safe_write.
85070         Suggested by Jim Meyering and Paul Eggert.
85071
85072 2002-11-21  Jim Meyering  <jim@meyering.net>
85073
85074         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85075
85076         Merge in changes from the coreutils.
85077
85078         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85079         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85080         <stdint.h>.
85081         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85082         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85083         int.  Work more efficiently if X is the same width as uintmax_t.
85084         Do not compare X to -1, to avoid bogus compiler warning.
85085         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85086         Don't assume that f_frsize and f_bsize are the same type.
85087
85088         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85089         warning on FreeBSD.
85090
85091         * lib/makepath.c (make_path): Restore umask *before* creating the final
85092         component.
85093         (make_path): Minor reformatting.
85094
85095         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85096         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85097         HAVE_MALLOC/HAVE_REALLOC.
85098
85099         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85100         dummy ones.  At least on GNU/Linux systems, `auto' means something
85101         else.
85102         From Michael Stone.
85103
85104 2002-11-21  Bruno Haible  <bruno@clisp.org>
85105
85106         Remove case insensitive option matching.
85107         * lib/argmatch.h (argcasematch): Remove declaration.
85108         (ARGCASEMATCH): Remove macro.
85109         (__xargmatch_internal): Remove case_sensitive argument.
85110         (XARGMATCH): Update.
85111         (XARGCASEMATCH): Remove macro.
85112         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85113         case_sensitive argument.
85114         (argcasematch): Remove function.
85115         (__xargmatch_internal): Remove case_sensitive argument.
85116         (main): Use XARGMATCH instead of XARGCASEMATCH.
85117
85118         * lib/xmalloc.c: Change compile-time error message. Add comment about
85119         required autoconf version.
85120
85121 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85122
85123         Merge argmatch cleanups from Bison.  Assume C89.
85124
85125         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85126         Include stdlib.h, for EXIT_FAILURE.
85127         Always include <string.h>, since we assume C89.
85128         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85129         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85130         Include <stddef.h> instead, since it's all we need for size_t.
85131         (PARAMS): Remove.  All uses removed.
85132         (ARRAY_CARDINALITY): Do not bother to #undef.
85133         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85134         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85135         Remove unnecessary parentheses.
85136         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85137         Insert necessary parentheses.
85138         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85139         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85140
85141 2002-11-19  Bruno Haible  <bruno@clisp.org>
85142
85143         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85144         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85145
85146         * lib/mbswidth.h (PARAMS): Remove macro.
85147         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85148         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85149
85150         * lib/gcd.h (PARAMS): Remove macro.
85151         (gcd): Use ANSI C function declarations.
85152         * lib/gcd.c (gcd): Likewise.
85153
85154 2002-11-15  Bruno Haible  <bruno@clisp.org>
85155
85156         * lib/strcspn.c: Include <stddef.h>.
85157         (strcspn): Use ANSI C function declaration. Change return type to
85158         size_t. Use NULL.
85159         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85160         (strpbrk): Use NULL.
85161         * lib/strpbrk.h (PARAMS): Remove macro.
85162         (strpbrk): Use ANSI C function declaration.
85163         * lib/strstr.c: Don't include <sys/types.h>.
85164         * lib/strstr.h (PARAMS): Remove macro.
85165         (strstr): Use ANSI C function declarations.
85166
85167 2002-11-14  Karl Berry  <karl@gnu.org>
85168
85169         * config/mkinstalldirs: `do' on separate line, instead of
85170         `for var; do'.
85171
85172 2002-11-06  Bruno Haible  <bruno@clisp.org>
85173
85174         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85175         * lib/gcd.c (gcd): Likewise.
85176
85177 2002-11-05  Bruno Haible  <bruno@clisp.org>
85178
85179         * lib/gcd.h: New file, from gettext-0.11.5.
85180         * lib/gcd.c: New file, from gettext-0.11.5.
85181
85182 2002-11-05  Bruno Haible  <bruno@clisp.org>
85183
85184         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85185         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85186         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85187         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85188
85189         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85190         <libintl.h>.
85191         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85192         <libintl.h>.
85193
85194         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85195         * lib/human.c: Include gettext.h instead of <libintl.h>.
85196         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85197         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85198         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85199         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85200         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85201         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85202         (textdomain): Remove definition.
85203         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85204
85205         * lib/long-options.c: Remove include of <libintl.h> and definition of
85206         _.
85207         * lib/same.c: Remove include of <libintl.h> and definition of _.
85208
85209 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85210
85211         * lib/config.charset: A few additions for Solaris.
85212
85213 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85214
85215         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85216         * lib/localcharset.c (locale_charset): Declare as extern "C".
85217
85218 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85219
85220         * lib/config.charset: msdos in uk_UA uses CP1125.
85221
85222 2002-11-04  Bruno Haible  <bruno@clisp.org>
85223
85224         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85225         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85226         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85227         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85228         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85229
85230 2002-11-04  Bruno Haible  <bruno@clisp.org>
85231
85232         * lib/localcharset.c (locale_charset): Don't return an empty string.
85233
85234 2002-11-04  Bruno Haible  <bruno@clisp.org>
85235
85236         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85237         aliases.
85238
85239 2002-11-04  Bruno Haible  <bruno@clisp.org>
85240
85241         * lib/config.charset: Update for newest glibc. Add canonical names
85242         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85243
85244 2002-11-04  Bruno Haible  <bruno@clisp.org>
85245
85246         * lib/config.charset: Add support for NetBSD.
85247
85248 2002-11-04  Bruno Haible  <bruno@clisp.org>
85249
85250         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85251
85252 2002-11-01  Bruno Haible  <bruno@clisp.org>
85253
85254         * configure.in: Add AC_CONFIG_AUX_DIR call.
85255         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85256         test/Makefile.
85257         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85258
85259 2002-09-28  Karl Berry  <karl@gnu.org>
85260
85261         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85262         installed automake until the next release, since changes have been
85263         made.
85264
85265 2002-09-25  Karl Berry  <karl@gnu.org>
85266
85267         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85268         * lib/getopt*: copy from libc/posix.
85269         * lib/gettext.h: copy from gettext.
85270         * lib/.cppi-disable: add strdup.c, gettext.h.
85271
85272 2002-09-25  Karl Berry  <karl@gnu.org>
85273
85274         * config/srclist.txt: enable gettext.h check.
85275         * config/config.{guess,sub}: update from prep.
85276         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85277                 from automake 1.6.3.
85278         See srclist*.
85279
85280 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85281
85282         * regex.c (PATFETCH): Remove the translating fetch.
85283         (PATFETCH_RAW): Rename to PATFETCH.
85284         (set_image_of_range): New fun.
85285         (SET_RANGE_TABLE_WORK_AREA): Use it.
85286         (regex_compile): Don't translate the pattern chars so eagerly.
85287         Only do it when inserting an `exactn' bytecode or when handling
85288         a char-range.
85289         (mutually_exclusive_p): Avoid empty statement.
85290
85291 2002-07-06  Jim Meyering  <meyering@lucent.com>
85292
85293         * m4/README: Don't mention Makefile.am.in.
85294         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85295
85296 2002-07-01  Jim Meyering  <meyering@lucent.com>
85297
85298         * lib/c-stack.c: Include sys/time.h.
85299         From Volker Borchert.
85300
85301 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85302
85303         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85304
85305 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85306
85307         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85308         New macro.  Use it uniformly instead of
85309         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85310         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85311         reported by Vin Shelton.
85312
85313 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85314
85315         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85316         Do not assume SA_SIGINFO behavior.
85317         Bug reported by Jim Meyering on NetBSD 1.5.2.
85318
85319 2002-06-22  Jim Meyering  <meyering@lucent.com>
85320
85321         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85322         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85323
85324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85325         now that configure.ac uses AC_GNU_SOURCE.
85326         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85327         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85328
85329         Update to latest tools.  Suggestions from Paul Eggert.
85330         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85331         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85332         * m4/fnmatch.m4: Likewise.
85333         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85334         to AC_HEADER_STDBOOL
85335
85336 2002-06-22  Jim Meyering  <meyering@lucent.com>
85337
85338         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85339         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85340
85341 2002-06-22  Jim Meyering  <meyering@lucent.com>
85342
85343         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85344
85345         * lib/exitfail.c, exitfail.h: Likewise.
85346         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85347
85348         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85349         of fnmatch.h.
85350         (EXTRA_DIST): Add fnmatch_loop.c.
85351         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85352
85353         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85354         * lib/fnmatch.c: Update from diffutils-2.8.2.
85355         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85356         * lib/fnmatch.h: Remove file.
85357
85358 2002-06-21  Jim Meyering  <meyering@lucent.com>
85359
85360         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85361         * m4/mbrtowc.m4: Likewise.
85362
85363         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85364         * m4/mbswidth.m4: Reflect name change:
85365         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85367
85368         * m4/lib-link.m4: Update from gettext-0.11.2.
85369         * m4/gettext.m4: Likewise.
85370
85371         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85372         From Alfred M. Szmidt.
85373
85374 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85375
85376         * lib/file-type.h: Report an error if neither S_ISREG nor
85377         S_IFREG is defined, instead of using a test specific to glibc
85378         2.2.  This should be safe, since POSIX requires S_ISREG and
85379         Unix Version 7 had S_IFREG.  We don't need to check for
85380         <sys/types.h> since we don't use any symbols that it defines.
85381
85382 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85383
85384         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85385         $@-t, so that each temporary file name is unique and valid in the first
85386         8 characters, for operation under DOS.
85387
85388 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85389
85390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85391
85392 2002-06-15  Jim Meyering  <meyering@lucent.com>
85393
85394         Work even with DJGPP 2.03, which lacks support for symlinks.
85395         From Richard Dawe.
85396         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85397         is defined.
85398         * lib/lchown.c (S_ISLNK): Likewise.
85399
85400 2002-06-15  Jim Meyering  <meyering@lucent.com>
85401
85402         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85403         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85404         have been included before this file.
85405
85406 2002-06-14  Jim Meyering  <meyering@lucent.com>
85407
85408         * lib/file-type.h: Use the version from diffutils-2.8.2.
85409         * lib/file-type.c: Likewise.
85410
85411 2002-06-07  Jim Meyering  <meyering@lucent.com>
85412
85413         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85414         They're needed at least for NetBSD 1.5.2.
85415         ($statxfs_includes): Include those same headers.
85416         ($statxfs_includes): Include sys/vfs.h if available.
85417         ($statxfs_includes): Likewise for sys/statvfs.h.
85418         Check for the following members in both structs statfs and statvfs:
85419         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85420
85421 2002-06-01  Jim Meyering  <meyering@lucent.com>
85422
85423         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85424         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85425
85426 2002-05-28  Jim Meyering  <meyering@lucent.com>
85427
85428         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85429         Reported by Volker Borchert.
85430
85431 2002-05-27  Jim Meyering  <meyering@lucent.com>
85432
85433         Fix a problem seen only on nonconforming systems whereby ls.c's
85434         use of localtime, and then of gettimeofday would cause trouble:
85435         the localtime call used to initialize rpl_gettimeofday's save
85436         mechanism would clobber ls's current local time information so
85437         that in any long listing the first file would always be listed
85438         with date 1970-01-01.  Analysis by Volker Borchert.
85439
85440         * lib/gettimeofday.c (localtime): Undefine.
85441         (rpl_localtime): New function.
85442
85443 2002-05-27  Jim Meyering  <meyering@lucent.com>
85444
85445         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85446         localtime.
85447
85448         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85449         use the replacement function; it wouldn't resolve at link time.
85450         Reported by Volker Borchert.
85451
85452 2002-05-22  Jim Meyering  <meyering@lucent.com>
85453
85454         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85455         file-type.h.
85456         * lib/file-type.h: New file.
85457         * lib/file-type.c (file_type): New file/function.  Extracted from
85458         diffutils.
85459
85460 2002-04-30  Jim Meyering  <meyering@lucent.com>
85461
85462         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85463
85464 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85465
85466         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85467
85468 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85469
85470         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85471         Do not check for alloca.h (no longer used) or stdbool.h (was never
85472         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85473
85474 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85475
85476         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85477
85478 2002-04-29  Jim Meyering  <meyering@lucent.com>
85479
85480         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85481         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85482         Use AC_FUNC_STRNLEN here instead.
85483
85484         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85485         With autoconf-2.53a, it's part of AC_PROG_CC.
85486
85487 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85488
85489         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85490         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85491
85492 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85493
85494         * lib/sig2str.h, lib/sig2str.c: New files.
85495         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85496
85497 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85498
85499         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85500         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85501         of 127, since 64 is the largest conceivable number for ancient
85502         nonstandard hosts.
85503         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85504
85505 2002-04-28  Jim Meyering  <meyering@lucent.com>
85506
85507         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85508
85509 2002-04-24  Jim Meyering  <meyering@lucent.com>
85510
85511         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85512         (jm_PREREQ): Use it.
85513
85514         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85515         mach/mach.h fcntl.h.
85516         Check for this function: setlocale.
85517
85518 2002-04-24  Jim Meyering  <meyering@lucent.com>
85519
85520         * lib/gettext.h: New file, from Gettext.
85521         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85522         (libfetish_a_SOURCES): Add gettext.h.
85523
85524 2002-04-16  Jim Meyering  <meyering@lucent.com>
85525
85526         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85527         ut_pid, ut_id, ut_exit.
85528
85529 2002-04-16  Jim Meyering  <meyering@lucent.com>
85530
85531         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85532         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85533         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85534
85535 2002-04-12  Jim Meyering  <meyering@lucent.com>
85536
85537         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85538         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85539         existence of the getmntinfo function.  Needed for Darwin 5.3.
85540
85541         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85542         This is necessary at least on Darwin 5.3.
85543
85544         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85545         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85546         strnlen.o in the library, and that makes some versions of ranlib
85547         object.
85548
85549 2002-04-12  Jim Meyering  <meyering@lucent.com>
85550
85551         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85552
85553 2002-04-09  Jim Meyering  <meyering@lucent.com>
85554
85555         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85556         to be more precise.  Rather than saying we're checking whether the
85557         function `works', say what we're testing.
85558         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85559         Reported by Bruno Haible.
85560
85561 2002-03-10  Jim Meyering  <meyering@lucent.com>
85562
85563         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85564         Suggestion from Santiago Vila.
85565
85566 2002-03-08  Jim Meyering  <meyering@lucent.com>
85567
85568         * lib/rename.c: Mention that this wrapper is needed also on
85569         mips-dec-ultrix4.4 systems.
85570
85571 2002-03-02  Jim Meyering  <meyering@lucent.com>
85572
85573         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85574         not HAVE_CLOCK_SETTIME.
85575
85576 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85577
85578         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85579         Check for clock_settime.
85580
85581 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/nanosleep.h: Rename to....
85584         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85585
85586         * lib/gettime.c: New file.
85587         * lib/settime.c: New file.
85588         * lib/stime.c: Remove.
85589
85590         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85591         timespec.h.  Remove nanosleep.h.
85592
85593 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85594
85595         * m4/acl.m4: New file.
85596         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85597         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85598
85599 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85600
85601         * lib/acl.c, lib/acl.h: New files.
85602         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85603
85604 2002-02-24  Jim Meyering  <meyering@lucent.com>
85605
85606         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85607         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85608         cause trouble.  Reported by Nelson Beebe.
85609
85610 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85611
85612         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85613         compilers that don't know that xalloc_die never returns.
85614
85615 2002-02-20  Jim Meyering  <meyering@lucent.com>
85616
85617         * lib/getdate.c: Regenerate using bison-1.33.
85618
85619 2002-02-17  Jim Meyering  <meyering@lucent.com>
85620
85621         * config/config.guess (main): Don't use `head -1'; it's no longer
85622         portable. Use `sed 1q' instead.
85623
85624 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85625
85626         * m4/codeset.m4: Upgrade to gettext-0.11.
85627         * m4/gettext.m4: Upgrade to gettext-0.11.
85628         * m4/glibc21.m4: Upgrade to gettext-0.11.
85629         * m4/iconv.m4: Upgrade to gettext-0.11.
85630         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85631         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85632         * m4/lib-ld.m4: New file, from gettext-0.11.
85633         * m4/lib-link.m4: New file, from gettext-0.11.
85634         * m4/lib-prefix.m4: New file, from gettext-0.11.
85635         * m4/progtest.m4: Upgrade to gettext-0.11.
85636
85637 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85638
85639         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85640         (jm_PREREQ): Use it.
85641
85642 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85643
85644         * lib/posixver.c, lib/posixver.h: New files.
85645         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85646
85647 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85648             Bruno Haible  <bruno@clisp.org>
85649
85650         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85651         (fwrite_success_callback): New declaration.
85652         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85653         print_unicode_char. Call failure callback instead of error.
85654         (fwrite_success_callback): New function.
85655         (exit_failure_callback): New function.
85656         (fallback_failure_callback): New function.
85657         (print_unicode_char): Call unicode_to_mb.
85658
85659 2002-01-26  Jim Meyering  <meyering@lucent.com>
85660
85661         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85662         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85663
85664 2002-01-26  Jim Meyering  <meyering@lucent.com>
85665
85666         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85667
85668 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85669
85670         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85671
85672 2002-01-22  Jim Meyering  <meyering@lucent.com>
85673
85674         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85675         Otherwise, some versions of automake would omit the rule that makes
85676         Makefile from Makefile.in.
85677
85678 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85679
85680         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85681         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85682         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85683         (memcoll): Set errno to zero if there is no error.
85684
85685         * lib/quotearg.c (quotearg_buffer_restyled):
85686         Fix bug with quoting buffers containing NUL when backslashing escapes.
85687         This bug was exposed by the other changes in this patch.
85688         (quotearg_n_options): New arg ARGSIZE.
85689         All callers changed.
85690         (quoting_options_from_style): New function.
85691         (quotearg_n_style): Use it.
85692         (quotearg_n_style_mem): New function.
85693
85694         * lib/quotearg.h (quotearg_n_style_mem): New function.
85695
85696 2002-01-19  Jim Meyering  <meyering@lucent.com>
85697
85698         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85699         Remove useless quotes: DF_PROG="df".
85700         * m4/strnlen.m4: New file.
85701
85702 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85703
85704         * lib/backupfile.c (ISDIGIT): Comment fix.
85705         * lib/getdate.y (ISDIGIT): Likewise.
85706         * lib/posixtm.c (ISDIGIT, year): Likewise.
85707         * lib/strverscmp.c (ISDIGIT): Likewise.
85708         * lib/userspec.c (ISDIGIT): Likewise.
85709
85710 2002-01-16  Jim Meyering  <meyering@lucent.com>
85711
85712         * lib/getdate.y: Add three semicolons, each just before a closing
85713         brace. Bison (as of version 1.31) no longer papers over that mistake.
85714
85715 2002-01-05  Jim Meyering  <meyering@lucent.com>
85716
85717         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85718
85719 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85720
85721         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85722         not silently exit merely because the output buffer happens to
85723         have nothing pending.
85724
85725 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85726
85727         See the big note in ../ChangeLog.
85728         * lib/human.c (suffixes): Prefer K to k for 1024.
85729         (generate_suffix_backwards): New function.
85730         (human_readable_inexact): Use it.
85731         * lib/xstrtol.c (__xstrtol): If there is no number but there
85732         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85733         Accept 'K' as well as 'k'.
85734
85735 2001-12-15  Jim Meyering  <meyering@lucent.com>
85736
85737         * lib/regex.h (__restrict_arr): Update from libc.
85738
85739         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85740         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85741         (STREQ): Define.
85742
85743 2001-12-14  Jim Meyering  <meyering@lucent.com>
85744
85745         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85746         Suggestion from Bruno Haible.
85747
85748 2001-12-10  Jim Meyering  <meyering@lucent.com>
85749
85750         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85751         xrealloc, Instead, include "xalloc.h".
85752         (initbuffer): Don't cast xmalloc return value to char*.
85753         (readline): Reword comment.
85754         Don't cast xrealloc return value to char*
85755         Return NULL, not 0.
85756
85757 2001-12-09  Jim Meyering  <meyering@lucent.com>
85758
85759         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85760         about `signed and unsigned type in conditional expression'.
85761         * lib/posixtm.c (posix_time_parse): Likewise.
85762
85763         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85764
85765         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85766         to avoid a pedantic warning.
85767
85768         * lib/getstr.c: Don't include assert.h.
85769         (getstr): Remove warning-evoking assertions.
85770         Return -1 if offset parameter is out of bounds.
85771         Change the type of a local from int to size_t.
85772
85773         * lib/strftime.c (my_strftime_localtime_r): Include this function
85774         definition in the `#if ! HAVE_TM_GMTOFF' block.
85775
85776         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85777         Include xalloc.h instead.
85778
85779 2001-12-02  Jim Meyering  <meyering@lucent.com>
85780
85781         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85782         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85783         included.
85784
85785         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85786         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85787
85788 2001-11-30  Akim Demaille  <akim@epita.fr>
85789
85790         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85791         before being defined.
85792
85793 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85794
85795         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85796         First arg is int, not unsigned.
85797         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85798         (SIZE_MAX, UINT_MAX): New macros.
85799         (quotearg_n_options): Abort if N is negative.
85800         Avoid overflow check on hosts where size_t is 64 bits and int
85801         is 32 bits, as overflow is impossible there.
85802         Fix off-by-one typo that caused unnecessary reallocation.
85803
85804 2001-11-27  Jim Meyering  <meyering@lucent.com>
85805
85806         * lib/tempname.c: Merge with version from libc.
85807         * lib/regex.c: Likewise.
85808
85809         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85810         systems for which STDC_HEADERS is 0, it was not included, resulting in
85811         a warning about an integer-to-pointer conversion problem with getenv.
85812         Reported by Volker Borchert.
85813
85814 2001-11-26  Jim Meyering  <meyering@lucent.com>
85815
85816         * lib/gtod.h: Remove file.
85817         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85818         * lib/gettimeofday.c: Don't include gtod.h.
85819         (GTOD_init): Remove function.
85820         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85821         Suggestion from Volker Borchert.
85822
85823 2001-11-23  Jim Meyering  <meyering@lucent.com>
85824
85825         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85826         it.
85827         * lib/hash.c (struct hash_table): Define it here instead.
85828
85829 2001-11-22  Jim Meyering  <meyering@lucent.com>
85830
85831         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85832
85833 2001-11-20  Jim Meyering  <meyering@lucent.com>
85834
85835         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85836         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85837
85838 2001-11-19  Jim Meyering  <meyering@lucent.com>
85839
85840         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85841         directory.  Use "conftestXXXXXX" as the template.
85842         Suggestion from Paul Eggert.
85843
85844         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85845         immediately, so the test doesn't mistakenly hit the max-open-files
85846         limit.
85847
85848 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85849
85850         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85851         (TEMPORARIES): New macro.
85852         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85853         removes an artificial limitation (e.g. HP-UX 10.20, where
85854         TMP_MAX is 17576).
85855
85856 2001-11-18  Jim Meyering  <meyering@lucent.com>
85857
85858         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85859
85860 2001-11-18  Jim Meyering  <meyering@lucent.com>
85861
85862         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85863         on SunOS 4.
85864
85865         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85866         files will be created before anything else.
85867
85868 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85869
85870         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85871         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85872
85873 2001-11-17  Jim Meyering  <meyering@lucent.com>
85874
85875         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85876         Prompted by a report from Bob Proulx.
85877
85878         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85879         Instead, require UTILS_FUNC_MKSTEMP.
85880
85881 2001-11-17  Jim Meyering  <meyering@lucent.com>
85882
85883         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85884         Now, that's done as part of AC_FUNC_STRTOD.
85885
85886 2001-11-17  Jim Meyering  <meyering@lucent.com>
85887
85888         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85889         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85890         rather than group writable.  Patch by Juan F. Codagnone.
85891
85892         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85893         xrealloc, Instead, include "xalloc.h".
85894
85895         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85896         Remove explicit declarations of xmalloc, xrealloc,
85897         and xstrdup.  Instead, include "xalloc.h".
85898
85899         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85900         unlocked-io.h.
85901         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85902         Likewise.
85903         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85904
85905         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85906         Reported by Padraig Brady.
85907
85908         * lib/mkstemp.c: #undef mkstemp.
85909         Include config.h.
85910         (rpl_mkstemp): Rename from mkstemp.
85911         Protoize.
85912
85913 2001-11-16  Jim Meyering  <meyering@lucent.com>
85914
85915         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85916         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85917         determine the amount of total physical memory, use pstat_getstatic.
85918         HPUX-11 doesn't define _SC_PHYS_PAGES.
85919         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85920         If sysconf couldn't be used to determine the amount of available
85921         physical memory, use both pstat_getstatic and pstat_getdynamic.
85922         Based on a patch from Bob Proulx.
85923
85924 2001-11-10  Jim Meyering  <meyering@lucent.com>
85925
85926         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85927         (jm_PREREQ): Use it.
85928
85929 2001-11-09  Jim Meyering  <meyering@lucent.com>
85930
85931         * m4/jm-macros.m4: Require autoconf-2.52f.
85932         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85933         Use these AC_-prefixed names, not the AM_-prefixed ones.
85934
85935         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85936
85937 2001-11-05  Jim Meyering  <meyering@lucent.com>
85938
85939         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85940
85941 2001-11-04  Jim Meyering  <meyering@lucent.com>
85942
85943         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85944         $DEFS.
85945
85946 2001-11-03  Jim Meyering  <meyering@lucent.com>
85947
85948         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85949         of AC_DEFUN.
85950
85951         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85952         know the name of the variable in the macro definition.
85953
85954 2001-11-03  Jim Meyering  <meyering@lucent.com>
85955
85956         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85957         in argmatch_to_argument call.
85958
85959         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85960         argument.
85961
85962         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85963         e.g., a fault due to an attempt to free a NULL pointer.
85964
85965 2001-11-01  Jim Meyering  <meyering@lucent.com>
85966
85967         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85968         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85969
85970 2001-11-01  Jim Meyering  <meyering@lucent.com>
85971
85972         * lib/dirfd.c, lib/dirfd.h: New files.
85973         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85974
85975         * lib/hash.c (hash_print) [TESTING]: Clean up.
85976
85977 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85978
85979         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85980         to avoid a warning if -Wall.
85981
85982 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85983
85984         * README: New file
85985         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85986         (per RMS's instructions, this is now the canonical source)
85987         * lgpl/, gpl/: New directories.
85988
85989 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85990
85991         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85992
85993 2001-10-21  Jim Meyering  <meyering@lucent.com>
85994
85995         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85996         this code would end up calling gettext even in packages built
85997         with --disable-nls.
85998         * lib/getopt.c (_): Likewise.
85999         * lib/regex.c (_): Likewise.
86000
86001 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86002
86003         * m4/error.m4 (jm_PREREQ_ERROR):
86004         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86005         AC_FUNC_STRERROR_R does that.
86006         Check for strerror declaration.
86007
86008         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86009         are supposed to have them these days.
86010         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86011         Merge changes from latest Autoconf CVS.
86012         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86013         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86014         POSIX decided to standardize on the int flavor of strerror_r.
86015
86016 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86017
86018         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86019         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86020         Use strerror_r that is only a macro, even if it is not a function.
86021         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86022         (private_strerror): Use prototypes, not old-style function definition.
86023         (print_errno_message): New function.
86024         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86025         char*-flavored one.
86026         (error_tail, error, error_at_line): Use it.
86027
86028 2001-10-11  Jim Meyering  <meyering@lucent.com>
86029
86030         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86031         and quote_n (1, ... to avoid clobbering a buffer.
86032
86033 2001-10-05  Jim Meyering  <meyering@lucent.com>
86034
86035         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86036         hash-pjw.h.
86037         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86038         * lib/hash-pjw.h: New file.
86039
86040 2001-09-30  Jim Meyering  <meyering@lucent.com>
86041
86042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86043         `struct fsstat' has the `f_fstypename' member.
86044         Use that to define FS_TYPE, which is now used to make
86045         the getfsstat link test tighter.
86046
86047 2001-09-30  Jim Meyering  <meyering@lucent.com>
86048
86049         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86050         Include <sys/ucred.h>, for Apple Darwin.
86051         Include sys/mount.h and sys/fs_types.h only if available.
86052         (FS_TYPE): Define.
86053         (read_filesystem_list): Use FS_TYPE.
86054
86055 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86056
86057         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86058         a boolean context.
86059
86060 2001-09-29  Jim Meyering  <meyering@lucent.com>
86061
86062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86063         [one-argument getmntent function]): Include stdio.h before mntent.h.
86064         SunOS 4.1.x needs it for the declaration of `FILE'.
86065         Patch by Volker Borchert.
86066
86067         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86068         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86069         sys/fs_types.h, and make the link-test for getfsstat guard #include
86070         directives with appropriate #if HAVE_*_H tests so that we can
86071         detect getfsstat on Apple Darwin1.3.7 systems.
86072         Reported by Nelson Beebe.
86073         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86074
86075 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86076
86077         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86078         #defines strtoimax.  Also treat the other strto* functions
86079         like strtoimax.
86080
86081         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86082         Check for strtoul and strtoumax,
86083         as those declarations are made even in the signed case.
86084         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86085         Likewise, for strtol and strtoimax.
86086
86087 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86088
86089         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86090         #defines strtoimax.  Also treat the other strto* functions
86091         like strtoimax.
86092
86093         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86094         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86095         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86096
86097 2001-09-26  Jim Meyering  <meyering@lucent.com>
86098
86099         Most macros in unlocked-io.h had the wrong number of arguments.
86100         * lib/gen-uio: New script.
86101         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86102         * lib/unlocked-io.hin: Remove file.
86103         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86104         rather than trying to embed it here.
86105         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86106         Reported by Padraig Brady.
86107
86108 2001-09-25  Volker Borchert  <bt@teknon.de>
86109
86110         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86111         `result'.
86112
86113 2001-09-24  Jim Meyering  <meyering@lucent.com>
86114
86115         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86116
86117 2001-09-23  Jim Meyering  <meyering@lucent.com>
86118
86119         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86120         instead of the mere test for existence of mntent.h.  The latter
86121         would get a false-positive on AIX 3.4 systems.
86122         In the outer getmntent if-block, don't die if neither of the getmntent
86123         tests succeeds.  Instead, just fall through and continue with the
86124         remaining tests.
86125
86126 2001-09-23  Jim Meyering  <meyering@lucent.com>
86127
86128         * lib/mountlist.c: Remove useless parentheses in #if directives.
86129         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86130         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86131
86132 2001-09-22  Jim Meyering  <meyering@lucent.com>
86133
86134         * m4/gettext.m4: New file.  From gettext.
86135         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86136         * m4/progtest.m4: Likewise
86137         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86138         * m4/glibc21.m4: Likewise.
86139
86140         * m4/libintl.m4: Remove.  No longer used.
86141
86142 2001-09-22  Jim Meyering  <meyering@lucent.com>
86143
86144         * lib/localcharset.c: Update from latest gettext.
86145         * lib/config.charset: Likewise.
86146
86147 2001-09-20  Jim Meyering  <meyering@lucent.com>
86148
86149         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86150         strtoimax.
86151         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86152         strtoumax.
86153
86154 2001-09-20  Jim Meyering  <meyering@lucent.com>
86155
86156         * lib/xstrtol.c (strtoimax): Guard declaration with
86157         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86158         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86159         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86160         (strtoumax): Likewise, for completeness (it wasn't necessary).
86161
86162 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86163
86164         * lib/strtoimax.c (HAVE_LONG_LONG):
86165         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86166         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86167         to work around bug in IBM C compiler.
86168
86169 2001-09-17  Jim Meyering  <meyering@lucent.com>
86170
86171         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86172         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86173         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86174         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86175         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86176         whenever the right hand side need not be expanded by the shell.
86177
86178 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86179
86180         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86181         library.  It's not correct, as some older glibcs are buggy.
86182         fnmatch wasn't fixed until glibc 2.2.
86183
86184         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86185         special shell magic here.
86186
86187 2001-09-16  Jim Meyering  <meyering@lucent.com>
86188
86189         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86190         * m4/jm-macros.m4: Require it.
86191
86192 2001-09-16  Jim Meyering  <meyering@lucent.com>
86193
86194         * lib/mkdir.c: New file.
86195
86196 2001-09-15  Jim Meyering  <meyering@lucent.com>
86197
86198         * m4/jm-macros.m4: Check for help2man.
86199
86200 2001-09-11  Jim Meyering  <meyering@lucent.com>
86201
86202         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86203         The body, by Paul Eggert, was moved here from configure.in.
86204         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86205
86206 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86207
86208         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86209         (jm_PREREQ): Use it.
86210
86211 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86212
86213         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86214         Use ssize_t, not int, to store result of readlink.
86215         Check for ssize_t overflow as well as size_t overflow,
86216         as POSIX says the result of readlink is implementation-defined
86217         when ssize_t overflows.
86218         Remove unnecessary cast to char*.
86219         Use free+malloc instead of realloc, as the storage doesn't need
86220         to be preserved and it's clearer and can be more efficient that way.
86221         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86222         * lib/xreadlink.h (xreadlink): Update prototype.
86223
86224 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86225
86226         * lib/xgetcwd.c: Revert some of the previous change; intead,
86227         fix the HAVE_GETCWD_NULL code to behave more like the
86228         !HAVE_GETCWD_NULL code used to.
86229
86230         Include "xalloc.h".
86231         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86232         invoke xalloc_die.
86233
86234 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86235
86236         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86237         sys/param.h, as pathmax.h includes them.
86238
86239 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86240
86241         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86242         (jm_PREREQ_XGETCWD): New macro.
86243
86244         * m4/getcwd.m4: New file.
86245
86246 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86247
86248         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86249         like the HAVE_GETCWD_NULL code.
86250         Include pathmax.h if not HAVE_GETCWD.
86251         Do not include xalloc.h.
86252         (INITIAL_BUFFER_SIZE): New symbol.
86253         Do not use xmalloc / xrealloc, since the caller is responsible for
86254         handling errors.  Preserve errno around `free' during failure.
86255         Do not overrun buffer when using getwd.
86256
86257 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86258
86259         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86260         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86261         getcwd (NULL, 0).
86262
86263 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86264
86265         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86266         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86267         spotted by Jim Meyering.
86268
86269 2001-09-03  Jim Meyering  <meyering@lucent.com>
86270
86271         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86272         failure.
86273
86274 2001-09-02  Jim Meyering  <meyering@lucent.com>
86275
86276         * lib/error.c: Update from GNU libc.
86277
86278 2001-09-01  Jim Meyering  <meyering@lucent.com>
86279
86280         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86281         Used by df.
86282
86283 2001-09-01  Jim Meyering  <meyering@lucent.com>
86284
86285         * lib/xreadlink.c: New file.
86286         * lib/xreadlink.h: New file.
86287         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86288         xreadlink.h.
86289
86290         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86291         doesn't conflict with sparc Solaris 7's definition in
86292         /usr/include/sys/int_types.h.
86293
86294         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86295         files.
86296         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86297         and strncasecmp as r-values.  Unixware didn't have declarations.
86298
86299 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86300
86301         * lib/xstrtol.h: Add copyright notice.
86302         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86303         LONGINT_INVALID_SUFFIX_CHAR.
86304
86305 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86306
86307         * lib/xstrtol.c (strtoimax): New decl.
86308
86309 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86310
86311         * lib/xgetcwd.c: Don't include pathmax.h.
86312         Include stdlib.h and unistd.h if available.
86313         Include xalloc.h.
86314         (xmalloc, xstrdup, free): Remove decls.
86315         (xgetcwd): Don't assume sizes fit in unsigned.
86316         Check for overflow when computing sizes.
86317         Simplify reallocation code.
86318
86319 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86320
86321         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86322         a directory's st_size can have an arbitrary value, so the old
86323         usage could waste an arbitrary amount of memory.  All uses
86324         changed.
86325         * lib/savedir.h: Update prototype.
86326
86327 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86328
86329         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86330
86331         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86332         old strtoimax.c.
86333
86334         Also, make the following further changes to make this file's
86335         configuration more similar to that of strtol.c:
86336         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86337         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86338         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86339         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86340         changed to signed values.
86341
86342         And make the following changes as well:
86343         Fix copyright notice, as 1999 was missing.
86344         (verify): New macro.
86345         (strtoimax): Check sizes at compile-time, not run-time.
86346         Prefer strtol to strtoll if both work.
86347         (main): Remove; it was not that useful and was a pain to maintain.
86348
86349         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86350
86351 2001-08-31  Jim Meyering  <meyering@lucent.com>
86352
86353         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86354         Use an initial, malloc'd, buffer of length 128 rather than
86355         a statically allocated one of length 1024.
86356
86357 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86358
86359         Simplify code, partly by assuming autoconf 2.52 semantics.
86360
86361         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86362
86363         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86364         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86365         All uses removed.
86366         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86367         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86368         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86369         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86370         jm_AC_HEADER_INTTYPES_H.
86371         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86372
86373         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86374
86375         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86376         Quote first arg of AC_DEFUN.
86377         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86378         since they are needed to parse the include file even if we need
86379         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86380         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86381         but with opposite signedness.
86382
86383 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86384
86385         Merge 'exclude' changes from tar 1.13.22.
86386         This fixes one or two unlikely storage allocation overflow bugs,
86387         but doesn't change user-visible behavior otherwise.
86388
86389 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86390
86391         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86392         (jm_PREREQ_EXCLUDE): New macro.
86393
86394 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86395
86396         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86397         tm to be declared.
86398
86399 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86400
86401         * lib/hash.c: Remove '2001' from copyright notice.
86402
86403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86404
86405         * lib/full-write.h: New file.
86406         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86407         * lib/full-write.c: Correct credits, as cccp.c no longer
86408         exists and anyway it was so heavily changed from the old cccp
86409         code as to be unrecognizable.  Include full-write.h.
86410         (full_write): Return size_t, with short writes meaning failure.
86411         All callers changed.  This fixes a bug with large buffers
86412         on 64-bit hosts.
86413         * lib/utime.c: Include full-write.h.
86414
86415 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86416
86417         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86418         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86419         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86420         Include if available.
86421         (<xalloc.h>): Include
86422         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86423         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86424         collide with FNM macros.
86425         (struct patopts): New struct.
86426         (struct exclude): Use it, as exclude patterns now come with options.
86427         (new_exclude): Support above changes.
86428         (new_exclude, add_exclude_file):
86429         Initial size must now be a power of two to simplify overflow checking.
86430         (free_exclude, fnmatch_no_wildcards): New function.
86431         (excluded_filename): No longer requires options arg, as the options
86432         are determined by add_exclude.  Now returns bool, not int.
86433         (excluded_filename, add_exclude):
86434         Add support for the fancy new exclusion options.
86435         (add_exclude, add_exclude_file): Now takes int options arg.
86436         Check for arithmetic overflow when computing sizes.
86437         (add_exclude_file): xrealloc might modify errno, so don't
86438         realloc until after errno might be used.
86439
86440         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86441         New macros.
86442         (free_exclude): New decl.
86443         (add_exclude, add_exclude_file): Now takes int options arg.
86444         (excluded_filename): No longer requires options arg, as the options
86445         are determined by add_exclude.  Now returns bool, not int.
86446
86447 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86448
86449         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86450
86451 2001-08-27  Jim Meyering  <meyering@lucent.com>
86452
86453         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86454
86455         * lib/version-etc.c (N_): Remove definition.
86456         Revert most of last change.
86457         Instead, simply don't mark the `Copyright...' string for translation.
86458         Based on advice from Paul Eggert.
86459
86460         * lib/strtoxmax.c: Tweak comment.
86461
86462 2001-08-26  Jim Meyering  <meyering@lucent.com>
86463
86464         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86465
86466         * m4/xstrtoimax.m4: New file.
86467         * m4/xstrtoumax.m4: Add comments explaining why we
86468         AC_REPLACE_FUNCS(strtol).
86469
86470 2001-08-26  Jim Meyering  <meyering@lucent.com>
86471
86472         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86473         of copyright with `%s' so translators don't get an untranslated
86474         message in 2002.
86475         (COPYRIGHT_YEAR): Define.
86476         (version_etc): Use fprintf rather than fputs.
86477         Suggestion from Ulrich Drepper.
86478
86479         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86480
86481         * lib/strtoll.c: New file, from GNU libc.
86482         * lib/xstrtoimax.c: New file.
86483
86484         * lib/xstrtol.h: Add xstrtoimax.
86485         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86486         * lib/strtoimax.c: New file.  Likewise, but first define
86487         STRTOUXMAX_SIGNED.
86488
86489         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86490         ...
86491         * lib/strtoxmax.c: ... then renamed to this.
86492
86493 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86494
86495         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86496         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86497         (jm_AC_TYPE_INTMAX_T): New macro.
86498         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86499
86500         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86501
86502         * m4/longlong.m4: Renamed from ulonglong.m4.
86503         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86504         * m4/uintmax_t.m4: Removed.
86505
86506 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86507
86508         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86509         Port to Solaris 8, where 'sed' requires a space after the 'r'
86510         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86511         Redirect output to $tmp just once.
86512
86513 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86514
86515         * lib/addext.c (<errno.h>): Include.
86516         (errno): Declare if not defined.
86517         (addext): Work correctly when pathconf returns -1 and leaves
86518         errno alone because there is no limit.  Also, work even if
86519         pathconf returns a value greater than SIZE_MAX.
86520
86521 2001-08-12  Jim Meyering  <meyering@lucent.com>
86522
86523         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86524         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86525         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86526         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86527         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86528         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86529         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86530         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86531         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86532         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86533         utime.m4, utimes.m4, xstrtoumax.m4:
86534         Quote the first argument in each use of AC_DEFUN.
86535
86536 2001-08-12  Jim Meyering  <meyering@lucent.com>
86537
86538         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86539         Simply `return getcwd (NULL, 0);'.
86540         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86541         Use 1300 as initial value for length, not PATH_MAX.
86542
86543         * lib/pathmax.h: Clean up cpp syntax.
86544
86545 2001-08-12  Jim Meyering  <meyering@lucent.com>
86546
86547         * lib/gettimeofday.c: New file.
86548         * lib/gtod.h: New file.
86549         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86550
86551 2001-08-05  Jim Meyering  <meyering@lucent.com>
86552
86553         * m4/jm-macros.m4: Require autoconf-2.52.
86554
86555 2001-08-04  Jim Meyering  <meyering@lucent.com>
86556
86557         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86558         stmt, to get in sync with glibc.
86559
86560 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86561
86562         The following changes are from gettext 0.10.39 as maintained by
86563         Bruno Haible.
86564
86565         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86566         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86567         with inverted sense.  All uses changed.
86568
86569         * lib/mbswidth.c: Don't include <limits.h>.
86570         Include <stdlib.h> and <string.h> unconditionally.
86571         (iswcntrl, mbsinit, ISCNTRL): New macros.
86572         (mbsnwidth): Use K&R style function declarations.
86573         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86574         can optimize it when MB_CUR_MAX == 1.
86575         The width of control characters is zero, not 1.
86576
86577 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86578
86579         The following changes are from gettext 0.10.39 as maintained by
86580         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86581
86582         * m4/codeset.m4: Upgrade to serial AM1.
86583         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86584         all uses changed.  Quote first arg of AC_DEFUN.
86585         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86586
86587         * m4/iconv.m4: Upgrade to serial AM2.
86588         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86589         Add --with-libconv-prefix.
86590         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86591         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86592         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86593         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86594         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86595
86596         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86597         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86598         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86599         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86600         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86601         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86602         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86603         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86604         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86605
86606         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86607         string.h any more.
86608
86609         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86610         not the default value.
86611
86612         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86613         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86614         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86615         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86616         Also check for iswcntrl, used for wcwidth fallback.
86617         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86618         to Autoconf 2.13.
86619
86620 2001-08-03  Jim Meyering  <meyering@lucent.com>
86621
86622         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86623         as it was in the original.  Reported by Paul Eggert.
86624
86625 2001-07-16  Jim Meyering  <meyering@lucent.com>
86626
86627         * m4/gettimeofday.m4: New file.
86628         Prompted by a report from Bernhard Baehr.
86629
86630 2001-07-15  Jim Meyering  <meyering@lucent.com>
86631
86632         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86633         stuff. Now it's in ../Makefile.cfg.
86634
86635 2001-07-15  Jim Meyering  <meyering@lucent.com>
86636
86637         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86638         (BUILT_SOURCES): Add unlocked-io.h.
86639         (io_functions): Define.
86640         (unlocked-io.h): New rule.
86641         (DISTCLEANFILES): Add unlocked-io.h.
86642         (all-local): Depend on unlocked-io.h, to ensure it is created.
86643
86644         * lib/unlocked-io.hin: New file
86645
86646         * lib/regex.c: Update from glibc.
86647
86648 2001-07-05  Jim Meyering  <meyering@lucent.com>
86649
86650         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86651         recommendation.
86652         (libfetish_a_SOURCES): Put all .h files here instead.
86653         Remove a thus-exposed (better checks in automake) duplicate and
86654         two unnecessary .h files.
86655
86656 2001-07-04  Jim Meyering  <meyering@lucent.com>
86657
86658         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86659         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86660         distcheck failure.
86661
86662 2001-07-02  Jim Meyering  <meyering@lucent.com>
86663
86664         The following changes were prompted by suggestions from Bruno Haible.
86665
86666         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86667         is now generated.
86668         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86669         definition of EXTRA_DIST.
86670         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86671         ensure that the generated file is created/updated whenever the list
86672         of $(unlocked_functions) is changed.
86673         (jm-glibc-io.m4): New rule.
86674         (unlocked-io.h): New rule -- currently unused.
86675
86676 2001-06-24  Jim Meyering  <meyering@lucent.com>
86677
86678         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86679         unmatched right bracket, rather than kludging it with an extra,
86680         falsely-matching quote in a comment.  Patch by Akim Demaille.
86681
86682 2001-06-11  Jim Meyering  <meyering@lucent.com>
86683
86684         * lib/regex.c: Update from GNU libc.
86685
86686 2001-05-27  Jim Meyering  <meyering@lucent.com>
86687
86688         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86689         Check for ut_type in struct utmp.
86690
86691 2001-05-27  Jim Meyering  <meyering@lucent.com>
86692
86693         * lib/readutmp.h (UT_TYPE): Define.
86694
86695 2001-05-24  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/argmatch.c: Include "quote.h".
86698         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86699         quote function.  Reported by Göran Uddeborg.
86700
86701 2001-05-22  Jim Meyering  <meyering@lucent.com>
86702
86703         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86704         now that we use the package-supplied version unconditionally.
86705         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86706
86707 2001-05-21  Jim Meyering  <meyering@lucent.com>
86708
86709         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86710         shell syntax errors.
86711
86712 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86713
86714         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86715
86716 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86717
86718         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86719         Don't bother to check library strftime, since
86720         we'll be using our own my_strftime function anyway.
86721         Define my_strftime instead of strftime.
86722
86723 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86724
86725         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86726         which is not yet declared.
86727
86728 2001-05-15  Jim Meyering  <meyering@lucent.com>
86729
86730         * m4/regex.m4: Use proper quoting so brackets appear in the test
86731         program.
86732         Reported by, and with help from, Bruno Haible.
86733
86734 2001-05-13  Jim Meyering  <meyering@lucent.com>
86735
86736         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86737         undefined.
86738
86739 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86740
86741         dirname code cleanup.  base_name now behaves more compatibly
86742         with POSIX basename when given file names that have trailing
86743         slashes, and similarly for dir_name.  Add new primitives
86744         base_len and dir_len.  Put the directory-name-related decls
86745         into dirname.h.
86746
86747         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86748         * lib/backupfile.c (base_name): Likewise.
86749         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86750         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86751         * lib/makepath.c (strip_trailing_slashes): Likewise.
86752         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86753         ISSLASH): Likewise.
86754         * lib/rename.c (strip_trailing_slashes): Likewise.
86755         * lib/same.c (base_name): Likewise.
86756         * lib/stripslash.c (ISSLASH): Likewise.
86757
86758         * lib/addext.c: Include <dirname.h> after size_t is defined.
86759         * lib/backupfile.c: Likewise.
86760
86761         * lib/addext.c (addext): Use base_len to trim redundant
86762         trailing slashes instead of doing it ourselves.
86763         But do not trim the last slash if it is not redundant.
86764
86765         * lib/backupfile.c (find_backup_file_name,
86766         max_backup_version): Use base_len instead of rolling it ourselves.
86767         Handle the case of "" and (on DOS) "C:" correctly.
86768
86769         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86770         needed. Include <string.h>, <dirname.h>.
86771         (base_name): Allow file names ending in slashes, other than names
86772         that are all slashes.  In this case, return the basename followed
86773         by the slashes.  This is more general, and can be used in places
86774         where the original base_name purposely had an assertion failure.
86775         (base_len): New function.
86776
86777         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86778         Do not include <assert.h>; no longer needed.
86779         Include xalloc.h.
86780         (memrchr): Remove decl.
86781         (dir_name_r): Remove.
86782         (dir_len): Renamed from dirlen.  All callers changed.
86783         Rewrite in terms of base_name, for simplicity and consistency.
86784         (dir_name): Never return NULL.  All callers changed.
86785         Do not include <stdlib.h> in test program; no longer needed.
86786         return 0; is fine for test program.
86787
86788         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86789         New macros.
86790         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86791
86792         * lib/path-concat.c (path_concat): Use base_len to compute
86793         base length, not strlen; this means we cannot rely on memcpy
86794         to null-terminate.
86795
86796         * lib/same.c (STREQ): Remove.
86797         (same_name): Handle the case where the basename ends in trailing '/'.
86798
86799         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86800         a slash was stripped.  Do not strip the last slash after a
86801         file system prefix.
86802
86803 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86804
86805         * lib/Makefile.am (libfetish_a_SOURCES):
86806         Add strftime.c, since we now compile it on all hosts.
86807
86808         * lib/strftime.c (my_strftime):
86809         Define to nstrftime if emacs, but only if my_strftime is not defined.
86810         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86811         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86812         Add one more extra argument: a nanoseconds value.
86813         All uses changed.
86814         (ns): New macro.
86815         (my_strftime function): Add %N format.
86816         (emacs_strftimeu): Renamed from emacs_strftime,
86817         with extra ut argument.
86818
86819 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86820
86821         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86822
86823 2001-04-21  Jim Meyering  <meyering@lucent.com>
86824
86825         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86826         doesn't interfere.
86827
86828 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86829
86830         * m4/ftruncate.m4: Check for chsize.
86831         Link with ftruncate.o unconditionally if ftruncate is missing.
86832         This was required when cross-compiling to i586-mingw32msvc.
86833
86834 2001-04-08  Jim Meyering  <meyering@lucent.com>
86835
86836         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86837         recomputed; that's necessary when the offset spans a DST transition.
86838         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86839
86840 2001-04-02  Jim Meyering  <meyering@lucent.com>
86841
86842         * lib/regex.h, regex.c: Update from GNU libc.
86843
86844 2001-03-24  Jim Meyering  <meyering@lucent.com>
86845
86846         * m4/jm-macros.m4: Require autoconf-2.49d.
86847
86848 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86849
86850         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86851
86852 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86853
86854         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86855
86856 2001-03-17  Jim Meyering  <meyering@lucent.com>
86857
86858         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86859         now that the version in autoconf is equivalent.
86860         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86861
86862         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86863         Suggestion from Akim Demaille.
86864
86865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86866         (jm_PREREQ_TEMPNAME): New function.
86867
86868 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86869
86870         * lib/tempname.c (uint64_t): Define to uintmax_t if
86871         not defined, and if UINT64_MAX is not defined.
86872         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86873         Reported by John David Anglin.
86874
86875 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86876
86877         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86878         resolve alias if codeset is empty.
86879         * lib/config.charset (BeOS): Use wildcard syntax.
86880
86881 2001-03-13  Jim Meyering  <meyering@lucent.com>
86882
86883         * lib/path-concat.c (path_concat)
86884         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86885         concatenating e.g., `C:' and `foo'.
86886         From Bruno Haible.
86887
86888 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86889
86890         * lib/localcharset.c (locale_charset): Don't use
86891         setlocale(LC_CTYPE,NULL). Don't return NULL.
86892         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86893
86894 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86895
86896         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86897         support for DOS/DJGPP.
86898
86899 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86900
86901         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86902         lacks mkstemp.  Compile our own tempname.c if we compile our own
86903         mkstemp.c, as mkstemp relies on tempname.
86904
86905 2001-03-01  Jim Meyering  <meyering@lucent.com>
86906
86907         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86908         AH_VERBATIM really does output its argument verbatim.
86909
86910 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86911
86912         * lib/Makefile.am (libfetish_a_SOURCES):
86913         Add dup-safer.c, fopen-safer.c.
86914         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86915
86916         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86917         * lib/unistd-safer.h: New files.
86918
86919 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86920
86921         The mkstemp replacement is taken from glibc 2.2.2, with some
86922         portability fixes for use outside glibc, as follows:
86923
86924         * lib/tempname.c (struct_stat64): New macro.
86925         (direxists, __gen_tempname): Use it.
86926         This avoids a portability problem with Solaris 8.
86927
86928         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86929         (<stddef.h>, <stdint.h>, <string.h>):
86930         Include only if STDC_HEADERS || _LIBC.
86931         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86932         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86933         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86934         (__set_errno): Define this macro if <errno.h> doesn't.
86935         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86936         Define these macros if <stdio.h> doesn't.
86937         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86938         Define these macros if <sys/stat.h>
86939         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86940         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86941         __xstat64): Define if not _LIBC.
86942         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86943         (__gen_tempname): Invoke gettimeofday only if
86944         HAVE_GETTIMEOFDAY || _LIBC;
86945         otherwise, fall back on plain "time".
86946         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86947
86948         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86949
86950         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86951
86952 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86953
86954         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86955
86956 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86957
86958         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86959         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86960         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86961         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86962
86963 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86964
86965         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86966         Remove workaround macros for hosts that have mbrtowc but not
86967         mbstate_t, as we now insist on proper declarations for both
86968         before using mbrtowc.
86969
86970 2001-02-17  Jim Meyering  <meyering@lucent.com>
86971
86972         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86973         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86974         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86975         UnixWare 7.1.1.
86976
86977         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86978         rather than AC_CACHE_VAL.
86979
86980 2001-02-17  Jim Meyering  <meyering@lucent.com>
86981
86982         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86983         around included file name.
86984
86985         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86986
86987         * lib/strftime.c: Update from GNU libc (the only changes were to
86988         comments).
86989
86990 2001-02-17  Jim Meyering  <meyering@lucent.com>
86991
86992         * lib/regex.c: Update from libc.
86993
86994 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86995
86996         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86997         clash.
86998
86999 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87000
87001         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87002         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87003         Reported by Mark Hounschell via Paul Eggert.
87004
87005 2001-02-07  Jim Meyering  <meyering@lucent.com>
87006
87007         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87008
87009 2001-02-05  Jim Meyering  <meyering@lucent.com>
87010
87011         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87012         it includes the patch required for `large file' support with at least
87013         HP-UX's 10.20 /bin/cc.
87014
87015 2001-02-03  Jim Meyering  <meyering@lucent.com>
87016
87017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87018         AS_IF, now that it works once again (mysteriously).
87019         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87020
87021 2001-01-30  Jim Meyering  <meyering@lucent.com>
87022
87023         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87024         * m4/chown.m4: Rename conftestchown to conftest.chown.
87025         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87026         s/conftestdir2/conftest.d2/.
87027         * m4/utimes.m4: s/conftestdata/conftest.data/
87028         Inspired by Pavel Roskin's change in autoconf.
87029
87030 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87031
87032         * lib/config.charset: Update for FreeBSD 4.2.
87033
87034 2001-01-27  Jim Meyering  <meyering@lucent.com>
87035
87036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87037         a use of AS_IF.
87038         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87039
87040 2001-01-26  Jim Meyering  <meyering@lucent.com>
87041
87042         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87043         quotearg.c includes it.
87044
87045 2001-01-26  Jim Meyering  <meyering@lucent.com>
87046
87047         * lib/quotearg.c: Include stddef.h.
87048         * lib/quote.c: Include stddef.h.
87049         Reported by Axel Kittenberger.
87050
87051         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87052         line in double quotes so that it evokes a better diagnostic.
87053         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87054         Reported by Axel Kittenberger.
87055
87056 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87057
87058         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87059         as if it was a `charset'.
87060
87061 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87062
87063         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87064         has const.
87065
87066 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87067
87068         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87069         to avoid a warning.  Add back 'const' to inptr.
87070
87071 2001-01-20  Jim Meyering  <meyering@lucent.com>
87072
87073         Be sure that headers are checked before used in code compiled
87074         for the type checks.
87075         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87076         In place of that, invoke jm_CHECK_ALL_TYPES.
87077         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87078         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87079         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87080         The check for ssize_t was mistakenly run before the test for unistd.h.
87081
87082         The configure-time check for stdbool.h was missing.
87083         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87084         (jm_PREREQ_HASH): New function.
87085
87086 2001-01-17  Jim Meyering  <meyering@lucent.com>
87087
87088         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87089         for autoconf-2.49c.
87090         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87091
87092 2001-01-16  Jim Meyering  <meyering@lucent.com>
87093
87094         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87095         From Bruno Haible.
87096
87097 2001-01-14  Jim Meyering  <meyering@lucent.com>
87098
87099         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87100         foo and bar.  Create conftestdir/ in the script, not in the C code.
87101         Remove directories in the script, not in the C code.
87102         Remove conftestdir{,2} before trying to create the directory.
87103         Make the entire configure script fail if the mkdir fails.
87104
87105 2001-01-14  Jim Meyering  <meyering@lucent.com>
87106
87107         * lib/rename.c: New file.  From Volker Borchert.
87108         Include stdlib.h, string.h or strings.h, and xalloc.h.
87109         Use strip_trailing_slashes rather than open-coding it.
87110
87111 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87112
87113         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87114
87115 2001-01-03  Jim Meyering  <meyering@lucent.com>
87116
87117         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87118         of local `inptr' to avoid warning with some system declarations of
87119         iconv.
87120
87121 2001-01-02  Volker Borchert  <bt@teknon.de>
87122
87123         * m4/rename.m4: New file.
87124         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87125
87126 2001-01-01  Jim Meyering  <meyering@lucent.com>
87127
87128         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87129         even on systems with utmpx.h.  It's necessary for the declaration of
87130         utmp's ut_user member.  Reported by Andreas Jaeger.
87131
87132         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87133         available. They are required for the declarations of getgrgid and
87134         getpwuid resp.
87135         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87136         Reported by Andreas Jaeger.
87137
87138 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87139
87140         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87141         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87142         so `make install' also works in VPATH builds.
87143
87144 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87145
87146         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87147         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87148         can be used in subdirectories.
87149
87150 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87151
87152         * lib/modechange.c: Do not assume that mode_t uses the
87153         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87154         the other-execute bit of FOO even if S_IXOTH != 1.
87155
87156         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87157         WOTH, XOTH, ALLM): New macros.
87158         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87159          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87160         Use them.
87161         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87162         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87163         (mode_compile):
87164         No need to use uintmax_t; unsigned long is long enough.
87165         Don't bother to get suffix since we don't use it.
87166
87167 2000-12-26  Jim Meyering  <meyering@lucent.com>
87168
87169         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87170         better with autoheader.
87171
87172 2000-12-24  Jim Meyering  <meyering@lucent.com>
87173
87174         * lib/hash.c (is_prime): Return explicit boolean values.
87175         (hash_get_first): Return NULL to appease Irix5.6's 89.
87176         Reported by Nelson Beebe.
87177
87178 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87179
87180         * lib/localcharset.c (locale_charset): Add support for Win32.
87181
87182 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87183
87184         * lib/physmem.h, lib/physmem.c: New files.
87185
87186         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87187         (noinst_HEADERS): Add physmem.h.
87188
87189         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87190         't' for compatibility with Solaris 8 sort.
87191
87192 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87193
87194         * lib/config.charset: Add support for BeOS.
87195
87196 2000-12-17  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87199         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87200
87201 2000-12-16  Jim Meyering  <meyering@lucent.com>
87202
87203         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87204         N and M) would have treated it like `chown N:N FILE'.
87205
87206         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87207
87208 2000-12-16  Jim Meyering  <meyering@lucent.com>
87209
87210         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87211         SHELLS_FILE to a file name that's useful on djgpp systems.
87212         Include stdlib.h.
87213         (ADDITIONAL_DEFAULT_SHELLS): Define.
87214         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87215         Based mostly on a patch from Prashant TR.
87216
87217 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87218
87219         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87220         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87221         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87222
87223 2000-12-08  Andreas Schwab  <schwab@suse.de>
87224
87225         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87226         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87227
87228 2000-12-07  Jim Meyering  <meyering@lucent.com>
87229
87230         * lib/stripslash.c (ISSLASH): Define.
87231         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87232         `/'.
87233         From Prashant TR.
87234
87235         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87236         (dir_name_r): Declare this function as static.
87237         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87238         manifest itself on a name containing a mix of slashes and
87239         backslashes.
87240         Make this function work with names starting with a DOS-style
87241         drive letter and colon prefix.
87242         (dir_name): Append `.' if necessary.
87243         Based mostly on patches from Prashant TR and Eli Zaretskii.
87244
87245         * lib/dirname.h (dir_name_r): Remove prototype.
87246
87247 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87248
87249         * m4/off_t-format.m4: Remove this file.
87250         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87251
87252 2000-12-06  Jim Meyering  <meyering@lucent.com>
87253
87254         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87255         replacement strtoull, we may well need the replacement strtoul, too.
87256         Check for declarations of strtoul and strtoull.
87257         Check for strtol.  Mainly as a cue to cause automake to include
87258         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87259         Check for limits.h -- strtol.c needs it.
87260
87261 2000-12-05  Jim Meyering  <meyering@lucent.com>
87262
87263         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87264
87265 2000-12-04  Jim Meyering  <meyering@lucent.com>
87266
87267         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87268         Also include memory.h, stdlib.h, unistd.h if appropriate.
87269         Reported by Andreas Jaeger (conflicting declaration of malloc).
87270
87271 2000-12-02  Jim Meyering  <meyering@lucent.com>
87272
87273         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87274         * m4/jm-macros.m4 (jm_MACROS): require it.
87275
87276 2000-12-02  Jim Meyering  <meyering@lucent.com>
87277
87278         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87279
87280 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87281
87282         * lib/memrchr.c: Include <config.h> before any system include file.
87283
87284 2000-11-30  Jim Meyering  <meyering@lucent.com>
87285
87286         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87287
87288 2000-11-30  Jim Meyering  <meyering@lucent.com>
87289
87290         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87291
87292 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87293
87294         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87295
87296 2000-11-26  Jim Meyering  <meyering@lucent.com>
87297
87298         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87299
87300 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87301
87302         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87303         size of (size_t) -1; it's not portable.
87304
87305 2000-11-17  Jim Meyering  <meyering@lucent.com>
87306
87307         * lib/strstr.c: Update from GNU libc.
87308
87309 2000-11-17  Akim Demaille  <akim@epita.fr>
87310
87311         * lib/obstack.h: Formatting changes.
87312         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87313         prevent type checking.
87314         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87315         cast the value to (void *): assigning a `foo *' to a `void *'
87316         variable is valid.
87317         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87318
87319 2000-11-16  Jim Meyering  <meyering@lucent.com>
87320
87321         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87322
87323 2000-11-11  Jim Meyering  <meyering@lucent.com>
87324
87325         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87326
87327 2000-11-10  Jim Meyering  <meyering@lucent.com>
87328
87329         * lib/obstack.h: Update from GNU libc.
87330         * lib/obstack.c: Likewise.
87331
87332 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87333
87334         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87335
87336 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87337
87338         * lib/getusershell.c (setusershell): Use rewind rather than
87339         fseek/fseeko, to avoid configuration hassles with fseeko.
87340         Don't bother opening SHELLS_FILE if shellstream is NULL;
87341         it's not necessary.
87342
87343 2000-11-05  Jim Meyering  <meyering@lucent.com>
87344
87345         * lib/makepath.h (make_dir): Declare.
87346         * lib/makepath.c (make_dir): Remove `static' attribute.
87347         Tweak a comment.
87348
87349 2000-11-04  Jim Meyering  <meyering@lucent.com>
87350
87351         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87352
87353 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87354
87355         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87356         last one in a bucket, advance to the next bucket.
87357
87358 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87359
87360         * lib/fnmatch.c: Do not comment out all the code if we are using
87361         the GNU C library, because in some cases we are replacing buggy
87362         code in the GNU C library itself.
87363
87364 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87365
87366         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87367         (regex_compile): Catch bogus \(\1\).
87368
87369 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87370
87371         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87372         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87373         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87374
87375 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87376
87377         * lib/error.h, getline.h, modechange.h:
87378         Remove "2000" from Copyright line, as the file hasn't been
87379         changed this year other than in the copyright notice.
87380
87381         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87382         was changed this year.
87383
87384 2000-10-29  Jim Meyering  <meyering@lucent.com>
87385
87386         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87387         renaming.
87388         * m4/ls-mntd-fs.m4: Likewise
87389
87390 2000-10-29  Jim Meyering  <meyering@lucent.com>
87391
87392         * lib/xstat.in: Fix grammar in comment.
87393
87394 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87395
87396         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87397         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87398         doesn't define __restrict_arr.
87399
87400 2000-10-28  Jim Meyering  <meyering@lucent.com>
87401
87402         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87403         (jm_PREREQ_MEMCHR): New function.
87404
87405 2000-10-28  Jim Meyering  <meyering@lucent.com>
87406
87407         * lib/memchr.c: Update from libc.
87408         Adjust for portability:
87409         [HAVE_STDLIB_H]: Include stdlib.h.
87410         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87411         Undef __memchr, too.
87412         [!weak_alias]: Define __memchr to memchr.
87413
87414         * lib/regex.c: Update from libc.
87415         * lib/regex.h: Likewise.
87416         * lib/getopt1.c: Likewise.
87417         * lib/memcmp.c: Likewise.
87418
87419         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87420         Avoid using fseek, when possible -- it's broken by design.
87421         Patch by Ulrich Drepper.
87422
87423 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87424
87425         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87426         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87427         Giving in to popular pressure to shut up the compiler with casts.
87428
87429 2000-10-26  Jim Meyering  <meyering@lucent.com>
87430
87431         * lib/strftime.c: Update from libc.
87432
87433 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87434
87435         * regex.c: More `unsigned char' -> `re_char' changes.
87436         Also change several `int' into `re_wchar_t'.
87437         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87438         (PUSH_FAILURE_POINTER): Don't cast any more.
87439         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87440         We want GCC to complain, since this piece of code makes
87441         re_match non-reentrant, which *should* be fixed.
87442         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87443         (EXTEND_BUFFER): Use RETALLOC.
87444         (SET_LIST_BIT): Don't cast.
87445         (re_wchar_t): New type.
87446         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87447         that those two functions will always properly return.
87448         (IMMEDIATE_QUIT_CHECK): Cast to void.
87449         (analyse_first): Use recursion rather than an explicit stack.
87450         (re_compile_fastmap): Can't fail anymore.
87451         (re_search_2): Don't check re_compile_fastmap for failure.
87452         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87453         Now also sets the new value (passed in a new argument).
87454         (re_match_2_internal): Use it.
87455         Also, use a new var `reg' of type size_t when looping through regs
87456         rather than reuse the inappropriate `mcnt'.
87457
87458 2000-10-25  Jim Meyering  <meyering@lucent.com>
87459
87460         * lib/obstack.c: Update from libc.
87461
87462 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87463
87464         * regex.c (regex_compile): Change the way of handling a range from
87465         a char less than 256 to a char not less than 256.
87466
87467 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87468
87469         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87470         NT-Emacs only.
87471         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87472         so that re_search functions only quit when callers expect them to.
87473
87474 2000-10-23  Jim Meyering  <meyering@lucent.com>
87475
87476         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87477         wrong.  That set_locale call must not have any side effects.
87478         From Paul Eggert.
87479
87480 2000-10-22  Jim Meyering  <meyering@lucent.com>
87481
87482         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87483         [CYCLIC]: Remove now-unused definition.
87484
87485         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87486         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87487         Suggestion from Ulrich Drepper.
87488
87489 2000-10-21  Jim Meyering  <meyering@lucent.com>
87490
87491         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87492         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87493         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87494
87495 2000-10-21  Jim Meyering  <meyering@lucent.com>
87496
87497         * lib/dirname.c (memrchr): Declare if necessary.
87498         (dir_name): Remove the restriction that there be no
87499         trailing slashes.  Now, this code skips past them, effectively
87500         ignoring them.
87501         [TEST_DIRNAME] (main): New unit tests.
87502
87503         * lib/memrchr.c: New file from GNU libc.
87504         Undef __memrchr, too.
87505         [!weak_alias]: Define __memrchr to memrchr.
87506         Guard weak_alias use with `#ifdef weak_alias'.
87507
87508 2000-10-21  Jim Meyering  <meyering@lucent.com>
87509
87510         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87511         (dir_name): Use dir_name_r.
87512         * lib/dirname.h (dir_name_r): Declare it.
87513
87514 2000-10-17  Jim Meyering  <meyering@lucent.com>
87515
87516         * lib/quote.h (PARAMS): Define and use.
87517         Reported by Akim Demaille.
87518
87519         * lib/getopt.c: Update from libc.
87520
87521 2000-10-16  Jim Meyering  <meyering@lucent.com>
87522
87523         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87524         setlocale.
87525         From Jan Fedak.
87526
87527 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87528
87529         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87530
87531 2000-09-25  Jim Meyering  <meyering@lucent.com>
87532
87533         * lib/md5.h (rol): Define (from GnuPG).
87534
87535         * lib/sha.c: Give credit (GnuPG) where due.
87536         (M): Use rol rather than open-coding it.
87537         Add a FIXME comment.
87538
87539 2000-09-21  Jim Meyering  <meyering@lucent.com>
87540
87541         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87542         Reported by Michael Stone.
87543
87544 2000-09-20  Jim Meyering  <meyering@lucent.com>
87545
87546         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87547         (noinst_HEADERS): Add sha.h.
87548         Based on code from Scott G. Miller and from GnuPG.
87549
87550 2000-09-18  Jim Meyering  <meyering@lucent.com>
87551
87552         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87553         LIBS. Otherwise, everyone ends up linking with -lelf for some
87554         configurations.
87555         Reported by Mike Stone.
87556
87557 2000-09-15  Jim Meyering  <meyering@lucent.com>
87558
87559         * lib/regex.c: Update from libc.
87560
87561 2000-09-10  Jim Meyering  <meyering@lucent.com>
87562
87563         * lib/getopt.c (_getopt_internal): Update from glibc.
87564
87565 2000-09-09  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87568         think it should be used as a general replacement for isascii.
87569         * lib/fnmatch.c: Likewise.
87570         * lib/mbswidth.c: Likewise
87571         * lib/regex.c: Likewise.
87572
87573         Don't use atoi.
87574         * lib/userspec.c: Include sys/param.h and limits.h.
87575         Include xstrtol.h.
87576         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87577         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87578         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87579         UID, GID.  Check range.
87580
87581 2000-09-06  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/getopt.c (_getopt_internal): Update from glibc.
87584
87585 2000-08-30  Jim Meyering  <meyering@lucent.com>
87586
87587         * lib/strftime.c: Merge in changes from GNU libc.
87588
87589 2000-08-26  Jim Meyering  <meyering@lucent.com>
87590
87591         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87592         * m4/fpending.m4: New file.
87593
87594 2000-08-26  Jim Meyering  <meyering@lucent.com>
87595
87596         * lib/closeout.c: Include "__fpending.h".
87597         (close_stdout_status): Return right away if there's nothing to flush.
87598
87599         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87600         * lib/__fpending.c: New file.
87601         * lib/__fpending.h: New file.
87602
87603 2000-08-20  Jim Meyering  <meyering@lucent.com>
87604
87605         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87606         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87607         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87608
87609 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87610
87611         Improve fileutils installation on systems where running
87612         programs (like install) can't be unlinked.
87613         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87614         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87615
87616 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87617
87618         Standardize on "memory exhausted" instead of "Memory exhausted"
87619         or "virtual memory exhausted".
87620         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87621         "virtual memory exhausted".
87622         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87623         our own message.
87624         * lib/userspec.c (parse_user_spec): Likewise.
87625         * lib/bumpalloc.h: comment fix
87626         * lib/same.c, userspec.c: Include xalloc.h.
87627
87628         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87629         not char *const and pointing to a constant array.
87630         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87631         (xrealloc): Comment fix.
87632
87633         * lib/userspec.c (parse_user_spec):
87634         Don't translate a message until just before returning,
87635         to avoid unnecessary translation.
87636
87637 2000-08-07  Jim Meyering  <meyering@lucent.com>
87638
87639         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87640         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87641         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87642         getgroups.c, gethostname.c, getopt.h, group-member.c,
87643         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87644         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87645         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87646         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87647         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87648         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87649         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87650         yesno.c: Back out Copyright date changes for each file with no change
87651         this year.  This eases coordination with other programs using the same
87652         source code modules.  From Paul Eggert.
87653
87654 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87655
87656         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87657         not char, for compatibility with glibc 2.1.3 strftime.c.
87658
87659 2000-08-03  Greg McGary  <greg@mcgary.org>
87660
87661         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87662         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87663         (EXTEND_BUFFER): Use them.
87664
87665 2000-08-01  Jim Meyering  <meyering@lucent.com>
87666
87667         * lib/dirname.c (ISSLASH): Define.
87668         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87669         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87670         both `\' and `/' may be use as path separators.
87671         Based on a patch from Prashant TR.
87672
87673 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87674
87675         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87676         slot vector a constant, since it might get modified.
87677
87678 2000-07-31  Jim Meyering  <meyering@lucent.com>
87679
87680         * lib/xmalloc.c: Use `virtual memory exhausted', not
87681         `Memory exhausted'.
87682         * lib/obstack.c (print_and_abort): Likewise.
87683
87684 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87685
87686         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87687         buffer, so that the caller can always quote one small
87688         component of a "memory exhausted" message in slot 0.
87689         From a suggestion by Jim Meyering.
87690
87691 2000-07-30  Jim Meyering  <meyering@lucent.com>
87692
87693         * lib/makepath.c (make_path): Quote the other instance, too.
87694
87695         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87696         (STATIC_BUF_SIZE): Define.
87697         (quotearg_n_options): Use only statically allocated storage when
87698         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87699         than STATIC_BUF_SIZE.
87700
87701 2000-07-29  Jim Meyering  <meyering@lucent.com>
87702
87703         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87704         * lib/dirname.c (dir_name): Likewise.
87705
87706         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87707         `/'.
87708
87709         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87710         (dir_name): Assert that there are no trailing slashes.
87711
87712 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87713
87714         * lib/mbswidth.h (mbswidth): Add a flags argument.
87715         (mbswidth): New declaration.
87716         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87717         * lib/mbswidth.c (mbswidth): Add a flags argument.
87718         (mbsnwidth): New function.
87719
87720 2000-07-24  Jim Meyering  <meyering@lucent.com>
87721
87722         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87723
87724 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87725
87726         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87727
87728 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87729
87730         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87731         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87732         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87733         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87734         invoke multibyte primitives.
87735
87736 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87737
87738         * lib/quotearg.c:
87739         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87740         so that mbstate_t is always defined.
87741
87742         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87743         be 1 in at least one GCC installation, and this configuration
87744         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87745         performance on hosts that have mbrtowc but have only unibyte
87746         locales, but I assume these hosts are rare.
87747
87748 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87749
87750         * lib/mbswidth.c (_XOPEN_SOURCE):
87751         Don't define; this causes problems on Solaris 7.
87752         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87753
87754 2000-07-23  Jim Meyering  <meyering@lucent.com>
87755
87756         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87757         too: getgrgid, getpwuid, getuid.
87758
87759 2000-07-23  Jim Meyering  <meyering@lucent.com>
87760
87761         * lib/basename.c (base_name): Add an assertion.
87762
87763 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87764
87765         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87766         shadow its mbsinit function.
87767
87768 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87769
87770         * lib/mbswidth.h: New file.
87771         * lib/mbswidth.c: New file.
87772         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87773         (noinst_HEADERS): Add mbswidth.h.
87774
87775 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87776
87777         * lib/config.charset: Add support for FreeBSD. Improve support for
87778         HP-UX and IRIX 6.
87779
87780 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87781
87782         * m4/mbswidth.m4: New file.
87783         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87784
87785 2000-07-15  Jim Meyering  <meyering@lucent.com>
87786
87787         * lib/makepath.c: Include quote.h.
87788         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87789         corresponding argument in a `quote (...)' call.
87790         Give better diagnostics.
87791
87792         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87793         (noinst_HEADERS): Add quote.h.
87794
87795         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87796         from tar's src/misc.c.
87797         * lib/quote.h: New file.  Prototypes for same.
87798
87799 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87800
87801         From a suggestion by Bruno Haible.
87802         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87803         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87804         to decide whether to define the BeOS workaround macro;
87805         this adjusts to the change to AC_MBSTATE_T.
87806
87807 2000-07-14  Jim Meyering  <meyering@lucent.com>
87808
87809         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87810         jm_AC_TYPE_UINTMAX_T.
87811
87812 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87813
87814         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87815
87816         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87817         quotearg_buffer_restyled): Add support for
87818         clocale_quoting_style.  Undo previous change to
87819         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87820         and "{RIGHT QUOTATION MARK}" msgids.
87821
87822 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87823
87824         From a suggestion by Bruno Haible.
87825         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87826         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87827         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87828         and mbstate_t, to a single-part test that simply defines mbstate_t.
87829         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87830         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87831
87832 2000-07-10  Jim Meyering  <meyering@lucent.com>
87833
87834         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87835
87836         * m4/gnu-source.m4: Output to confdefs.h directly.
87837         Suggestion from Akim Demaille.
87838
87839 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87840
87841         The old behavior of quoting `like this' doesn't look good with
87842         newer, ISO-style fonts.  See:
87843         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87844
87845         Instead, quote "like this" by default.  Let the translator
87846         tailor the locale-specific quoting behavior by providing
87847         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87848
87849         * lib/quotearg.c (N_): New macro.
87850         (gettext_default): New function.
87851         (quotearg_buffer_restyled): Use
87852         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87853         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87854
87855 2000-07-09  Jim Meyering  <meyering@lucent.com>
87856
87857         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87858         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87859
87860         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87862
87863 2000-07-09  Jim Meyering  <meyering@lucent.com>
87864
87865         * lib/Most files: Update copyright dates to include 2000.
87866
87867 2000-07-08  Jim Meyering  <meyering@lucent.com>
87868
87869         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87870         if not defined.
87871         (xgethostname): Remove now-unnecessary #ifdef.
87872         Move declaration of `err' into loop where it's used.
87873
87874 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87875         and Bruno Haible  <haible@clisp.cons.org>
87876
87877         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87878         only if the test for an object-type mbstate_t fails.  This
87879         prevents us from mistakenly reporting that mbstate_t is a
87880         system object type after we "#define mbstate_t int" to work
87881         around its lack.
87882
87883 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87884         and Bruno Haible  <haible@clisp.cons.org>
87885
87886         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87887
87888 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87889
87890         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87891         to strerror_r.
87892         Include <ctype.h> for use of isalpha.
87893
87894 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87895
87896         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87897         by allocating a larger buffer. Test the gethostname return value for
87898         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87899         returns an error and ENAMETOOLONG isn't defined.
87900
87901 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87902
87903         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87904         dimension.
87905
87906 2000-07-04  Jim Meyering  <meyering@lucent.com>
87907
87908         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87909         of the deprecated AC_CHECKING.
87910
87911 2000-07-04  Jim Meyering  <meyering@lucent.com>
87912
87913         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87914         Reported by Bruno Haible.
87915
87916 2000-07-04  Jim Meyering  <meyering@lucent.com>
87917
87918         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87919         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87920         lacks mbrtowc.
87921
87922 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87923
87924         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87925         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87926
87927 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87928         and Bruno Haible  <haible@clisp.cons.org>
87929
87930         * lib/quotearg.c (mbrtowc):
87931         Assign to *pwc, and return 1 only if result is nonzero.
87932         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87933
87934 2000-07-03  Jim Meyering  <meyering@lucent.com>
87935
87936         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87937
87938 2000-07-03  Jim Meyering  <meyering@lucent.com>
87939
87940         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87941         This is necessary to get a definition of e.g., UTMP_FILE on
87942         HP-UX 10.20.
87943         From Bob Proulx.
87944
87945 2000-07-02  Jim Meyering  <meyering@lucent.com>
87946
87947         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87948
87949         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87950         AC_LIBOBJ(function_name).
87951         * m4/chown.m4: Likewise.
87952         * m4/fnmatch.m4: Likewise.
87953         * m4/ftruncate.m4: Likewise.
87954         * m4/getgroups.m4: Likewise.
87955         * m4/getline.m4: Likewise.
87956         * m4/group-member.m4: Likewise.
87957         * m4/jm-macros.m4: Likewise.
87958         * m4/lstat.m4: Likewise.
87959         * m4/malloc.m4: Likewise.
87960         * m4/memcmp.m4: Likewise.
87961         * m4/nanosleep.m4: Likewise.
87962         * m4/putenv.m4: Likewise.
87963         * m4/realloc.m4: Likewise.
87964         * m4/regex.m4: Likewise.
87965         * m4/stat.m4: Likewise.
87966         * m4/strftime.m4: Likewise.
87967
87968 2000-07-02  Jim Meyering  <meyering@lucent.com>
87969
87970         * lib/quotearg.c (mbstate_t): Don't define here.
87971
87972 2000-07-02  Jim Meyering  <meyering@lucent.com>
87973
87974         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87975
87976 2000-07-01  Jim Meyering  <meyering@lucent.com>
87977
87978         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87979
87980 2000-07-01  Jim Meyering  <meyering@lucent.com>
87981
87982         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87983         problem.
87984
87985 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87986
87987         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87988         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87989
87990 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87991
87992         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87993         per change in ../m4/ls-mntd-fs.m4.
87994         (read_filesystem_list): Ignore symbolic links.
87995
87996 2000-06-29  Jim Meyering  <meyering@lucent.com>
87997
87998         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87999         for declaration of strcmp.
88000
88001         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88002
88003         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88004         Avoid warning by casting result to `char *' to remove `const'.
88005
88006 2000-06-28  Jim Meyering  <meyering@lucent.com>
88007
88008         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88009         included by quotearg.c, for which we perform this test.  From
88010         Bruno Haible.
88011
88012 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88013
88014         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88015         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88016         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88017
88018 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88019
88020         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88021
88022 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88023
88024         savedir now sets errno on failure and invokes xmalloc to get memory.
88025         Fix a couple of other minor bugs while we're at it.
88026
88027         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88028         (NAMLEN): Remove macro.
88029         (malloc, realloc): Remove decls.
88030         (stpcpy): Likewise.
88031         ("xalloc.h"): Include.
88032         (NAME_SIZE_DEFAULT): New macro.
88033         (savedir): Use xmalloc / xrealloc to allocate memory.
88034         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88035         Skip "" directory entries.
88036         Use strlen to calculate directory entry length, since the old method
88037         is rarely used these days and isn't worth supporting.
88038         Don't use a pointer after freeing it.
88039         Check for integer overflow when calculating allocation size.
88040         Use memcpy to copy entries, instead of stpcpy.
88041         Set errno properly when returning NULL.
88042         Check for readdir error.
88043
88044 2000-06-26  Jim Meyering  <meyering@lucent.com>
88045
88046         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88047
88048 2000-06-25  Jim Meyering  <meyering@lucent.com>
88049
88050         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88051         Linux header bug when _XOPEN_SOURCE is defined to 500.
88052
88053 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88054
88055         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88056         deficiency.
88057
88058 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88059
88060         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88061         Include xalloc.h.
88062         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88063
88064 2000-06-24  Jim Meyering  <meyering@lucent.com>
88065
88066         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88067         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88068         for which strerror does return char*, but which lacks a conveniently
88069         accessible declaration of the function.  If the compile-test says
88070         strerror_r doesn't work, then resort to a `run'-test that works on
88071         BeOS and segfaults on DEC Unix.
88072
88073 2000-06-24  Jim Meyering  <meyering@lucent.com>
88074
88075         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88076
88077 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88078
88079         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88080         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88081
88082 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88083
88084         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88085         (mbrtowc, mbstate_t): Define substitutes if
88086         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88087         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88088         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88089
88090 2000-06-23  Jim Meyering  <meyering@lucent.com>
88091
88092         * m4/afs.m4: Add missing AC_MSG_RESULT.
88093         Reported by Bruno Haible.
88094
88095         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88096         Suggestion from Bruno Haible.
88097
88098 2000-06-23  Jim Meyering  <meyering@lucent.com>
88099
88100         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88101
88102 2000-06-21  Jim Meyering  <meyering@lucent.com>
88103
88104         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88105
88106 2000-06-21  Jim Meyering  <meyering@lucent.com>
88107
88108         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88109         (noinst_HEADERS): Add getstr.h.
88110
88111         * lib/getline.c (getstr): Move into a separate file.
88112         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88113         the following changes: new parameter, delim2; both delim[12]
88114         parameters have type `int', not `char'.  The latter would lose
88115         with 8-bit delimiters.
88116         * lib/getstr.h: New file.
88117
88118 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88119
88120         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88121         than 1024, return a memory chunk of least possible size, instead
88122         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88123         Use free/xmalloc instead of xrealloc to avoid copying for very long
88124         paths.
88125
88126 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88127
88128         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88129         the empty string.
88130
88131 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88132
88133         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88134         address, not strdup.  Include <stdlib.h> and don't declare free().
88135
88136 2000-06-19  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88139
88140 2000-06-18  Jim Meyering  <meyering@lucent.com>
88141
88142         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88143
88144         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88145         `checking whether...' message to be consistent with that of the
88146         lstat test.
88147
88148 2000-06-18  Jim Meyering  <meyering@lucent.com>
88149
88150         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88151         Besides, these days every porting target provides a mkdir function.
88152
88153         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88154         needed. (this snippet comes from src/system.h).
88155
88156 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88157
88158         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88159
88160 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88161
88162         * lib/human.c (adjust_value): New function.
88163         (human_readable_inexact): Apply rounding style even when
88164         printing approximate values.
88165
88166 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88167
88168         * lib/human.c (human_readable_inexact): Allow an input block
88169         size that is not a multiple of the output block size, and vice versa.
88170         Reported by Piergiorgio Sartor.
88171
88172 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88173
88174         * lib/getdate.y (get_date): Apply relative times after time
88175         zone indicator, not before.  Reported by Todd A. Jacobs.
88176
88177 2000-06-13  Jim Meyering  <meyering@lucent.com>
88178
88179         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88180
88181         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88182
88183 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88184
88185         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88186
88187 2000-06-12  Jim Meyering  <meyering@lucent.com>
88188
88189         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88190         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88191         optional argument.
88192         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88193         the optional argument, `lib'.
88194
88195 2000-06-08  Jim Meyering  <meyering@lucent.com>
88196
88197         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88198
88199 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88200
88201         Rewrite largefile configuration so that we don't need to run
88202         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88203         AC_CANONICAL_HOST in configure.in -- jmm]
88204
88205         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88206         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88207         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88208         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88209         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88210         All uses changed.
88211         Instead of inspecting the output of getconf, try to compile the
88212         test program without and with the macro definition.
88213         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88214         for getconf.  Instead, check for the needed flags by compiling
88215         test programs.
88216
88217 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88218
88219         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88220
88221 2000-06-04  Jim Meyering  <meyering@lucent.com>
88222
88223         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88224         SunOS 4.1.4 for which gid_t is an unsigned type.
88225
88226 2000-06-03  Jim Meyering  <meyering@lucent.com>
88227
88228         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88229         now that autoconf requires that.
88230
88231         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88232         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88233         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88234
88235 2000-06-03  Jim Meyering  <meyering@lucent.com>
88236
88237         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88238
88239 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88240
88241         * m4/glibc21.m4: New file.
88242         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88243
88244 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88245
88246         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88247         newer, don't install charset.alias.
88248         * lib/config.charset: Change the Linux/glibc rules so they become empty
88249         on glibc-2.1 or newer.
88250
88251 2000-06-02  Jim Meyering  <meyering@lucent.com>
88252
88253         * lib/mountlist.c: Back out last change.  Instead, do this...
88254         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88255         me_dummy member using the same `ignore'-testing code.
88256         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88257         fs_type strings.
88258         From Mark D. Roth.
88259
88260 2000-05-29  Jim Meyering  <meyering@lucent.com>
88261
88262         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88263         mounts with the `ignore' attribute.  Based on a patch from
88264         Mark D. Roth.
88265
88266 2000-05-28  Jim Meyering  <meyering@lucent.com>
88267
88268         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88269         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88270         * m4/stat.m4: Likewise.
88271         * m4/lstat.m4: Likewise.
88272         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88273
88274         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88275         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88276
88277 2000-05-26  Jim Meyering  <meyering@lucent.com>
88278
88279         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88280
88281 2000-05-24  Jim Meyering  <meyering@lucent.com>
88282
88283         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88284         autoconf requires that.
88285         * m4/lib-check.m4: Likewise.
88286         * m4/jm-macros.m4: Likewise.
88287         * m4/strftime.m4: Likewise.
88288
88289         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88290         AC_CHECK_DECLS, now that autoconf requires that.
88291
88292 2000-05-22  Jim Meyering  <meyering@lucent.com>
88293
88294         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88295         * m4/lstat.m4: Likewise.
88296
88297 2000-05-22  Jim Meyering  <meyering@lucent.com>
88298
88299         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88300
88301 2000-05-20  Jim Meyering  <meyering@lucent.com>
88302
88303         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88304         (jm_PREREQ): Use it.
88305
88306 2000-05-18  Jim Meyering  <meyering@lucent.com>
88307
88308         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88309         back, too, since it may have been modified by allocate_entry.
88310         (hash_delete): Rewrite to use neither the assignment operator
88311         nor the comma operator in an if-expression.
88312
88313 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88314
88315         * lib/closeout.c:
88316         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88317         Remove; no longer needed.
88318         "quotearg.h": Add include.
88319         (file_name): Do not bother to explicitly initialize to NULL; it's less
88320         efficient on some hosts.
88321         (close_stdout_status): Remove test as to whether stdout was already
88322         closed; it breaks for the case "echo x | sort >&-".
88323         Quote file name colons.
88324         Do not assume that _("write error") lacks format strings.
88325
88326 2000-05-15  Jim Meyering  <meyering@lucent.com>
88327
88328         * lib/version-etc.c (version_etc_copyright): Update the copyright
88329         string used in all --version output.
88330
88331 2000-05-14  Jim Meyering  <meyering@lucent.com>
88332
88333         * lib/closeout.c (close_stdout_set_file_name): New function.
88334         (close_stdout_status): Use new file-scoped global.
88335         Return right away if fstat says the stdout file descriptor is invalid.
88336         * lib/closeout.h (close_stdout_set_file_name): Declare.
88337
88338 2000-05-10  Jim Meyering  <meyering@lucent.com>
88339
88340         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88341         (close_stdout_set_status): New function.
88342         * lib/closeout.h (close_stdout_set_status): Declare.
88343
88344 2000-05-09  Jim Meyering  <meyering@lucent.com>
88345
88346         * m4/gettext.m4: Rename this...
88347         * m4/libintl.m4: ...to this.
88348
88349 2000-05-08  Jim Meyering  <meyering@lucent.com>
88350
88351         * lib/long-options.c: Don't include closeout.h.
88352         (parse_long_options): Don't call close_stdout for --version.
88353
88354 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88355
88356         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88357         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88358         2.1.3 bug.  This avoids a clash when files like regex.c define
88359         _GNU_SOURCE.
88360
88361 2000-05-06  Jim Meyering  <meyering@lucent.com>
88362
88363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88364         (AC_REPLACE_FUNCS): Add strnlen.
88365
88366         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88367         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88368
88369         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88370         AC_SEARCH_LIBS call for nanosleep.
88371         (LIB_NANOSLEEP): Set and AC_SUBST.
88372
88373 2000-05-06  Jim Meyering  <meyering@lucent.com>
88374
88375         * lib/strnlen.c: Undefine __strnlen and strnlen.
88376         [!weak_alias]: Define __strnlen to strnlen.
88377
88378         * lib/atexit.c: New file, from libiberty.
88379
88380 2000-05-06  Jim Meyering  <meyering@lucent.com>
88381
88382         * lib/closeout.c (close_stdout_status): Also check for errors on the
88383         stderr stream.
88384
88385 2000-05-05  Jim Meyering  <meyering@lucent.com>
88386
88387         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88388         AC_SEARCH_LIBS call for clock_gettime.
88389         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88390
88391         * m4/search-libs.m4: Update from autoconf.
88392
88393         su doesn't work on Solaris 2.6.
88394         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88395         <shadow.h>.  Reported by Dragos Harabor.
88396
88397 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88398
88399         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88400         memcpy instead of xmalloc, xrealloc, path_concat.
88401         (locale_charset): Treat empty environment variables as absent.
88402         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88403
88404 2000-05-04  Jim Meyering  <meyering@lucent.com>
88405
88406         * lib/getopt.c: Update from glibc.
88407         * lib/obstack.c: Likewise.
88408         * lib/obstack.h: Likewise.
88409         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88410         file
88411
88412         * lib/regex.h: Likewise.
88413         * lib/strndup.c: Likewise.
88414         * lib/strnlen.c: New file, from glibc.
88415
88416 2000-05-03  Jim Meyering  <meyering@lucent.com>
88417
88418         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88419
88420 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88421
88422         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88423         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88424         compile-time test, rather than inspecting host and OS, to
88425         decide whether to define _LARGEFILE_SOURCE.
88426
88427 2000-05-01  Jim Meyering  <meyering@lucent.com>
88428
88429         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88430
88431         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88432         Based on a patch from Bruno Haible.
88433
88434 2000-05-01  Jim Meyering  <meyering@lucent.com>
88435
88436         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88437
88438 2000-04-29  Jim Meyering  <meyering@lucent.com>
88439
88440         * lib/path-concat.c: Declare strdup only if it's not defined.
88441         * lib/canon-host.c: Likewise.
88442
88443 2000-04-28  Jim Meyering  <meyering@lucent.com>
88444
88445         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88446         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88447         is included first, then limits.h is included by locale.h by libintl.h.
88448         From John David Anglin.
88449
88450 2000-04-25  Jim Meyering  <meyering@lucent.com>
88451
88452         * lib/makepath.c (S_IRWXUGO): Define.
88453         (make_path): Always perform explicit chmod if MODE specifies any
88454         of the `special' permission bits.  Prompted by a bug report against
88455         install from Mate Wierdl and Joost van Baal.
88456
88457 2000-04-18  Jim Meyering  <meyering@lucent.com>
88458
88459         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88460         (jm_PREREQ): Use it.
88461
88462 2000-04-18  Jim Meyering  <meyering@lucent.com>
88463
88464         * lib/README: New file.
88465
88466         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88467         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88468
88469 2000-04-17  Jim Meyering  <meyering@lucent.com>
88470
88471         Get it right :-)
88472         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88473         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88474         Suggestion from Akim Demaille.
88475
88476 2000-04-17  Jim Meyering  <meyering@lucent.com>
88477
88478         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88479         the definition of it to rpl_strftime also defined-away the system's
88480         declaration.
88481
88482 2000-04-15  Jim Meyering  <meyering@lucent.com>
88483
88484         Use `C' to denote so-called `contiguous' files, the same way
88485         that tar does.
88486         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88487         (ftypelet): Use S_ISCTG.
88488         From Michael Deutschmann.
88489
88490 2000-04-14  Jim Meyering  <meyering@lucent.com>
88491
88492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88493         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88494         clobbered.
88495
88496 2000-04-14  Jim Meyering  <meyering@lucent.com>
88497
88498         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88499
88500 2000-04-13  Jim Meyering  <meyering@lucent.com>
88501
88502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88503         AH_VERBATIM to insert required #ifndef into config.h.in.
88504         Suggestion from Akim Demaille.
88505
88506 2000-04-12  Jim Meyering  <meyering@lucent.com>
88507
88508         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88509         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88510         Christian Krackowizer.
88511
88512         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88513         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88514         (AC_SYS_LARGEFILE): Require.
88515         (AM_C_PROTOTYPES): Require.
88516
88517 2000-04-08  Jim Meyering  <meyering@lucent.com>
88518
88519         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88520         names don't conflict.  Reported by Eli Zaretskii.
88521
88522 2000-04-07  Jim Meyering  <meyering@lucent.com>
88523
88524         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88525         sys/types.h, to work around system header problems on AIX 3.2.5.
88526         From Bruno Haible.
88527
88528 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88529
88530         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88531         bug.  Deal with the different error behavior of Irix iconv.
88532
88533 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88534
88535         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88536         IRIX if the installer said otherwise.
88537
88538 2000-04-05  Jim Meyering  <meyering@lucent.com>
88539
88540         Portability tweaks required for ultrix4.3.
88541         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88542         (jm_CHECK_DECLS): Add getutent to the list of functions.
88543         (_jm_DECL_HEADERS): Add utmpx.h.
88544         From John David Anglin.
88545
88546         * m4/strftime.m4: Back out the 2000-04-02 change.
88547         Instead of that change, simply undefine putenv in the test program.
88548
88549 2000-04-05  Jim Meyering  <meyering@lucent.com>
88550
88551         Portability tweaks required for ultrix4.3.
88552         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88553         getutent.
88554         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88555         * lib/canon-host.c: Declare strdup.
88556         * lib/path-concat.c: Likewise.
88557         From John David Anglin.
88558
88559 2000-04-04  Jim Meyering  <meyering@lucent.com>
88560
88561         Be more DOS 8.3-friendly.
88562         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88563         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88564         * lib/Makefile.am: Reflect renaming.
88565         Reported by Eli Zaretskii.
88566
88567         Use a temporary file name that won't clash with `charset.alias'
88568         in the DOS 8.3 name space.
88569         * lib/Makefile.am (charset_tmp): Define.
88570         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88571         (uninstall-local): Likewise.
88572         Reported by Eli Zaretskii.
88573
88574 2000-04-03  Jim Meyering  <meyering@lucent.com>
88575
88576         * m4/gettext.m4: Fix typo in comment.
88577
88578         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88579         textutils/configure.in).  Suggestion from Paul Eggert.
88580         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88581
88582 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88583
88584         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88585         variable in the shell rather than using putenv, which isn't
88586         portable.  This avoids the configure-time inter-test dependency
88587         on the potentially-renamed putenv function.
88588
88589 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88590
88591         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88592         before checking struct stat.st_blksize, so that
88593         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88594
88595 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88596
88597         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88598         since strftime.c uses HAVE_STRFTIME to decide whether to use
88599         the underlying strftime.
88600
88601 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88602
88603         * lib/time/strftime.c (my_strftime): Make sure we call the system
88604         strftime, not ourselves, when invoking the underlying strftime.
88605
88606 2000-03-24  Jim Meyering  <meyering@lucent.com>
88607
88608         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88609         (charset_alias): Define.
88610         (install-exec-local): Factor out common code.
88611         (uninstall-local): Split lines longer than 80.
88612         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88613         (SUFFIXES): Define.
88614         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88615         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88616
88617 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88618
88619         * lib/config.charset: Output a line containing "Packages using this
88620         file".
88621         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88622         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88623         ref-del.sed): New rules.
88624
88625 2000-03-17  Jim Meyering  <meyering@lucent.com>
88626
88627         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88628         Otherwise, include <strings.h>
88629
88630 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88631
88632         * lib/unicodeio.c (utf8_wctomb): New function.
88633         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88634         format instead of in UCS-4 with platform dependent endianness.
88635
88636 2000-03-10  Jim Meyering  <meyering@lucent.com>
88637
88638         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88639         From Marco Franzen.
88640
88641 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88642
88643         * lib/savedir.c (savedir): Work even if directory size is
88644         negative; this can happen with some screwy NFS configurations.
88645
88646 2000-03-06  Jim Meyering  <meyering@lucent.com>
88647
88648         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88649         if it's NULL (because we ran out of memory).  From Bruno Haible.
88650
88651 2000-03-05  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/localcharset.c ("path-concat.h"): Include.
88654         (get_charset_aliases): Use path_concat instead of ANSI string
88655         concatenation.
88656
88657         * lib/unicodeio.h (PARAMS): Define.
88658         Use it to guard prototype.
88659
88660 2000-03-04  Jim Meyering  <meyering@lucent.com>
88661
88662         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88663         for lib/localcharset.c.
88664
88665 2000-03-04  Jim Meyering  <meyering@lucent.com>
88666
88667         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88668         installing into it.
88669         (uninstall-local): Uncomment this rule so `make distcheck' works
88670         once again.
88671
88672         * lib/unicodeio.c (<errno.h>): Include it.
88673         (errno): Declare if not defined.
88674
88675         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88676
88677         * lib/config.charset: New version, incorporating remarks from a linux
88678         i18n mailing list.  From Bruno Haible.
88679
88680 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88681
88682         * m4/codeset.m4: New file.
88683         * m4/iconv.m4: New file.
88684         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88685
88686 2000-03-03  Jim Meyering  <meyering@lucent.com>
88687
88688         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88689
88690 2000-03-02  Jim Meyering  <meyering@lucent.com>
88691
88692         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88693         the messages come out on separate lines.
88694
88695         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88696         rather than jm_CHECK_DECLARATIONS.
88697         * m4/decl.m4: Remove now-unused file.
88698
88699         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88700         geteuid.
88701
88702 2000-03-02  Jim Meyering  <meyering@lucent.com>
88703
88704         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88705
88706 2000-03-01  Jim Meyering  <meyering@lucent.com>
88707
88708         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88709         * lib/unicodeio.c: Likewise.
88710
88711 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88712
88713         * lib/config.charset: New file.
88714         * lib/localcharset.c: New file.
88715         * lib/unicodeio.h, lib/unicodeio.c: New files.
88716         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88717         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88718         (noinst_HEADERS): Add unicodeio.h.
88719         (all-local, install-exec-local, charset.alias): New targets.
88720
88721 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88722
88723         * lib/quotearg.c (ALERT_CHAR): New macro.
88724         (quotearg_buffer_restyled): Use it.
88725
88726 2000-02-27  Jim Meyering  <meyering@lucent.com>
88727
88728         * m4/check-decl.m4: Add getenv to the list.
88729
88730 2000-02-27  Jim Meyering  <meyering@lucent.com>
88731
88732         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88733         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88734
88735         * lib/backupfile.c: Guard inclusion of stdlib.h with
88736         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88737         Declare malloc if needed.
88738
88739         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88740         `#ifndef HAVE_DECL..'
88741         now that autoconf always defines the HAVE_DECL_ symbols.
88742         * lib/human.c: Likewise.
88743         * lib/same.c: Likewise.
88744         * lib/strtoumax.c: Likewise.
88745
88746         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88747         declaration check was not run.
88748         * lib/hash.c: Likewise.
88749         * lib/human.c: Likewise.
88750         * lib/same.c: Likewise.
88751         * lib/strtoumax.c: Likewise.
88752
88753         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88754         `.', then first look up the entire `.'-containing string as a login
88755         name.
88756
88757 2000-02-23  Jim Meyering  <meyering@lucent.com>
88758
88759         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88760         in place of my hack.
88761
88762 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88763
88764         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88765         (textint): New typedef.
88766         (parser_control): Member year changed from int to textint.
88767         All uses changed.
88768         (YYSTYPE): Removed; replaced by %union with int and textint members.
88769         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88770         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88771         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88772         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88773         (date, number, to_year): Use width of number in digits, not its value,
88774         to determine whether it's a 2-digit year, or a 2-digit time.
88775         (yylex): Store number of digits of numeric tokens.
88776         Reported by John Kendall.
88777
88778         (parser_control): Changed from struct parser_control to typedef (for
88779         consistency).  All uses changed.
88780
88781         (tID): Removed; not used.
88782         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88783
88784 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88785
88786         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88787         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88788
88789 2000-02-12  Jim Meyering  <meyering@lucent.com>
88790
88791         * lib/userspec.c (ISDIGIT): Define it.
88792         (isdigit): Remove definition.
88793         (is_number): Use ISDIGIT, not isdigit.
88794         <libintl.h>: Include.
88795         (_ and N_): Define.
88796         (parse_user_spec): Mark translatable strings.
88797
88798 2000-02-10  Jim Meyering  <meyering@lucent.com>
88799
88800         With these changes, nanosleep.[ch] are finally enough like the other
88801         lib/* replacement files to compile on a few more losing systems.
88802
88803         * lib/nanosleep.h: Don't include config.h.
88804         Remove prototype from declaration of nanosleep.
88805         (PARAMS): Remove now-unneeded definition.
88806         * lib/nanosleep.c: #undef nanosleep.
88807         (rpl_nanosleep): Rename from nanosleep.
88808
88809 2000-02-10  Jim Meyering  <meyering@lucent.com>
88810
88811         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88812         gnu_nanosleep to rpl_nanosleep.
88813
88814 2000-02-09  Jim Meyering  <meyering@lucent.com>
88815
88816         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88817         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88818
88819 2000-02-08  Akim Demaille  <akim@epita.fr>
88820
88821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88822         `[' and `]' and remove uses of `changequote'.
88823         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88824         (AC_SYS_LARGEFILE): Likewise.
88825         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88826         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88827         of changequote.
88828         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88829         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88830         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88831         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88832
88833 2000-02-05  Jim Meyering  <meyering@lucent.com>
88834
88835         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88836         Remove explicit use of AC_HEADER_TIME.  It is required by
88837         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88838         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88839         in autoconf whereby the expansion of the latter ended up preceding
88840         the expansion of its prerequisite, AC_HEADER_TIME.
88841         Reported by Volker Borchert.
88842
88843 2000-02-03  Jim Meyering  <meyering@lucent.com>
88844
88845         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88846
88847 2000-02-03  Jim Meyering  <meyering@lucent.com>
88848
88849         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88850         rather than with `#if HAVE_UTMPNAME'.
88851
88852 2000-02-02  Jim Meyering  <meyering@lucent.com>
88853
88854         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88855         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88856         Reported by Eli Zaretskii.
88857
88858 2000-02-01  Jim Meyering  <meyering@lucent.com>
88859
88860         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88861
88862 2000-01-31  Jim Meyering  <meyering@lucent.com>
88863
88864         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88865         functions.  Add the time.h and sys/time.h headers along with the
88866         AC_REQUIRE'ment of AC_HEADER_TIME.
88867
88868 2000-01-31  Jim Meyering  <meyering@lucent.com>
88869
88870         * lib/nanosleep.h (nanosleep): Guard declaration with
88871         `#if ! HAVE_DECL_NANOSLEEP'.
88872         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88873         the declaration in that vendor's sys/timers.h.
88874         Reported by Christian Krackowizer.
88875
88876         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88877         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88878         (ISPRINT): Likewise.
88879         Reported by Tom Tromey.
88880
88881 2000-01-30  Jim Meyering  <meyering@lucent.com>
88882
88883         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88884
88885         * m4/prereq.m4 (utmp_includes): Define.
88886         Check for ut_user and ut_name members in both struct utmpx
88887         and struct utmp.
88888
88889 2000-01-30  Jim Meyering  <meyering@lucent.com>
88890
88891         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88892         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88893         header files where only utmpx.ut_user is declared.
88894
88895         * lib/readutmp.h (UT_USER): Define.
88896
88897 2000-01-29  Jim Meyering  <meyering@lucent.com>
88898
88899         * m4/lib-check.m4: New file containing library-related checks from
88900         fileutils and sh-utils (textutils had none).
88901
88902 2000-01-28  Jim Meyering  <meyering@lucent.com>
88903
88904         * m4/perl.m4: Change format of warning message to look more like that
88905         from the missing script.  Suggestion from François Pinard.
88906
88907 2000-01-25  Jim Meyering  <meyering@lucent.com>
88908
88909         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88910         well as time.h in the compile check.
88911         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88912         Fix typo in cross-compiling case: s/yes/no/.
88913
88914 2000-01-23  Jim Meyering  <meyering@lucent.com>
88915
88916         * m4/jm-macros.m4: Move df-related tests here from
88917         fileutils/configure.in
88918
88919         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88920         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88921
88922         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88923         s/space/ac_fsusage_space/.
88924         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88925
88926         * m4/ftruncate.m4: New file (derived from part of
88927         fileutils/configure.in).
88928         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88929         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88930
88931         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88932         AC_SUBST these here, rather than just in sh-util/configure.in, so
88933         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88934         all the same.
88935         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88936         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88937         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88938         (AC_SUBST(POW_LIBM)): Likewise.
88939         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88940
88941 2000-01-23  Jim Meyering  <meyering@lucent.com>
88942
88943         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88944         obstack.c.
88945
88946 2000-01-22  Jim Meyering  <meyering@lucent.com>
88947
88948         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88949
88950         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88951
88952         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88953         configure.in
88954         (AC_CHECK_HEADERS): Likewise for sh-utils.
88955         (AC_CHECK_HEADERS): Likewise for textutils.
88956         Merge the three lists of headers.
88957
88958         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88959         from fileutils' configure.in.
88960
88961         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88962         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88963         check-decl.m4.
88964
88965         * m4/check-decl.m4: Use #if rather than #ifdef.
88966         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88967         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88968         (_jm_DECL_HEADERS): Define new function.
88969         (jm_CHECK_DECLARATIONS): Require it.
88970
88971 2000-01-22  Jim Meyering  <meyering@lucent.com>
88972
88973         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88974         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88975         Required for some AIX systems.  Reported by Christian Krackowizer.
88976         [TESTING] (main): New function.
88977
88978         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88979         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88980         letters.
88981
88982         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88983         iswprint.
88984
88985         * lib/strverscmp.c (ISDIGIT): Define.
88986         (strverscmp): Use ISDIGIT, not isdigit.
88987
88988 2000-01-19  Jim Meyering  <meyering@lucent.com>
88989
88990         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88991         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88992         defines `struct timespec' in <sys/time.h>
88993
88994         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88995         Thanks to Akim for explaining.
88996
88997 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88998
88999         * lib/nanosleep.c (nanosleep):
89000         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89001         POSIX.1 doesn't require SA_INTERRUPT and some systems
89002         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89003         it's been part of POSIX.1 since day 1 (in 1988).
89004
89005 2000-01-17  Jim Meyering  <meyering@lucent.com>
89006
89007         * lib/interlock: Remove unused file.  Reported by François Pinard.
89008
89009 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89010
89011         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89012         alert, backslash, formfeed, and vertical tab unnecessarily in
89013         shell quoting style.
89014
89015 2000-01-16  Jim Meyering  <meyering@lucent.com>
89016
89017         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89018         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89019         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89020         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89021
89022 2000-01-16  Jim Meyering  <meyering@lucent.com>
89023
89024         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89025         because the latter didn't work.
89026
89027 2000-01-15  Jim Meyering  <meyering@lucent.com>
89028
89029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89030         (AC_REPLACE_FUNCS): Add memcpy and memset.
89031         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89032         Add strpbrk.
89033         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89034
89035 2000-01-12  Jim Meyering  <meyering@lucent.com>
89036
89037         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89038         (jm_PREREQ): Use it.
89039         (jm_PREREQ_READUTMP): New macro.
89040         (jm_PREREQ): Use it.
89041
89042 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89043
89044         Quote multibyte characters correctly.
89045         * m4/c-bs-a.m4: New file.
89046         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89047         (jm_PREREQ): Use it.
89048
89049 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89050
89051         * m4/uintmax_t.m4: Port to autoconf 2.13.
89052
89053 2000-01-08  Jim Meyering  <meyering@ascend.com>
89054
89055         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89056         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89057
89058 2000-01-04  Jim Meyering  <meyering@ascend.com>
89059
89060         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89061         jm_STRUCT_DIRENT_D_TYPE.
89062         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89063         jm_STRUCT_DIRENT_D_INO.
89064         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89065         jm_STRUCT_UTIMBUF.
89066         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89067         renamings.
89068         * m4/utime.m4: Likewise.
89069
89070         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89071         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89072
89073 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89074
89075         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89076         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89077
89078 2000-01-02  Jim Meyering  <meyering@ascend.com>
89079
89080         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89081         remember if this is necessary.
89082
89083 1999-12-26  Jim Meyering  <meyering@ascend.com>
89084
89085         * m4/jm-macros.m4: Use it here.
89086         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89087
89088 1999-12-23  Jim Meyering  <meyering@ascend.com>
89089
89090         * m4/jm-macros.m4: Check for clock_gettime (moved from
89091         fileutils/configure.in)
89092         Check for gettimeofday.
89093
89094 1999-12-20  Jim Meyering  <meyering@ascend.com>
89095
89096         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89097         autoconf-2.14a-1999-12-20.
89098
89099 1999-12-19  Jim Meyering  <meyering@ascend.com>
89100
89101         * m4/lstat-slash.m4: New file.
89102         * m4/jm-macros.m4: Use the new macro:
89103         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89104
89105 1999-12-07  Jim Meyering  <meyering@ascend.com>
89106
89107         * m4/perl.m4: Require that File::Compare be available, too.
89108         Too many systems seem to lack it.
89109
89110         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89111         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89112
89113 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89114
89115         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89116         problem with the QNX 4.25 shell, which doesn't propagate exit
89117         status of failed commands inside shell assignments.
89118
89119 1999-11-17  Jim Meyering  <meyering@ascend.com>
89120
89121         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89122
89123 1999-11-07  Jim Meyering  <meyering@ascend.com>
89124
89125         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89126
89127 1999-11-06  Jim Meyering  <meyering@ascend.com>
89128
89129         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89130         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89131
89132 1999-11-05  Jim Meyering  <meyering@ascend.com>
89133
89134         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89135         configure.in of textutils, fileutils, and sh-utils into this one
89136         (shared between those packages) file.
89137         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89138         AC_STRUCT_ST_BLKSIZE.
89139
89140 1999-11-03  Jim Meyering  <meyering@ascend.com>
89141
89142         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89143         of AC_CHECK_TYPE checks includes unistd.h.
89144         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89145         Suggestion from Akim Demaille.
89146
89147 1999-10-30  Jim Meyering  <meyering@ascend.com>
89148
89149         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89150         m4-quoted string.
89151         * m4/ls-mntd-fs.m4: Likewise.
89152         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89153         * m4/jm-winsz1.m4: Likewise.
89154
89155         * m4/const.m4: Remove file, since the fix made it into the experimental
89156         version of autoconf.
89157         * m4/mktime.m4: Likewise.
89158
89159         * m4/check-type.m4: Remove file, now that the latest version of
89160         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89161
89162         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89163         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89164         AC_CHECK_TYPE.
89165
89166 1999-10-04  Jim Meyering  <meyering@ascend.com>
89167
89168         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89169
89170 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89171
89172         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89173         2.95.1 bug with HP-UX 10.20.
89174
89175 1999-09-17  Jim Meyering  <meyering@ascend.com>
89176
89177         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89178         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89179         due to missing strdup (against sh-utils-2.0).
89180
89181 1999-08-29  Jim Meyering  <meyering@ascend.com>
89182
89183         * m4/jm-macros.m4: Require jm_BISON.
89184         * m4/bison.m4: New file.
89185
89186 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89187
89188         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89189         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89190
89191 1999-08-05  Jim Meyering  <meyering@ascend.com>
89192
89193         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89194         to avoid conflicts with `conftest' on 8+3 filesystems.
89195         Suggestion from Eli Zaretskii.
89196
89197 1999-08-04  Jim Meyering  <meyering@ascend.com>
89198
89199         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89200         fileutils and sh-utils (textutils's getline test was inadequate).
89201         (AM_FUNC_GETLINE): Run this test.
89202         (AC_CHECK_FUNCS): Check for getdelim.
89203         Reported by Bob Proulx.
89204
89205 1999-08-02  Jim Meyering  <meyering@ascend.com>
89206
89207         * m4/jm-macros.m4: Add a comment.
89208
89209 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89210
89211         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89212         <inttypes.h> defines strtoumax as a macro (and not as a
89213         function).
89214
89215 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89216
89217         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89218         that we can shift, multiply and divide unsigned long long
89219         values; Ultrix cc can't do it.
89220
89221 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89222
89223         * m4/mktime.m4: New file, which is a preview of what should appear
89224         in the next public autoconf release.
89225
89226 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89227
89228         * m4/lfs.m4: Remove this file.
89229         * m4/largefile.m4: New file.  It contains the old contents of
89230         lfs.m4, except that all names with prefix AC_LFS have been
89231         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89232         compatible with future autoconf versions.  Also, some minor m4
89233         quoting problems have been fixed.
89234
89235 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89236
89237         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89238         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89239         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89240         and simplify the shell code.
89241
89242 1999-08-01  Jim Meyering  <meyering@ascend.com>
89243
89244         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89245         m4.
89246
89247 1999-07-20  Jim Meyering  <meyering@ascend.com>
89248
89249         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89250
89251 1999-07-15  Jim Meyering  <meyering@ascend.com>
89252
89253         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89254
89255 1999-05-22  Jim Meyering  <meyering@ascend.com>
89256
89257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89258
89259 1999-05-20  Jim Meyering  <meyering@ascend.com>
89260
89261         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89262         Add a colon after each `then' in case $4 is empty.
89263
89264 1999-05-16  Jim Meyering  <meyering@ascend.com>
89265
89266         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89267
89268 1999-05-10  Jim Meyering  <meyering@ascend.com>
89269
89270         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89271
89272         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89273         AC_FUNC_MKTIME.
89274
89275 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89276
89277         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89278
89279 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89280
89281         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89282         not CPPFLAGS, so that linking works correctly in IRIX.
89283
89284 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89285
89286         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89287
89288 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89289
89290         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89291         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89292         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89293         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89294         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89295
89296         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89297
89298 1999-04-20  Jim Meyering  <meyering@ascend.com>
89299
89300         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89301         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89302         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89303
89304 1999-04-18  Jim Meyering  <meyering@ascend.com>
89305
89306         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89307         * m4/jm-macros.m4: Use it.
89308
89309 1999-04-06  Jim Meyering  <meyering@ascend.com>
89310
89311         * m4/strftime.m4: Remove test for %f.
89312
89313 1999-03-29  Jim Meyering  <meyering@ascend.com>
89314
89315         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89316         superset of the AC_TYPE_* checks in the textutils, fileutils,
89317         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89318         AC_TYPE_PID_T.
89319
89320 1999-03-28  Jim Meyering  <meyering@ascend.com>
89321
89322         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89323         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89324         replaced e.g., in the *.sh files of the sh-utils.
89325
89326 1999-03-20  Jim Meyering  <meyering@ascend.com>
89327
89328         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89329         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89330         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89331
89332 1999-03-19  Jim Meyering  <meyering@ascend.com>
89333
89334         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89335
89336 1999-03-12  Jim Meyering  <meyering@ascend.com>
89337
89338         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89339
89340 1999-03-07  Jim Meyering  <meyering@ascend.com>
89341
89342         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89343         declared.
89344
89345 1999-02-17  Jim Meyering  <meyering@ascend.com>
89346
89347         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89348         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89349
89350 1999-02-07  Jim Meyering  <meyering@ascend.com>
89351
89352         * m4/group-member.m4: New file -- extracted from sh-utils'
89353         configure.in.
89354
89355         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89356         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89357
89358 1999-02-06  Jim Meyering  <meyering@ascend.com>
89359
89360         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89361         * m4/fnmatch.m4: Likewise.
89362         * m4/getgroups.m4: Likewise.
89363         * m4/lstat.m4: Likewise.
89364         * m4/malloc.m4: Likewise.
89365         * m4/putenv.m4: Likewise.
89366         * m4/realloc.m4: Likewise.
89367         * m4/regex.m4: Likewise.
89368         * m4/stat.m4: Likewise.
89369         * m4/strftime.m4: Likewise.
89370         Suggestion from Alain Magloire.
89371
89372         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89373         * m4/fnmatch.m4: Likewise.
89374         * m4/getgroups.m4: Likewise.
89375         * m4/getline.m4: Likewise.
89376         * m4/lstat.m4: Likewise.
89377         * m4/malloc.m4: Likewise.
89378         * m4/memcmp.m4: Likewise.
89379         * m4/putenv.m4: Likewise.
89380         * m4/realloc.m4: Likewise.
89381         * m4/regex.m4: Likewise.
89382         * m4/stat.m4: Likewise.
89383         * m4/strftime.m4: Likewise.
89384         Suggestion from Alain Magloire.
89385
89386         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89387         an argument.
89388
89389         * m4/regex.m4: Add a run-time Test for proper operation of
89390         re_compile_pattern.
89391
89392 1999-01-31  Jim Meyering  <meyering@ascend.com>
89393
89394         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89395
89396 1999-01-30  Jim Meyering  <meyering@ascend.com>
89397
89398         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89399
89400         * m4/jm-mktime.m4: Make this a wrapper around the official
89401         AM_FUNC_MKTIME rather than my private copy, now that the official one
89402         is up to date.
89403         * m4/mktime.m4: Remove file.
89404
89405         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89406         * m4/uptime.m4: Likewise.
89407         * m4/uintmax_t.m4: Likewise.
89408
89409 1999-01-28  Jim Meyering  <meyering@ascend.com>
89410
89411         * m4/jm-macros.m4: Use jm_AFS.
89412         * m4/afs.m4: New file (from fileutils' configure.in).
89413
89414         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89415         * m4/chown.m4: Likewise.
89416         * m4/d-ino.m4: Likewise.
89417         * m4/d-type.m4: Likewise.
89418         * m4/fnmatch.m4: Likewise.
89419         * m4/getgroups.m4: Likewise.
89420         * m4/gettext.m4: Likewise.
89421         * m4/jm-mktime.m4: Likewise.
89422         * m4/jm-winsz2.m4: Likewise.
89423         * m4/lcmessage.m4: Likewise.
89424         * m4/ls-mntd-fs.m4: Likewise.
89425         * m4/malloc.m4: Likewise.
89426         * m4/memcmp.m4: Likewise.
89427         * m4/putenv.m4: Likewise.
89428         * m4/realloc.m4: Likewise.
89429         * m4/st_mtim.m4: Likewise.
89430         * m4/strftime.m4: Likewise.
89431
89432 1999-01-16  Jim Meyering  <meyering@ascend.com>
89433
89434         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89435         (ARGMATCH_DIE_DECL): Define.
89436
89437 1999-01-12  Jim Meyering  <meyering@ascend.com>
89438
89439         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89440         Reported by Lars Hecking.
89441
89442 1999-01-10  Jim Meyering  <meyering@ascend.com>
89443
89444         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89445         gross kludge.
89446         * m4/inttypes_h.m4: Likewise.
89447         * m4/lstat.m4: Likewise.
89448         * m4/malloc.m4: Likewise.
89449         * m4/readdir.m4: Likewise.
89450         * m4/realloc.m4: Likewise.
89451         * m4/st_dm_mode.m4: Likewise.
89452         * m4/stat.m4: Likewise.
89453         * m4/utimbuf.m4: Likewise.
89454         * m4/utimes.m4: Likewise.
89455
89456         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89457         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89458         comments in config.h.in are meaningful.
89459
89460         * m4/jm-macros.m4: Require autoconf-2.13 here.
89461
89462         * m4/regex.m4: By default, don't use the included regex.c on systems
89463         with glibc 2.  Suggestion from Uli Drepper.
89464
89465 1999-01-02  Jim Meyering  <meyering@ascend.com>
89466
89467         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89468
89469 1998-12-18  Jim Meyering  <meyering@ascend.com>
89470
89471         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89472         Based on a suggestion from Lars Hecking.
89473
89474 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89475
89476         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89477
89478 1998-11-16  Jim Meyering  <meyering@ascend.com>
89479
89480         * m4/lfs.m4: Double-quote the `uname...` expression.
89481
89482 1998-11-14  Jim Meyering  <meyering@ascend.com>
89483
89484         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89485         * m4/stat.m4: Likewise.
89486
89487 1998-11-03  Jim Meyering  <meyering@ascend.com>
89488
89489         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89490         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89491
89492 1998-10-18  Jim Meyering  <meyering@ascend.com>
89493
89494         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89495
89496 1998-10-17  Jim Meyering  <meyering@ascend.com>
89497
89498         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89499         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89500         calls for those previously hard-coded headers.  Instead, take a new
89501         parameter.
89502         (jm_CHECK_DECLARATIONS): Reflect interface change.
89503         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89504         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89505
89506         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89507
89508 1998-10-14  Jim Meyering  <meyering@ascend.com>
89509
89510         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89511         instead of "TZ=America/Vancouver".  From Paul Eggert.
89512
89513 1998-10-11  Jim Meyering  <meyering@ascend.com>
89514
89515         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89516         This adds a test for a recently added compatibility fix for mktime.c.
89517         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89518
89519 1998-09-27  Jim Meyering  <meyering@ascend.com>
89520
89521         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89522
89523         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89524         ../configure.in, including a change from Gordon Matzigkeit to allow
89525         cross-compiling for the Hurd.
89526
89527         * m4/glibc.m4: New file/macro to test for the GNU C Library
89528         versions 1 and 2.  From Gordon Matzigkeit.
89529         Indent.
89530
89531 1998-09-21  Jim Meyering  <meyering@ascend.com>
89532
89533         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89534
89535 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89536
89537         Port nanosecond-resolution times to UnixWare 2.1.2 and
89538         pedantic Solaris 2.6.
89539
89540         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89541         AC_STRUCT_ST_MTIM.
89542         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89543         Generate name of ns member, instead of just 1 or undef.
89544         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89545
89546 1998-08-15  Jim Meyering  <meyering@ascend.com>
89547
89548         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89549         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89550         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89551         instead of jm_TYPE_SSIZE_T.
89552
89553 1998-08-12  Jim Meyering  <meyering@ascend.com>
89554
89555         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89556
89557 1998-08-02  Jim Meyering  <meyering@ascend.com>
89558
89559         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89560         in acconfig.h manually.
89561
89562 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89563
89564         * m4/st_mtim.m4: New file.
89565
89566 1998-07-28  Jim Meyering  <meyering@ascend.com>
89567
89568         * m4/utimes.m4: Undef stat.
89569
89570 1998-07-25  Jim Meyering  <meyering@ascend.com>
89571
89572         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89573         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89574
89575 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89576
89577         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89578         uid and gid actually remain unchanged.
89579
89580 1998-07-07  Jim Meyering  <meyering@ascend.com>
89581
89582         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89583
89584 1998-07-04  Jim Meyering  <meyering@ascend.com>
89585
89586         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89587         to prove that this macro can be used in packages without regex.c.
89588
89589 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89590
89591         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89592         is to be used.
89593
89594 1998-07-03  Jim Meyering  <meyering@ascend.com>
89595
89596         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89597
89598         * m4/gettext.m4: New file -- from gettext-0.10.35.
89599         * m4/lcmessage.m4: Likewise.
89600         * m4/progtest.m4: Likewise.
89601
89602         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89603         * m4/jm-macros.m4: Require the new macro.
89604
89605 1998-06-29  Jim Meyering  <meyering@ascend.com>
89606
89607         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89608         for the definition of NGROUPS (used in a system header included
89609         by sys/mount.h).
89610
89611 1998-06-28  Jim Meyering  <meyering@ascend.com>
89612
89613         * m4/ls-mntd-fs.m4: New file.
89614         * m4/fstypename.m4: New file.
89615
89616         * m4/jm-macros.m4: Require the new macro.
89617         * m4/jm-glibc-io.m4: New file.
89618
89619 1998-05-19  Jim Meyering  <meyering@ascend.com>
89620
89621         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89622         * m4/lchown.m4: New file.
89623
89624         * m4/Makefile.am.in: New file.
89625         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89626
89627 1998-05-14  Jim Meyering  <meyering@ascend.com>
89628
89629         * m4/Makefile.am (EXTRA_DIST): Add them.
89630         * m4/jm-macros.m4: New file.
89631         * m4/utimbuf.m4: New file.
89632
89633 1998-05-12  Jim Meyering  <meyering@ascend.com>
89634
89635         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89636
89637 1998-05-11  Jim Meyering  <meyering@ascend.com>
89638
89639         * m4/isc-posix.m4: New file.
89640
89641 1998-05-10  Jim Meyering  <meyering@ascend.com>
89642
89643         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89644
89645 1998-05-09  Jim Meyering  <meyering@ascend.com>
89646
89647         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89648         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89649         with automake.
89650
89651         * m4/ssize_t.m4: New file.
89652         * m4/mktime.m4: Remove file -- the new automake has this now.
89653
89654 1998-04-26  Jim Meyering  <meyering@ascend.com>
89655
89656         * m4/assert.m4: New file.
89657         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89658
89659 1998-04-05  Jim Meyering  <meyering@ascend.com>
89660
89661         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89662         (jm_PREREQ): Use it here.
89663
89664 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89665
89666         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89667         in acconfig.h.
89668
89669 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89670
89671         * m4/prereq.m4: New file.
89672         * m4/error.m4: New file.
89673         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89674
89675 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89676
89677         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89678         cache-check for the same variable -- that defeated the purpose of
89679         the test; the test program was never run.  This was a problem only
89680         on systems with losing getline functions -- HP-UX 10.20 is one.
89681         Reported by Bjorn Helgaas.
89682
89683 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89684
89685         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89686
89687 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89688
89689         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89690
89691         * m4/const.m4: New file.  Use an initializer in this declaration
89692         typedef int charset[2]; const charset x;
89693         Reported by Bob Glickstein.
89694
89695 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89696
89697         * m4/chown.m4: Fix reversed types on -1 args to chown.
89698         From Kaveh Ghazi.
89699
89700 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89701
89702         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89703         Add lseek and memchr.
89704
89705         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89706         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89707         have a 20-character limit on names.
89708
89709 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89710
89711         * m4/inttypes_h.m4: New file.
89712         * m4/uintmax_t.m4: New file.
89713         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89714
89715
89716         -----
89717
89718         Local Variables:
89719         coding: utf-8
89720         End:
89721
89722         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89723
89724         Copying and distribution of this file, with or without
89725         modification, are permitted provided the copyright notice
89726         and this notice are preserved.